@font-face { font-family: Fraunces; font-style: normal; font-weight: 560; font-display: swap; src: url("../fonts/fraunces-600.woff2") format("woff2"); }
@font-face { font-family: Fraunces; font-style: italic; font-weight: 560; font-display: swap; src: url("../fonts/fraunces-600-italic.woff2") format("woff2"); }
@font-face { font-family: Fraunces; font-style: normal; font-weight: 680; font-display: swap; src: url("../fonts/fraunces-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-400.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-600.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-700.woff2") format("woff2"); }

:root {
  --cream: #f7f3eb;
  --cream-deep: #efe6d6;
  --card: #fffcf8;
  --ink: #2c261f;
  --muted: #6f655b;
  --sage: #6d8b74;
  --sage-dark: #56725c;
  --sage-soft: #e7f0e6;
  --wood: #8c6239;
  --line: #e6dccf;
  --shadow: 0 10px 28px rgba(70, 48, 24, 0.08);
  --serif: Fraunces, Georgia, "Palatino Linotype", serif;
  --sans: "Nunito Sans", "Segoe UI", sans-serif;
  --tab: calc(64px + env(safe-area-inset-bottom));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.5;
}
body.section-shop, body.section-admin { padding-bottom: 24px; }
body:has(.sticky-buy) { padding-bottom: 88px; }
img { max-width: 100%; display: block; }
p, h1, h2, h3, a, li, label { overflow-wrap: anywhere; }
.wrap, .nav-bar, .brand, .page, main { min-width: 0; max-width: 100%; }
.round-row, .chips, .day-picks, .gallery-thumbs { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; line-height: 1.15; margin: 0 0 0.4em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
p { margin: 0 0 0.8em; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.page { padding: 18px 0 28px; }
.narrow-page { width: min(520px, calc(100% - 32px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: 12px; top: -40px; background: white; padding: 8px 12px; z-index: 20; }
.skip:focus { top: 12px; }
.muted, .hint, .kicker { color: var(--muted); }
.kicker { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem; font-weight: 700; }
.lede { font-size: 1.05rem; }

.nav-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--sage); z-index: 50; }
html.is-loading .nav-progress { width: 72%; transition: width 0.45s ease; }

.default-banner { display: flex; gap: 12px; justify-content: space-between; align-items: center; background: #f3e2c4; padding: 10px 16px; }
.default-banner p { margin: 0; }
.default-banner button, .linkish, .text-link { background: none; border: 0; color: var(--wood); font-weight: 700; cursor: pointer; padding: 8px 0; text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(247, 243, 235, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.nav-bar { width: min(1120px, calc(100% - 32px)); margin: 0 auto; min-height: 72px; display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; flex: 1 1 auto; }
.brand-text { min-width: 0; }
.leaf { width: 36px; height: 36px; flex: none; }
.brand-name { font-family: var(--serif); font-size: clamp(1.05rem, 4.4vw, 1.35rem); display: block; line-height: 1.1; overflow-wrap: anywhere; }
.brand-sub { display: block; margin-top: 4px; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wood); font-weight: 700; }
.desk-nav { display: none; gap: 18px; margin-left: auto; }
.desk-nav a { text-decoration: none; font-weight: 700; color: var(--ink); }
.desk-nav a[aria-current="page"] { color: var(--sage-dark); }
.desk-tools { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.account-menu { position: relative; }
.account-menu summary { cursor: pointer; font-weight: 800; list-style: none; min-height: 44px; display: grid; place-items: center; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu-panel { position: absolute; right: 0; top: calc(100% + 6px); background: var(--card); border-radius: 16px; box-shadow: var(--shadow); min-width: 220px; padding: 10px 14px; z-index: 40; display: grid; }
.account-menu-panel a { text-decoration: none; font-weight: 800; padding: 8px 0; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; text-decoration: none; }
.icon-btn svg { width: 26px; height: 26px; }
.count, .tab-count { position: absolute; top: 2px; right: 0; background: var(--sage-dark); color: white; border-radius: 99px; min-width: 18px; height: 18px; font-size: 0.72rem; display: grid; place-items: center; padding: 0 4px; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { margin-left: auto; border: 1px solid var(--line); background: white; border-radius: 999px; padding: 8px 14px; min-height: 44px; }

.hero-banner { margin-top: 16px; border-radius: 28px; overflow: hidden; min-height: 280px; display: grid; background: #efe4d2 url("../images/honey.jpg") center/cover; position: relative; }
.hero-copy { position: relative; z-index: 1; padding: 28px 22px 24px; background: linear-gradient(180deg, rgba(247,243,235,0.2), rgba(247,243,235,0.92) 42%, rgba(247,243,235,0.96)); }
.hero-copy h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); max-width: 11ch; }
.hero-copy p { max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero-collage { display: none; }
.search-bar { display: flex; margin: 14px auto; }
.search-bar input, .stack-form input, .stack-form select, .stack-form textarea, .status-form select {
  width: 100%; border: 1px solid var(--line); background: white; border-radius: 14px; padding: 12px 14px; min-height: 48px;
}
.search-inline { margin: 0 0 12px; }
.round-row { display: flex; gap: 14px; overflow-x: auto; padding: 8px 2px 16px; scroll-snap-type: x mandatory; }
.round-cat { flex: 0 0 76px; scroll-snap-align: start; text-align: center; text-decoration: none; font-size: 0.78rem; font-weight: 700; }
.round-cat img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #e7efe4; margin: 0 auto 6px; box-shadow: var(--shadow); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; min-width: 0; }
.section-head > * { min-width: 0; }
.section-head a { color: var(--sage-dark); font-weight: 700; }
.page-intro { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 14px; min-width: 0; max-width: 100%; }
.page-intro > * { min-width: 0; max-width: 100%; }
.page-intro h1, .page-intro p { margin: 0; overflow-wrap: anywhere; }
.page-intro .btn { width: 100%; }
.account-email { overflow-wrap: anywhere; word-break: break-word; color: var(--muted); margin: 0; }
.role-badge { align-self: flex-start; margin: 0; background: var(--sage-soft); color: var(--sage-dark); border-radius: 999px; padding: 4px 10px; font-size: 0.8rem; font-weight: 800; text-transform: capitalize; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.product-grid > .card { min-width: 0; height: 100%; }
.card { position: relative; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; height: 100%; min-width: 0; }
.card-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; flex: 0 0 auto; background: #efe6d8; }
.card-media picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; display: block; }
.detail-media img, .thumb img, .thumb-img, .photo-preview { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: 8px; bottom: 8px; z-index: 1; background: var(--sage-soft); color: var(--sage-dark); border-radius: 999px; padding: 4px 8px; font-size: 0.75rem; font-weight: 800; }
.wish { position: absolute; top: 8px; right: 8px; z-index: 2; margin: 0; }
.wish-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 252, 248, 0.94); display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: var(--shadow); }
.wish-btn svg { width: 20px; height: 20px; }
.wish-btn[aria-pressed="true"] svg { fill: var(--sage-dark); stroke: var(--sage-dark); }
.badge-out { background: #f8e6df; color: #8a3d2c; }
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.card-body h3 { font-size: 1.05rem; }
.card-body h3 a { text-decoration: none; }
.card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.price { font-weight: 800; margin: 0; }
.price .unit, .unit { font-weight: 600; color: var(--muted); font-size: 0.85rem; }
.btn, .google-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 16px; border-radius: 999px; border: 1px solid transparent;
  background: var(--sage); color: white; font-weight: 800; text-decoration: none; cursor: pointer;
}
.btn:disabled { opacity: 0.55; }
.btn-outline { background: transparent; color: var(--ink); border-color: #cfc3b2; }
.btn-block { width: 100%; }
.btn-small { min-height: 40px; padding: 6px 12px; }
.google-btn { background: white; color: var(--ink); border-color: var(--line); width: 100%; margin: 8px 0; }
.google-btn svg { width: 18px; height: 18px; }
.season { background: #e7f0e6; margin-top: 28px; padding: 22px 0 28px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; }
.chip { flex: none; border: 1px solid var(--line); background: white; border-radius: 999px; padding: 8px 12px; text-decoration: none; font-weight: 700; min-height: 40px; }
.chip[aria-current="page"] { background: var(--sage-dark); color: white; border-color: var(--sage-dark); }

.detail { display: grid; gap: 16px; }
.detail-media { border-radius: 22px; overflow: hidden; background: #efe6d8; aspect-ratio: 1 / 1.05; }
.detail-top { display: flex; justify-content: space-between; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: white; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.3rem; cursor: pointer; }
.qty input { width: 48px; border: 0; text-align: center; background: transparent; }
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: var(--tab); z-index: 25;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 16px; background: rgba(255,252,248,0.96); border-top: 1px solid var(--line);
}
.sticky-buy span { display: block; color: var(--muted); font-size: 0.85rem; }
.desk-buy { display: none; }
.crumbs { color: var(--muted); font-size: 0.9rem; }
.crumbs a { color: var(--sage-dark); }

.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; color: var(--muted); font-weight: 800; font-size: 0.85rem; }
.steps li { flex: 1; text-align: center; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.steps .is-current, .steps .is-done { color: var(--sage-dark); border-color: var(--sage); }
.cart-lines { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.cart-lines li, .pickup-box, .panel, .summary, .pay-note, .stat {
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 14px;
}
.cart-lines li { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; }
.thumb, .thumb-img { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: #efe6d8; }
.qty-row { display: flex; align-items: center; gap: 8px; }
.sum-row, .plain li { display: flex; justify-content: space-between; gap: 12px; }
.plain { list-style: none; padding: 0; margin: 0; }
.sum { font-family: var(--serif); font-size: 1.6rem; margin: 10px 0 0; }
.or { text-align: center; color: var(--muted); margin: 8px 0; }
.day-picks { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; max-width: 100%; }
.cart-layout > *, .stack-form, .summary { min-width: 0; }
.day-pick { position: relative; flex: none; }
.day-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.day-pick .day-chip { display: grid; gap: 2px; place-items: center; text-align: center; border: 1px solid var(--line); background: white; border-radius: 16px; min-width: 84px; padding: 10px 14px; white-space: nowrap; line-height: 1.2; cursor: pointer; }
.day-pick .day-chip b { font-weight: 800; }
.day-pick .day-chip small { color: var(--muted); font-size: 0.9rem; }
.day-pick input:checked + .day-chip { background: var(--sage-dark); color: white; border-color: var(--sage-dark); }
.day-pick input:checked + .day-chip small { color: rgba(255, 255, 255, 0.85); }
.day-pick input:focus-visible + .day-chip { outline: 3px solid var(--wood); }
.stack-form { display: grid; gap: 8px; }
.field-error, .flash-error { color: #8a3d2c; }
.flash { margin: 12px auto; width: min(1120px, calc(100% - 32px)); padding: 10px 14px; border-radius: 12px; background: var(--sage-soft); }
.flash-error { background: #f8e6df; }
.cart-layout, .account-grid { display: grid; gap: 16px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stat p { margin: 0; color: var(--muted); }
.stat strong { font-family: var(--serif); font-size: 1.5rem; }
.chart-wrap { height: 240px; }
.chart-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.chart-table th, .chart-table td { text-align: left; padding: 4px 0; border-bottom: 1px solid var(--line); }
.desk-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.desk-list > li { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 12px; display: grid; gap: 8px; }
.row-actions, .status-form, .pills { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill { background: var(--cream-deep); border-radius: 999px; padding: 2px 8px; font-size: 0.78rem; font-weight: 800; }
.pill-out { background: #f8e6df; color: #8a3d2c; }
.status { font-weight: 800; text-transform: capitalize; }
.status-pending { color: var(--wood); }
.status-paid, .status-ready { color: var(--sage-dark); }
.status-canceled { color: #8a3d2c; }
.photo-preview { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; }
.check { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.app-bar {
  position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 48px 1fr 48px;
  align-items: center; gap: 8px; min-height: 64px; padding: 6px 10px;
  background: rgba(247, 243, 235, 0.96); border-bottom: 1px solid var(--line);
}
.app-bar .icon-btn { background: transparent; border: 0; color: inherit; padding: 0; }
.brand-center { justify-content: center; text-align: center; min-width: 0; }
.brand-center .brand-text { min-width: 0; }
.brand-line { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.admin-pill {
  display: inline-block; padding: 2px 7px; border-radius: 999px;
  background: #f3e2c4; color: #24312b; font-size: 0.62rem; letter-spacing: 0.08em;
  font-weight: 800; line-height: 1.4;
}
body.section-admin .app-bar {
  background: #24312b; color: #f7f3eb; border-bottom-color: #1a2420;
}
body.section-admin .app-bar .brand-name,
body.section-admin .app-bar .icon-btn,
body.section-admin .app-bar .brand-sub { color: #f7f3eb; }
body.section-admin .app-bar .leaf path[fill="#6b8f71"] { fill: #c5d7c8; }
body.section-shop .nav-panel-head {
  background: var(--sage-soft); border-radius: 14px; margin: 0 4px 10px; padding: 12px;
}
body.section-admin .nav-panel-head {
  background: #24312b; color: #f7f3eb; border-radius: 14px; margin: 0 4px 10px; padding: 12px;
}
body.section-admin .nav-panel-head .text-link { color: #f3e2c4; }
.you-are { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 800; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.you-are svg { width: 20px; height: 20px; flex: none; }
.mode-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 8px 14px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px; background: white;
}
.mode-toggle a, .mode-toggle span {
  display: grid; place-items: center; min-height: 40px; border-radius: 999px;
  text-decoration: none; font-weight: 800; color: var(--ink); text-align: center; padding: 6px 8px;
}
body.section-shop .mode-toggle .is-active { background: var(--sage); color: white; }
body.section-admin .mode-toggle { border-color: #24312b; }
body.section-admin .mode-toggle .is-active { background: #24312b; color: #f7f3eb; }
.nav-drawer { position: fixed; inset: 0; z-index: 80; }
.nav-drawer[hidden] { display: none; }
.nav-backdrop { position: absolute; inset: 0; border: 0; background: rgba(44, 38, 31, 0.35); }
.nav-panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(320px, 88vw);
  background: var(--cream); overflow: auto; padding: 12px 8px 28px;
  box-shadow: var(--shadow); transform: translateX(-8px);
}
.nav-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 10px 8px; }
.nav-switch {
  display: flex; align-items: center; gap: 10px; margin: 4px 8px 12px; padding: 14px;
  border-radius: 16px; background: var(--sage-dark); color: white; font-weight: 800; text-decoration: none;
}
.nav-switch svg { width: 22px; height: 22px; flex: none; }
.nav-link, .nav-nest summary {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px;
  padding: 8px 12px; border-radius: 12px; text-decoration: none; font-weight: 800; color: var(--ink);
  background: transparent; border: 0; text-align: left; cursor: pointer;
}
.nav-link[aria-current="page"] { background: var(--sage-soft); }
.nav-badge { margin-left: auto; background: var(--wood); color: white; border-radius: 99px; min-width: 22px; text-align: center; font-size: 0.75rem; padding: 2px 6px; }
.nav-nest { margin: 0; }
.nav-nest a { display: block; padding: 8px 12px 8px 28px; text-decoration: none; font-weight: 700; }
.nav-rule { height: 1px; background: var(--line); margin: 10px 12px; }
.nav-button { cursor: pointer; }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 18px; }
@media (min-width: 1100px) {
  body.nav-open { padding-left: 300px; }
  body.nav-open .app-bar { position: sticky; }
  body.nav-open .nav-backdrop { background: transparent; }
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 860px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
}
.tile { display: flex; flex-direction: column; gap: 6px; min-height: 132px; text-decoration: none; background: var(--card); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.tile svg { width: 28px; height: 28px; }
.tile strong { font-family: var(--serif); font-size: 1.7rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .btn { flex: none; }
.page-tools { position: sticky; top: 64px; z-index: 5; background: var(--cream); padding: 8px 0; }
.site-footer { margin-top: 28px; padding: 28px 16px 20px; background: #2c4034; color: #f7f3eb; }
.site-footer a { color: #f7f3eb; }
.footer-grid { width: min(1120px, 100%); margin: 0 auto; display: grid; gap: 18px; }
.fine { width: min(1120px, 100%); margin: 18px auto 0; color: #d9e2da; font-size: 0.85rem; }
.empty { background: white; border-radius: 16px; padding: 16px; }

@media (min-width: 860px) {
  body.section-shop { padding-bottom: 24px; }
  .sticky-buy, .search-bar { display: none; }
  .search-inline { display: flex; }
  .nav-burger { display: none; }
  .desk-nav, .desk-tools { display: flex; }
  .desk-tools { margin-left: 0; }
  .hero-banner { grid-template-columns: 1.05fr 0.95fr; min-height: 420px; background: var(--cream-deep); }
  .hero-copy { background: transparent; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
  .hero-collage { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 8px; padding: 16px; }
  .hero-collage img { height: 100%; object-fit: cover; border-radius: 18px; background: #e7efe4; }
  .hero-collage img:first-child { grid-row: span 2; }
  .round-row { display: grid; grid-template-columns: repeat(8, 1fr); overflow: visible; }
  .round-cat { flex: none; }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .detail { grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: start; }
  .desk-buy { display: inline-flex; }
  .cart-layout, .account-grid, .footer-grid { grid-template-columns: 1.1fr 0.9fr; }
  .day-picks { flex-wrap: wrap; overflow: visible; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .desk-list > li { grid-template-columns: auto 1fr auto; align-items: center; }
  .section-admin .desk-nav { display: none; }
}

@media (min-width: 860px) {
  .section-admin .nav-toggle:checked ~ .desk-nav,
  .section-admin .desk-nav { display: flex; flex-wrap: wrap; }
}

@media (max-width: 859px) {
  .section-admin .desk-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  .section-admin .nav-toggle:checked ~ .desk-nav { display: grid; }
  .section-admin .tabbar { display: none; }
  body.section-admin { padding-bottom: 24px; }
  .chart-table { display: none; }
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
.admin-search { display: flex; gap: 8px; align-items: center; margin: 8px 0 16px; }
.admin-search input { flex: 1; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: white; }
.search-inline { position: relative; }
.search-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: white; border-radius: 16px; box-shadow: var(--shadow); padding: 8px; }
.search-results a { display: flex; justify-content: space-between; gap: 12px; text-decoration: none; padding: 8px; font-weight: 800; }
.sort-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 16px; }
.sort-row select { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: white; padding: 0 10px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gallery-thumb { border: 2px solid transparent; border-radius: 12px; padding: 0; background: white; cursor: pointer; }
.gallery-thumb[aria-current="true"] { border-color: var(--sage-dark); }
.gallery-thumb img { width: 72px; height: 90px; object-fit: cover; border-radius: 10px; }
.toast { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 45; background: var(--ink); color: white; border-radius: 14px; padding: 12px 14px; }
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(44, 38, 31, 0.35); display: grid; justify-items: end; }
.drawer[hidden] { display: none; }
.drawer-panel { width: min(420px, 100%); height: 100%; background: var(--cream); padding: 18px 16px; overflow: auto; box-shadow: var(--shadow); }
:focus-visible { outline: 3px solid var(--wood); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
.pwd-row { display: flex; gap: 8px; align-items: center; }
.pwd-row input { flex: 1; min-width: 0; width: auto; }
dialog.new-user { border: 0; border-radius: 18px; padding: 18px; width: min(480px, calc(100% - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-x: hidden; overflow-y: auto; box-sizing: border-box; background: var(--cream); color: var(--ink); }
dialog.new-user .stack-form { grid-template-columns: minmax(0, 1fr); min-width: 0; }
dialog.new-user .stack-form > * { min-width: 0; }
.stack-form .check { display: flex; flex-direction: row; align-items: center; gap: 10px; min-height: 44px; }
.stack-form .check input[type=checkbox] { width: 22px; height: 22px; min-height: 0; flex: 0 0 22px; padding: 0; margin: 0; }
.form-error { margin: 0 0 4px; padding: 10px 14px; border-radius: 12px; background: #f8e6df; color: #8a3d2c; font-weight: 700; }
.field-error { margin: 0; font-weight: 700; }
.stack-form input.is-invalid,
.stack-form select.is-invalid,
.pwd-row input.is-invalid {
  border-color: #8a3d2c;
  box-shadow: 0 0 0 3px rgba(138, 61, 44, 0.25);
}
/* invalid fields are focused after a failed submit */
dialog.new-user::backdrop { background: rgba(44, 38, 31, 0.4); }

/* Pickup slots */
.slot-picker { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.slot-picker legend { font-family: var(--serif); font-weight: 560; line-height: 1.15; font-size: 1.5rem; padding: 0; margin-bottom: 6px; }
.slot-picker .day-picks { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.slot-picker .day-pick { scroll-snap-align: start; }
.slot-panel { margin-top: 6px; }
.slot-panel[hidden], .slot-prompt[hidden] { display: none; }
.slot-day { margin: 4px 0 6px; font-weight: 800; }
.js-slots .slot-day { display: none; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot-pick { position: relative; display: block; }
.slot-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.slot-pick span { display: grid; place-items: center; min-height: 46px; border: 1px solid var(--line); background: white; border-radius: 14px; font-weight: 800; padding: 6px 4px; cursor: pointer; }
.slot-pick input:checked + span { background: var(--sage-dark); color: white; border-color: var(--sage-dark); }
.slot-pick input:focus-visible + span { outline: 3px solid var(--wood); outline-offset: 2px; }
.pickup-note { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--sage-soft); }
.pickup-card .pickup-when { font-size: 1.15rem; font-weight: 800; margin: 0 0 6px; }
button[disabled].btn, .btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Admin pickup pages */
.hours-grid { display: grid; gap: 10px; }
.hours-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.hours-row > strong { display: block; }
.hours-row .times { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hours-row .times input { width: auto; min-width: 0; flex: 1 1 110px; }
.hours-row .times span { color: var(--muted); }
.hours-row .check { min-height: 40px; }
.hours-row.is-invalid { border-color: #8a3d2c; box-shadow: 0 0 0 3px rgba(138, 61, 44, 0.2); }
.settings-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.settings-grid > div { display: grid; gap: 4px; align-content: start; min-width: 0; }
.blackout-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.blackout-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.pickup-day-group { margin: 0 0 18px; }
.pickup-day-group > h2 { margin: 0 0 8px; }
.pickup-slot { margin: 0 0 12px; padding: 12px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.pickup-slot > header { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; margin-bottom: 6px; }
.pickup-slot .cap { color: var(--muted); font-size: 0.9rem; }
.pickup-order { padding: 10px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.pickup-order:first-of-type { border-top: 0; }
.pickup-order .row-actions { margin-top: 2px; }
.pickup-warn { background: #f8e6df; color: #8a3d2c; border-radius: 12px; padding: 8px 12px; font-weight: 700; margin: 0 0 10px; }
.status-picked-up { color: var(--sage-dark); font-weight: 800; }
