@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/vendor/fraunces/files/fraunces-latin-ext-full-normal.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/vendor/fraunces/files/fraunces-latin-full-normal.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/vendor/fraunces/files/fraunces-latin-ext-full-italic.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/vendor/fraunces/files/fraunces-latin-full-italic.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/vendor/figtree/files/figtree-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/vendor/figtree/files/figtree-latin-wght-normal.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #f7f0e1;
  --card: #fffdf7;
  --ink: #2b2a1e;
  --muted: #5e5b48;
  --line: #e3d8be;
  --sand: #efe5cc;
  --accent: #2f5d3a;
  --accent-dark: #234a2d;
  --accent-soft: #e2ecd6;
  --saffron: #e9a92b;
  --apricot: #fbe6be;
  --clay: #8a4b1f;
  --disabled: #cfc8b2;
  --disabled-ink: #4a4636;
  --focus: #1b6fd8;
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans:
    'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .38 0 0 0 0 .3 0 0 0 0 .15 0 0 0 .1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  background-color: var(--bg);
  background-image: var(--grain);
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 480px;
  margin-inline: auto;
  font-family: var(--sans);
  color: var(--ink);
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
button,
summary {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
a {
  color: inherit;
}
button:focus-visible,
input:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 14px;
}
.center {
  text-align: center;
  margin-top: 10px;
}
.btn {
  min-height: 48px;
  border-radius: 24px;
  padding: 0 22px;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition:
    transform 0.12s,
    background 0.2s;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
}
.btn-primary[disabled] {
  background: var(--disabled);
  color: var(--disabled-ink);
  cursor: not-allowed;
}
.btn-ghost {
  background: var(--sand);
  color: var(--ink);
}
.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent-dark);
  background: transparent;
}
.btn-wide {
  width: 100%;
}
.link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--saffron);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
h1.title {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-variation-settings:
    'SOFT' 100,
    'WONK' 1;
}
.hdr {
  padding: 10px 20px 6px;
}
.hdr .date {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.field {
  flex: 1;
  min-height: 48px;
  border-radius: 24px;
  border: 2px solid var(--line);
  background: var(--card);
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand svg {
  width: 52px;
  height: 52px;
}
.brand b {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 40px;
  letter-spacing: -0.02em;
  font-variation-settings:
    'SOFT' 100,
    'WONK' 1;
}
.brand b i {
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
}
.brand.sm {
  gap: 8px;
  min-height: 44px;
}
.brand.sm svg {
  width: 34px;
  height: 34px;
}
.brand.sm b {
  font-size: 26px;
}
.brand.big {
  flex-direction: column;
  gap: 14px;
}
.brand.big svg {
  width: 84px;
  height: 84px;
}
.brand.big b {
  font-size: 48px;
}
.pitch {
  font-size: 18px;
  line-height: 1.4;
  color: var(--muted);
}
.gbtn {
  width: 100%;
  min-height: 54px;
  border-radius: 27px;
  background: var(--card);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  box-shadow:
    0 8px 0 -4px var(--accent-soft),
    0 14px 20px -10px rgba(50, 60, 30, 0.5);
}
.gbtn svg {
  width: 22px;
  height: 22px;
}
.fine {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 0;
  min-height: 58px;
  gap: 12px;
}
.login {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(#f2e4bf, rgba(247, 240, 225, 0) 60%);
}
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 28px 8px;
}
.hero .pitch {
  max-width: 310px;
  margin: 14px 0 0;
}
.login-foot {
  padding: 12px 24px 26px;
}
.sticker-wrap {
  margin-bottom: 26px;
}
.sticker {
  display: inline-block;
  background: var(--saffron);
  color: var(--ink);
  font-weight: 800;
  font-size: 17px;
  border-radius: 14px;
  padding: 11px 18px;
  transform: rotate(-3deg);
  box-shadow:
    0 2px 0 rgba(40, 35, 15, 0.25),
    0 10px 16px -6px rgba(40, 35, 15, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
}
.stickersub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}
.avatar[data-letter]::before {
  content: attr(data-letter);
}
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 30px;
  background: var(--accent);
  color: var(--saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 650;
  font-size: 28px;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.empty {
  text-align: center;
  padding: 26px 30px 34px;
  color: var(--muted);
  line-height: 1.5;
}
.empty svg {
  width: 140px;
  height: 116px;
  margin-bottom: 6px;
}
.empty h2 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 6px;
  font-variation-settings:
    'SOFT' 100,
    'WONK' 1;
}
.page-body {
  padding: 10px 20px 28px;
}
.sub0 {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  margin: 8px 0 16px;
}
.hdr .sub0 {
  margin-bottom: 0;
}
.userline {
  background: var(--sand);
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.4;
  margin: 6px 0 20px;
  overflow-wrap: anywhere;
}
.userline b {
  font-weight: 800;
}
.lbl {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
  color: var(--muted);
  margin: 0 4px 8px;
}
.codefield {
  width: 100%;
  min-height: 64px;
  border-radius: 22px;
  border: 2px solid var(--line);
  background: var(--card);
  text-align: center;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
  padding: 0 12px;
}
.codefield.bad {
  border-color: var(--clay);
}
.codefield::placeholder {
  color: #b5ab8d;
  letter-spacing: 0.14em;
}
.codehint {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 4px 0;
  text-align: center;
}
.codeerr {
  margin-top: 12px;
  background: var(--apricot);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}
.codeerr .ei {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: var(--clay);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-top: 1px;
}
.codeerr b {
  display: block;
  font-size: 15px;
  color: var(--clay);
}
.page-body form > .btn {
  margin-top: 18px;
}
.gutter {
  padding: 0 20px;
}
.pcard {
  display: block;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  margin-top: 12px;
}
.pcard .ph b {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--card);
  border-radius: 20px;
  padding: 12px 14px 12px 18px;
  margin: 12px 0;
  border: 2px solid var(--line);
}
.stepper .lab b {
  display: block;
  font-size: 17px;
}
.stepper .lab span {
  font-size: 13px;
  color: var(--muted);
}
.stepper .lab {
  flex: 1 1 6em;
}
.stepper .ctl {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 6px;
}
.stepper .ctl button {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stepper .ctl button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
.stepper .ctl input {
  width: 44px;
  min-height: 44px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  font-family: var(--serif);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}
.stepper .ctl input::-webkit-inner-spin-button,
.stepper .ctl input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}
.newinv {
  margin: 14px 20px 0;
  background: var(--apricot);
  border: 2px dashed var(--saffron);
  border-radius: 22px;
  padding: 16px;
  text-align: center;
}
.newinv .nl {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
  color: var(--muted);
}
.newinv .big {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 42px;
  letter-spacing: 0.08em;
  margin: 6px 0 4px;
  font-variation-settings:
    'SOFT' 100,
    'WONK' 1;
}
.newinv .nm {
  font-size: 13.5px;
  color: var(--muted);
}
.newinv .lnk {
  width: 100%;
  min-height: 44px;
  margin: 12px 0 0;
  background: var(--card);
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.newinv .two {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.newinv .two .btn {
  flex: 1;
  padding: 0 12px;
}
.lsec {
  margin: 20px 20px 0;
}
.lsec:last-child {
  margin-bottom: 40px;
}
.lsec h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.lsec ul {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--card);
  border-radius: 20px;
  border: 2px solid var(--line);
  overflow: hidden;
}
.inv {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 8px;
}
.inv:first-child {
  border-top: 0;
}
.inv .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
}
.inv .cd {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 21px;
  letter-spacing: 0.06em;
}
.inv .stl {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 2px;
}
.inv .stl b {
  color: var(--accent-dark);
  font-weight: 800;
}
.inv .who {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.inv.off .cd {
  color: #766e5b;
}
.revoke[open] {
  grid-column: 1 / -1;
  margin-top: 8px;
}
.revoke summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 22px;
  border: 2px solid var(--line);
  font-weight: 800;
  font-size: 13.5px;
  background: var(--card);
}
.revoke summary::-webkit-details-marker {
  display: none;
}
.revoke[open] summary {
  display: none;
}
.confirm {
  background: var(--apricot);
  border-radius: 14px;
  padding: 8px 8px 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 14px;
}
.confirm .q {
  flex: 1;
  min-width: 120px;
}
.confirm form {
  display: contents;
}
.confirm .yes,
.confirm .no {
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  padding: 0 14px;
  border-radius: 22px;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.confirm .yes {
  background: var(--accent);
  color: #fff;
}
.confirm .no {
  background: var(--card);
  color: var(--ink);
}
.emptyl {
  margin: 20px 20px 40px;
  text-align: center;
  padding: 26px 24px;
  color: var(--muted);
  line-height: 1.5;
  border: 2px dashed #cdbf9c;
  border-radius: 22px;
}
.emptyl h2 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 4px;
}
.errpage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 32px 60px;
  color: var(--muted);
  line-height: 1.5;
}
.errpage svg {
  width: 140px;
  height: 116px;
  margin-bottom: 6px;
}
.errpage h1 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 30px;
  color: var(--ink);
  margin: 6px 0 8px;
  font-variation-settings:
    'SOFT' 100,
    'WONK' 1;
}
.errpage .btn {
  margin-top: 20px;
}
.errpage .link {
  margin-top: 14px;
}
.errpage .sticker {
  margin-bottom: 10px;
}
h2.sec {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 650;
}
.group {
  padding: 20px 20px 0;
}
.group > h2 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 25px;
  letter-spacing: -0.01em;
  font-variation-settings:
    'SOFT' 100,
    'WONK' 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.group > h2::after {
  content: '';
  flex: 1;
  height: 2px;
  border-radius: 1px;
  background: repeating-linear-gradient(90deg, var(--saffron) 0 6px, transparent 6px 11px);
}
.group > p {
  font-size: 14px;
  color: var(--muted);
  margin: 2px 0 4px;
}
.slot {
  margin-top: 16px;
  transition:
    opacity 0.22s,
    transform 0.22s;
}
.slot.out {
  opacity: 0;
  transform: translateX(-26px);
}
.slot.in {
  animation: slotin 0.3s ease-out;
}
@keyframes slotin {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.slot-day {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 0 4px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.slot-day b {
  color: var(--ink);
}
.today {
  background: var(--saffron);
  color: var(--ink);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 0.05em;
  transform: rotate(-3deg);
}
.card {
  background: var(--card);
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    0 1px 0 var(--line),
    0 18px 34px -18px rgba(60, 50, 20, 0.45);
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.card.picked {
  border-color: var(--accent);
}
.photo {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #f2ddb0, #d9b26a);
  display: block;
  overflow: hidden;
  margin: 8px;
  width: calc(100% - 16px);
  border-radius: 19px;
  box-shadow: 0 10px 22px -10px rgba(50, 40, 15, 0.55);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.chips {
  position: absolute;
  left: 10px;
  top: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 75%;
}
.tag {
  background: var(--card);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  border-radius: 10px;
  padding: 5px 10px;
  line-height: 1.2;
  box-shadow:
    0 2px 0 rgba(40, 35, 15, 0.25),
    0 6px 10px -4px rgba(40, 35, 15, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  transform: rotate(-3deg);
}
.badge {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  border-radius: 19px;
  background: var(--saffron);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0) rotate(-30deg);
  transition: transform 0.25s;
  box-shadow: 0 4px 10px rgba(40, 35, 15, 0.35);
}
.card.picked .badge {
  transform: scale(1) rotate(0);
}
.badge svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.credit {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: rgba(255, 253, 247, 0.92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(40, 35, 15, 0.3);
}
.credit::before {
  content: '';
  position: absolute;
  inset: -9px -4px;
}
.cbody {
  padding: 8px 16px 16px;
}
.cbody h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  font-variation-settings:
    'SOFT' 100,
    'WONK' 0;
}
.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  margin-top: 6px;
}
.meta span + span::before {
  content: '·';
  margin-right: 8px;
}
.actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}
.actions form {
  display: flex;
  margin: 0;
}
.actions form:first-child {
  flex: 1;
}
.actions .pick {
  flex: 1;
  min-height: 46px;
  border-radius: 23px;
  border: 2px solid var(--accent);
  color: var(--accent-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.card.picked .actions .pick {
  background: var(--accent);
  color: #fff;
}
.actions .pick svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.actions .swap {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 23px;
  background: var(--sand);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.actions .swap svg,
.actions .more svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.actions .more {
  min-width: 44px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  gap: 2px;
  text-decoration: none;
}
.nextcard {
  margin-top: 22px;
  border: 2px dashed var(--saffron);
  border-radius: 24px;
  padding: 18px;
  text-align: center;
  background: var(--apricot);
}
.nextcard p {
  margin: 6px 0 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}
.cta {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 30px 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 55%, rgba(247, 240, 225, 0));
  z-index: 3;
}
.cta .btn {
  box-shadow: 0 12px 24px -8px rgba(35, 74, 45, 0.65);
}
.cta .btn[disabled] {
  box-shadow: none;
}
.toast {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 40;
  max-width: 440px;
  margin-inline: auto;
  background: var(--accent-dark);
  color: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  pointer-events: none;
  border-left: 6px solid var(--saffron);
  animation: toast 5s ease-out forwards;
}
@keyframes toast {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  6%,
  88% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}
.toast.err {
  border-left-color: var(--clay);
}
body:has(#cta) .toast {
  bottom: calc(102px + env(safe-area-inset-bottom));
}
#sheet:empty {
  display: none;
}
.sheetwrap {
  position: fixed;
  inset: 0;
  z-index: 20;
}
.backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 32, 16, 0.5);
  animation: fade 0.25s;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 93%;
  max-width: 560px;
  margin-inline: auto;
  background-color: var(--bg);
  background-image: var(--grain);
  border-radius: 28px 28px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: sheetup 0.3s ease-out;
}
.sheet:focus {
  outline: none;
}
@keyframes sheetup {
  from {
    transform: translateY(100%);
  }
}
.sheet .scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 10px;
}
.sheet .photo {
  margin: 0;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}
