/* Pomar — mobile-first styles. Touch targets are at least 44px; inputs use 16px text so iOS doesn't zoom. */

:root {
  --bg: #f6f3ea;
  --surface: #ffffff;
  --surface-2: #efebdf;
  --text: #1f2a1f;
  --muted: #5f6b5c;
  --border: #d9d3c3;
  --primary: #2f6a37;
  --primary-strong: #245329;
  --on-primary: #ffffff;
  --accent: #b83a2b;
  --warn-bg: #fff4d6;
  --warn-text: #6b4e00;
  --ok-bg: #e3f1df;
  --ok-text: #1f4d24;
  --err-bg: #fbe3df;
  --err-text: #7a2217;
  --shadow: 0 1px 2px rgb(0 0 0 / 8%), 0 4px 16px rgb(0 0 0 / 8%);
  --radius: 14px;
  --appbar-h: 56px;
  --nav-h: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121712;
    --surface: #1b221b;
    --surface-2: #242d24;
    --text: #e6ede3;
    --muted: #a1ad9d;
    --border: #334033;
    --primary: #6fb56f;
    --primary-strong: #8ccb8a;
    --on-primary: #0d1a0e;
    --accent: #ef7b6b;
    --warn-bg: #3a3010;
    --warn-text: #f3d98a;
    --ok-bg: #1d3320;
    --ok-text: #bfe3bb;
    --err-bg: #3d1c17;
    --err-text: #f6b8ad;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 4px 16px rgb(0 0 0 / 30%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom));
  min-height: 100dvh;
}

a { color: var(--primary); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; margin-top: 1.5em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- App bar & bottom navigation ---------- */

.appbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; gap: 4px;
  height: var(--appbar-h); padding: 0 8px;
  background: var(--primary); color: var(--on-primary);
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(var(--appbar-h) + env(safe-area-inset-top, 0px));
}
.appbar h1 { flex: 1; font-size: 1.1rem; margin: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appbar a, .appbar button { color: inherit; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 10px; border-radius: 22px;
  background: transparent; border: 0; font-size: 1.3rem; text-decoration: none; cursor: pointer;
}
.icon-btn:active { background: rgb(255 255 255 / 15%); }
.appbar .brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; margin-left: 8px; flex: 1; }

.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  display: flex; height: calc(var(--nav-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  background: var(--surface); border-top: 1px solid var(--border);
}
.bottomnav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); text-decoration: none; font-size: .75rem;
}
.bottomnav a span { font-size: 1.35rem; line-height: 1; }
.bottomnav a[aria-current="page"] { color: var(--primary); font-weight: 600; }

main.container { max-width: 760px; margin: 0 auto; padding: 16px; }

/* ---------- Messages ---------- */

.messages { list-style: none; margin: 0; padding: 0; }
.message { padding: 12px 14px; border-radius: 10px; margin-bottom: 10px; background: var(--ok-bg); color: var(--ok-text); }
.message.error { background: var(--err-bg); color: var(--err-text); }
.message.warning { background: var(--warn-bg); color: var(--warn-text); }
.toast-area { position: fixed; left: 12px; right: 12px; top: calc(var(--appbar-h) + 8px); z-index: 1200; pointer-events: none; }
.toast-area .message { pointer-events: auto; box-shadow: var(--shadow); animation: toast-out 0.4s ease 5s forwards; }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px); visibility: hidden; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 12px;
  border: 1px solid transparent; background: var(--primary); color: var(--on-primary);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn.ghost { background: transparent; color: var(--primary); }
.btn.danger { background: var(--accent); color: #fff; }
.btn.block { display: flex; width: 100%; }
.btn.small { min-height: 38px; padding: 0 12px; font-size: .9rem; }
.btn[disabled] { opacity: .55; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 140px; }

.fab {
  position: fixed; right: 16px; bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px); z-index: 1001;
  width: 64px; height: 64px; border-radius: 32px; border: 0;
  background: var(--accent); color: #fff; line-height: 1;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  box-shadow: 0 4px 14px rgb(0 0 0 / 30%);
}

