/* Version 1 · the design from this project's canvas (Main, DesktopHub, DesktopTimeline, PalletPicker, LotMap, EmptyState), built as a working page. */
body { background: #EEF2EE; color: #1B2620; font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #1B7A45; text-decoration: none; }
a:hover { color: #0E5730; text-decoration: underline; }
h1, h2, h3, p { margin: 0; font-size: inherit; font-weight: inherit; }

/* ---------- Page frames ---------- */
.v1-m { max-width: 520px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.v1-d { max-width: 1280px; margin: 0 auto; padding: 40px 40px 48px; display: flex; flex-direction: column; gap: 20px; }
.v1-hub { display: grid; grid-template-columns: minmax(300px, 372px) minmax(320px, 1fr) minmax(300px, 372px); column-gap: 48px; align-items: start; margin-top: 8px; }
.v1-tl { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); column-gap: 32px; align-items: start; margin-top: 8px; }
.v1-tl-side { display: flex; flex-direction: column; gap: 16px; }
@media (min-height: 1040px) { .v1-tl-side { position: sticky; top: 24px; } }
.v1-copy { text-align: center; font-size: 11.5px; color: #5F7169; padding: 8px 0 4px; }

/* ---------- Controls ---------- */
.v1-cq { container-type: inline-size; }
.v1-chips { display: grid; gap: 8px; margin-top: 14px; }
.v1-chips.lot { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.v1-chips.plate { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.v1-chip { display: flex; align-items: center; justify-content: center; height: 36px; padding: 0 6px; border: 1px solid #E1E7E2; background: #F6F8F6; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; color: #43514A; font-variant-numeric: tabular-nums; white-space: nowrap; font-family: inherit; }
button.v1-chip { transition: background .15s, border-color .15s, color .15s; }
button.v1-chip:hover { border-color: #1B7A45; background: #EAF4EC; color: #0E5730; }
.v1-ghost { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 6px 10px; border: 1px dashed #D5DED8; border-radius: 10px; background: #F6F8F6; font-family: inherit; transition: background .15s, border-color .15s; }
.v1-ghost.grow { flex: 1 1 0; }
.v1-ghost:hover { border-color: #1B7A45; background: #EAF4EC; }
.v1-pick { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 1px solid #D5DED8; border-radius: 10px; background: #FFFFFF; font-family: inherit; transition: background .15s, border-color .15s; }
.v1-pick:hover { border-color: #1B7A45; background: #F4F8F5; }
.v1-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.v1-wide.specs { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
@container (max-width: 560px) { .v1-wide, .v1-wide.specs { grid-template-columns: minmax(0, 1fr); } }

.v1-dhead { padding: 18px 24px; display: flex; align-items: center; gap: 24px; }
@media (max-width: 1180px) {
  .v1-pick-en { display: none; }
  .v1-dhead .v1-co { font-size: 16.5px !important; letter-spacing: .04em !important; }
  .v1-dhead { gap: 16px; }
}
.v1-certs-d { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: flex-end; }
.v1-contacts-d { display: flex; align-items: center; gap: 12px 36px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Pallet picker ---------- */
.v1-sheet { top: 84px; background: #FFFFFF; border-radius: 22px 22px 0 0; box-shadow: 0 -18px 46px -24px rgba(11, 32, 20, .5); display: flex; flex-direction: column; }
.v1-drawer { width: min(460px, 100vw); background: #FFFFFF; box-shadow: -18px 0 46px -24px rgba(11, 32, 20, .5); display: flex; flex-direction: column; }
.v1-pk-head { padding: 10px 16px 14px; border-bottom: 1px solid #EDF1EE; display: flex; flex-direction: column; gap: 12px; }
.v1-drawer .v1-pk-head { padding: 24px 24px 16px; }
.v1-handle { align-self: center; width: 40px; height: 4px; border-radius: 99px; background: #D5DED8; }
.v1-close { width: 44px; height: 44px; border-radius: 12px; background: #EFF2EF; display: flex; align-items: center; justify-content: center; flex: 0 0 44px; border: 0; }
.v1-close:hover { background: #E3E9E4; }
.v1-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border: 1px solid #D5DED8; background: #F6F8F6; border-radius: 12px; }
.v1-search:focus-within { border-color: #1B7A45; background: #FFFFFF; box-shadow: 0 0 0 3px rgba(27, 122, 69, .15); }
.v1-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 16px; color: #111C16; outline: none; }
.v1-search input::placeholder { color: #5F7169; }
.v1-pk-list { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; overflow: auto; flex: 1; min-height: 0; overscroll-behavior: contain; }
.v1-drawer .v1-pk-list { padding: 16px 24px 24px; }
.v1-pitem { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border: 1px solid #E1E7E2; border-radius: 12px; background: #FFFFFF; width: 100%; text-align: left; font-family: inherit; transition: border-color .15s; }
.v1-pitem:hover { border-color: #1B7A45; }
.v1-pitem.sel { border-color: #1B7A45; background: #F4F8F5; box-shadow: inset 3px 0 0 #1B7A45; }
.v1-none { text-align: center; color: #5F7169; font-size: 14px; padding: 24px 8px; }

/* ---------- Plantation map ---------- */
.v1-mapwrap { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; pointer-events: none; }
.v1-mapwrap.m { inset: max(56px, env(safe-area-inset-top)) 12px 24px 12px; padding: 0; display: block; }
.v1-mapcard { pointer-events: auto; background: #FFFFFF; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 60px -24px rgba(11, 32, 20, .55); width: min(1000px, 100%); height: min(720px, 100%); }
.v1-mapwrap.m .v1-mapcard { width: 100%; height: 100%; }
.v1-mapbox { position: relative; flex: 1 1 auto; min-height: 0; border: 1px solid #E1E7E2; border-radius: 12px; overflow: hidden; }
.v1-legend { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; font-size: 12.5px; color: #5F7169; flex-wrap: wrap; }
.v1-pop-title { font-size: 13px; font-weight: 700; color: #0E5730; padding-bottom: 6px; }