.close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--card);
  color: var(--ink);
  font-size: 22px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.sbody {
  padding: 16px 20px;
}
.sbody h2 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 28px;
  line-height: 1.12;
  font-variation-settings:
    'SOFT' 100,
    'WONK' 1;
}
.sbody .link {
  margin-top: 6px;
}
.sectitle {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 20px 0 8px;
}
.ingredients {
  list-style: none;
  margin: 0;
  padding: 2px 14px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 20px;
}
.ingredients li {
  border-top: 1px solid var(--line);
  min-height: 52px;
  font-size: 16px;
  padding: 15px 0;
}
.ingredients li b {
  font-weight: 800;
}
.ingredients li:first-child {
  border-top: 0;
}
.sfoot {
  padding: 12px 20px calc(18px + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--line);
  flex: none;
}
.sfoot form {
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .slot.out {
    opacity: 1;
    transform: none;
  }
}

.prose {
  padding: 8px 20px 40px;
}
.prose h1 {
  margin-top: 14px;
}
.prose .lead {
  font-size: 17px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 12px;
}
.prose h2 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 22px;
  margin: 26px 0 8px;
}
.prose p,
.prose li {
  font-size: 16px;
  line-height: 1.5;
}
.prose ul {
  margin: 6px 0 0;
  padding-left: 22px;
}
.prose li + li {
  margin-top: 6px;
}
.prose code {
  display: block;
  margin-top: 8px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.prose a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration-color: var(--saffron);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.progbox {
  background: var(--card);
  border-radius: 20px;
  padding: 14px 16px;
  margin: 6px 20px 0;
  border: 2px solid var(--line);
}
.progbox b {
  font-size: 16px;
}
.bar {
  display: block;
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 5px;
  background: var(--sand);
  margin-top: 10px;
  overflow: hidden;
  appearance: none;
}
.bar::-webkit-progress-bar {
  background: var(--sand);
}
.bar::-webkit-progress-value {
  background: linear-gradient(90deg, var(--accent), #4c8a58);
  border-radius: 5px;
  transition: width 0.3s;
}
.bar::-moz-progress-bar {
  background: linear-gradient(90deg, var(--accent), #4c8a58);
  border-radius: 5px;
}
.lsec h2 .l {
  display: flex;
  align-items: center;
  gap: 8px;
}
.row {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  min-height: 58px;
}
.row:first-child {
  border-top: 0;
}
.row form {
  flex: 1;
  display: flex;
  min-width: 0;
}
.rowmain {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  min-height: 58px;
  padding: 8px 4px 8px 14px;
  min-width: 0;
}
.chk {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  border: 2.5px solid #8f8a72;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.chk svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.row.done .chk {
  background: var(--accent);
  border-color: var(--accent);
}
.row.done .chk svg {
  opacity: 1;
}
.rt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rn {
  font-size: 16px;
  font-weight: 500;
}
.rn b {
  font-weight: 800;
  margin-right: 4px;
}
.rh {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.3;
}
.row.done .rn {
  text-decoration: line-through;
  color: #766e5b;
}
.rh .q {
  color: var(--clay);
  font-weight: 700;
}
.offline {
  margin: 6px 20px 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--apricot);
  color: var(--clay);
  font-size: 14px;
  line-height: 1.4;
}
.offline b {
  color: var(--ink);
}
.row.done .rh {
  color: #766e5b;
}
.tabbar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  min-height: 68px;
  padding-bottom: calc(4px + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 1;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  position: relative;
}
.tab svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tab[aria-current='page'] {
  color: var(--accent);
}
.tab[aria-current='page']::before {
  content: '';
  position: absolute;
  top: 0;
  width: 28px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--saffron);
}
.tab .dot {
  position: absolute;
  top: 4px;
  left: calc(50% + 6px);
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--saffron);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
#list-badge-slot {
  display: contents;
}
body:has(.tabbar) {
  padding-bottom: 0;
}
body:has(.tabbar) .cta {
  bottom: calc(68px + env(safe-area-inset-bottom));
  padding-bottom: 12px;
}
body:has(.tabbar) .toast {
  bottom: calc(92px + env(safe-area-inset-bottom));
}
body:has(.tabbar):has(#cta) .toast {
  bottom: calc(170px + env(safe-area-inset-bottom));
}
.user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  overflow-wrap: anywhere;
}
.user b {
  font-size: 18px;
}
.user .muted {
  font-size: 14px;
}
.user .avatar {
  flex: none;
}
.profile {
  padding-bottom: 40px;
}
.pcard .ph {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pcard .pv {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.ownercard {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 22px;
  padding: 10px 14px;
  margin-top: 12px;
  text-decoration: none;
}
.ownercard b {
  display: block;
  font-size: 16px;
}
.ownercard small {
  font-size: 13px;
  color: var(--muted);
}
.ownercard .t {
  flex: 1;
}
.ownercard svg {
  width: 20px;
  height: 20px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.semo {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background: var(--apricot);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.profile form .btn {
  margin-top: 22px;
}
.onb {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.onb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 0;
}
.onb-top .back {
  min-width: 44px;
  min-height: 44px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.onb-top .stepno {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  padding-right: 12px;
}
.progress {
  display: flex;
  gap: 6px;
  padding: 14px 20px 0;
}
.progress i {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}
.progress i.on {
  background: var(--accent);
}
.onb-body {
  flex: 1;
  padding: 0 20px 20px;
}
.onb h1 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 30px;
  line-height: 1.1;
  margin: 14px 0 6px;
  font-variation-settings:
    'SOFT' 100,
    'WONK' 1;
}
.onb .sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 18px;
}
.onb .stepper {
  margin: 0 0 12px;
}
.sbody .stepper {
  margin: 14px 0 0;
}
.stepper .ctl .count {
  min-width: 30px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  font-family: var(--serif);
}
.portions {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}
.foot {
  position: sticky;
  bottom: 0;
  padding: 12px 20px calc(18px + env(safe-area-inset-bottom));
  background-color: var(--bg);
  background-image: var(--grain);
}
.onb fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.onb legend {
  padding: 0;
}
.onb fieldset:first-child .sectitle {
  margin-top: 0;
}
.chipwrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  position: relative;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 23px;
  background: var(--card);
  border: 2px solid var(--line);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.chip.on,
.chip:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}
.chip .e {
  font-size: 18px;
}
.chip .x {
  margin-left: 2px;
  font-size: 18px;
  color: var(--muted);
}
.chip input,
.seg input,
.switchrow input {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip:has(input:focus-visible),
.seg label:has(input:focus-visible),
.switchrow:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.fieldrow {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.default-action {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
}
.seg {
  display: flex;
  flex-wrap: wrap;
  background: var(--sand);
  border-radius: 24px;
  padding: 4px;
  gap: 4px;
}
.seg label {
  position: relative;
  flex: 1;
  min-height: 44px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seg label:has(input:checked) {
  background: var(--card);
  box-shadow: 0 2px 8px rgba(60, 50, 20, 0.18);
  color: var(--accent-dark);
}
.switchrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 14px 16px;
  margin-top: 16px;
  min-height: 56px;
  cursor: pointer;
}
.switchrow span {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}
.sw {
  flex: none;
  width: 52px;
  height: 30px;
  border-radius: 15px;
  background: #8f8a72;
  position: relative;
  transition: background 0.2s;
}
.sw::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #fff;
  transition: transform 0.2s;
}
.switchrow:has(input:checked) .sw {
  background: var(--accent);
}
.switchrow:has(input:checked) .sw::after {
  transform: translateX(22px);
}
.stores {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.stores .chip {
  justify-content: center;
  padding: 0 8px;
}
.switchrow + fieldset {
  margin-top: 22px;
}
body:has(.foot) .toast {
  bottom: calc(96px + env(safe-area-inset-bottom));
}

.storechip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  background: var(--accent-soft);
  font-weight: 700;
  font-size: 13px;
  color: var(--accent-dark);
  text-decoration: none;
}
.note {
  font-size: 12px;
  color: var(--clay);
  font-weight: 700;
  margin-top: 6px;
}
.row form.side {
  flex: none;
}
.mini {
  flex: none;
  min-height: 44px;
  padding: 0 14px 0 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--accent-dark);
}
.home-toggle {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 18px;
  padding: 0 16px;
  font-weight: 800;
  margin: 20px 0 0;
  cursor: pointer;
  list-style: none;
}
.home-toggle::-webkit-details-marker {
  display: none;
}
.home-toggle::after {
  content: '+';
}
.home[open] .home-toggle::after {
  content: '−';
}
.home ul {
  margin-top: 10px;
}
.rowmain.muted {
  color: var(--muted);
}
.ingredients li.ingrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.ingrow .it {
  flex: 1;
}
.ingrow:has(.havebtn[aria-pressed='true']) .it {
  text-decoration: line-through;
  color: #766e5b;
}
.havebtn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 22px;
  border: 2px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  background: var(--card);
  flex: none;
}
.havebtn[aria-pressed='true'] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}
.sheetnote {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.4;
}
.addrow {
  margin: 20px 20px 0;
  display: flex;
  gap: 8px;
}