/* ---------- Cards & lists ---------- */

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card.flush { padding: 0; overflow: hidden; }
.list { list-style: none; margin: 0 0 16px; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.list > li + li { border-top: 1px solid var(--border); }
.list a.row, .list .row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: inherit; text-decoration: none; min-height: 56px; }
.list a.row::after { content: "›"; margin-left: auto; color: var(--muted); font-size: 1.4rem; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { color: var(--muted); font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; background: var(--surface-2); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.orchard-card { display: block; color: inherit; text-decoration: none; }
.orchard-card .mini-map { height: 140px; background: var(--surface-2); }
.orchard-card .body { padding: 12px 16px; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--muted); vertical-align: middle; }
.badge.pending { background: var(--warn-bg); color: var(--warn-text); }
.badge.local { background: var(--ok-bg); color: var(--ok-text); }
.badge.dead, .badge.removed { background: var(--err-bg); color: var(--err-text); }

.empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.empty .big { font-size: 3rem; }

dl.facts { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 8px 12px; margin: 0; }
dl.facts dt { color: var(--muted); font-size: .9rem; }
dl.facts dd { margin: 0; }

.stats { display: flex; gap: 10px; margin-bottom: 16px; }
.stats .stat { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; text-align: center; }
.stats .num { font-size: 1.4rem; font-weight: 700; display: block; }

/* ---------- Forms ---------- */

form p { margin: 0 0 14px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url],
input[type=search], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--primary); vertical-align: middle; }
input[type=color] { width: 64px; height: 44px; border: 1px solid var(--border); border-radius: 8px; background: none; }
input[type=file] { font-size: 1rem; max-width: 100%; }
.helptext, .field .help { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; font-weight: 400; }
.errorlist { list-style: none; padding: 0; margin: 4px 0; color: var(--err-text); font-size: .9rem; }
.field { margin-bottom: 16px; }
.field.inline label { display: inline; margin-left: 6px; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
details.more { margin: 8px 0 16px; border-top: 1px solid var(--border); }
details.more > summary { padding: 14px 0; font-weight: 600; color: var(--primary); cursor: pointer; list-style: none; }
details.more > summary::before { content: "+ "; }
details.more[open] > summary::before { content: "− "; }

/* Checkbox/radio lists rendered as tappable pills (months, uses, severity, stars). */
.pills, ul.pills, div.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pills > div, .pills > li { margin: 0; }
.pills label { margin: 0; font-weight: 500; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills label, .pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; user-select: none;
}
.pills label:has(input:checked) { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.pills label:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.stars label { font-size: 1.05rem; letter-spacing: -1px; color: #d9a400; }
.stars label:has(input:checked) { color: #3b2b00; background: #ffd54f; border-color: #e0b400; }

/* Species picker: radio buttons as big tiles. */
.species-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.species-picker > div { margin: 0; }
.species-picker label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin: 0;
  min-height: 76px; padding: 8px 4px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface);
  text-align: center; font-weight: 500; font-size: .85rem; cursor: pointer;
}
.species-picker label .emoji { font-size: 1.7rem; line-height: 1; }
.species-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.species-picker label:has(input:checked) { border-color: var(--primary); background: var(--ok-bg); color: var(--ok-text); font-weight: 700; }
.species-picker.collapsed > div:nth-child(n+7):not(:has(input:checked)) { display: none; }

/* ---------- Search & filters ---------- */

.searchbar { position: sticky; top: var(--appbar-h); z-index: 5; background: var(--bg); padding: 8px 0 8px; margin-top: -8px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.filters select { width: auto; min-height: 40px; padding: 6px 10px; border-radius: 999px; flex: none; font-size: .9rem; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: none; }
.chip[aria-pressed="false"] { opacity: .45; }
.chip .dot { width: 10px; height: 10px; border-radius: 5px; }

/* ---------- Photos ---------- */

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 16px; }
.photo-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--surface-2); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo { margin: -16px -16px 16px; max-height: 50vh; overflow: hidden; background: var(--surface-2); }
.hero-photo img { width: 100%; max-height: 50vh; object-fit: cover; }
.upload-preview { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.upload-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.camera-btn { position: relative; overflow: hidden; }
.camera-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- Timeline ---------- */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.timeline .ico { flex: none; width: 40px; height: 40px; border-radius: 20px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.timeline .when { color: var(--muted); font-size: .85rem; }
.timeline .photo-grid { margin: 8px 0 0; grid-template-columns: repeat(4, 1fr); }

.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.quick-actions a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 72px; padding: 6px 2px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-size: .78rem; text-align: center;
}
.quick-actions a span { font-size: 1.5rem; line-height: 1; }

/* ---------- Maps ---------- */

.map-page { padding-bottom: 0; overflow: hidden; }
.map-page .map-wrap {
  position: fixed; left: 0; right: 0; top: calc(var(--appbar-h) + env(safe-area-inset-top, 0px));
  bottom: calc(var(--nav-h) + var(--safe-bottom));
}
.map-page.no-nav .map-wrap { bottom: 0; }
.map-page.no-nav { padding-bottom: 0; }
.map { width: 100%; height: 100%; background: #dfe6d8; }
.map-box { height: 45vh; min-height: 260px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); position: relative; }
.map-box .map { height: 100%; }
.mini-map-static { height: 200px; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; border: 1px solid var(--border); }

.crosshair {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  pointer-events: none; z-index: 900;
}
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: #fff; box-shadow: 0 0 0 1.5px rgb(0 0 0 / 70%); }
.crosshair::before { left: 27px; top: 0; width: 2px; height: 56px; }
.crosshair::after { top: 27px; left: 0; height: 2px; width: 56px; }
.crosshair .ring { position: absolute; inset: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px rgb(0 0 0 / 60%); }

.map-panel {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 950;
  background: var(--surface); border-radius: 18px 18px 0 0; box-shadow: 0 -4px 20px rgb(0 0 0 / 20%);
  padding: 12px 16px calc(12px + var(--safe-bottom));
}
.map-panel .hint { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.map-panel .status-line { font-size: .85rem; margin-bottom: 8px; min-height: 1.2em; }
.map-panel .status-line.warn { color: var(--warn-text); background: var(--warn-bg); padding: 4px 8px; border-radius: 6px; }

.map-top-controls { position: absolute; top: 10px; left: 10px; right: 60px; z-index: 950; display: flex; gap: 8px; }
.map-top-controls .filters { flex: 1; }
.map-search { position: absolute; top: 10px; left: 56px; right: 56px; z-index: 950; }
.map-search input { min-height: 42px; box-shadow: var(--shadow); }
.map-search .results { list-style: none; margin: 4px 0 0; padding: 0; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.map-search .results button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--text); font: inherit; font-size: .9rem; }

/* Bottom sheet (tree summary on the orchard map, tree form on the placement page) */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 18px 18px 0 0; box-shadow: 0 -6px 30px rgb(0 0 0 / 25%);
  padding: 8px 16px calc(16px + var(--safe-bottom));
  transform: translateY(105%); transition: transform .25s ease;
}
.sheet.open { transform: none; }
.sheet .grabber { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--border); margin: 4px auto 10px; border: 0; padding: 0; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 1050; background: rgb(0 0 0 / 25%); display: none; }
.sheet-backdrop.open { display: block; }
.sheet .sheet-actions { position: sticky; bottom: calc(-16px - var(--safe-bottom)); background: var(--surface); padding: 12px 0 calc(8px + var(--safe-bottom)); margin-bottom: calc(-16px - var(--safe-bottom)); border-top: 1px solid var(--border); }

