/* KamPoLokalno: warm paper, earthy colours, big targets. */
@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap;
  src: url(../fonts/fraunces-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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-weight: 600; font-display: swap;
  src: url(../fonts/fraunces-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Source Sans 3"; font-weight: 400; font-display: swap;
  src: url(../fonts/source-sans-3-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap;
  src: url(../fonts/source-sans-3-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Source Sans 3"; font-weight: 600; font-display: swap;
  src: url(../fonts/source-sans-3-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap;
  src: url(../fonts/source-sans-3-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Source Sans 3"; font-weight: 700; font-display: swap;
  src: url(../fonts/source-sans-3-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap;
  src: url(../fonts/source-sans-3-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #F6F1E7;
  --paper-2: #EFE7D8;
  --card: #FFFDF8;
  --ink: #2A2621;
  --field: #3F5E3A;
  --field-dark: #2F4A2B;
  --field-soft: #E3EBDD;
  --clay: #B5563A;
  --clay-dark: #9A4630;
  --straw: #D9A441;
  --straw-soft: #F6E7C4;
  --stone: #8A8275;
  --muted: #6B6458;       /* stone darkened for readable small text */
  --line: #E3DACB;
  --line-strong: #CBBFA9;
  --notnow: #5F594F;
  --radius: 8px;
  --radius-lg: 10px;
  --tap: 39px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(42, 38, 33, .06), 0 4px 11px rgba(42, 38, 33, .08);
}

/* Producer screens: same palette, stronger contrast for sunlight. */
body.producer {
  --ink: #1C1915;
  --muted: #423C34;
  --line: #B9AC95;
  --line-strong: #8F826C;
  --card: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 13.5px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 15px; line-height: 1.45;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
a { color: var(--field); }
img { max-width: 100%; display: block; }
[x-cloak] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.stack > * + * { margin-top: 8px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }

.ic { width: 17px; height: 17px; flex: none; fill: currentColor; vertical-align: middle; }
.ic.sm { width: 13px; height: 13px; }
.ic.lg { width: 22px; height: 22px; }
.ic.xl { width: 28px; height: 28px; }

/* ------------------------------------------------------------ header */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 4px 6px 4px 11px; min-height: 45px; background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 7px; min-height: var(--tap); }
.brand .logo-mark { width: 30px; height: 30px; flex: none; color: var(--field); }
.brand .logo-word span { color: var(--field); }
.lang { display: flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 699px; overflow: hidden; }
.lang a { display: flex; align-items: center; justify-content: center; min-width: 36px; min-height: 34px;
  font-weight: 700; font-size: 1rem; text-decoration: none; color: var(--ink); }
.lang a[aria-current="true"] { background: var(--field); color: #fff; }
.lang .sep { width: 1.5px; align-self: stretch; background: var(--line-strong); }

/* ------------------------------------------------------------ layout */
.col { max-width: 480px; margin: 0 auto; padding: 11px 11px 84px; }
.col.wide { max-width: 760px; }
.section { margin-top: 17px; }
.section > h2 { display: flex; align-items: center; gap: 7px; }
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 11px; }
.card + .card { margin-top: 8px; }
.divider { border: 0; border-top: 1.5px solid var(--line); margin: 14px 0; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: var(--tap); padding: 7px 13px; border-radius: var(--radius);
  font: 600 1.1rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  border: 2px solid var(--line-strong); background: var(--card); color: var(--ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active { transform: translateY(1px); }
.btn.block { display: flex; width: 100%; }
.btn.primary { background: var(--field); border-color: var(--field); color: #fff; }
.btn.primary:hover { background: var(--field-dark); }
.btn.clay { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--field); text-decoration: underline; text-underline-offset: 3px; }
.btn.big { min-height: 50px; font-size: 1.25rem; }
.btn.left { justify-content: flex-start; text-align: left; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-list { display: grid; gap: 8px; }
.linkbtn { background: none; border: 0; padding: 0 4px; min-height: 34px; font: 600 1.05rem var(--font-body);
  color: var(--field); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }

/* Main action: always a big full-width button at the bottom. */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 8px 11px calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--paper) 75%, rgba(246, 241, 231, 0));
}
.actionbar .inner { max-width: 480px; margin: 0 auto; display: grid; gap: 6px; }
.actionbar .btn { min-height: 45px; font-size: 1.2rem; }

/* ------------------------------------------------------------ forms */
label.lbl { display: block; font-weight: 700; margin-bottom: 4px; font-size: 1.05rem; }
.hint { color: var(--muted); font-size: .95rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=search],
input[type=time], input[type=number], input[type=date], textarea, select {
  width: 100%; min-height: var(--tap); padding: 8px 10px; font: 400 1.1rem var(--font-body); color: var(--ink);
  background: #fff; border: 2px solid var(--line-strong); border-radius: var(--radius);
}
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--field); outline: none; box-shadow: 0 0 0 3px var(--field-soft); }
input.code { font-size: 2rem; letter-spacing: .4em; text-align: center; font-weight: 700; }
.field + .field { margin-top: 13px; }
.error { background: #FBE9E3; border: 2px solid var(--clay); color: #6D2A18; border-radius: var(--radius);
  padding: 8px 10px; font-weight: 600; display: flex; gap: 7px; align-items: flex-start; }
.okbox { background: var(--field-soft); border: 2px solid var(--field); border-radius: var(--radius); padding: 8px 10px; font-weight: 600; }
.switch { display: flex; align-items: center; gap: 8px; min-height: var(--tap); cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--field); flex: none; }
.time-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }

/* ------------------------------------------------------------ tiles (onboarding choices) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 73px; padding: 8px 4px; border: 2px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--card); font: 600 1rem/1.2 var(--font-body); color: var(--ink); text-align: center; cursor: pointer; }
.tile .ic { width: 25px; height: 25px; color: var(--field); }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile.on, .tile:has(input:checked) { background: var(--field); border-color: var(--field); color: #fff; }
.tile.on .ic, .tile:has(input:checked) .ic { color: #fff; }
.tile .tick { position: absolute; top: 4px; right: 4px; width: 15px; height: 15px; display: none; }
.tile.on .tick, .tile:has(input:checked) .tick { display: block; }

.choice { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 11px;
  border: 2px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--card);
  font: 600 1.15rem/1.25 var(--font-body); color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.choice .ic { width: 25px; height: 25px; color: var(--field); }
.choice small { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; }
.choice.on { border-color: var(--field); background: var(--field-soft); }

/* Days of the week: P T S C P S N */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.day { min-height: var(--tap); border: 2px solid var(--line-strong); border-radius: 7px; background: var(--card);
  font: 700 1.15rem var(--font-body); color: var(--ink); cursor: pointer; padding: 0; }
.day[aria-pressed="true"] { background: var(--field); border-color: var(--field); color: #fff; }

/* Progress dots */
.dots { display: flex; justify-content: center; gap: 7px; padding: 6px 0 4px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); border: 2px solid var(--line-strong); }
.dots span.done { background: var(--field); border-color: var(--field); }
.dots span.now { background: var(--clay); border-color: var(--clay); transform: scale(1.25); }

/* ------------------------------------------------------------ availability */
.prod-row { padding: 10px 0; border-bottom: 1.5px solid var(--line); }
.prod-row:last-child { border-bottom: 0; }
.prod-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.prod-head .ic { width: 22px; height: 22px; color: var(--field); }
.prod-name { font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.prod-note { color: var(--muted); font-size: .95rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg button { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 2px;
  min-height: 45px; padding: 4px 4px; border: 2px solid var(--line-strong); border-radius: var(--radius);
  background: var(--card); color: var(--ink); font: 600 1rem/1.1 var(--font-body); cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.seg button .ic { width: 18px; height: 18px; }
.seg button[aria-pressed="true"] .ic.reg { display: none; }
.seg button[aria-pressed="false"] .ic.bold { display: none; }
.seg button.available[aria-pressed="true"] { background: var(--field); border-color: var(--field); color: #fff; }
.seg button.soon[aria-pressed="true"] { background: var(--straw); border-color: #B7852A; color: #1C1915; }
.seg button.not_now[aria-pressed="true"] { background: var(--notnow); border-color: var(--notnow); color: #fff; }
.seg button.pending { outline: 3px dashed var(--clay); outline-offset: 2px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px 3px 5px; border-radius: 699px;
  font-size: .9rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.badge .ic { width: 13px; height: 13px; }
.badge.available { background: var(--field-soft); color: var(--field-dark); }
.badge.soon { background: var(--straw-soft); color: #6B4A0E; }
.badge.not_now { background: #ECE8E1; color: var(--notnow); }
.badge.verified { background: var(--field-soft); color: var(--field-dark); }
.badge.here { background: var(--clay); color: #fff; }
.badge.off { background: #ECE8E1; color: #4A443C; }

/* ------------------------------------------------------------ Today / check-in */
.here-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px;
  border: 0; border-radius: var(--radius-lg); background: var(--clay); color: #fff; font: 700 1.4rem var(--font-body);
  cursor: pointer; box-shadow: var(--shadow); }
.here-btn .ic { width: 24px; height: 24px; }
.here-on { background: var(--clay); color: #fff; border-radius: var(--radius-lg); padding: 11px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.here-on .grow { font-weight: 700; font-size: 1.15rem; }
.here-on .btn { background: #fff; color: var(--clay-dark); border-color: #fff; min-width: 77px; }
.place-line { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1.5px solid var(--line); }
.place-line:last-child { border-bottom: 0; }
.place-line .ic { color: var(--field); }
.place-line.off { opacity: .75; }
.place-line.off .name { text-decoration: line-through; }

/* One "I'm here now" toggle per place */
.here-toggle { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 2px 9px;
  border: 1.5px solid var(--clay); border-radius: 999px; background: var(--card); color: var(--clay-dark);
  font: 700 .8rem/1.1 var(--font-body); cursor: pointer; white-space: nowrap; touch-action: manipulation; }
.here-toggle .ic { width: 14px; height: 14px; }
.here-toggle[aria-pressed="true"] { background: var(--clay); color: #fff; }
.place-line.here { background: #FBEDE7; margin: 0 -11px; padding-left: 11px; padding-right: 11px; }
.place-line .name { font-weight: 700; }

/* ------------------------------------------------------------ list rows (products/places) */
.item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1.5px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .ic { color: var(--field); }
.iconbtns { display: flex; gap: 6px; }
.iconbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 45px; min-height: var(--tap);
  padding: 4px 4px; border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--card);
  font: 600 .85rem/1.1 var(--font-body); color: var(--ink); cursor: pointer; text-decoration: none; }
.iconbtn .ic { width: 15px; height: 15px; }
.iconbtn.danger { color: #7A2E1B; }

.undo { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin: 6px 0; border-radius: var(--radius);
  background: var(--ink); color: #fff; font-weight: 600; }
.undo .btn { background: #fff; color: var(--ink); border-color: #fff; min-height: 34px; margin-left: auto; }

.menu { display: grid; gap: 7px; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; min-height: 45px; padding: 7px 11px;
  border: 2px solid var(--line); border-radius: var(--radius-lg); background: var(--card); color: var(--ink);
  font: 600 1.15rem var(--font-body); text-decoration: none; width: 100%; cursor: pointer; text-align: left; }
.menu .ic { width: 20px; height: 20px; color: var(--field); }
.menu .ic.go { margin-left: auto; color: var(--muted); width: 15px; height: 15px; }

/* ------------------------------------------------------------ toast / status */
.toast { position: fixed; left: 50%; top: 8px; transform: translate(-50%, -120%); z-index: 2000;
  display: flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 699px; font-weight: 700;
  background: var(--field); color: #fff; box-shadow: var(--shadow); transition: transform .2s ease; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast.offline { background: var(--ink); }
.toast.error { background: var(--clay-dark); }

/* ------------------------------------------------------------ public: producer page */
.hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); }
.hero img { width: 100%; aspect-ratio: 32/9; object-fit: cover; }
.ptitle { display: flex; align-items: flex-start; gap: 8px; margin-top: 11px; }
.ptitle .cat-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--field); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.ptitle .cat-dot .ic { width: 21px; height: 21px; }
.notice { display: flex; gap: 7px; align-items: flex-start; padding: 8px 10px; border-radius: var(--radius);
  background: var(--straw-soft); color: #5C400C; font-weight: 600; }
.visit { display: flex; gap: 8px; align-items: flex-start; padding: 10px 0; border-bottom: 1.5px solid var(--line); }
.visit:last-child { border-bottom: 0; }
.visit > .ic { color: var(--field); margin-top: 2px; }
.week-list { display: grid; gap: 0; }
.week-list .wd { display: grid; grid-template-columns: 76px 1fr; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.week-list .wd > span:first-child { white-space: nowrap; }
.week-list .wd:last-child { border-bottom: 0; }
.week-list .wd.today { font-weight: 700; }
.prod-group h3 { display: flex; align-items: center; gap: 6px; margin-top: 11px; }
.plist { list-style: none; padding: 0; margin: 0; }
.plist li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.plist li:last-child { border-bottom: 0; }
.plist .ic { color: var(--field); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contact .btn { min-height: 45px; }
details.more > summary { list-style: none; cursor: pointer; min-height: 34px; display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--field); }
details.more > summary::-webkit-details-marker { display: none; }
.navbox .other { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.navbox .other a { min-height: 31px; display: inline-flex; align-items: center; }

/* ------------------------------------------------------------ public: map */
body.map-page { overflow: hidden; height: 100vh; height: 100dvh; }
.map-wrap { position: fixed; inset: 0; display: flex; flex-direction: column; }
.map-wrap .topbar { position: relative; z-index: 1001; }
#map { flex: 1 1 auto; background: var(--paper-2); }
.map-tint .leaflet-tile-pane { filter: sepia(.18) saturate(.85) brightness(1.02); }
.map-tools { position: absolute; top: 45px; left: 0; right: 0; z-index: 1000; padding: 7px 0 0; pointer-events: none; }
.map-tools > * { pointer-events: auto; }
.search { margin: 0 8px; display: flex; align-items: center; gap: 6px; background: #fff; border: 2px solid var(--line-strong);
  border-radius: 699px; padding: 0 4px 0 10px; box-shadow: var(--shadow); }
.search input { border: 0; box-shadow: none !important; padding-left: 0; min-height: 35px; background: transparent; }
.search .ic { color: var(--muted); }
.search .clear { background: none; border: 0; min-width: 31px; min-height: 31px; cursor: pointer; color: var(--muted); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 7px 8px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 31px; padding: 0 10px 0 7px;
  border-radius: 699px; border: 2px solid var(--line-strong); background: #fff; color: var(--ink);
  font: 600 1rem var(--font-body); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.08); white-space: nowrap; }
.chip .ic { width: 14px; height: 14px; color: var(--field); }
.chip[aria-pressed="true"] { background: var(--field); border-color: var(--field); color: #fff; }
.chip[aria-pressed="true"] .ic { color: #fff; }
.chip.here[aria-pressed="true"] { background: var(--clay); border-color: var(--clay); }

.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: var(--paper);
  border-radius: 13px 13px 0 0; box-shadow: 0 -4px 17px rgba(42,38,33,.18); display: flex; flex-direction: column;
  max-height: 72vh; max-height: 72dvh; transition: transform .25s ease; }
.sheet-handle { display: flex; flex-direction: column; align-items: center; padding: 6px 11px 7px; cursor: grab; touch-action: none; }
.sheet-handle::before { content: ""; width: 31px; height: 4px; border-radius: 3px; background: var(--line-strong); margin-bottom: 6px; }
.sheet-bar { display: flex; align-items: center; gap: 7px; width: 100%; }
.sheet-bar .count { flex: 1; font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.sheet-bar .btn { white-space: nowrap; }
.sheet-list { overflow-y: auto; padding: 0 8px 11px; -webkit-overflow-scrolling: touch; }
.sheet.collapsed .sheet-list { display: none; }
.result { display: flex; gap: 8px; align-items: flex-start; padding: 8px 6px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); min-height: var(--tap); }
.result .dot { width: 31px; height: 31px; border-radius: 50%; background: var(--field); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.result .dot.here { box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px #3E8E41; }
.result .dot.market { background: var(--clay); }
.result .name { font-weight: 700; font-size: 1.08rem; }
.result .meta { color: var(--muted); font-size: .95rem; }
.result .dist { margin-left: auto; color: var(--muted); font-size: .95rem; white-space: nowrap; font-weight: 600; }
.empty { padding: 14px 6px; color: var(--muted); text-align: center; }

.ask-loc { position: fixed; left: 8px; right: 8px; bottom: 67px; z-index: 1100; max-width: 460px; margin: 0 auto;
  background: var(--card); border: 2px solid var(--line-strong); border-radius: var(--radius-lg); padding: 11px; box-shadow: var(--shadow); }

/* Leaflet markers */
.mk { width: 29px; height: 29px; border-radius: 50%; background: var(--field); color: #fff; display: flex; align-items: center;
  justify-content: center; border: 3px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,.3); position: relative; }
.mk .ic { width: 15px; height: 15px; }
.mk.approx { background: var(--stone); }
.mk.here { box-shadow: 0 0 0 3px #3E8E41, 0 2px 4px rgba(0,0,0,.3); }
.mk.here::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid #3E8E41; animation: pulse 2s ease-out infinite; }
.mk-market { width: 35px; height: 35px; border-radius: 10px; background: var(--clay); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; border: 3px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,.3); position: relative; font-weight: 700; line-height: 1; }
.mk-market .ic { width: 14px; height: 14px; }
.mk-market .n { font-size: .85rem; margin-top: 2px; }
.mk-market.here { box-shadow: 0 0 0 3px #3E8E41, 0 2px 4px rgba(0,0,0,.3); }
.mk-me { width: 14px; height: 14px; border-radius: 50%; background: #2A6FDB; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(42,111,219,.35); }
.mk-cluster { width: 32px; height: 32px; border-radius: 50%; background: var(--field-dark); color: #fff; font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center; border: 3px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content { margin: 8px 10px; font-size: 1rem; }
.leaflet-control-attribution { font-size: 8px; }
@keyframes pulse { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .mk.here::after { animation: none; opacity: .6; }
  .toast, .sheet { transition: none; }
}

/* Place picker map */
.pick-map { height: 196px; border-radius: var(--radius-lg); border: 2px solid var(--line-strong); overflow: hidden; }
.results-list { display: grid; gap: 6px; margin-top: 6px; }

/* ------------------------------------------------------------ preview frame */
.preview { border: 3px solid var(--line-strong); border-radius: 15px; padding: 8px; background: var(--paper); max-height: max(308px, calc(100vh - 260px)); overflow: auto; }

/* ------------------------------------------------------------ admin */
body.admin .col { max-width: 1000px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tbl th, .tbl td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl .btn { min-height: 28px; padding: 4px 7px; font-size: .95rem; }
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 11px; }
.admin-nav a { padding: 6px 8px; border-radius: 699px; border: 1.5px solid var(--line-strong); text-decoration: none; color: var(--ink); font-weight: 600; }
.acting { background: var(--straw-soft); border-bottom: 2px solid var(--straw); padding: 6px 11px; display: flex; align-items: center; gap: 7px; font-weight: 600; }
.acting form { margin-left: auto; }

.footer { text-align: center; color: var(--muted); font-size: .9rem; padding: 17px 11px 70px; }
.footer a { color: var(--muted); }

/* ------------------------------------------------------------ print (QR card, A6) */
.cards { display: grid; gap: 16px; justify-content: center; }
.qr-card { width: 105mm; height: 148mm; background: var(--paper); border: 1px dashed var(--line-strong); padding: 9mm 8mm 7mm;
  display: flex; flex-direction: column; align-items: center; text-align: center; page-break-after: always; break-after: page; overflow: hidden; }
.qr-card h1 { font-size: 22pt; margin: 0 0 5mm; line-height: 1.1; }
.qr-card .qr { width: 72mm; height: 72mm; padding: 2mm; border: 2.5px solid var(--field); border-radius: 4mm; background: var(--paper); }
.qr-card .qr svg { width: 100%; height: 100%; }
.qr-card .line { font-size: 14pt; font-weight: 700; margin-top: 6mm; }
.qr-card .line2 { font-size: 11pt; color: var(--muted); }
.qr-card .brandline { margin-top: auto; font-family: var(--font-head); color: var(--field); font-size: 12pt; }
.qr-card .url { font-size: 8pt; color: var(--muted); margin-top: 1mm; }
@page { size: A6; margin: 0; }
@media print {
  body { background: #fff; }
  .no-print, .topbar, .actionbar, .toast, .acting { display: none !important; }
  .col { padding: 0; max-width: none; }
  .cards { display: block; }
  .qr-card { border: 0; margin: 0; }
}

/* Vending machine markers */
.mk.vending { background: var(--straw); color: #1C1915; border-radius: 9px; }

/* Zoom-dependent producer markers: pill (medium zoom) and card (close zoom) */
.mk-wrap { background: none; border: 0; }
.mk-pill, .mk-card { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); background: var(--card);
  color: var(--ink); border: 2px solid var(--field); border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.22);
  white-space: nowrap; font-family: var(--font-body); line-height: 1.15; }
.mk-pill { display: flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; }
.mk-pill b { display: block; font-size: 12px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.mk-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--field); color: #fff; display: flex;
  align-items: center; justify-content: center; flex: none; }
.mk-dot .ic { width: 15px; height: 15px; }
.mk-types, .rtypes { display: flex; gap: 2px; margin-top: 2px; align-items: center; }
.ti { width: 17px; height: 17px; border-radius: 5px; background: var(--field-soft); color: var(--field-dark);
  display: inline-flex; align-items: center; justify-content: center; }
.ti .ic { width: 12px; height: 12px; }
.ti.soon { background: var(--straw-soft); color: #6B4A0E; }
.tmore { font-size: 11px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.rtypes { margin-top: 4px; }
.rtypes .ti { width: 20px; height: 20px; }
.rtypes .ti .ic { width: 14px; height: 14px; }

.mk-card { transform: translate(-50%, calc(-100% - 8px)); border-radius: 12px; padding: 7px 9px 8px; min-width: 170px;
  max-width: 230px; white-space: normal; }
.mk-card::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -7px; border: 7px solid transparent;
  border-bottom: 0; border-top-color: var(--field); }
.mk-card-head { display: flex; align-items: center; gap: 6px; }
.mk-card-head b { font-size: 13px; flex: 1; }
.mk-ok { color: var(--field); display: inline-flex; }
.mk-ok .ic { width: 15px; height: 15px; }
.mk-here { margin-top: 5px; font-size: 11px; font-weight: 700; color: var(--clay-dark); display: flex; align-items: center; gap: 3px; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.tchip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px 2px 4px; border-radius: 999px; font-size: 11px;
  font-weight: 700; background: var(--field-soft); color: var(--field-dark); }
.tchip small { font-weight: 600; opacity: .8; }
.tchip.soon { background: var(--straw-soft); color: #6B4A0E; }
.tchip.more { background: #ECE8E1; color: var(--muted); }
.mk-meta { margin-top: 5px; font-size: 11px; color: var(--muted); }

.mk-pill.here, .mk-card.here { border-color: #3E8E41; box-shadow: 0 0 0 3px rgba(62,142,65,.35), 0 2px 8px rgba(0,0,0,.22); }
.mk-pill.vending, .mk-card.vending { border-color: #B7852A; }
.mk-pill.vending .mk-dot, .mk-card.vending .mk-dot { background: var(--straw); color: #1C1915; }
.mk-pill.approx .mk-dot, .mk-card.approx .mk-dot { background: var(--stone); }

.chips-more { display: none; }  /* only big screens fold the filters */

/* ============================================================ big screens
   Phones keep the single column. From 900px the extra width is used for denser layouts. */
.pbody { container-type: inline-size; }

/* Public producer page: where/when on the left, what they have + contact on the right. */
@container (min-width: 760px) {
  .pgrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 28px; align-items: start; }
  .pside .section:first-child, .pmain .section:first-child { margin-top: 24px; }
  .pbody .contact { grid-template-columns: repeat(3, 1fr); }
  /* same shape as the cropper: never trim again; on wide screens the banner is limited in width instead */
  .pbody .hero { max-width: 900px; }
}

@media (min-width: 900px) {
  .col.xl { max-width: 1400px; padding-left: 28px; padding-right: 28px; }
  .actionbar { background: none; pointer-events: none; }
  .actionbar .inner { pointer-events: auto; }
  body { font-size: 15px; }

  /* ---------- map: sidebar with search, filters and the list; map fills the rest */
  .map-wrap { display: grid; --side: 400px; grid-template-columns: var(--side) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr); }
  .map-wrap .topbar { grid-column: 1 / -1; grid-row: 1; }
  #map { grid-column: 2; grid-row: 2 / 4; }
  .map-tools { position: static; grid-column: 1; grid-row: 2; padding: 10px 0 2px; background: var(--paper);
    border-right: 1px solid var(--line); pointer-events: auto; }
  .map-tools .search { box-shadow: none; }
  .chips { flex-wrap: wrap; overflow: hidden; padding: 8px 12px 2px; gap: 6px; max-height: 80px; }
  .chips.open { max-height: none; }
  .chips-more { display: inline-flex; margin: 0 12px 4px; min-height: 26px; font-size: .9rem; }
  .chips-more[aria-expanded="true"] .ic { transform: rotate(180deg); }
  .chip { box-shadow: none; min-height: 32px; padding: 0 10px 0 7px; font-size: .95rem; }
  .sheet { position: static; grid-column: 1; grid-row: 3; max-height: none; min-height: 0; border-radius: 0;
    box-shadow: none; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
  .sheet.collapsed .sheet-list { display: block; }
  .sheet-list { flex: 1 1 auto; min-height: 0; padding: 0 6px 8px; }
  .sheet-handle { cursor: default; padding: 8px 12px; }
  .sheet-handle::before, #sheet-toggle { display: none; }
  /* the location question floats over the map, not over the list */
  .ask-loc { left: calc(var(--side) + 16px); right: auto; top: 64px; bottom: auto; width: 380px; margin: 0; }

  /* denser rows: badges and product-type icons share lines with the name and place */
  .result { padding: 6px 8px; gap: 9px; min-height: 0; border-radius: 8px; border-bottom-color: transparent;
    box-shadow: 0 1px 0 var(--line); align-items: center; line-height: 1.25; }
  .result .name { font-size: 1rem; }
  .result .badge { padding: 1px 6px 1px 4px; font-size: .78rem; }
  .result .badge .ic { width: 12px; height: 12px; }
  .result .meta { font-size: .88rem; }
  .result .rtypes { display: inline-flex; margin: 0 0 0 6px; vertical-align: middle; }
  .result .rtypes .ti { width: 17px; height: 17px; }
  .result .rtypes .ti .ic { width: 12px; height: 12px; }
  .result .dist { font-size: .85rem; align-self: flex-start; }
  .result:hover, .result.on { background: var(--card); }
  .result.on { box-shadow: inset 3px 0 0 var(--field), 0 1px 0 var(--line); }
  .result .dot { width: 30px; height: 30px; }
  .result .dot .ic { width: 16px; height: 16px; }
  .mk-wrap.hl { z-index: 10000 !important; }
  .mk-wrap.hl > div { outline: 3px solid var(--clay); outline-offset: 2px; }

  /* ---------- producer Today: places + machines left, products (in columns) right */
  .dash { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); column-gap: 28px;
    grid-template-areas: "status status" "today products" "side products" "more products"; align-items: start; }
  .dash-status { grid-area: status; }
  .dash-status .status-card { max-width: 900px; }
  .dash > .notice { grid-column: 1 / -1; }
  .dash-today { grid-area: today; }
  .dash-side { grid-area: side; }
  .dash-more { grid-area: more; }
  .dash-products { grid-area: products; }
  .dash-products #products { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0 22px; }
  .dash-products .prod-row:last-child { border-bottom: 1.5px solid var(--line); }
  .dash-products > .btn { max-width: 320px; }

  /* ---------- lists of cards: week days, products, market producers */
  .week-grid, #product-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px;
    align-items: start; }
  .week-grid > .card + .card, #product-list > .card + .card { margin-top: 0; }
  .rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 18px; }
  .rgrid > .muted { grid-column: 1 / -1; }

  /* ---------- admin: denser tables */
  body.admin .col { max-width: 1400px; }
  .tbl th { position: sticky; top: 0; background: var(--paper); z-index: 1; }
  .tbl tr:hover td { background: var(--card); }
}

@media (min-width: 1400px) {
  .map-wrap { --side: 460px; }
  .ask-loc { width: 436px; }
}

/* ============================================================ producer app on big screens
   A permanent menu on the left; pages use two columns where it helps. Phones: unchanged. */
.app-nav, .wide-only { display: none; }

@media (min-width: 900px) {
  .app-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); align-items: start; }
  .app-main { min-width: 0; }
  .app-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: calc(100vh - 46px);
    overflow-y: auto; padding: 14px 10px; border-right: 1px solid var(--line); background: var(--paper-2); }
  .app-nav a, .app-nav button { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 6px 10px;
    border: 0; border-radius: 9px; background: none; color: var(--ink); font: 600 .98rem var(--font-body);
    text-decoration: none; text-align: left; width: 100%; cursor: pointer; }
  .app-nav a .ic, .app-nav button .ic { color: var(--field); width: 19px; height: 19px; }
  .app-nav a:hover, .app-nav button:hover { background: var(--card); }
  .app-nav a.on { background: var(--field); color: #fff; }
  .app-nav a.on .ic { color: #fff; }
  .app-nav hr { border: 0; border-top: 1px solid var(--line-strong); margin: 8px 4px; width: calc(100% - 8px); }
  .app-nav-who { display: flex; align-items: center; gap: 9px; padding: 4px 6px 12px; line-height: 1.25; }
  .app-nav-who .cat-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--field); color: #fff;
    display: flex; align-items: center; justify-content: center; flex: none; }
  .app-nav-who .cat-dot .ic { width: 20px; height: 20px; }

  /* the menu replaces "Back to More" links and the "More" button */
  .app-main .col > .linkbtn:first-child, .app-main .page-head > .linkbtn:first-child, .app-main .dash-more { display: none; }
  .app-main .col { margin-left: 0; }
  .app-main .col.narrow-xl { max-width: 980px; }

  /* the main action stays under the content, not over the menu */
  .app-shell .actionbar { position: sticky; left: auto; right: auto; bottom: 0; padding-left: 28px; padding-right: 28px;
    background: linear-gradient(to top, var(--paper) 70%, rgba(246, 241, 231, 0)); pointer-events: auto; }
  .app-shell .actionbar .inner { margin: 0; max-width: 360px; }
  .app-shell .col { padding-bottom: 32px; }

  .wide-only { display: block; }
  .two-col { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .two-col > .col-side { position: sticky; top: 16px; }
  .two-col > .col-side > .section:first-child { margin-top: 0; }
  .two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .two-cards > .card + .card { margin-top: 0; }
  .places-map { height: min(70vh, 620px); border-radius: var(--radius-lg); border: 1.5px solid var(--line); overflow: hidden; }
  .menu { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .app-main .btn-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .app-main .tiles { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }

  /* add a place: fields on the left, a big map on the right */
  .place-new .pin-grid { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); column-gap: 28px;
    align-items: start; }
  .place-new .pin-grid > * { grid-column: 1; margin-top: 0; }
  .place-new .pin-grid > * + * { margin-top: 12px; }
  .place-new .pin-grid > .pin-map-block { grid-column: 2; grid-row: 1 / span 12; margin-top: 0; }
  .place-new .pin-map-block .pick-map { height: min(68vh, 600px); }
  .place-new .pin-grid > .actionbar { grid-column: 1; position: static; padding: 8px 0 0; background: none; }

  /* add a product: name and note left, kinds right */
  .prod-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 28px; align-items: start; }
  .prod-grid > * { grid-column: 1; margin-top: 0; }
  .prod-grid > * + * { margin-top: 12px; }
  .prod-grid > .kind-block { grid-column: 2; grid-row: 1 / span 6; margin-top: 0; }
}

/* Map popup: what the farmer has */
.pop { min-width: 210px; }
.pop-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.pop-head strong { font-size: 1.02rem; line-height: 1.2; }
.pop-badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 4px; }
.pop-place { color: var(--muted); font-size: .88rem; margin-bottom: 6px; }
.pop-h { display: flex; align-items: center; gap: 4px; margin: 6px 0 3px; font-weight: 700; font-size: .85rem; }
.pop-h.avail { color: var(--field-dark); }
.pop-h.soon { color: #6B4A0E; }
.pop-goods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.pop-goods li { display: flex; align-items: center; gap: 5px; font-size: .88rem; line-height: 1.25; min-width: 0; }
.pop-goods li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-goods .ic { color: var(--field); flex: none; }
.pop-none { color: var(--muted); font-size: .88rem; margin: 4px 0; }
.pop .pop-open { margin-top: 10px; color: #fff; min-height: 34px; font-size: .95rem; }
.leaflet-popup-content .mk-dot { width: 28px; height: 28px; }

/* Picking the map icon */
.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.ipick { position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border-radius: 999px;
  border: 2px solid transparent; padding: 2px; }
.ipick input { position: absolute; opacity: 0; pointer-events: none; }
.ipick-dot { width: 38px; height: 38px; border-radius: 50%; background: var(--field-soft); color: var(--field-dark);
  display: flex; align-items: center; justify-content: center; }
.ipick-dot .ic { width: 20px; height: 20px; }
.ipick > span:not(.ipick-dot) { font-weight: 600; font-size: .9rem; padding-right: 8px; }
.ipick.on { border-color: var(--field); }
.ipick.on .ipick-dot { background: var(--field); color: #fff; }
.ipick:has(input:focus-visible) { outline: 3px solid var(--clay); outline-offset: 1px; }

.pop-stalls { list-style: none; margin: 4px 0 0; padding: 0; max-height: 260px; overflow-y: auto; }
.pop-stalls li + li { border-top: 1px solid var(--line); }
.pop-stalls a { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; color: var(--ink); text-decoration: none; font-size: .88rem; line-height: 1.3; }
.pop-stalls a:hover b { text-decoration: underline; }
.pop-stalls .mk-dot { width: 26px; height: 26px; }
.pop-stalls .mk-dot .ic { width: 14px; height: 14px; }
.pop-stalls .mk-dot.here { box-shadow: 0 0 0 2px #3E8E41; }
.pop-stalls .badge { font-size: .72rem; padding: 0 5px; }
.leaflet-popup-content .pop-h, .leaflet-popup-content .pop-none { margin: 6px 0 3px; }
.leaflet-popup-content .pop-goods li span { white-space: normal; }
.leaflet-container .pop-stalls a { color: var(--ink); }

/* Navigate: a small button with "Other apps" next to it */
.navbox { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.btn.nav-btn { min-height: 32px; padding: 4px 14px 4px 10px; font-size: .92rem; gap: 6px; }
.btn.nav-btn .ic { width: 16px; height: 16px; }
.navbox .linkbtn { min-height: 32px; font-size: .88rem; }
.navbox .other { flex-basis: 100%; margin-top: 0; }

/* Photo crop */
.crop-frame { position: relative; aspect-ratio: 32 / 9; overflow: hidden; border-radius: var(--radius-lg);
  background: #222; cursor: grab; touch-action: none; user-select: none; box-shadow: inset 0 0 0 2px var(--field); }
.crop-frame:active { cursor: grabbing; }
.crop-frame img { position: absolute; max-width: none; pointer-events: none; user-select: none; }
.crop-nudge { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* the img height attribute must not beat the 16:9 shape */
.hero img { height: auto; }

/* the farmer's colour replaces the per-type colours; vending keeps its square shape, approx a dashed ring */
.mk.vending, .mk-pill.vending .mk-dot, .mk-card.vending .mk-dot { color: #fff; }
.mk.approx { outline: 2px dashed rgba(255,255,255,.9); outline-offset: -6px; }

/* colour + icon picker */
.ipreview { display: flex; align-items: center; gap: 10px; }
.ipreview .mk { width: 40px; height: 40px; }
.ipreview .mk .ic { width: 22px; height: 22px; }
.color-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.cpick { position: relative; cursor: pointer; border-radius: 50%; padding: 3px; border: 2px solid transparent; }
.cpick input { position: absolute; opacity: 0; pointer-events: none; }
.cpick span { display: block; width: 30px; height: 30px; border-radius: 50%; }
.cpick.on { border-color: var(--ink); }
.cpick:has(input:focus-visible) { outline: 3px solid var(--clay); outline-offset: 1px; }
.ipick.on .ipick-dot { color: #fff; }

.cat-dot.sm { width: 28px !important; height: 28px !important; border-radius: 50%; color: #fff; display: inline-flex;
  align-items: center; justify-content: center; flex: none; vertical-align: middle; }
.cat-dot.sm .ic { width: 16px !important; height: 16px !important; }
h1 .cat-dot { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center;
  justify-content: center; flex: none; }
h1 .cat-dot .ic { width: 22px; height: 22px; }

/* Phones: the tapped farmer's details sit at the top of the map, under the filters */
.info-card { position: relative; margin: 6px 10px 0; background: var(--card); border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 10px 12px 12px; max-height: 52vh; overflow-y: auto; }
.info-card .pop { min-width: 0; }
.info-card .pop-head { padding-right: 36px; }
.info-card .pop-open { margin-top: 10px; color: #fff; }
.info-close { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: var(--paper-2); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.info-close .ic { width: 16px; height: 16px; }
@media (min-width: 900px) { .info-card { display: none !important; } }

/* Producer page: phone, email and links right under the name */
.pcontact { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pc-item { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; max-width: 100%; }
.pc-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-item .ic { width: 17px; height: 17px; flex: none; }
.pc-item.main { background: var(--field); border-color: var(--field); color: #fff; }
.pc-item:hover { border-color: var(--field); }

/* Today: freshness nudge and "finish your page" list */
.status-card { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--radius-lg);
  border: 1.5px solid var(--line-strong); background: var(--card); margin-bottom: 10px; }
.status-card.nudge { background: #FBF1D9; border-color: #D9B25A; }
.status-card.nudge .grow { flex: 1 1 200px; }
.status-card.nudge form { flex: none; }
.status-card.todo { display: block; }
.status-card.todo ul { list-style: none; margin: 6px 0 0; padding: 0; }
.status-card.todo li a { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600; }
.status-card.todo li a span { flex: 1; }
.status-card.todo li a .ic { color: var(--field); }
.status-line { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 6px; }
.status-line:empty { display: none; }
.status-line a { color: var(--field); }

/* Market page: what each producer brings */
.mk-goods { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 4px; font-size: .92rem; }
.mk-goods > span { display: inline-flex; align-items: center; gap: 3px; }
.mk-goods > span.soon { color: var(--muted); }
.mk-goods .ic { color: var(--field); }
.result > .ic:last-child { align-self: center; color: var(--muted); flex: none; }

/* ============================================================ friendlier map markers */
/* single farm far out: a small pin in the farmer's colour with a soft shadow on the ground */
.mk-pin { position: relative; width: 30px; height: 40px; transition: transform .15s ease; }
.mk-pin::after { content: ""; position: absolute; left: 8px; top: 34px; width: 14px; height: 5px; border-radius: 50%;
  background: rgba(40, 30, 20, .28); filter: blur(1px); transition: transform .15s ease, opacity .15s ease; }
.mk-pin-head { position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--field); border: 2.5px solid #fff; box-shadow: 1px 2px 4px rgba(0,0,0,.28); display: flex; align-items: center;
  justify-content: center; color: #fff; z-index: 1; }
.mk-pin-head .ic { transform: rotate(45deg); width: 17px; height: 17px; }
.mk-pin.vending .mk-pin-head { border-radius: 8px 8px 8px 0; }
.mk-pin.approx .mk-pin-head { outline: 2px dashed rgba(255,255,255,.9); outline-offset: -6px; }
.mk-pin.here .mk-pin-head { box-shadow: 0 0 0 3px #3E8E41, 1px 2px 4px rgba(0,0,0,.28); }
.mk-wrap:hover .mk-pin, .mk-wrap:focus .mk-pin { transform: translateY(-3px); }
.mk-wrap:hover .mk-pin::after { transform: translateY(3px) scale(.8); opacity: .7; }

/* group of farms: ring of the farmers' colours, number in a cream centre, top product types on a tag below */
.mk-cl-wrap { background: none; border: 0; }
.mk-cl { position: relative; border-radius: 50%; box-shadow: 0 2px 6px rgba(40,30,20,.3); transition: transform .15s ease; }
.mk-cl::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--card); }
.mk-cl-n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800;
  font-size: 14px; color: var(--field-dark); font-family: var(--font-body); }
.mk-cl-types { position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); display: flex; gap: 2px; padding: 2px 5px;
  border-radius: 999px; background: var(--card); border: 1px solid rgba(0,0,0,.12); box-shadow: 0 1px 3px rgba(0,0,0,.18); color: var(--field-dark); }
.mk-cl-types .ic { width: 12px; height: 12px; }
.mk-cl-wrap:hover .mk-cl { transform: scale(1.08); }

/* market: a little stall with a striped awning */
.mk-market { width: 38px; height: 38px; border-radius: 9px; padding-top: 8px; transition: transform .15s ease; }
.mk-market .awning { position: absolute; left: -3px; right: -3px; top: -3px; height: 12px; border-radius: 8px 8px 0 0;
  background: repeating-linear-gradient(90deg, #fff 0 6px, #D9745A 6px 12px);
  -webkit-mask: radial-gradient(circle at 3px 8px, #000 3.2px, transparent 3.6px) 0 0 / 6px 12px repeat-x, linear-gradient(#000, #000) 0 0 / 100% 8px no-repeat;
          mask: radial-gradient(circle at 3px 8px, #000 3.2px, transparent 3.6px) 0 0 / 6px 12px repeat-x, linear-gradient(#000, #000) 0 0 / 100% 8px no-repeat; }
.mk-market .ic { width: 16px; height: 16px; }
.mk-market .n { position: absolute; right: -9px; top: -10px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px; margin: 0;
  background: var(--card); color: var(--clay); font-size: 11px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--clay); z-index: 2; }
.mk-wrap:hover .mk-market { transform: translateY(-2px); }

/* producer page: main address under the name */
.paddress { margin: 10px 0 0; }
.paddress a { display: inline-flex; align-items: flex-start; gap: 5px; color: var(--ink); text-decoration: none; font-weight: 600; }
.paddress a span { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.paddress .ic { color: var(--field); margin-top: 3px; flex: none; }

/* time field with half-hour arrows */
.tbox { position: relative; display: block; min-width: 0; }
.tbox input { width: 100%; padding-right: 66px; }
.tstep { position: absolute; top: 4px; right: 4px; bottom: 4px; display: flex; gap: 3px; }
.tstep button { width: 29px; border: 0; border-radius: 6px; background: var(--field-soft); color: var(--field-dark);
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; touch-action: manipulation; }
.tstep button:active { background: var(--field); color: #fff; }
.tstep .ic { width: 15px; height: 15px; }

/* a heading inside a long form: splits it into parts, same look as section headings */
.form-h { display: flex; align-items: center; gap: 7px; margin: 26px 0 6px; padding-top: 14px; border-top: 1.5px solid var(--line); }

/* My locations: when each place is on the map, and the small map to move a pin */
.item .when { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: .9rem; font-weight: 600; text-decoration: none; }
.item .when.ok { color: var(--field); }
.item .when.warn { color: var(--clay-dark); }
.item .when .ic { color: inherit; }
.move-map { height: 220px; border-radius: var(--radius); border: 1.5px solid var(--line); overflow: hidden; margin-top: 4px; }
.move-map .mk-pin-head .ic { color: #fff; }

/* My week: two weeks ahead, one heading per calendar week */
.week-group + .week-group { margin-top: 22px; }
.week-h { font-size: 1.25rem; margin: 14px 0 8px; }
.week-h .muted { font-family: var(--font-body); font-size: .95rem; font-weight: 600; }
.week-group .week-grid > .card + .card { margin-top: 8px; }
@media (min-width: 900px) { .week-group .week-grid > .card + .card { margin-top: 0; } }

.skip-note { color: var(--clay-dark); }

/* vending machines say so on the map, before anyone taps */
.mk-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: #7A5A12; background: #F6E7C4; border-radius: 4px; padding: 1px 5px; line-height: 1.3; }
.mk-pill .mk-tag { display: table; margin-bottom: 1px; }
.mk-card > .mk-tag { margin-bottom: 5px; }
.mk-tag .ic { width: 11px; height: 11px; }
.result .mk-tag { vertical-align: 2px; }
.pop-kind { display: flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; color: #7A5A12; margin-bottom: 4px; }
.mk-pin.vending .mk-pin-head { border-color: #F2C14E; }
/* "comes from" lines */
.route-arrow { background: none; border: 0; }
.route-arrow svg { width: 14px; height: 14px; display: block; }
.leaflet-tooltip.route-label { font-weight: 700; font-size: 12px; padding: 2px 7px; border-radius: 6px; }

/* publishing: the farmer decides when buyers see the page */
.status-card.publish { background: #EEF3EA; border-color: var(--field); }
.status-card.publish .grow { flex: 1 1 200px; }
.visibility { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin: 4px 0 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--card); }
.visibility .grow { flex: 1 1 220px; }
.visibility.on > .ic { color: var(--field); }
.visibility.off { background: #EEF3EA; border-color: var(--field); }
.publish-choice { display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 600px) { .publish-choice { flex-direction: row; } .publish-choice > * { flex: 1; } }

/* sign in: already signed in, and the quiet way out during the first steps */
.signed-in { margin-top: 8px; }
.onb-out { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 28px; padding-top: 12px;
  border-top: 1px solid var(--line); }
.onb-out .linkbtn { font-size: .9rem; min-height: 30px; }

/* tips: quieter, and each one can be closed */
.status-card.todo { background: transparent; border: 1px dashed var(--line-strong); padding: 8px 10px; }
.todo-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .95rem; }
.todo-head .linkbtn { min-height: 28px; font-size: .85rem; color: var(--muted); }
.status-card.todo li { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--line); }
.status-card.todo li a { flex: 1; border-top: 0; padding: 6px 0; font-weight: 500; font-size: .95rem; }
.tip-x { width: 34px; height: 34px; border: 0; background: none; color: var(--muted); border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.tip-x:hover { background: var(--paper-2); color: var(--ink); }
.tip-x .ic { width: 15px; height: 15px; }

/* ============================================================ welcome (first visit) */
.help-btn { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--card);
  color: var(--field); font: 800 1rem var(--font-body); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.help-btn:hover { border-color: var(--field); }
.welcome { position: fixed; inset: 0; z-index: 2000; background: rgba(42, 38, 33, .45); display: flex; align-items: flex-end;
  justify-content: center; padding: 0; }
.welcome[hidden] { display: none; }
.welcome-card { background: var(--paper); width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto;
  border-radius: 18px 18px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px rgba(0,0,0,.18);
  animation: welcome-up .25s ease-out; }
@keyframes welcome-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) {
  .welcome { align-items: center; padding: 20px; }
  .welcome-card { border-radius: 18px; padding: 26px 28px; }
}
.welcome-card h2 { font-size: 1.8rem; margin-bottom: 4px; }
.welcome-lead { font-size: 1.05rem; color: var(--ink); }
.welcome-steps { list-style: none; margin: 12px 0 16px; padding: 0; display: grid; gap: 10px; }
.welcome-steps li { display: flex; align-items: center; gap: 12px; }
.welcome-steps li > .ic { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--field-soft); color: var(--field-dark); flex: none; }
.welcome-h { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px; }
.welcome-legend { display: flex; justify-content: space-around; gap: 8px; margin-bottom: 18px; padding: 12px 6px 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.welcome-legend > div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; }
.welcome-legend .mk-pin { display: block; }
.welcome-legend .mk-pin-head .ic { transform: rotate(45deg); width: 17px; height: 17px; color: #fff; }
.welcome-legend .mk-market { position: relative; color: #fff; margin: 6px 0 2px; }
.welcome-farmer { margin-top: 16px; padding: 12px; border-radius: var(--radius-lg); background: var(--straw-soft); }
.welcome-farmer p { margin: 0 0 10px; }
.welcome-card:focus { outline: none; }

/* a farmer looking at themselves on the buyers' map */
.self-bar { display: flex; align-items: center; gap: 10px; margin: 6px 10px 0; padding: 8px 10px; border-radius: var(--radius-lg);
  background: var(--field); color: #fff; box-shadow: var(--shadow); }
.self-bar .btn { background: #fff; border-color: #fff; color: var(--field-dark); min-height: 34px; padding: 4px 10px; font-size: .95rem; flex: none; }
.self-bar .small { opacity: .92; }

/* self view: the farmer's own signs get a soft pulsing ring so they find themselves at once */
.mk-pin.mine::before, .mk-market.mine::before, .mk-pill.mine::before, .mk-card.mine::before {
  content: ""; position: absolute; border-radius: 50%; border: 3px solid #E0A526; pointer-events: none;
  animation: mine-pulse 1.8s ease-out infinite; }
.mk-pin.mine::before { left: -9px; top: -9px; width: 48px; height: 48px; }
.mk-market.mine::before { inset: -12px; }
.mk-pill.mine::before, .mk-card.mine::before { inset: -8px; border-radius: 16px; }
@keyframes mine-pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }

/* fairs (sejem): plum instead of clay, a tent instead of a stall */
.mk-market.fair { background: #6D3F6B; }
.mk-market.fair .awning { background: repeating-linear-gradient(90deg, #fff 0 6px, #B57AB2 6px 12px); }
.mk-market.fair .n { color: #6D3F6B; border-color: #6D3F6B; }
.mk-dot.fair, .cat-dot.fair { background: #6D3F6B !important; }
.badge.fair { background: #F1E4F0; color: #5A2F58; }
.pop-kind.fair, .fair-tag { color: #5A2F58; }
.fair-tag { background: #F1E4F0; }
.choice .fair-ic .ic { color: #6D3F6B; }

/* markets / fairs in the list */
.result .dot.market.fair { background: #6D3F6B; }
.chip.fair-chip[aria-pressed="true"] { background: #6D3F6B; border-color: #6D3F6B; }

/* ============================================================ My week: calmer layout
   Every day is one row. Big screens: date on the left, places on the right, one line per place. */
.week-day.is-today { border-color: var(--field); box-shadow: 0 0 0 1px var(--field); }
.week-day.empty .day-none { display: none; }            /* the "+ Add a place" button already says it */
.week-day.empty .day-head h2 { color: var(--muted); }
@media (min-width: 900px) {
  .week-group .week-grid { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
  .week-group .week-grid > .week-day { width: 100%; }
  .week-group .week-grid > .card + .card { margin-top: 0; }
  .week-day { display: grid; grid-template-columns: 170px minmax(0, 1fr) 250px; column-gap: 18px; align-items: center;
    padding: 8px 14px; }
  .week-day > * { grid-column: 2; }
  .week-day > .day-head { grid-column: 1; grid-row: 1 / span 30; align-self: start; padding-top: 8px; flex-wrap: wrap; gap: 4px; }
  .week-day > .day-actions { grid-column: 3; grid-row: 1 / span 30; align-self: start; margin-top: 4px !important; flex-wrap: nowrap; justify-content: flex-end; }
  .week-day > .day-actions .btn { min-height: 34px; padding: 4px 12px; font-size: .95rem; white-space: nowrap; }
  .week-day > .day-actions .grow { flex: 0 0 auto; }
  .week-day > .day-add { grid-column: 2 / 4; }
  .week-day.empty { padding-top: 4px; padding-bottom: 4px; }
  .week-day.empty > .day-head { padding-top: 6px; }
  /* one line per place: name | from–to | buttons */
  .week-day .item { flex-wrap: nowrap !important; padding: 6px 0; }
  .week-day .item > .grow { flex: 1 1 180px; }
  .week-day .item > form.time-pair { flex: 0 0 300px !important; order: 2; }
  .week-day .item > .iconbtns, .week-day .item > form:not(.time-pair) { order: 3; flex: 0 0 138px; display: flex; justify-content: flex-end; gap: 6px; }
  .week-day .iconbtn span { white-space: nowrap; }
  .week-day .day-add.btn-list { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .week-day .day-add > .lbl { grid-column: 1 / -1; }
}

/* "hide the lines" button while farm → machine/market lines are shown */
.routes-hide { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); font: 600 .9rem var(--font-body);
  box-shadow: var(--shadow); cursor: pointer; }
.routes-hide:hover { border-color: var(--field); }
@media (max-width: 899px) { .leaflet-bottom.leaflet-left { bottom: 124px; } }  /* above the list bar on phones */

/* QR card: the farmer's own words and colour; editor next to a live card */
.qr-card { --accent: var(--field); position: relative; }
.qr-card .band { position: absolute; left: 0; right: 0; top: 0; height: 2.2mm; background: var(--accent); }
.qr-card h1 { color: var(--accent); }
.qr-card .qr { border-color: var(--accent); }
.qr-card .brandline { color: var(--accent); }
.qr-card .note { color: var(--ink); margin-top: 1.5mm; }
.qr-card .phone { color: var(--accent); margin-top: 2mm; }
.card-edit { display: grid; gap: 18px; }
@media (min-width: 900px) { .card-edit { grid-template-columns: minmax(280px, 420px) auto; align-items: start; } }
@media print { .card-edit { display: block; } }
@media screen and (max-width: 480px) {
  .card-edit .qr-card { zoom: .86; }          /* the A6 card is a little wider than a phone; print stays full size */
  .card-edit { padding-bottom: 70px; }         /* room above the two-row print bar */
}

/* QR card: backgrounds, title letters, and the editor's section headings */
.qr-card.style-white { background: #fff; }
.qr-card.style-bold { background: var(--accent); color: #fff; }
.qr-card.style-bold .band { display: none; }
.qr-card.style-bold h1, .qr-card.style-bold .phone, .qr-card.style-bold .web, .qr-card.style-bold .brandline { color: #fff; }
.qr-card.style-bold .line2, .qr-card.style-bold .url { color: rgba(255,255,255,.85); }
.qr-card.style-bold .note { color: #fff; }
.qr-card.style-bold .qr { background: var(--paper); box-shadow: 0 0 0 3.5mm var(--paper); }
.qr-card.font-sans h1 { font-family: var(--font-body); font-weight: 800; letter-spacing: -.01em; }
.qr-card .web { color: var(--accent); font-weight: 700; }
.qr-card .line2 { margin-top: .6mm; }
.card-form .form-h.first { margin-top: 0; padding-top: 0; border-top: 0; }
.seg-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-pick label { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--card); cursor: pointer; font-weight: 600; }
.seg-pick label.on { border-color: var(--field); background: var(--field); color: #fff; }
.seg-pick input { position: absolute; opacity: 0; pointer-events: none; }
.seg-pick .f-serif { font-family: var(--font-head); }
.seg-pick .f-sans { font-family: var(--font-body); font-weight: 800; }
.switch.off { opacity: .6; }

/* printing the card at the chosen paper size (the card is drawn for A6; A5/A4 have the same shape) */
@media print {
  .cards.print-a5 .qr-card { zoom: 1.4136; }
  .cards.print-a4 .qr-card { zoom: 2; }
  .cards.print-a6x4 { display: grid !important; grid-template-columns: 105mm 105mm; grid-template-rows: 148mm 148mm; }
  .cards.print-a6x4 .qr-card { break-after: auto; page-break-after: auto; border: .2mm dashed #aaa; }
}
.cards .qr-copy { display: none; }
@media print { .cards.print-a6x4 .qr-copy { display: flex; } }
@media print {
  /* only the card(s) on the paper: no menu, no page padding */
  html, body { margin: 0 !important; padding: 0 !important; background: none !important; }
  .app-nav, .app-shell > nav, .site-footer, .footer { display: none !important; }
  .app-shell, .app-main, main.col { display: block !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .card-edit { gap: 0 !important; padding: 0 !important; }
  .cards.print-a6x4 { width: 210mm; height: 296.5mm; overflow: hidden; gap: 0; }
  .cards.print-a4, .cards.print-a5, .cards.print-a6 { gap: 0; }
}

.privacy ul { padding-left: 1.2em; }
.privacy li { margin-bottom: .5em; }

/* /demo: example farms */
.demo-flag { align-self: center; margin-right: auto; margin-left: 8px; padding: 2px 10px; border-radius: 999px;
  background: var(--clay); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.demo-note { display: flex; gap: 6px; align-items: center; margin: 10px 0 0; padding: 8px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--clay) 14%, transparent); font-weight: 600; }

/* Farm card: its vending machines as small icon buttons next to the name */
.pop-machines { display: flex; gap: 4px; margin-left: auto; flex: none; }
.machine-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  padding: 0; border: 1.5px solid var(--line-strong); border-radius: 9px; background: var(--card); color: var(--ink);
  cursor: pointer; }
.machine-btn:hover, .machine-btn:focus-visible { border-color: var(--field); color: var(--field); background: var(--field-soft); }
.machine-btn .ic { width: 18px; height: 18px; }
