:root{color-scheme:light;--paper:#f5f4ec;--ink:#19312a;--muted:#607066;--dark:#142d27;--acid:#e3f19e;--line:#dce0d4;--white:#fffffa;font-family:"Instrument Sans",Arial,sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}button,input,textarea,select{font:inherit}button{color:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #498765;outline-offset:2px}button:disabled{opacity:.6;cursor:wait}h1,h2,h3,p{margin:0}button:disabled{cursor:wait}.top{height:68px;padding:0 max(20px,calc((100vw - 1192px)/2));display:flex;align-items:center;justify-content:space-between;background:var(--dark);color:#f9f9ef;gap:14px}.brand{display:flex;align-items:center;gap:11px}.brand-mark{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:var(--acid);color:var(--dark);font-size:22px}.brand strong,.brand div span{display:block}.brand strong{font-size:17px;letter-spacing:.15em}.brand div span{font-size:11px;margin-top:2px;color:#cdd6c4}.network{font-size:12px;color:#e9f0df;white-space:nowrap;display:flex;align-items:center;gap:6px}.network i,.gps-dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:#cde987;flex:none}.network.offline i{background:#ffc98c}main{max-width:1232px;margin:0 auto;padding:30px 20px 110px}.project{margin-bottom:24px}.project-title{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}.locality{color:#566c5d;font-size:10px;letter-spacing:.125em;font-weight:800}.project h1{font-size:clamp(34px,6vw,60px);font-weight:760;letter-spacing:-.065em;line-height:1.03;margin:6px 0}.subtitle{color:var(--muted);font-size:13px}.project-count{min-width:80px;padding:8px 11px;border-left:1px solid #c9d1c3;display:grid;line-height:1.12}.project-count strong{font-size:28px;font-weight:780;letter-spacing:-.055em}.project-count span{font-size:11px;color:var(--muted)}.filters{display:flex;gap:7px;overflow:auto;scrollbar-width:none;margin-top:20px;padding:2px}.filters::-webkit-scrollbar{display:none}.filters button{white-space:nowrap;font-size:12px;padding:10px 13px;background:#fbfbf5;border-radius:10px;border:1px solid #d8ded0;font-weight:750;min-height:40px}.filters button[aria-pressed=true]{background:var(--dark);color:#f5f5e8;border-color:var(--dark)}.work{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:16px}.map-section,.list-section,.data-section{min-width:0;border:1px solid var(--line);border-radius:19px;background:var(--white);overflow:hidden}.section-head{padding:16px;display:flex;align-items:center;justify-content:space-between;gap:8px}.section-head h2{font-size:20px;letter-spacing:-.045em;font-weight:770}.section-head p{font-size:12px;color:var(--muted);margin-top:3px}.map{height:clamp(380px,54vh,620px);position:relative;overflow:hidden;background:#e7e8d9;touch-action:none;isolation:isolate;cursor:grab}.map:active{cursor:grabbing}.map canvas,.markers{position:absolute;inset:0;width:100%;height:100%}.markers{pointer-events:none}.pin{pointer-events:auto;position:absolute;border:1.5px solid #fbfff3;border-radius:50%;width:31px;height:31px;background:var(--pin);box-shadow:0 2px 7px #1730255a;color:#fff;font-size:10px;font-weight:800;transform:translate(-50%,-50%);display:grid;place-items:center;padding:0;font-variant-numeric:tabular-nums;z-index:1}.pin.done::after{content:"";width:7px;height:7px;position:absolute;background:#deed9d;border-radius:50%;right:-1px;top:-1px;border:1px solid #fff}.pin:hover,.pin:focus-visible{z-index:5;box-shadow:0 0 0 4px #fffb}.position{position:absolute;border:3px solid white;width:20px;height:20px;border-radius:50%;background:#1976e7;box-shadow:0 0 0 6px #1976e752,0 2px 6px #142d2766;transform:translate(-50%,-50%);z-index:4}.north{position:absolute;top:11px;left:12px;display:grid;place-items:center;font-size:10px;color:#253c32;text-shadow:0 1px white;pointer-events:none}.north span{font-size:20px;line-height:1}.map-controls{position:absolute;right:10px;bottom:29px;display:grid;gap:5px}.map-controls button{width:40px;height:40px;border-radius:9px;border:1px solid #ccd5c5;background:#fffef6;font-size:21px;line-height:1;box-shadow:0 1px 3px #142d2720}.scale-container{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;align-items:flex-end;gap:5px;pointer-events:none;font-size:9px;color:#30443a}.scale{margin:0 0 6px 9px;text-shadow:0 0 4px white;font-weight:800}.scale i{display:block;border:1.5px solid #30443a;border-top:none;height:5px}.scale-container #attribution{padding:2px 5px;background:#fffdeadd}.gps-info{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line);min-height:45px}.gps-info p{font-size:12px;color:#425b4c}.gps-dot{background:#9caa9e}.gps-dot.on{background:#1976e7;box-shadow:0 0 0 3px #1976e73d}.legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 16px;font-size:11px;color:#495e51}.legend span{white-space:nowrap;display:flex;align-items:center;gap:5px}.legend i,.parcel-id i{height:8px;width:8px;border-radius:50%;background:var(--pin)}.list-symbol{font-size:27px;color:#576e5a}.parcel-list{max-height:654px;overflow:auto;padding:0 12px 12px}.parcel-row{width:100%;display:grid;grid-template-columns:38px 1fr auto min-content;align-items:center;gap:10px;min-height:65px;padding:9px 7px;border:0;border-top:1px solid #e9ebe2;background:transparent;text-align:left}.parcel-row:hover{background:#f3f5e9}.parcel-id{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#eaf0e1;color:var(--pin);font-weight:850;font-size:13px;border-left:2px solid var(--pin)}.parcel-row strong,.parcel-row small{display:block}.parcel-row strong{font-size:13px}.parcel-row small{font-size:11px;color:var(--muted);margin-top:3px}.parcel-row .distance{font-size:11px;color:var(--muted);white-space:nowrap}.parcel-row .arrow{font-size:21px;color:#5e7666}.data-section{display:none;grid-column:1/-1;max-width:700px}.work[data-view=data] .data-section{display:block}.work[data-view=data] .map-section,.work[data-view=data] .list-section{display:none}.data-card{margin:0 16px 14px;padding:16px;border:1px solid var(--line);border-radius:13px}.data-card h3{font-size:16px}.data-card p{font-size:13px;color:var(--muted);margin:7px 0 13px}.nav{position:fixed;z-index:8;bottom:0;left:0;right:0;display:flex;justify-content:center;padding:7px 12px calc(7px + env(safe-area-inset-bottom));background:#fffff6f5;border-top:1px solid var(--line);backdrop-filter:blur(10px);gap:8px}.nav button{border:0;background:transparent;border-radius:9px;padding:6px 18px;min-width:98px;color:#557061;font-weight:700;font-size:11px;display:grid;justify-items:center;gap:2px}.nav button span{font-size:21px;line-height:1.05}.nav button[aria-current=page]{background:#e9eedc;color:#1b3a2b}.nav button:hover{background:#edf1e4}
dialog{padding:0;width:min(570px,calc(100vw - 24px));max-height:min(88vh,800px);max-height:min(88dvh,800px);border:1px solid var(--line);border-radius:18px;background:var(--white);color:var(--ink);box-shadow:0 20px 90px #10291f62;overflow:auto}dialog::backdrop{background:#12281fc4}.sheet-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:15px 17px;background:#f2f3e8;border-bottom:1px solid var(--line)}.sheet-head h2{font-size:23px;letter-spacing:-.04em;margin-top:3px}.close{border:1px solid #d0d9c7;background:#fcfdf5;width:39px;height:39px;border-radius:10px;font-size:26px;line-height:1}.sheet-body{padding:15px 17px}.sheet-body h3{font-size:17px;margin-bottom:8px}.sheet-body p.text{font-size:13px;color:var(--muted);margin-bottom:10px}.sheet-status{padding:0 17px 14px;color:#526f5d;font-size:12px;min-height:14px}.sheet-status:empty{padding:0;min-height:0}.stack{display:grid;gap:10px}.twocol,.actions{display:flex;gap:8px;flex-wrap:wrap}.actions{margin:10px 0 2px}.primary,.quiet,.small{padding:9px 12px;min-height:42px;border:1px solid #d2dacb;border-radius:10px;font-weight:750;font-size:13px;background:#f4f5ec}.primary{background:var(--dark);border-color:var(--dark);color:#fcfff0}.primary.light{background:var(--acid);border-color:#d9e697;color:#19312a}.small{font-size:12px;min-height:37px}.field{font-size:12px;font-weight:750;display:grid;gap:4px;min-width:0}.field input,.field textarea,.field select{width:100%;padding:9px 10px;color:var(--ink);background:#fff;border:1px solid #bfcabb;border-radius:9px;font-size:16px;min-height:42px}.positions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:10px 0}.metrics span{background:#f2f4e9;padding:7px 8px;border-radius:8px;display:grid;gap:2px;color:#4c6554;font-size:10px}.metrics strong{color:var(--ink);font-size:16px}.quality,.form-sub{border:1px solid var(--line);border-radius:10px;padding:9px 10px}.quality summary,.form-sub summary{cursor:pointer;font-size:12px;font-weight:750}.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:8px 0}.check-grid label{font-size:12px;display:flex;align-items:center;gap:4px;min-height:30px}.check-grid input{accent-color:#365c42}.measure{display:grid;grid-template-columns:1fr 1fr;gap:8px}.separator{border:0;border-top:1px solid var(--line);margin:13px 0}.height-row,.saved-row{display:grid;grid-template-columns:1fr 112px;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid var(--line);font-size:12px}.height-row small,.saved-row small{color:var(--muted);display:block;margin-top:3px}.saved-row{grid-template-columns:1fr auto}.muted-note{font-size:12px;color:var(--muted);margin:7px 0}.photo-preview{max-width:100%;max-height:170px;border-radius:8px}.toast{position:fixed;z-index:12;left:50%;bottom:calc(67px + env(safe-area-inset-bottom));transform:translateX(-50%);background:var(--dark);color:#f5f9e5;padding:10px 14px;border-radius:10px;width:max-content;max-width:90vw;font-size:13px;box-shadow:0 3px 13px #142d2760}
@media(max-width:760px){main{padding:21px 12px 90px}.top{padding:0 13px;height:58px}.brand-mark{height:34px;width:34px;border-radius:10px}.brand strong{font-size:15px}.project{margin-bottom:13px}.filters{margin-top:13px;gap:6px}.filters button{padding:8px 11px}.work{display:block}.map-section,.list-section,.data-section{border-radius:15px}.map{height:clamp(335px,49vh,550px)}.section-head{padding:12px}.section-head h2{font-size:18px}.nav{justify-content:space-around;gap:3px}.nav button{min-width:0;flex:1}.work[data-view=map] .list-section{display:none}.work[data-view=list] .map-section{display:none}.parcel-list{max-height:none}.gps-info,.legend{padding-left:10px;padding-right:10px}.legend{gap:9px}.pin{width:27px;height:27px}.map-controls button{width:38px;height:38px}dialog{position:fixed;margin:auto 0 0;bottom:0;left:0;width:100%;max-width:none;max-height:92dvh;border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom)}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
[hidden]{display:none!important}

.project-count { min-width: 116px; }
.project-count small { margin-top: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.scope-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px; margin-top: 14px; }
.scope-button { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 8px 11px; background: var(--white); }
.scope-action { color: #4b6a55; font-size: 12px; font-weight: 650; white-space: nowrap; }
.scope-progress { color: var(--muted); font-size: 11px; font-weight: 700; }

.orders-section {
  display: none;
  grid-column: 1 / -1;
  width: 100%;
  max-width: 720px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.work[data-view=orders] .orders-section { display: block; }
.work[data-view=orders] .map-section,
.work[data-view=orders] .list-section { display: none; }
.order-search { display: grid; gap: 5px; margin: 0 14px 12px; }
.order-search input {
  width: 100%;
  min-height: 45px;
  padding: 9px 10px;
  border: 1px solid #bbc9b8;
  border-radius: 9px;
  color: var(--ink);
  font-size: 16px;
  background: #fff;
}
.order-list { display: grid; gap: 5px; padding: 0 10px 10px; }
.order-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 52px 12px;
  align-items: center;
  gap: 9px;
  min-height: 67px;
  width: 100%;
  padding: 7px 9px;
  text-align: left;
  background: #fbfbf4;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.order-row[aria-pressed=true] { border-color: #809c78; background: #edf1e3; }
.order-row strong { display: block; font-size: 14px; }
.order-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.order-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--pin), transparent 60%);
  border-radius: 8px;
  color: var(--pin);
  background: #fff;
  font-size: 16px;
}
.remaining { display: grid; justify-items: center; line-height: 1; font-variant-numeric: tabular-nums; }
.remaining b { font-size: 19px; }
.order-empty { color: var(--muted); padding: 12px 6px; }
.attribution { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 2px 5px; background: #fbfbebdd; }
.attribution a { color: #263c33; pointer-events: auto; text-decoration: none; padding: 2px 4px; }
#image-credit { font-weight: 750; }
.map .north { left: auto; right: 10px; width: 42px; height: 42px; padding: 3px; border: 1px solid #ccd5c5;
  border-radius: 9px; background: #fffef6; color: #253c32; pointer-events: auto; text-shadow: none; }
.map .north svg { width: 19px; height: 19px; fill: currentColor; transform: rotate(var(--map-rotation, 0deg)); }
.map-controls #locate { display: grid; place-items: center; padding: 0; color: #224a37; background: var(--acid); }
.map-controls #locate svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.map-controls #locate .location-center { fill: currentColor; stroke: none; }
.gps-info .compass-status { margin-top: 3px; color: #4f705c; font-size: 11px; }
@media (max-width: 760px) {
  .project-count { min-width: 102px; padding-right: 0; }
  .orders-section { border-radius: 15px; }
  .scope-bar { gap: 6px 9px; }
}

#attribution{color:inherit;pointer-events:auto;text-decoration:none}.sheet-status:not(:empty){position:sticky;bottom:0;background:#f4f6eb;border-top:1px solid var(--line);padding:10px 17px;margin:0}

[hidden] { display: none !important; }
.login-screen { display: grid; min-height: 100vh; min-height: 100dvh; place-items: center; padding: 24px; background: #173c31; }
.login-card { width: min(100%, 420px); background: var(--white); padding: clamp(24px, 6vw, 40px); border-radius: 24px; box-shadow: 0 18px 70px #061a1760; }
.login-logo { display: block; width: 72px; height: 72px; border-radius: 17px; margin-bottom: 18px; }
.login-card h1, .projects-list h1 { font-size: clamp(28px, 8vw, 40px); letter-spacing: -.05em; margin-bottom: 20px; }
.login-card form { gap: 8px; }
.login-card input { min-width: 0; padding: 12px; min-height: 48px; border: 1px solid #bfcabb; border-radius: 10px; background: white; }
.login-card .primary { margin-top: 10px; min-height: 49px; }
.login-status:not(:empty) { color: #8d3327; margin-top: 12px; font-size: 14px; }
.password-field { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.top { gap: 8px; }
.top .brand { flex: 1; }
.top-action { padding: 7px; min-height: 42px; border: 0; border-radius: 7px; color: white; background: transparent; font-weight: 700; font-size: 13px; }
.top-action:focus-visible { outline-color: white; }
.projects-list { margin: auto; max-width: 620px; }
.projects-list h1 { margin-bottom: 4px; }
#collector-name { color: var(--muted); margin-bottom: 18px; }
.farm-option { text-align: left; width: 100%; min-height: 76px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px; }
.farm-option strong { font-size: 20px; }
.farm-option small { color: var(--muted); }
.farm-option .chevron { grid-column: 2; grid-row: 1 / 3; font-size: 25px; }
.pin.done { background: #258148; }
.pin.done::after { display: none; }
.parcel-row.done .parcel-id { color: #164f32; background: #d9eedb; border-color: #258148; }
.position.has-heading { transform: translate(-50%,-50%) rotate(var(--bearing)); }
.position.has-heading::after { content: ""; position: absolute; width: 8px; height: 8px; top: 3px; left: 3px; background: white; clip-path: polygon(50% 0,100% 92%,50% 70%,0 92%); }
.data-card button { margin-top: 10px; }
.photo-file { display: block; width: 100%; text-align: left; }
.field-counts { display: flex; gap: 15px; flex-wrap: wrap; margin: 7px 0; font-size: 13px; font-weight: 700; }
.photo-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.camera-button { width: 53px; min-height: 48px; display: grid; place-items: center; }
.camera-button svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.photo-preview { display: block; }
.height-choice { display: flex; justify-content: space-between; width: 100%; min-height: 54px; gap: 10px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: none; align-items: center; font-size: 15px; }
.height-choice small { display: block; color: var(--muted); margin-top: 3px; }
.height-choice .height-pending { color: #884b13; }
#sheet[open] { display: flex; flex-direction: column; overflow: hidden; }
.sheet-head, .sheet-status, .number-pad { flex: none; }
.sheet-body { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.number-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 9px 12px; border-top: 1px solid var(--line); background: #eff2e7; }
.number-pad button { background: white; border: 1px solid #c9d3c4; border-radius: 8px; min-height: 44px; font-size: 21px; font-weight: 700; }
.number-pad button[data-pad=apply] { background: var(--dark); border-color: var(--dark); color: white; font-size: 15px; grid-column: span 2; min-height: 45px; }
.number-pad button[data-pad=hide] { font-size: 14px; }
.field input[data-pad-input] { font-weight: 700; font-variant-numeric: tabular-nums; }
.field input[data-pad-input][aria-current=true] { border: 2px solid #2e734f; background: #f5faef; }
@media(max-width: 380px) { .top .brand span { display: none; } }

#sheet { position: fixed; inset: 0; width: min(540px, calc(100% - 24px)); max-height: min(92dvh, 790px); margin: auto;
  padding: 0; border: 1px solid #dce4d8; border-radius: 22px; box-shadow: 0 16px 65px #10291f6b; }
#sheet::backdrop { background: #132822ae; }
#sheet .sheet-head { background: linear-gradient(120deg, #edf1e5, #f7f8f1); padding: 13px 17px; }
#sheet .sheet-head h2 { font-size: 25px; }
#sheet .close { display: grid; place-items: center; width: 42px; height: 42px; background: #fff; }
.sheet-tools { flex: none; display: flex; gap: 5px; padding: 7px 10px; background: #fcfdf8; border-bottom: 1px solid var(--line); }
.sheet-tools button { min-height: 41px; border-radius: 8px; padding: 7px 8px; white-space: nowrap; }
.sheet-tools [data-action=next-line] { margin-left: auto; background: #dceaa7; border-color: #cbdc8a; color: var(--dark); }
.parcel-overview { display: grid; gap: 12px; }
.parcel-summary { display: grid; gap: 7px; }
.parcel-summary p.text { margin: 0; }
.parcel-state { justify-self: start; background: #edf2e8; color: #345443; border-radius: 20px; padding: 6px 10px; font-weight: 750; font-size: 12px; }
.parcel-state.done { background: #d8eddc; color: #195235; }
.parcel-state.pending { background: #f9ebd7; color: #75440f; }
.parcel-overview .field-counts { margin: 4px 0 0; }
.parcel-actions { display: flex; align-items: stretch; gap: 7px; flex-wrap: wrap; }
.parcel-actions .primary { flex: 1 1 auto; min-height: 47px; }
.parcel-actions .quiet { flex: 1 1 auto; }
.parcel-overview #parcel-photo { padding: 9px 12px; border-radius: 12px; background: #f1f4e9; }
.parcel-overview .photo-controls { margin: 0; }
.parcel-overview .photo-preview { margin: 3px 0 9px; }
.parcel-overview .form-sub { padding: 10px 11px; }
.parcel-overview .form-sub summary { min-height: 29px; padding-top: 5px; font-size: 14px; }
.issue-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 7px 0 10px; padding: 0; border: 0; min-width: 0; }
.issue-choice { position: relative; min-width: 0; }
.issue-choice input { position: absolute; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.issue-choice span { display: grid; place-items: center; min-height: 45px; border: 1px solid #cdd8ca; border-radius: 9px; background: white; color: #315b46; }
.issue-choice svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.issue-choice input:checked + span { background: #dceaa7; border-color: #54713b; color: #233f2d; box-shadow: inset 0 0 0 1px #54713b; }
.issue-choice input:focus-visible + span { outline: 2px solid #498765; outline-offset: 2px; }
.issue-choice input:disabled + span { opacity: .7; }
.tree-selector { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 7px; }
.tree-selector input { font-weight: 750; }
.tree-selector button { min-height: 42px; }
.tree-edit-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-radius: 10px; background: #f0f3ea; }
.tree-edit-actions .danger { border-color: #dbc2bd; color: #8a3329; background: #fff9f7; }
.tree-edit-note { font-size: 13px; color: var(--muted); }
.number-pad button[data-pad=apply] { grid-column: 1 / -1; }
.farm-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
.farm-actions button { min-width: 0; min-height: 46px; padding-inline: 12px; }
.number-pad [data-action=next-line] { grid-column: 3; min-height: 36px; padding: 4px; font-size: 13px; background: #dceaa7; border-color: #c5d782; }
.pad-open .sheet-tools [data-action=next-line] { display: none; }
.height-tools { margin-bottom: 9px; }
@media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
  body.farm-map-view { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
  .farm-map-view .top { flex: none; gap: 5px; height: auto; min-height: 50px; padding: calc(4px + env(safe-area-inset-top)) 9px 4px; }
  .farm-map-view .top .brand { gap: 7px; min-width: 0; }
  .farm-map-view .top .brand div { min-width: 0; }
  .farm-map-view .top .brand div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .farm-map-view .top-action { flex: none; padding-inline: 5px; font-size: 12px; }
  .farm-map-view .network { flex: none; font-size: 11px; gap: 4px; }
  .farm-map-view #farm-screen { width: 100%; padding: 8px 10px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .farm-map-view .project { flex: none; margin-bottom: 8px; }
  .farm-map-view .project-title { align-items: center; gap: 8px; }
  .farm-map-view .project h1 { font-size: clamp(22px, 6.4vw, 32px); margin: 0; line-height: 1.08; }
  .farm-map-view .project .subtitle { display: none; }
  .farm-map-view .project-count { flex: none; min-width: 0; padding: 3px 0 3px 8px; }
  .farm-map-view .project-count strong { font-size: 23px; }
  .farm-map-view .project-count small { margin-top: 2px; }
  .farm-map-view .farm-actions, .farm-map-view .scope-bar { margin-top: 6px; }
  .farm-map-view .farm-actions { flex: none; }
  .farm-map-view .farm-actions button { min-height: 41px; }
  .farm-map-view .scope-button { min-height: 38px; }
  .farm-map-view #work, .farm-map-view .map-section { display: flex; flex: 1; min-height: 0; min-width: 0; }
  .farm-map-view .map-section { flex-direction: column; }
  .farm-map-view .list-section { display: none; }
  .farm-map-view .map { flex: 1; height: auto; min-height: 0; }
  .farm-map-view .gps-info { flex: none; min-height: 31px; padding: 6px 8px; border-bottom: 0; }
  .farm-map-view #app-nav { position: static; flex: none; }
}
@media (max-width: 360px) {
  .farm-map-view #farm-progress { display: none; }
  .farm-map-view .top .brand-mark { width: 29px; height: 29px; }
}
@media(max-height: 690px) {
  #sheet .sheet-head { padding-block: 8px; }
  #sheet .sheet-head h2 { font-size: 21px; }
  .number-pad { gap: 4px; padding-block: 5px; }
  .number-pad button { min-height: 40px; }
}
