/* FARM PICKUP: bright and friendly. Sunshine, red barn, green fields. */
:root {
  --cream: #fff6dc; --paper: #fffdf6; --sun: #ffd45c; --orange: #ff9f1c; --barn: #e8483b; --barn-dark: #c43529;
  --leaf: #3fa34d; --leaf-dark: #2c7d39; --sky: #cdeeff; --ink: #24301f; --muted: #5d6656; --line: #eadfbf;
  --radius: 18px; --shadow: 0 10px 30px rgba(80, 60, 0, .12);
  --head: 'Fraunces', Georgia, serif; --body: 'Nunito', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.5 var(--body); }
a { color: var(--leaf-dark); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .4em; }
.loading { padding: 40vh 16px; text-align: center; color: var(--muted); }

/* buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink);
  font: 800 17px var(--body); text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 var(--ink); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn.primary { background: var(--barn); color: #fff; }
.btn.green { background: var(--leaf); color: #fff; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--leaf-dark); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.field { display: block; margin: 0 0 16px; }
.field span { display: block; font-weight: 800; margin-bottom: 6px; }
.field small { display: block; color: var(--muted); margin-top: 4px; }
.field input { width: 100%; min-height: 52px; padding: 0 16px; border: 2px solid var(--line); border-radius: 14px;
  background: #fff; color: var(--ink); font: 17px var(--body); }
.field input:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(63, 163, 77, .18); }
.err { color: var(--barn-dark); font-weight: 700; min-height: 1.5em; margin: 0 0 8px; }

/* top bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1040px; margin: 0 auto; padding: 14px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 21px var(--head); color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.bar .signin { font-weight: 800; color: var(--ink); text-decoration: none; padding: 8px 4px; }

/* the homepage */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky) 0%, #e9f8ff 40%, var(--cream) 100%); }
.hero-in { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 24px 16px 0; text-align: center; }
.hero h1 { font-size: clamp(44px, 12vw, 84px); letter-spacing: -.02em; margin: 8px 0 6px; }
.hero h1 em { font-style: normal; color: var(--barn); }
.hero .tag { font-size: clamp(19px, 4.6vw, 24px); font-weight: 700; color: var(--leaf-dark); margin: 0 auto 22px; max-width: 30ch; text-wrap: balance; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta .btn { min-width: 150px; }
.scene { display: block; width: 100%; height: auto; margin-top: -10px; }
.scene-wrap { max-width: 1040px; margin: 0 auto; }

.what { max-width: 1040px; margin: 0 auto; padding: 8px 16px 40px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tile { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.tile .ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; }
.tile .ic svg { width: 30px; height: 30px; }
.tile h3 { font-size: 20px; margin-bottom: 4px; }
.tile p { margin: 0; color: var(--muted); }
.ic.sun { background: #fff0bf; color: #b86e00; } .ic.red { background: #ffe0dc; color: var(--barn-dark); } .ic.green { background: #dff3d9; color: var(--leaf-dark); }

.band { background: var(--leaf); color: #fff; text-align: center; padding: 32px 16px; }
.band h2 { font-size: clamp(26px, 6vw, 36px); }
.band p { margin: 0 auto 18px; max-width: 34ch; opacity: .95; }
.band .btn { background: var(--sun); color: var(--ink); }
.foot { text-align: center; color: var(--muted); padding: 22px 16px 36px; font-size: 15px; }

/* sign up and sign in */
.authpage { min-height: 100vh; background: radial-gradient(circle at 85% 0%, #ffe9a6 0, transparent 40%), var(--cream); }
.card { max-width: 440px; margin: 8px auto 40px; padding: 26px 20px; background: var(--paper); border: 2px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.card h1 { font-size: 32px; }
.card .sub { color: var(--muted); margin: 0 0 20px; }
.card .alt { text-align: center; margin: 18px 0 0; }
@media (max-width: 480px) { .card { margin: 4px 16px 32px; } }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; border: 0; padding: 0; }
.roles legend { font-weight: 800; margin-bottom: 8px; }
.role { position: relative; display: block; cursor: pointer; }
.role input { position: absolute; opacity: 0; }
.role div { height: 100%; border: 2px solid var(--line); border-radius: 16px; padding: 14px 10px; text-align: center; background: #fff; transition: border-color .1s, background .1s; }
.role svg { width: 34px; height: 34px; display: block; margin: 0 auto 6px; color: var(--muted); }
.role b { display: block; font-size: 16px; }
.role small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; margin-top: 2px; }
.role input:checked + div { border-color: var(--leaf); background: #effaec; box-shadow: 0 0 0 3px rgba(63, 163, 77, .2); }
.role input:checked + div svg { color: var(--leaf-dark); }
.role input:focus-visible + div { outline: 3px solid var(--orange); outline-offset: 2px; }

/* signed in */
.home { max-width: 640px; margin: 0 auto; padding: 8px 16px 40px; }
.hello { background: var(--paper); border: 2px solid var(--line); border-radius: 24px; padding: 24px 20px; box-shadow: var(--shadow); }
.hello h1 { font-size: 34px; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; background: #dff3d9; color: var(--leaf-dark); }
.pill.seller { background: #ffe0dc; color: var(--barn-dark); }
.next { margin: 18px 0 0; padding: 16px; border-radius: 16px; background: #fff3c9; }
.next b { display: block; margin-bottom: 4px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; transition: transform .25s, opacity .25s; opacity: 0; pointer-events: none; z-index: 9; max-width: calc(100% - 32px); }
#toast.show { transform: translate(-50%, 0); opacity: 1; }

/* --- sellers --- */
.btn.big { min-height: 58px; font-size: 18px; }
.btn svg { width: 22px; height: 22px; }
.link svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
.link.danger { color: var(--barn-dark); }
.field textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: 17px/1.4 var(--body); resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(63, 163, 77, .18); }
.field span i { font-style: normal; font-weight: 600; color: var(--muted); }
.field small.private { display: flex; gap: 6px; align-items: flex-start; color: var(--leaf-dark); font-weight: 600; }
.field small.private svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.steps { padding-left: 22px; margin: 0 0 20px; font-weight: 700; } .steps li { margin: 4px 0; }

.shop { max-width: 640px; margin: 0 auto; padding: 4px 16px 48px; }
.farmhead { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 14px; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.farmhead .fphoto { flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: #ffe0dc; color: var(--barn-dark); display: grid; place-items: center; }
.farmhead .fphoto img { width: 100%; height: 100%; object-fit: cover; }
.farmhead .fphoto svg { width: 30px; height: 30px; }
.farmhead > span:nth-child(2) { flex: 1; min-width: 0; }
.farmhead b { display: block; font: 800 20px/1.2 var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.farmhead small { display: flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; }
.farmhead small svg { width: 16px; height: 16px; }
.farmhead .edit { font-weight: 800; color: var(--leaf-dark); font-size: 15px; }
.sect { display: flex; align-items: center; gap: 8px; font-size: 24px; margin: 26px 0 12px; }
.sect span { font: 800 14px var(--body); background: var(--sun); border-radius: 999px; padding: 2px 10px; }
.empty { background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px 18px; color: var(--muted); text-align: center; }
.away summary { list-style: none; cursor: pointer; } .away summary::-webkit-details-marker { display: none; }
.away summary .sect::after { content: '▾'; font-size: 18px; color: var(--muted); }
.away[open] summary .sect::after { content: '▴'; }

.lcard { background: var(--paper); border: 2px solid var(--line); border-radius: 20px; padding: 14px; margin-bottom: 14px; box-shadow: 0 4px 0 var(--line); }
.ltop { display: flex; gap: 12px; align-items: center; }
.lphoto { flex: none; width: 68px; height: 68px; border-radius: 14px; overflow: hidden; background: #fff0bf; display: grid; place-items: center; }
.lphoto img { width: 100%; height: 100%; object-fit: cover; }
.ph svg { width: 32px; height: 32px; color: #b86e00; }
.lname { flex: 1; min-width: 0; }
.lname b { display: block; font-size: 19px; line-height: 1.25; }
.lname span { color: var(--muted); font-weight: 700; }
.soldtag { display: inline-block; margin-left: 8px; font-style: normal; font: 800 12px var(--body); text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--barn); border-radius: 6px; padding: 2px 7px; vertical-align: 2px; }
.iconbtn { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--cream); border: 2px solid var(--line); }
.iconbtn svg { width: 22px; height: 22px; }
.stock { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; }
.step { flex: none; width: 72px; height: 60px; border-radius: 18px; border: 2px solid var(--ink); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 0 var(--ink); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.step:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.step svg { width: 30px; height: 30px; stroke-width: 2.6; }
.step.plus { background: var(--leaf); color: #fff; }
.count { flex: 1; text-align: center; line-height: 1; }
.count b { display: block; font: 800 38px var(--head); }
.count small { color: var(--muted); font-weight: 700; }
.stock.form .count { min-width: 0; height: 64px; border: 2px solid var(--line); border-radius: 18px; font: 800 30px var(--head); text-align: center; background: #fff; color: var(--ink); }
.lfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 2px dashed var(--line); }
.lfoot .link { font-size: 14px; color: var(--muted); white-space: nowrap; min-height: 44px; }
.lcard.out { background: #fbf7ee; }
.lcard.out .lphoto img { filter: grayscale(.8); opacity: .7; }
.lcard.out .count b { color: var(--barn-dark); }
.lcard.hid { opacity: .85; }
.lcard.hid .lfoot { border-top: 0; padding-top: 0; margin-top: 12px; }

.switch { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 800; cursor: pointer; min-height: 44px; }
.switch input { position: absolute; opacity: 0; }
.switch i { position: relative; flex: none; width: 50px; height: 30px; border-radius: 999px; background: #d9d2bd; transition: background .15s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + i { background: var(--barn); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid var(--orange); outline-offset: 2px; }

.formpage { max-width: 560px; margin: 0 auto; padding: 0 16px 48px; }
.formpage h1 { font-size: 32px; margin: 6px 0 18px; }
.backlink { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; text-decoration: none; color: var(--muted); padding: 4px 0; }
.backlink svg { width: 20px; height: 20px; }
.photopick { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; aspect-ratio: 16 / 9; max-height: 260px; margin: 0 0 18px; border: 3px dashed #e6c76a; border-radius: 20px; background: #fff7d6; color: #8a5a00; font: inherit; cursor: pointer; overflow: hidden; padding: 0; }
.photopick:has(img) { border: 0; position: relative; }
.photopick .chg { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(36, 48, 31, .8); color: #fff; font-weight: 800; font-size: 14px; }
.photopick .chg svg { width: 18px; height: 18px; }
.photopick svg { width: 44px; height: 44px; }
.photopick b { font-size: 18px; } .photopick small { color: var(--muted); }
.photopick img { width: 100%; height: 100%; object-fit: cover; }
.photopick.busy { opacity: .5; pointer-events: none; }
.quick { display: flex; gap: 8px; overflow-x: auto; margin: -6px -16px 18px; padding: 2px 16px 6px; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { flex: none; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: 700 16px var(--body); cursor: pointer; white-space: nowrap; }
.chip[aria-pressed=true] { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.quick .chip { background: #fff3c9; border-color: #f0d98a; }
.price { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.price > b { font: 800 28px var(--head); }
.price input { width: 130px; min-height: 58px; padding: 0 14px; border: 2px solid var(--line); border-radius: 14px; font: 800 26px var(--head); color: var(--ink); background: #fff; }
.price input:focus, .stock.form .count:focus, .unitother:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(63, 163, 77, .18); }
.price .per { color: var(--muted); font-weight: 700; font-size: 18px; } .price .per b { color: var(--ink); }
.unitother { width: 100%; min-height: 46px; margin-top: 10px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; font: 16px var(--body); background: #fff; color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin: 0 0 16px; background: #fff3c9; border-radius: 14px; font-weight: 700; cursor: pointer; }
.check input { width: 24px; height: 24px; flex: none; accent-color: var(--leaf); margin: 0; }
.check[hidden] { display: none; }
.formpage .alt { text-align: center; margin-top: 18px; }

/* --- buyers: farms, a farm, an item --- */
.btn.small { min-height: 46px; padding: 0 14px; font-size: 15px; box-shadow: 0 2px 0 var(--ink); }
.btn.small svg { width: 18px; height: 18px; }
.browse, .farmview, .itemview { max-width: 720px; margin: 0 auto; padding: 0 16px 48px; }
.bhead h1 { font-size: 32px; margin: 4px 0 2px; }
.bhead .sub { color: var(--muted); margin: 0 0 14px; }
.search { display: flex; gap: 8px; margin-bottom: 12px; }
.search input { flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 17px var(--body); }
.search input:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(63, 163, 77, .18); }
.quick.kinds { margin: 0 -16px 12px; }
.quick.kinds .chip { background: #fff; border-color: var(--line); }
.quick.kinds .chip[aria-pressed=true] { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.mapcard { background: var(--paper); border: 2px solid var(--line); border-radius: 20px; overflow: hidden; }
.map { height: 290px; background: #dff0e2; z-index: 0; }
.mapcard.small { margin-top: 24px; } .mapcard.small .map { height: 200px; }
.mapnote { display: flex; gap: 6px; align-items: flex-start; margin: 0; padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--leaf-dark); }
.mapnote svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.maperr { padding: 110px 16px; text-align: center; color: var(--muted); margin: 0; }
.mpop { display: block; color: var(--ink); text-decoration: none; font: 600 14px var(--body); }
.mpop b { display: block; font: 800 16px var(--head); } .mpop span { display: block; color: var(--muted); margin-bottom: 4px; }
.leaflet-container a.mpop { color: var(--ink); }
.leaflet-container { font-family: var(--body); }

.flist { display: grid; gap: 12px; }
.fcard { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--paper); border: 2px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; box-shadow: 0 4px 0 var(--line); }
.fcard:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--line); }
.fimg { flex: none; width: 72px; height: 72px; border-radius: 16px; overflow: hidden; background: #ffe0dc; color: var(--barn-dark); display: grid; place-items: center; }
.fimg img { width: 100%; height: 100%; object-fit: cover; } .fimg svg { width: 34px; height: 34px; }
.ftext { flex: 1; min-width: 0; }
.ftext b { display: block; font: 800 19px/1.2 var(--head); }
.ftext small { display: flex; align-items: center; gap: 3px; color: var(--muted); font-weight: 700; font-size: 14px; }
.ftext small svg { width: 15px; height: 15px; }
.ftext em { display: block; font-style: normal; font-weight: 800; color: var(--leaf-dark); font-size: 15px; margin-top: 2px; }
.fcard.quiet em { color: var(--muted); font-weight: 600; }
.kindlist { display: block; font-size: 14px; color: var(--muted); font-weight: 600; margin-top: 2px; }

.fhero { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #ffe0dc; color: var(--barn-dark); display: grid; place-items: center; margin: 4px 0 14px; }
.fhero img { width: 100%; height: 100%; object-fit: cover; } .fhero svg { width: 64px; height: 64px; }
.farmview h1, .itemview h1 { font-size: 34px; margin: 0 0 4px; }
.town { display: flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; margin: 0 0 10px; }
.town svg { width: 18px; height: 18px; }
.about { font-size: 17px; margin: 0 0 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.icard { display: flex; flex-direction: column; background: var(--paper); border: 2px solid var(--line); border-radius: 18px; overflow: hidden; padding-bottom: 10px; box-shadow: 0 4px 0 var(--line); }
.icard > a { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; flex: 1; }
.iimg { aspect-ratio: 1; background: #fff0bf; display: grid; place-items: center; margin-bottom: 8px; }
.iimg img { width: 100%; height: 100%; object-fit: cover; }
.icard b, .icard .iprice, .icard small { padding: 0 12px; }
.icard b { font-size: 17px; line-height: 1.25; }
.iprice { font-weight: 800; color: var(--leaf-dark); }
.icard small { color: var(--muted); font-weight: 700; }
.icard .soldtag { margin-left: 0; }
.icard.out .iimg img { filter: grayscale(.8); opacity: .7; }
.icard.out .iprice { color: var(--muted); }

.ihero { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: #fff0bf; display: grid; place-items: center; margin: 4px 0 14px; }
.ihero img { width: 100%; height: 100%; object-fit: cover; }
.ihero .ph svg { width: 72px; height: 72px; }
.ihero.out img { filter: grayscale(.8); }
.bigprice { font: 800 28px var(--head); color: var(--leaf-dark); margin: 0; }
.left { font-weight: 700; color: var(--muted); margin: 2px 0 12px; } .left b { color: var(--ink); font-size: 20px; }
.fromfarm { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 16px 0 18px; background: var(--paper); border: 2px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; }
.fromfarm .fphoto { flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #ffe0dc; color: var(--barn-dark); display: grid; place-items: center; }
.fromfarm .fphoto img { width: 100%; height: 100%; object-fit: cover; } .fromfarm .fphoto svg { width: 28px; height: 28px; }
.fromfarm b { display: block; font: 800 18px var(--head); }
.fromfarm small { display: flex; align-items: center; gap: 3px; color: var(--muted); font-weight: 700; font-size: 14px; }
.fromfarm small svg { width: 14px; height: 14px; }
.itemview .note { text-align: center; color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.btn[disabled].primary { opacity: 1; background: #f6d3cd; border-color: #d99b91; box-shadow: 0 3px 0 #d99b91; color: var(--barn-dark); }
.browse .alt { text-align: center; margin-top: 22px; }

/* --- reserving and pickups --- */
body.hasbar main { padding-bottom: 110px; }
.basketbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255,246,220,0), var(--cream) 30%); }
.basketbar .btn { max-width: 560px; margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; }
.iadd { padding: 8px 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.iadd b { font: 800 22px var(--head); min-width: 28px; text-align: center; }
.addbtn { width: 100%; min-height: 44px; border-radius: 999px; border: 2px solid var(--leaf-dark); background: var(--leaf); color: #fff; font: 800 16px var(--body); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.addbtn svg { width: 18px; height: 18px; stroke-width: 2.6; }
.mini { width: 44px; height: 44px; flex: none; border-radius: 14px; border: 2px solid var(--ink); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; touch-action: manipulation; }
.mini svg { width: 20px; height: 20px; stroke-width: 2.6; }
.mini.plus { background: var(--leaf); color: #fff; }
.mini[disabled] { opacity: .35; }
.stock.buy { margin: 4px 0 14px; }
.stock.buy .count { display: grid; place-items: center; align-content: center; height: 64px; }
.stock.buy .count b { font-size: 30px; } .stock.buy .count small { font: 700 13px var(--body); color: var(--muted); }

.reserve, .reservation, .pickups { max-width: 560px; margin: 0 auto; padding: 0 16px 48px; }
.reserve h1, .reservation h1, .pickups h1, .ptitle { font-size: 32px; margin: 4px 0 14px; }
.rcard { background: var(--paper); border: 2px solid var(--line); border-radius: 20px; padding: 16px; margin-bottom: 14px; }
.rcard h2 { font: 800 15px var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.rcard h2 i { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; }
.rcard textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; font: 17px var(--body); background: #fff; color: var(--ink); resize: vertical; }
.line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 2px dashed var(--line); }
.line:last-child { border-bottom: 0; }
.line > span:first-child { flex: 1; min-width: 0; }
.line b { display: block; font-size: 17px; } .line small { color: var(--muted); font-weight: 600; }
.line em { font-style: normal; font-weight: 800; min-width: 56px; text-align: right; }
.line.gone { opacity: .6; }
.line.total { border-top: 2px solid var(--line); border-bottom: 0; margin-top: -2px; padding-top: 12px; }
.line.total em { font: 800 22px var(--head); color: var(--leaf-dark); }
.mini-step { display: flex; align-items: center; gap: 6px; } .mini-step b { min-width: 22px; text-align: center; font: 800 20px var(--head); }
.mini-step .mini { width: 38px; height: 38px; border-radius: 12px; }
.day { margin-bottom: 12px; } .day[hidden] { display: none; } .day > b { display: block; margin-bottom: 6px; }
.chip.time { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; padding: 6px 14px; min-height: 48px; }
.chip.time small { font-size: 12px; font-weight: 800; color: var(--barn-dark); }
.chip.time[aria-pressed=true] small { color: #fff; }
.chip.time[disabled] { opacity: .45; text-decoration: line-through; cursor: default; }
.totalbox { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: 14px 16px; margin: 4px 0 8px; background: #fff3c9; border-radius: 16px; }
.totalbox span { font-weight: 800; } .totalbox b { font: 800 28px var(--head); color: var(--leaf-dark); }
.totalbox small { grid-column: 1 / -1; color: var(--muted); font-weight: 600; }
.reserve .alt, .reservation .alt, .pickups .alt { text-align: center; }

.allset { text-align: center; padding: 10px 0 6px; }
.allset svg { width: 72px; height: 72px; color: var(--leaf); stroke-width: 2; }
.allset h1 { margin: 6px 0 4px; } .allset p { margin: 0 0 14px; color: var(--muted); font-weight: 600; }
.pill.st-reserved { background: #dff3d9; color: var(--leaf-dark); }
.pill.st-picked_up { background: #e3e8ef; color: #3a4a5c; }
.pill.st-no_show, .pill.st-cancelled, .pill.st-expired { background: #ffe0dc; color: var(--barn-dark); }
.reservation > .pill { margin: -6px 0 14px; }
.rcard p.big { font: 800 22px/1.3 var(--head); margin: 0; }
.rcard p.big span { font: 600 17px var(--body); color: var(--muted); }
.maprow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.maprow .btn { flex: 1; min-width: 0; padding: 0 12px; white-space: nowrap; font-size: 16px; }
.fphone { margin: 14px 0 0; }
.directions { margin: 14px 0 0; padding: 12px 14px; background: #fff3c9; border-radius: 14px; }
.mynote { margin: 10px 0 0; color: var(--muted); font-style: italic; }

.pcard { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 12px; background: var(--paper); border: 2px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; }
.pcard .fphoto { flex: none; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: #ffe0dc; color: var(--barn-dark); display: grid; place-items: center; }
.pcard .fphoto img { width: 100%; height: 100%; object-fit: cover; } .pcard .fphoto svg { width: 28px; height: 28px; }
.ptext { flex: 1; min-width: 0; } .ptext b { display: block; font: 800 18px var(--head); }
.ptext small { display: block; font-weight: 700; color: var(--ink); }
.ptext em { display: block; font-style: normal; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard:not(.st-reserved):not(.share) { opacity: .75; }

.twocards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.scard { display: flex; flex-direction: column; gap: 2px; padding: 14px; background: var(--paper); border: 2px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; }
.scard svg { width: 28px; height: 28px; color: var(--leaf-dark); margin-bottom: 4px; }
.scard b { font: 800 18px var(--head); } .scard small { font-weight: 700; color: var(--muted); }
.scard.alert { border-color: #f0b44c; background: #fff3c9; } .scard.alert small { color: #9a5b00; } .scard.alert svg { color: #b86e00; }
.warn { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #fff3c9; font-weight: 700; }
.formpage .sub { color: var(--muted); margin: -8px 0 16px; }
.window { display: flex; align-items: center; gap: 10px; padding: 14px; margin-bottom: 10px; background: var(--paper); border: 2px solid var(--line); border-radius: 16px; }
.window > span { flex: 1; } .window b { display: block; font: 800 19px var(--head); } .window small { color: var(--muted); font-weight: 600; }
#tform { margin-top: 18px; }
.fromto { display: flex; align-items: center; gap: 10px; } .fromto i { font-style: normal; font-weight: 700; color: var(--muted); }
.fromto select { flex: 1; min-height: 52px; padding: 0 12px; border: 2px solid var(--line); border-radius: 14px; font: 700 17px var(--body); background: #fff; color: var(--ink); }

.pk { background: var(--paper); border: 2px solid var(--line); border-radius: 20px; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 4px 0 var(--line); }
.pktop { display: flex; justify-content: space-between; align-items: center; }
.pktime { font: 800 24px var(--head); } .pktime small { display: block; font: 800 14px var(--body); color: var(--muted); }
.pkwho { margin: 4px 0 6px; font-size: 18px; }
.flag { display: inline-block; font-style: normal; font: 800 12px var(--body); background: var(--barn); color: #fff; border-radius: 6px; padding: 2px 7px; vertical-align: 2px; margin-left: 4px; }
.pk ul { list-style: none; padding: 0; margin: 0 0 6px; } .pk li { padding: 2px 0; } .pk li b { display: inline-block; min-width: 26px; }
.pktotal { font-weight: 800; color: var(--leaf-dark); margin: 0; }
.pkcontact { margin: 6px 0 0; font-weight: 700; }
.pkbtns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 12px; }
.pkbtns .btn { white-space: nowrap; padding: 0 14px; }
.pk:not(.st-reserved):not(.share) { opacity: .8; }

/* --- cowpools --- */
a.tile { color: var(--ink); text-decoration: none; }
.progress { height: 14px; border-radius: 999px; background: #efe6c9; overflow: hidden; margin: 6px 0 4px; }
.progress div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--leaf), #67c26a); }
.ptext2 { margin: 0; font-weight: 800; color: var(--leaf-dark); font-size: 15px; }
.poolcard { display: flex; gap: 12px; padding: 12px; margin-bottom: 12px; background: var(--paper); border: 2px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; box-shadow: 0 4px 0 var(--line); }
.pimg { flex: none; width: 84px; height: 84px; border-radius: 16px; overflow: hidden; background: #dff3d9; color: var(--leaf-dark); display: grid; place-items: center; }
.pimg img { width: 100%; height: 100%; object-fit: cover; } .pimg svg { width: 40px; height: 40px; }
.pbody { flex: 1; min-width: 0; }
.pbody b { display: block; font: 800 19px/1.2 var(--head); }
.pbody small { display: block; color: var(--muted); font-weight: 700; font-size: 14px; }
.pbody em { display: block; font-style: normal; font-weight: 700; color: var(--ink); font-size: 14px; margin-top: 2px; }
.pbody .pill { margin-top: 6px; }
.pill.st-filling { background: #fff3c9; color: #9a5b00; } .pill.st-full, .pill.st-processor { background: #e3e8ef; color: #3a4a5c; }
.pill.st-ready { background: #dff3d9; color: var(--leaf-dark); } .pill.st-done { background: #e3e8ef; color: #3a4a5c; }
.splitbanner { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 14px 0 0; border-radius: 18px; background: #dff3d9; border: 2px solid #b9e0ae; color: var(--ink); text-decoration: none; }
.splitbanner > svg { flex: none; width: 36px; height: 36px; color: var(--leaf-dark); }
.splitbanner span { flex: 1; } .splitbanner b { display: block; font: 800 18px var(--head); } .splitbanner small { color: var(--muted); font-weight: 700; }
.splitbanner i { font-style: normal; font-weight: 800; font-size: 22px; color: var(--leaf-dark); }
.poolbadge { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: #dff3d9; color: var(--leaf-dark); font-weight: 800; font-size: 13px; }
.poolbadge svg { width: 16px; height: 16px; }
.scard.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
.scard.wide svg { margin: 0; } .scard.wide small { flex-basis: 100%; margin-left: 38px; margin-top: -6px; }
.reqcard { padding: 14px; margin-bottom: 12px; background: var(--paper); border: 2px dashed #e6c76a; border-radius: 18px; }
.reqcard > b { display: block; font: 800 17px var(--head); } .reqcard > span { display: block; font-weight: 700; color: var(--muted); }
.reqcard p { margin: 6px 0 0; font-style: italic; } .reqcard .row { margin-top: 10px; } .reqcard .pill { margin-top: 8px; }
.replyx { margin-top: 8px; padding: 10px 12px; background: #fff3c9; border-radius: 12px; }
.browse > .btn.wide, .shop > .btn.wide { margin: 8px 0 14px; }

.poolview { max-width: 600px; margin: 0 auto; padding: 0 16px 48px; }
.poolview h1 { font-size: 32px; margin: 6px 0 10px; }
.poolview > .pill { margin-top: 2px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.facts div { padding: 10px 6px; background: var(--paper); border: 2px solid var(--line); border-radius: 16px; text-align: center; }
.facts small { display: block; color: var(--muted); font-weight: 700; font-size: 13px; line-height: 1.3; } .facts b { display: block; font: 800 19px/1.3 var(--head); color: var(--leaf-dark); margin: 2px 0; }
.fhero.nophoto { aspect-ratio: 3 / 1; background: #dff3d9; color: var(--leaf-dark); }
.exempt { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; margin: 12px 0; background: #fff3c9; border-radius: 14px; font-size: 15px; }
.exempt svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #9a5b00; }
.sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.sizeopt { position: relative; cursor: pointer; }
.sizeopt input { position: absolute; opacity: 0; }
.sizeopt div { height: 100%; padding: 14px 10px; border: 2px solid var(--line); border-radius: 16px; background: #fff; text-align: center; }
.sizeopt b { display: block; font: 800 20px var(--head); } .sizeopt small { display: block; color: var(--muted); font-weight: 700; font-size: 13px; }
.sizeopt input:checked + div { border-color: var(--leaf); background: #effaec; box-shadow: 0 0 0 3px rgba(63, 163, 77, .2); }
.sizeopt input:focus-visible + div { outline: 3px solid var(--orange); outline-offset: 2px; }
.sizeopt.nofit { opacity: .45; cursor: default; }
.claim .check { margin-top: 4px; }
.myshare { border-color: #b9e0ae; }
.cuthead { margin-top: 18px !important; display: flex; align-items: center; gap: 8px; }
.cutsheet .field > span { font-size: 16px; }
.cutsheet .chip[disabled] { opacity: .6; cursor: default; }
.stages { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.stages li { padding: 6px 12px; border-radius: 999px; background: #efe6c9; color: var(--muted); font-weight: 800; font-size: 14px; }
.stages li.past { background: #dff3d9; color: var(--leaf-dark); } .stages li.now { background: var(--leaf); color: #fff; }
.switch.money { display: flex; margin-top: 4px; white-space: normal; font-size: 15px; }
.switch.money input:checked + i { background: var(--leaf); }
.switch input:disabled + i { opacity: .5; }
.sizerow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fff; border: 2px solid var(--line); border-radius: 14px; }
.sizeon { display: flex; align-items: center; gap: 10px; font-size: 17px; cursor: pointer; }
.sizeon input { width: 24px; height: 24px; accent-color: var(--leaf); margin: 0; }
.dep { color: var(--muted); font-weight: 700; white-space: nowrap; }
.dep input { width: 64px; min-height: 40px; padding: 0 8px; border: 2px solid var(--line); border-radius: 10px; font: 700 16px var(--body); text-align: right; }
.poolview .row { gap: 18px; }

.sheet { max-width: 760px; margin: 0 auto; padding: 16px; background: #fff; color: #000; }
.sheet h1 { font-size: 30px; margin: 6px 0; }
.sheetblock { break-inside: avoid; margin: 18px 0; }
.sheetblock h2 { font: 800 18px var(--body); border-bottom: 2px solid #000; padding-bottom: 4px; margin: 0 0 6px; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td { text-align: left; vertical-align: top; padding: 5px 6px; border-bottom: 1px solid #ccc; font-size: 15px; }
.sheet th { width: 42%; font-weight: 700; }
.noprint { justify-content: space-between; }
@media print { body { background: #fff; } .noprint, #toast { display: none !important; } .sheet { padding: 0; } }

.answers { width: 100%; border-collapse: collapse; margin-top: 4px; }
.answers th, .answers td { text-align: left; vertical-align: top; padding: 6px 4px; border-bottom: 1px dashed var(--line); font-size: 15px; }
.answers th { width: 46%; color: var(--muted); font-weight: 700; }
