/* Fresh Start Nutrition - v3 "Fresh & bright" */
:root {
  color-scheme: light;
  --ground: #fffaef;
  --admin-ground: #faf6ec;
  --surface: #ffffff;
  --ink: #231815;
  --muted: #665a52;
  --line: #efe3cc;
  --line-strong: #d9cbb0;
  --crimson: #b3122e;
  --crimson-dark: #8e0e24;
  --sun: #ffd83a;
  --sun-soft: #fff0b3;
  --sun-ink: #6b5310;
  --leaf: #1f7a4d;
  --leaf-soft: #ddf3e4;
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --pad: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--crimson); text-decoration: none; }
a:hover { color: var(--crimson-dark); }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); letter-spacing: -0.01em; }
h1 { font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.75rem); line-height: 1; letter-spacing: -0.02em; }
h2 { font-weight: 700; font-size: 1.9rem; line-height: 1.15; }
.h-sm { font-size: 1.5rem; }
.h-xs { font-size: 1.3rem; }
ul { margin: 0; padding-left: 1.2rem; }
.icon { flex-shrink: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lede { color: var(--muted); font-size: 1.15rem; line-height: 1.55; max-width: 640px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--crimson); }
.eyebrow-leaf { color: var(--leaf); }
.empty { padding: 28px; border: 1px dashed var(--line-strong); border-radius: 18px; color: var(--muted); text-align: center; }
.error { padding: 12px 16px; border-radius: 14px; background: #fce4e8; color: #7a0d21; font-weight: 600; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--crimson); color: #fff; }
.btn-primary:hover { background: var(--crimson-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--sun-soft); color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--crimson); border-color: #e7b9c1; }
.btn-danger:hover { background: #fce4e8; }
.btn-sun { background: var(--sun); color: var(--ink); font-weight: 800; }
.btn-outline-light { background: transparent; color: #fff; border-color: #6b5f58; }
.btn-outline-light:hover { color: #fff; border-color: #fff; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 1.1rem; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--crimson); }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; flex-shrink: 0;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 0.95rem; font-weight: 600; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-count { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.chip.is-active .chip-count { color: #e9dfd0; }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip-group { display: flex; flex-direction: column; gap: 8px; }
.chip-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.chip-tag { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: #eee6d8; color: #574c43; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.chip-tag-sun { background: var(--sun-soft); color: #5a4508; }
.chip-tag.flavor-sweet, .flavor-tile.flavor-sweet { background: #fde1ea; color: #8e1d45; }
.chip-tag.flavor-sour, .flavor-tile.flavor-sour { background: #e4f4c4; color: #3a5a0f; }
.chip-tag.flavor-tart, .flavor-tile.flavor-tart { background: #fcd9d2; color: #94281a; }
.chip-tag.flavor-neutral, .flavor-tile.flavor-neutral { background: #eee6d8; color: #574c43; }
.pill-label { display: inline-flex; align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--sun); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.field .hint { font-weight: 500; }
input, select, textarea {
  width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 0.95rem; font-weight: 400;
}
textarea { padding: 10px 12px; line-height: 1.5; resize: vertical; min-height: 0; }
input[type="file"] { min-height: 0; padding: 8px; border: 0; background: transparent; font-size: 0.85rem; }
input[type="checkbox"] { width: auto; min-height: 0; }
.field-grow { flex: 1 1 260px; }
.field-select { flex: 0 1 280px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.search-box { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--muted); }
.search-box input { border: 0; outline: 0; min-height: 44px; padding: 0; background: transparent; }
.search-box:focus-within { border-color: var(--ink); }
.search-box-pill { flex: 1 1 auto; border-radius: 999px; min-height: 48px; padding: 0 16px; }

/* ---------- public chrome ---------- */
.site-header { display: grid; grid-template-columns: 160px 1fr 160px; align-items: center; padding: 18px var(--pad); }
.brand { display: flex; }
.brand img { height: 76px; width: auto; }
.site-nav { justify-self: center; display: flex; gap: 4px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.site-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 26px; border-radius: 999px; color: var(--ink); font-weight: 700; }
.site-nav a:hover { background: var(--sun-soft); }
.site-nav a.is-active { background: var(--crimson); color: #fff; }
.admin-link { justify-self: end; display: flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 0.875rem; font-weight: 600; }
.site-main { flex: 1 0 auto; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--pad) 72px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 28px var(--pad); background: var(--ink); color: #f4ebdd; font-size: 0.875rem; }
.site-footer strong { font-family: var(--display); font-size: 1.1rem; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { display: flex; align-items: center; min-height: 44px; color: #f4ebdd; }
.site-footer a:hover { color: var(--sun); }

.section { margin-top: 56px; display: flex; flex-direction: column; gap: 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-head { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; }
.page-head + .section { margin-top: 32px; }

/* ---------- landing ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 28px 0 8px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-copy h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); line-height: 0.98; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; height: 500px; max-width: 580px; width: 100%; justify-self: center; }
.sun { position: absolute; border-radius: 50%; background: var(--sun); }
.sun-soft { background: #ffe77a; }
.hero-art .sun { left: 50%; top: 30px; width: 440px; height: 440px; transform: translateX(-50%); }
.hero-photo { position: absolute; object-fit: cover; border: 6px solid #fff; border-radius: 28px; box-shadow: 0 18px 40px rgba(35, 24, 21, 0.14); }
.hero-photo-left { left: 0; top: 150px; width: 40%; height: 290px; transform: rotate(-6deg); }
.hero-photo-right { right: 0; top: 130px; width: 40%; height: 290px; transform: rotate(6deg); }
.hero-photo-main { left: 50%; top: 40px; width: 47%; height: 360px; transform: translateX(-50%); border-radius: 32px; }
.hero-logo { position: absolute; left: 50%; top: 90px; width: 320px; transform: translateX(-50%); }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.choice-card { display: flex; align-items: stretch; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; color: var(--ink); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.choice-card:hover, .photo-card:hover, .flavor-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(35, 24, 21, 0.1); color: var(--ink); }
.choice-copy { display: flex; flex-direction: column; gap: 10px; padding: 30px; flex: 1 1 auto; }
.choice-title { font-family: var(--display); font-weight: 800; font-size: 2.5rem; line-height: 1.05; }
.choice-text { color: var(--muted); }
.choice-copy .text-link { margin-top: auto; }
.choice-photo { width: 220px; flex-shrink: 0; object-fit: cover; }

.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.photo-stack { display: flex; flex-direction: column; gap: 16px; }
.photo-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; color: var(--ink); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.photo-wrap { position: relative; display: flex; }
.photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--sun-soft); color: #8a6a0f; font-size: 0.82rem; font-weight: 600; }
.placeholder span { color: var(--sun-ink); }
.tag { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.tag-light { background: var(--surface); }
.photo-card-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; color: var(--muted); font-size: 0.875rem; }
.photo-card-body strong { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; color: var(--ink); }

.flavor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.flavor-tile { display: flex; flex-direction: column; gap: 6px; min-height: 140px; padding: 22px; border-radius: 22px; background: #eee6d8; color: #574c43; font-size: 0.875rem; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.flavor-tile strong { font-family: var(--display); font-weight: 800; font-size: 1.75rem; line-height: 1.1; }
.flavor-count { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.flavor-tile.flavor-sweet:hover { color: #8e1d45; }
.flavor-tile.flavor-sour:hover { color: #3a5a0f; }
.flavor-tile.flavor-tart:hover { color: #94281a; }

.visit-band { display: flex; align-items: center; flex-wrap: wrap; gap: 24px 40px; padding: 36px 40px; border-radius: 28px; background: var(--sun); }
.visit-copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.visit-copy h2 { font-weight: 800; font-size: 2.1rem; }
.visit-item { display: flex; align-items: center; gap: 12px; font-weight: 600; white-space: pre-line; }

/* ---------- menus ---------- */
.filter-panel { display: flex; flex-direction: column; gap: 20px; padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.filter-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.row-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.row-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row-card { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); transition: border-color 0.12s ease, transform 0.12s ease; }
.row-card:hover { border-color: var(--crimson); color: var(--ink); transform: translateY(-1px); }
.row-card .icon { color: var(--crimson); }
.row-card-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.row-card-text strong { color: var(--ink); font-size: 1rem; line-height: 1.25; }
.row-card.is-out { background: #f6f1e6; }
.row-card.is-out strong { color: var(--muted); }
.stock-badge { align-self: flex-start; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: #fce4e8; color: #7a0d21; font-size: 0.72rem; font-weight: 800; font-style: normal; letter-spacing: 0.04em; text-transform: uppercase; }
.stock-note { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px; background: #fce4e8; color: #7a0d21; }

.shake-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 32px; }
.shake-layout > .shake-main:only-child { grid-column: 1 / -1; }
.shake-featured, .shake-main { display: flex; flex-direction: column; gap: 16px; }
.shake-main .filter-panel { margin-bottom: 8px; }

/* ---------- detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 8px; }
.detail-art { position: relative; aspect-ratio: 52 / 56; }
.detail-art .sun { left: 0; right: 0; bottom: 0; aspect-ratio: 1; }
.detail-photo { position: absolute; left: 10%; top: 0; width: 80%; height: 96%; object-fit: cover; border: 8px solid #fff; border-radius: 36px; box-shadow: 0 18px 40px rgba(35, 24, 21, 0.14); }
.detail-copy { display: flex; flex-direction: column; gap: 20px; padding-top: 12px; }
.detail-copy h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); }
.detail-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 14px; }
.stat-tile { flex: 1 1 180px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.stat-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; }
.stat-icon-sun { background: var(--sun-soft); color: var(--sun-ink); }
.stat-icon-leaf { background: var(--leaf-soft); color: var(--leaf); }
.stat-text { display: flex; flex-direction: column; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stat-text strong { font-family: var(--display); font-size: 1.4rem; line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--ink); }
.spec-card { display: flex; flex-direction: column; padding: 6px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.spec-card-pad { gap: 14px; padding: 22px 24px; }
.spec-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.spec-row:last-child { border-bottom: 0; }
.spec-row strong { color: var(--ink); text-align: right; }
.included-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.included { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: var(--ground); border: 1px solid var(--line); border-radius: 14px; }
.included span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.callout { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: #fce4e8; color: #7a0d21; font-weight: 700; }
.callout em { font-style: normal; }
.note-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.note-card-sun { background: var(--sun-soft); border-color: transparent; color: #5a4508; }

/* ---------- login ---------- */
.login-body { background: var(--surface); }
.login { flex: 1 0 auto; display: grid; grid-template-columns: minmax(320px, 520px) 1fr; min-height: 100vh; }
.login-panel { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 56px var(--pad); }
.login-panel h1 { font-size: 2.5rem; }
.login-logo { height: 120px; width: auto; align-self: flex-start; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-art { position: relative; overflow: hidden; background: var(--sun); display: flex; align-items: center; justify-content: center; }
.login-art .sun { width: min(520px, 70%); aspect-ratio: 1; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.login-art img { position: relative; width: min(360px, 50%); }

/* ---------- admin ---------- */
.admin-body { background: var(--admin-ground); }
.admin-shell { flex: 1 0 auto; display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.admin-side { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 20px 16px; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
.admin-brand img { height: 84px; width: auto; margin-left: 8px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav-label { padding: 14px 14px 4px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.admin-nav a, .admin-side-foot a, .admin-side-foot button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 14px; border: 0; border-radius: 12px;
  background: transparent; color: var(--ink); font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; text-align: left; white-space: nowrap;
}
.admin-nav a:hover, .admin-side-foot a:hover, .admin-side-foot button:hover { background: var(--sun-soft); color: var(--ink); }
.admin-nav a.is-active { background: var(--sun); }
.admin-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-side-foot form { margin: 0; }
.admin-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; padding: 32px 40px 120px; max-width: 1240px; width: 100%; }
.admin-main h1 { font-size: 2.5rem; line-height: 1.05; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-head-end { align-items: flex-end; }
.head-blurb { max-width: 560px; margin-top: 4px; }
.admin-search { display: flex; gap: 12px; align-items: center; margin: 0; }
.segmented { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.segmented a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; color: var(--ink); font-weight: 700; white-space: nowrap; }
.segmented a.is-active { background: var(--ink); color: #fff; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.table { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.table .empty { margin: 18px; }
.table-head, .table-row { display: grid; gap: 14px; align-items: center; padding: 8px 18px; }
.tea-cols { grid-template-columns: 44px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr) 90px 92px; }
.shake-cols { grid-template-columns: 44px minmax(0, 1.5fr) 100px minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 92px; }
.table-head { padding: 12px 18px; background: #fbf4e4; border-bottom: 1px solid var(--line); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.table-row { border-bottom: 1px solid var(--line); }
.table-row:last-child { border-bottom: 0; }
.table-row:hover { background: #fffdf7; }
.table-row.is-out { background: #f9f3ea; }
.cell { color: var(--muted); font-size: 0.875rem; min-width: 0; }
.cell-name { display: flex; flex-direction: column; min-width: 0; }
.cell-meta { display: none; color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.star-form { margin: 0; display: flex; }
.star { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #8a7a5e; cursor: pointer; }
.star:hover { background: var(--sun-soft); color: var(--ink); }
.star.is-on { background: var(--sun); color: var(--ink); }
.star.is-on .icon { fill: currentColor; }

.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; margin: 0; }
.editor-main, .editor-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.form-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.card-head { display: flex; flex-direction: column; gap: 2px; }
.card-head h2, .side-card h2, .ingredient-group h2 { font-size: 1.3rem; }
.card-head p { color: var(--muted); font-size: 0.875rem; }
.side-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.admin-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.upload { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px; border: 2px dashed var(--line-strong); border-radius: 16px; color: var(--muted); font-size: 0.875rem; text-align: center; cursor: pointer; }
.upload .icon { color: var(--crimson); }
.upload strong { color: var(--ink); }
.upload:hover { border-color: var(--crimson); }
.switch-card { flex-direction: row; align-items: center; cursor: pointer; }
.switch-copy { display: flex; flex-direction: column; flex: 1 1 auto; color: var(--muted); font-size: 0.875rem; }
.switch-copy strong { color: var(--ink); font-size: 1rem; }
.danger-card { gap: 8px; border-color: #e7b9c1; }

.switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { position: relative; flex-shrink: 0; width: 46px; height: 26px; border-radius: 999px; background: #cdbfa6; transition: background 0.15s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.15s ease; }
.switch-lg { width: 52px; height: 30px; }
.switch-lg::after { width: 24px; height: 24px; }
.switch-input:checked + .switch { background: var(--leaf); }
.switch-input:checked + .switch::after { transform: translateX(20px); }
.switch-input:checked + .switch-lg::after { transform: translateX(22px); }
.switch-input:focus-visible + .switch { outline: 3px solid var(--ink); outline-offset: 2px; }

.ingredient-form { display: flex; flex-direction: column; gap: 22px; margin: 0; }
.add-ingredient { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; padding: 20px 22px; }
.ingredient-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 18px; align-items: start; }
.ingredient-layout-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ingredient-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ingredient-group { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 12px; }
.ingredient-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ingredient-group-head h2 { white-space: nowrap; }
.ingredient-group-head h2 span { font-family: var(--body); font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.ingredient-group-head em { font-size: 0.72rem; font-weight: 800; font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.stock-list-2 { column-count: 2; column-gap: 28px; }
.stock-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 2px 0; border-bottom: 1px solid var(--line); break-inside: avoid; cursor: pointer; }
.stock-name { flex: 1 1 auto; font-size: 0.95rem; font-weight: 600; line-height: 1.3; }
.stock-row.is-out .stock-name { color: var(--muted); text-decoration: line-through; }

.save-bar { display: none; }
.is-dirty .save-bar {
  position: fixed; left: 50%; bottom: 20px; z-index: 20; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; box-shadow: 0 16px 36px rgba(35, 24, 21, 0.3); white-space: nowrap;
}
.save-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  :root { --pad: 32px; }
  .row-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ingredient-layout, .ingredient-layout-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ingredient-col-wide { grid-column: 1 / -1; }
  .tea-cols { grid-template-columns: 44px minmax(0, 1fr) 90px 92px; }
  .shake-cols { grid-template-columns: 44px minmax(0, 1fr) 100px 92px; }
  .tea-cols > .cell:nth-child(3), .tea-cols > .cell:nth-child(4), .tea-cols > .cell:nth-child(5),
  .shake-cols > .cell:nth-child(4), .shake-cols > .cell:nth-child(5), .shake-cols > .cell:nth-child(6),
  .table-head.tea-cols > div:nth-child(3), .table-head.tea-cols > div:nth-child(4), .table-head.tea-cols > div:nth-child(5),
  .table-head.shake-cols > div:nth-child(4), .table-head.shake-cols > div:nth-child(5), .table-head.shake-cols > div:nth-child(6) { display: none; }
  .cell-meta { display: block; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 8px; }
  .hero-art { order: -1; height: 300px; max-width: 420px; }
  .hero-art .sun { top: 10px; width: 270px; height: 270px; }
  .hero-photo { border-width: 4px; border-radius: 18px; }
  .hero-photo-left, .hero-photo-right { top: 80px; width: 34%; height: 170px; }
  .hero-photo-main { top: 20px; width: 40%; height: 220px; border-radius: 20px; }
  .hero-logo { top: 40px; width: 220px; }
  .choice-grid { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .detail-art { max-width: 420px; width: 100%; margin: 0 auto; }
  .shake-layout { grid-template-columns: 1fr; }
  .row-grid, .row-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }

  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-brand img { height: 52px; margin-left: 0; }
  .admin-side-foot { margin: 0 0 0 auto; padding: 0; border: 0; flex-direction: row; }
  .admin-side-foot a, .admin-side-foot button { width: auto; padding: 0 10px; font-size: 0.82rem; }
  .admin-nav { order: 3; flex: 1 0 100%; flex-direction: row; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .admin-nav-label { display: none; }
  .admin-nav a { width: auto; flex-shrink: 0; border: 1px solid var(--line); border-radius: 999px; }
  .admin-main { padding: 20px 16px 120px; }
  .admin-main h1 { font-size: 2rem; }
}

@media (max-width: 640px) {
  :root { --pad: 16px; }
  .site-header { grid-template-columns: 1fr auto; row-gap: 12px; padding: 14px var(--pad) 12px; }
  .brand img { height: 56px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .site-nav a { flex: 1 1 0; padding: 0 12px; }
  .section { margin-top: 36px; gap: 14px; }
  h2 { font-size: 1.5rem; }
  .lede { font-size: 1rem; }
  .btn-lg { flex: 1 1 auto; min-height: 54px; padding: 0 18px; font-size: 1rem; }
  .choice-photo { width: 120px; }
  .choice-copy { padding: 20px; }
  .choice-title { font-size: 2rem; }
  .photo-grid { display: flex; overflow-x: auto; gap: 12px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 8px; scroll-snap-type: x mandatory; }
  .photo-grid .photo-card { flex: 0 0 250px; scroll-snap-align: start; }
  .flavor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .flavor-tile { min-height: 110px; padding: 16px; }
  .flavor-tile strong { font-size: 1.4rem; }
  .visit-band { padding: 22px; border-radius: 24px; }
  .filter-panel { padding: 18px 16px; }
  .filter-form .field-select, .filter-form .btn { flex: 1 1 100%; }
  .chip-scroll { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding: 0 16px 4px 0; scrollbar-width: none; }
  .chip-scroll::-webkit-scrollbar { display: none; }
  .row-grid, .row-grid-2 { grid-template-columns: 1fr; gap: 10px; }
  .included-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-photo { border-width: 6px; border-radius: 28px; }
  .site-footer { flex-direction: column; align-items: flex-start; }

  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .ingredient-layout, .ingredient-layout-4 { grid-template-columns: 1fr; }
  .stock-list-2 { column-count: 1; }
  .admin-head-end { align-items: flex-start; }
  .segmented { width: 100%; }
  .segmented a { flex: 1 1 0; padding: 0 10px; font-size: 0.875rem; }
  .table-head { display: none; }
  .tea-cols, .shake-cols { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; padding: 8px 8px 8px 6px; }
  .tea-cols > .cell, .shake-cols > .cell { display: none; }
  .table-row .btn-sm { width: 44px; min-height: 44px; padding: 0; }
  .table-row .btn-sm span { display: none; }
  .admin-search .btn { display: none; }
  .form-card { padding: 18px; }
  .admin-photo { max-width: 220px; align-self: center; }
  .is-dirty .save-bar { left: 12px; right: 12px; transform: none; justify-content: space-between; }
  .save-text { display: none; }
  .admin-main .stat-row { flex-wrap: nowrap; gap: 8px; }
  .admin-main .stat-tile { flex: 1 1 0; min-width: 0; padding: 10px 12px; }
  .admin-main .stat-icon { display: none; }
  .admin-main .stat-text { font-size: 0.62rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