/* Tree markers */
.tree-pin {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--c, #2f6a37); border: 2px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 50%);
  font-size: 15px; line-height: 1;
}
.tree-pin.dead, .tree-pin.removed { filter: grayscale(1); opacity: .6; }
.tree-pin.planned { border-style: dashed; opacity: .8; }
.tree-pin.highlight { outline: 3px solid #ffeb3b; outline-offset: 1px; }
.tree-pin .lbl {
  position: absolute; top: 30px; left: 50%; transform: translateX(-50%);
  background: rgb(0 0 0 / 65%); color: #fff; font-size: 11px; padding: 0 4px; border-radius: 4px; white-space: nowrap;
  display: none;
}
.show-labels .tree-pin .lbl { display: block; }
.tree-pin-icon { background: none; border: 0; }
.vertex-icon { background: #fff; border: 3px solid var(--accent); border-radius: 50%; box-shadow: 0 1px 3px rgb(0 0 0 / 50%); }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #1e88e5; border: 3px solid #fff; box-shadow: 0 0 0 2px rgb(30 136 229 / 40%), 0 1px 4px rgb(0 0 0 / 40%); }

.leaflet-control-layers-toggle { width: 44px !important; height: 44px !important; }
.leaflet-bar a { width: 40px !important; height: 40px !important; line-height: 40px !important; font-size: 20px !important; }
.leaflet-control.locate-btn a { font-size: 20px !important; }
.leaflet-container { font: inherit; }

/* Month calendar on the variety page */
.calendar { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; margin: 8px 0 4px; }
.calendar .m { text-align: center; font-size: .7rem; color: var(--muted); }
.calendar .bar { height: 10px; border-radius: 3px; background: var(--surface-2); }
.calendar .bar.flowering { background: #f48fb1; }
.calendar .bar.ripening { background: #e57373; }
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }

.hero { text-align: center; padding: 24px 8px 8px; }
.hero .logo { font-size: 3.5rem; }
.lang-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.lang-form button { font: inherit; }
.lang-form button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

table.simple { width: 100%; border-collapse: collapse; }
table.simple th, table.simple td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
table.simple td.num, table.simple th.num { text-align: right; }

@media (min-width: 900px) {
  .sheet { left: auto; right: 16px; width: 440px; bottom: 16px; border-radius: 18px; max-height: calc(100dvh - var(--appbar-h) - 32px); }
}

.orchard-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; }
.orchard-row .body { padding: 0; flex: 1; min-width: 0; }
.outline-box { flex: none; width: 64px; height: 64px; border-radius: 12px; background: var(--ok-bg); display: flex; align-items: center; justify-content: center; }
.outline-box svg { width: 52px; height: 52px; }
.outline-box polygon { fill: rgb(47 106 55 / 25%); stroke: var(--primary); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.auth-page main.container { max-width: 460px; }
.auth-page main button[type=submit], .auth-page main button:not([type]) { width: 100%; min-height: 48px; border-radius: 12px; border: 0; background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 600; margin-top: 8px; }
.auth-page main form p { margin-bottom: 14px; }
.uploading { opacity: .6; pointer-events: none; }
.tree-list-overlay { position: absolute; inset: 0; z-index: 980; overflow-y: auto; background: var(--bg); }
.tree-list-overlay main.container { padding-bottom: 96px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.inline-details > summary { color: var(--primary); font-size: .9rem; padding: 8px 0; cursor: pointer; }
.quick-actions .quick-photo label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin: 0;
  min-height: 72px; padding: 6px 2px; border-radius: 12px; background: var(--accent); color: #fff; border: 1px solid var(--accent);
  font-size: .78rem; font-weight: 500; text-align: center; cursor: pointer;
}
.quick-actions .quick-photo label span { font-size: 1.5rem; line-height: 1; }
.quick-actions .quick-photo .upload-preview { display: none; }
.photo-view { margin: -16px -16px 16px; background: #000; }
.photo-view img { width: 100%; max-height: 75vh; object-fit: contain; }
.lang-form .chip[aria-pressed="false"] { opacity: 1; }

.fab svg { width: 30px; height: 30px; }
/* Placement pages: the panel sits under the map so it never hides the crosshair or map controls. */
.map-wrap.with-panel { display: flex; flex-direction: column; }
.map-wrap.with-panel .map-stage { position: relative; flex: 1; min-height: 0; }
.map-wrap.with-panel .map-panel { position: static; border-radius: 16px 16px 0 0; margin-top: -12px; z-index: 950; }
.compact-select { width: auto; min-height: 40px; padding: 4px 8px; font-size: .9rem; }
.danger-text { color: var(--accent) !important; }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.orchard-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.catastro-box { padding: 12px; margin-bottom: 10px; }
#pick-parcel-btn[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.status-line.warn { color: var(--warn-text); background: var(--warn-bg); padding: 4px 8px; border-radius: 6px; }
.input-row input::placeholder { text-transform: none; }
