/* iLOOP Farm mobile-first: real fixed farm image and full-screen swipe pages */
:root{--appbar:58px;--navh:calc(67px + env(safe-area-inset-bottom));--ink:#1d3426}
html,body{height:100%;height:100dvh;overflow:hidden;overscroll-behavior:none}
body{display:flex;flex-direction:column;background:#f5f7f1}
.topbar{flex:none;min-height:var(--appbar);height:var(--appbar);padding:7px max(12px,calc((100vw - 1100px)/2))}
.brand-icon{width:34px;height:34px;font-size:18px;border-radius:10px}
.brand b{font-size:19px;line-height:1.1}.brand small{font-size:10px}
.top-button{padding:6px 10px}
.app-deck{height:calc(100dvh - var(--appbar) - var(--navh));min-height:0;width:100%;position:relative;overflow:hidden}
.screen{height:100%;width:100%;min-height:0;display:none;flex-direction:column;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;overscroll-behavior-y:contain;background:#f6f7f1}
.screen.active{display:flex;animation:slideFade .15s ease-out}
@keyframes slideFade{from{opacity:.78}to{opacity:1}}
.mobile-nav{height:var(--navh);flex:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding-bottom:env(safe-area-inset-bottom);border-top:1px solid #dce6da;background:#fff;box-shadow:0 -3px 17px #153c2b09;position:relative;z-index:8}
.mobile-nav button{border:0;background:transparent;color:#8a998c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;font-weight:750;line-height:1.3;padding:3px 1px}
.mobile-nav button span{font-size:23px}.mobile-nav button.active{color:#1e7549;background:linear-gradient(180deg,#e8f6e7,#fff 70%)}
.mobile-nav button:focus-visible{outline-offset:-3px}
.screen-kicker{font-size:9px;color:#9fc09d;font-weight:800;letter-spacing:1px}
.screen-farm{background:#1f3428;overflow:hidden;color:#fff}
.farm-stage-head{height:42px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:7px 14px;background:#142d21}
.farm-stage-head>div{display:flex;gap:8px;align-items:center}.farm-stage-head b{font-size:16px}
.farm-top-stats{border:1px solid #62916e88;border-radius:9px;padding:5px 10px;color:#d9efdf;font-size:11px}
.farm-stage{flex:1;min-height:0;position:relative;display:flex;flex-direction:column;overflow:hidden;background:#273b2d}
.farm-stage .field-panel{height:100%;width:100%;max-width:none;flex:1;min-height:0;display:flex;flex-direction:column;border:0;border-radius:0;position:relative;background:transparent;margin:0;padding:0;overflow:hidden}
.farm-stage .map-viewport{flex:1;min-height:0;height:100%;max-height:none;margin:0;padding:0;display:flex;align-items:center;justify-content:center;overflow:hidden;overscroll-behavior:contain;border:0;border-radius:0;background:#273b2d}
.farm-stage .farm-map{flex:none;display:block;min-width:0!important;max-width:none!important;width:min(calc((100dvh - 174px) * 0.627),100%);height:auto;aspect-ratio:993/1583;line-height:0;overflow:hidden;position:relative}
.farm-stage .farm-map .farm-image{width:100%;height:100%;object-fit:fill}
.farm-stage .farm-floating-controls{position:absolute;top:7px;right:7px;left:7px;z-index:3;display:flex;justify-content:space-between;align-items:flex-start;padding:0;pointer-events:none;gap:5px}
.farm-floating-controls .control-group{background:#15291fe6;border:1px solid #ffffff26;border-radius:12px;padding:5px;gap:3px;pointer-events:auto;box-shadow:0 5px 18px #0003}
.farm-floating-controls .tool{background:#ffffff19;color:#fff;border:1px solid #ffffff20;padding:7px 8px;min-height:35px;font-size:11px}
.farm-floating-controls .tool.active{background:#76b77c;color:#122c22}.farm-floating-controls .zoom-label{color:#fff;min-width:32px;font-size:10px}
.farm-stage .map-bottom{display:none}
.farm-stage .photo-stamp{display:none}
.farm-stage .quick-plant{position:absolute;bottom:13px;left:50%;transform:translateX(-50%);white-space:nowrap;border:none;border-radius:100px;background:#2b8e59;box-shadow:0 8px 24px #10291c99;color:white;padding:12px 22px;font-size:14px;font-weight:850;z-index:5}
.farm-footnote{flex:none;background:#142d21;color:#acc5af;padding:6px 12px;line-height:1.2;font-size:9.5px;text-align:center}
.farm-stage .plot{stroke-width:1;stroke-opacity:.54}
.screen-head{flex:none;background:linear-gradient(125deg,#174c35,#2c7046);padding:21px 20px 23px;color:white}
.screen-head .screen-kicker{color:#acd9ad}.screen-head h1{font-size:26px;line-height:1.15;letter-spacing:-1px;margin:4px 0 6px}.screen-head p{font-size:12px;color:#e0efe3;margin:0}
.record-sections,.weather-sections,.guide-sections{width:min(100%,780px);margin:0 auto;display:flex;flex-direction:column;gap:12px;padding:14px 12px 28px}
.screen .panel{box-shadow:0 4px 20px #223e2811;margin:0;border-radius:15px}
.screen .editor-panel{padding:18px}
.screen .panel-head{padding:16px}
.screen .crop-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;padding:0 14px 16px}
.screen .weather-card{margin:0;border-radius:16px;padding:15px}
.screen .weather-current{width:100%}.screen .weather-daily{overflow-x:auto}
.screen .stats{order:-1;display:grid;grid-template-columns:repeat(3,1fr);margin:0;gap:8px}
.screen .stat{padding:10px 7px;box-shadow:none;border-radius:12px}.screen .stat strong{font-size:19px}
.screen .intro{padding:16px;margin:0;border-radius:15px}.screen .intro h1{font-size:21px}.screen .intro .area{display:none}
.screen footer{padding:13px 0 26px;display:block}
.screen .agenda-list{padding:0 15px 15px}
.screen .storage-info{margin:12px 14px}
.toast{bottom:calc(var(--navh) + 17px);z-index:40}
.dialog-backdrop{z-index:50}.dialog input{font-size:17px;letter-spacing:normal;text-align:left}
@media(min-width:750px){
 :root{--appbar:65px;--navh:68px}
 .topbar{padding:10px 30px}.brand b{font-size:21px}
 .farm-stage-head{padding:8px 24px;height:48px}
 .farm-stage .farm-map{width:min(calc((100dvh - 190px) * 0.627),100%)}
 .farm-stage .farm-floating-controls{left:max(25px,calc((100vw - 820px)/2));right:max(25px,calc((100vw - 820px)/2))}
 .screen-head{padding:30px max(25px,calc((100vw - 780px)/2))}
 .screen .crop-cards{grid-template-columns:repeat(3,1fr)}
 .mobile-nav{max-width:920px;width:100%;align-self:center;box-shadow:none;border-top:1px solid #dce6da}
 body{background:#f6f7f1}
}
@media(max-width:374px){.farm-floating-controls .tool{font-size:10px;padding:5px}.farm-footnote{font-size:8.5px}}
@media(prefers-reduced-motion:reduce){.screen.active{animation:none}}

/* 사진과 격자는 확대·이동 없는 단일 고정 레이어: 원본 비율 불변 */
.farm-stage .farm-map{flex:0 0 auto;max-width:100%;min-width:0;width:min(100%,calc((100dvh - 179px) * 0.62729));aspect-ratio:993/1583}
.farm-stage .map-viewport{touch-action:pan-y;overflow:hidden;padding:0;background:#283b2c}
.farm-stage .farm-map svg{touch-action:none}
.setup-notice{position:absolute;bottom:11px;left:50%;width:calc(100% - 28px);max-width:370px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;z-index:7;background:#153626f0;border:1px solid #b8cbb353;border-radius:12px;padding:12px 14px;color:#fff;box-shadow:0 10px 30px #0007}
.setup-notice strong{font-size:12px}.setup-notice p{font-size:11px;color:#d9ebdc;line-height:1.45;margin:0}

@media (min-width:750px){.farm-stage .farm-map{width:min(100%,calc((100dvh - 191px) * 0.62729))}}

/* Mobile one-time welcome login, automatic entry on remembered devices */
.farm-login{max-width:390px;text-align:left;padding:28px 23px;box-shadow:0 20px 70px #0007}
.farm-login .login-icon{display:block;font-size:40px;margin-bottom:10px}
.farm-login .eyebrow{font-size:11px;margin-bottom:4px}
.farm-login h2{font-size:26px;letter-spacing:-.7px;margin:0 0 10px}
.farm-login #pinDescription{font-size:13px;line-height:1.6;color:#5a715f;margin:0 0 17px}
.farm-login #pinInput{font-size:17px;letter-spacing:normal;text-align:left}
.farm-login #pinRetry{display:block;width:100%;margin-top:9px;background:#eef5ed;color:#2a5b3f}
.farm-login .pin-caption{display:block;font-size:11px;color:#859388;line-height:1.5;margin-top:13px}

/* 70대 사용자 중심: 작은 작물 글씨 대신 큰 아이콘·선택 상태, 넓은 터치 버튼 */
.farm-stage .crop-tile-emoji{font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif;font-size:54px;text-anchor:middle;dominant-baseline:central;pointer-events:none;user-select:none;stroke:none}
.farm-stage .crop-tile-emoji.sprouting{animation:farm-sprout .72s cubic-bezier(.2,1.2,.35,1) both;transform-box:fill-box;transform-origin:center bottom}
.farm-stage .plant-dust{fill:#d9ba81;stroke:#7c6134;stroke-width:1px;pointer-events:none;animation:farm-dust .68s ease-out both;transform-box:fill-box;transform-origin:center}
.farm-stage .plant-dust-right{animation-delay:.04s}
@keyframes farm-sprout{0%{opacity:0;transform:translateY(22px) scale(.18) rotate(-17deg)}43%{opacity:1;transform:translateY(-6px) scale(1.18) rotate(5deg)}72%{transform:translateY(2px) scale(.96) rotate(0)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes farm-dust{0%{opacity:0;transform:translateY(4px) scale(.1)}35%{opacity:.85;transform:translateY(-2px) scale(1.6)}100%{opacity:0;transform:translateY(-20px) scale(.5)}}
.selected-crop-banner{position:absolute;z-index:6;top:9px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 20px);padding:11px 17px;border:2px solid #b8eabb66;border-radius:15px;background:#153d2deF;color:white;box-shadow:0 5px 19px #0007;font-size:clamp(22px,5.4vw,27px);line-height:1.35;font-weight:900;text-align:center;white-space:normal;pointer-events:none}
.farm-stage .quick-plant{font-size:18px;min-height:54px;max-width:calc(100% - 18px);padding:13px 20px;border-radius:15px;white-space:normal;line-height:1.24}
.farm-stage-head{height:49px}.farm-stage-head b{font-size:20px}.farm-top-stats{font-size:14px;padding:6px 9px}
.farm-footnote{font-size:13px;line-height:1.45;padding:9px 12px}
.mobile-nav{--navh:calc(77px + env(safe-area-inset-bottom));height:var(--navh)}
.mobile-nav button{font-size:15px;line-height:1.25;min-height:62px;gap:3px}.mobile-nav button span{font-size:26px}
.screen-head h1{font-size:29px}.screen-head p{font-size:16px;line-height:1.5}
.screen .editor-panel{padding:20px}
.screen .editor-panel h2{font-size:25px}.screen .editor-help{font-size:16px;line-height:1.6;min-height:0}
.screen .editor-panel label{font-size:18px;margin:16px 0 7px}
.screen .editor-panel input,.screen .editor-panel select,.screen .editor-panel textarea{font-size:18px;min-height:52px;line-height:1.5;padding:12px}
.screen .editor-panel .primary-button{min-height:58px;font-size:20px;padding:14px 12px}
.screen .editor-buttons button,.screen .editor-panel .sound-toggle{font-size:16px;min-height:48px}
.screen .editor-panel .sound-toggle{width:100%;margin-top:9px}
.screen .pill{font-size:16px;padding:8px 12px}.screen .guide{font-size:15px;line-height:1.6}.screen .guide strong{font-size:17px}
.screen .agenda-info strong,.screen .agenda-tag,.screen .crop-card strong{font-size:16px}
.screen .agenda-info small,.screen .crop-card small,.screen .crop-card p,.screen .tip-item p{font-size:14px;line-height:1.5}
.screen .tip-item strong,.screen .weather-current strong{font-size:18px}
.screen .panel-head h2{font-size:22px}.screen .panel-head p{font-size:15px}
.screen .crop-card .crop-icon{font-size:34px}
.screen .weather-day strong,.screen .weather-day span{font-size:15px}
.screen .weather-day small{font-size:13px}
.screen .storage-info{font-size:15px}
@media(max-width:375px){.farm-stage .quick-plant{font-size:16px}.mobile-nav button{font-size:13px}.selected-crop-banner{font-size:22px}}
@media(prefers-reduced-motion:reduce){.farm-stage .crop-tile-emoji.sprouting,.farm-stage .plant-dust{animation:none}}

/* 2026-11-08: action-first field screen; photos and 10x20 overlay stay together. */
.farm-stage .quick-plant{display:none!important}
.farm-stage .farm-map{height:auto!important;max-height:none!important;transform-origin:50% 50%;will-change:transform;flex:none}
.farm-stage .map-viewport{touch-action:none;overflow:hidden;min-height:0;min-width:0}
.farm-stage .farm-map svg{touch-action:none}
/* No green fill for planted/harvested cells; only selected cells have translucent green overlay. */
.farm-stage .plot,.farm-stage .plot.empty,.farm-stage .plot.planted,.farm-stage .plot.harvested,.farm-stage .plot.excluded,.farm-stage .plot:hover{fill:transparent;stroke:#f3fff1;stroke-opacity:.63}
.farm-stage .plot.unavailable{stroke-opacity:.19;cursor:not-allowed}
.farm-stage .plot.selected,.farm-stage .plot.selected:hover{fill:rgba(30,195,82,.50);stroke:#eaffd6;stroke-width:3;stroke-opacity:1}
.farm-stage .crop-tile-emoji{font-size:53px}
.farm-stage .tile-day-number{fill:#fff;text-anchor:middle;dominant-baseline:central;font-family:system-ui,sans-serif;font-size:45px;font-weight:950;stroke:#173825;stroke-width:7px;stroke-linejoin:round;paint-order:stroke;pointer-events:none}
.farm-stage .water-tile-splash{font-size:29px;text-anchor:middle;pointer-events:none;animation:field-water-splash .68s ease-out both;transform-box:fill-box;transform-origin:center}
.farm-stage .harvest-sparkle{font-size:43px;text-anchor:middle;dominant-baseline:middle;pointer-events:none;animation:field-harvest-sparkle .75s ease-out both;transform-box:fill-box;transform-origin:center}
@keyframes field-water-splash{0%{opacity:0;transform:translateY(-30px) scale(.6)}40%{opacity:1}100%{opacity:0;transform:translateY(25px) scale(.9)}}
@keyframes field-harvest-sparkle{0%{opacity:0;transform:scale(.2) rotate(-12deg)}50%{opacity:1;transform:scale(1.35) rotate(6deg)}100%{opacity:0;transform:scale(1.7) rotate(0deg)}}
.selected-crop-banner{top:8px;left:8px;transform:none;max-width:calc(100% - 99px);padding:10px 12px;font-size:clamp(18px,4.8vw,25px);line-height:1.3}
.field-command-dock{position:relative;z-index:10;flex:none;width:100%;max-width:100%;background:#153b29;color:white;border-top:1px solid #39694d;box-shadow:0 -4px 20px #05180e44}
.field-mode-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:7px max(7px,calc((100vw - 820px)/2)) 6px}
.field-mode-row button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border:1px solid #547a60;background:#25543d;color:#fff;border-radius:11px;min-height:61px;padding:5px 1px;font-weight:900;font-size:24px;line-height:1.2}
.field-mode-row button span{font-size:17px;letter-spacing:-.5px}
.field-mode-row button.active{background:#e7f6d6;border-color:#c6ed96;color:#173c29;box-shadow:inset 0 0 0 2px #96c980}
.field-action-panel{padding:4px 10px 10px;display:flex;flex-direction:column;gap:7px;max-width:840px;margin:auto}
.field-action-hint{font-size:17px;font-weight:850;line-height:1.4;min-height:29px;text-align:center;color:#d8eed4}
.field-crop-strip{display:flex;gap:7px;overflow-x:auto;scroll-snap-type:x proximity;overscroll-behavior-x:contain;scrollbar-width:thin;padding:4px 2px 9px;touch-action:pan-x}
.field-crop-choice{display:flex;flex:0 0 91px;scroll-snap-align:start;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:72px;border:2px solid #477657;background:#22533a;color:#fff;border-radius:12px;padding:7px 3px}
.field-crop-choice span{font-size:28px;line-height:1.15}.field-crop-choice strong{font-size:16px;line-height:1.25;word-break:keep-all}
.field-crop-choice.active{border-color:#d0f5a7;background:#cfedbf;color:#1c492d}
.field-action-footer{display:flex;gap:8px;align-items:center;justify-content:center}
.field-action-footer button{flex:1;min-height:51px;padding:10px 8px;border-radius:11px;font-size:19px;font-weight:900;border:0}
.field-cancel{background:#f0f1ed;color:#4d6252}.field-confirm{background:#8ce085;color:#18452b}.field-confirm:disabled{opacity:.36}
.field-custom-crop input{display:block;background:#fff;border:2px solid #8ddd91;border-radius:11px;color:#1f392b;width:100%;font-size:19px;padding:10px 12px;min-height:48px}
.field-zoom-controls{position:absolute;z-index:12;top:9px;right:8px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px;border-radius:11px;background:#122d21e8;border:1px solid #a9dfb16b;box-shadow:0 5px 20px #071d1488;pointer-events:auto}
.field-zoom-controls button{border:0;border-radius:7px;background:#e5f5de;color:#1b4a30;min-width:39px;min-height:38px;font-size:25px;font-weight:900;line-height:1}
.field-zoom-controls span{font-size:12px;font-weight:850;color:#e8fbe7;white-space:nowrap}
.farm-footnote{font-size:13px;padding:7px 6px}
@media(min-width:750px){.field-mode-row{max-width:840px;margin:auto;padding:9px 10px}.field-mode-row button{min-height:67px}.field-crop-choice{flex-basis:102px}.field-command-dock{border-radius:12px 12px 0 0;max-width:850px;align-self:center}.field-zoom-controls{right:16px}}
@media(max-width:385px){.field-mode-row button span{font-size:15px}.field-action-hint{font-size:15px}.field-crop-choice{flex-basis:82px}.field-crop-choice strong{font-size:15px}.field-action-footer button{font-size:18px}}
@media(prefers-reduced-motion:reduce){.farm-stage .water-tile-splash,.farm-stage .harvest-sparkle{animation:none}}

/* Never resize the map when the selected cell count changes during a pointer gesture. */
.field-action-hint{height:29px;min-height:29px;max-height:29px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:29px}
@media(max-width:385px){.field-action-hint{height:27px;min-height:27px;max-height:27px;line-height:27px}}

/* Harvest success: crisp vector reward image, independent of OS emoji fonts. */
.farm-stage .harvest-reward-halo{fill:#ffed9f44;stroke:#ffe98c;stroke-width:5;pointer-events:none;transform-origin:center;transform-box:fill-box;animation:reward-halo 1.5s ease-out both}
.farm-stage .harvest-reward-image{pointer-events:none;transform-box:fill-box;transform-origin:center;filter:drop-shadow(0px 4px 9px #40200091);animation:reward-medal 1.65s cubic-bezier(.16,.8,.28,1) both}
.farm-stage .harvest-reward-spark{fill:#fff6af;stroke:#edb21d;stroke-width:2;pointer-events:none;transform-box:fill-box;transform-origin:center;animation:reward-spark 1.45s ease-out both}
@keyframes reward-halo{0%{opacity:0;transform:scale(.35)}25%{opacity:1;transform:scale(1.25)}75%{opacity:.75;transform:scale(2.25)}100%{opacity:0;transform:scale(2.8)}}
@keyframes reward-medal{0%{opacity:0;transform:translateY(32px) scale(.25) rotate(-14deg)}24%{opacity:1;transform:translateY(-18px) scale(1.22) rotate(6deg)}50%{opacity:1;transform:translateY(-33px) scale(1.12) rotate(-3deg)}78%{opacity:1;transform:translateY(-48px) scale(1.05) rotate(3deg)}100%{opacity:0;transform:translateY(-65px) scale(.85) rotate(0deg)}}
@keyframes reward-spark{0%{opacity:0;transform:scale(.15)}28%{opacity:1;transform:scale(1.4)}70%{opacity:1;transform:scale(.9)}100%{opacity:0;transform:scale(1.8)}}
@media(prefers-reduced-motion:reduce){.farm-stage .harvest-reward-halo,.farm-stage .harvest-reward-image,.farm-stage .harvest-reward-spark{animation-duration:.20s}}

/* Large senior-friendly crop info on idle tap, including quick X to clear selection. */
.selected-crop-banner{pointer-events:auto;display:flex;flex-direction:column;gap:7px;max-width:min(420px,calc(100% - 97px));min-width:min(240px,calc(100% - 97px));padding:13px 14px;z-index:14;text-align:left;background:#103421f5;border:2px solid #c0f1c995;font-size:18px}
.selected-crop-banner[hidden]{display:none!important}
.selected-crop-head{display:flex;align-items:center;gap:10px;justify-content:space-between}
.selected-crop-head strong{display:block;min-width:0;font-size:clamp(22px,5.9vw,30px);font-weight:900;line-height:1.3;overflow-wrap:anywhere}
.selected-crop-head button{border:0;background:#fff0ee;color:#a33327;border-radius:9px;width:42px;height:42px;min-width:42px;font-size:25px;font-weight:900;cursor:pointer;touch-action:manipulation}
.selected-crop-details{font-size:clamp(16px,3.9vw,20px);line-height:1.5;color:#f4fff2;font-weight:700;overflow-wrap:anywhere}
.selected-crop-details>div+div{margin-top:3px}
@media(max-width:380px){.selected-crop-banner{padding:10px 9px}.selected-crop-head button{width:38px;height:38px;min-width:38px}}

/* 2026-11-08: compact full-field mobile UI; all farm tools float ABOVE map instead of consuming height. */
:root{--appbar:38px;--navh:calc(65px + env(safe-area-inset-bottom))}
.topbar{height:var(--appbar);min-height:var(--appbar);padding:2px 10px;gap:5px;justify-content:space-between}
.topbar .brand{gap:0}
.topbar .brand b,.topbar .brand small{display:none!important}
.topbar .brand-icon{width:26px;height:26px;font-size:15px;border-radius:6px}
.topbar-actions{gap:8px}
.topbar .sync-badge{font-size:12px;max-width:180px;white-space:nowrap}
.topbar .top-button{padding:4px 9px;min-height:31px;font-size:12px}
.farm-stage-head,.farm-footnote{display:none!important}
.screen-farm .farm-stage{height:100%;flex:1}
.farm-stage .field-panel{height:100%;min-height:0}
.farm-stage .map-viewport{height:100%;flex:1}
.farm-stage .photo-stamp{display:none!important}
/* The vertical floating toolbox is always part of the farm, never a full-width dock. */
.farm-stage .field-command-dock{display:contents;position:static;background:transparent;border:0;box-shadow:none;padding:0;margin:0}
.farm-stage .field-mode-row{position:absolute;z-index:13;top:169px;right:8px;left:auto;bottom:auto;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(4,auto);width:48px;max-width:none;margin:0;padding:0;gap:4px;border:0;background:transparent;box-shadow:none}
.farm-stage .field-mode-row button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-height:52px;height:52px;width:48px;padding:3px 0;border:1px solid #97c5a3;border-radius:9px;background:#1b5138ee;color:#fff;font-size:21px;line-height:1.12;box-shadow:0 2px 8px #051e1980}
.farm-stage .field-mode-row button span{font-size:14px;font-weight:900;letter-spacing:-.6px;line-height:1.2}
.farm-stage .field-mode-row button.active{background:#dcf6c9;border-color:#b5e19c;color:#18422c;box-shadow:0 0 0 2px #70af74}
.farm-stage .field-zoom-controls{top:8px;right:8px;padding:3px;gap:1px;border-radius:9px;box-shadow:0 2px 12px #071d1488}
.farm-stage .field-zoom-controls button{min-height:34px;min-width:40px;font-size:23px;border-radius:6px}
.farm-stage .field-zoom-controls span{font-size:11px;line-height:18px}
/* On-action confirm and cancel: small floating buttons; no reserved row beneath the farm. */
.farm-stage .field-action-panel{position:absolute;z-index:16;bottom:9px;left:8px;right:64px;top:auto;max-width:none;width:auto;margin:0;padding:0;border:0;background:transparent;box-shadow:none;display:flex;flex-direction:column;gap:5px;pointer-events:none}
.farm-stage .field-action-panel[hidden]{display:none!important}
.farm-stage .field-action-hint{display:none!important}
.farm-stage .field-action-footer{pointer-events:auto;display:flex;justify-content:flex-start;align-items:center;gap:7px}
.farm-stage .field-action-footer button{flex:0 1 auto;min-width:94px;min-height:43px;width:auto;border-radius:9px;font-size:16px;font-weight:900;padding:8px 10px;box-shadow:0 3px 13px #05201199}
.farm-stage .field-crop-strip{pointer-events:auto;max-width:100%;width:100%;margin:0;display:flex;gap:4px;padding:5px 4px;overflow-x:auto;scrollbar-width:thin;background:#102b23d9;border:1px solid #9abd9a55;border-radius:10px}
.farm-stage .field-crop-strip[hidden]{display:none!important}
.farm-stage .field-crop-choice{flex:0 0 72px;min-height:58px;padding:4px 2px;gap:1px;border-radius:8px}
.farm-stage .field-crop-choice span{font-size:23px}
.farm-stage .field-crop-choice strong{font-size:13px}
.farm-stage .field-custom-crop{pointer-events:auto}
.farm-stage .field-custom-crop[hidden]{display:none!important}
.farm-stage .field-custom-crop input{min-height:43px;font-size:17px}
/* Keep the navigation tappable while offering more height to the photo. */
.mobile-nav{--navh:calc(65px + env(safe-area-inset-bottom));height:var(--navh)}
.mobile-nav button{min-height:56px;font-size:13px;padding:2px 0}
.mobile-nav button span{font-size:23px}
@media(min-width:750px){
 .topbar{height:var(--appbar);min-height:var(--appbar)}
 .farm-stage .field-mode-row{right:15px;top:169px;width:48px;padding:0;max-width:none}
 .farm-stage .field-zoom-controls{right:15px}
 .farm-stage .field-action-panel{left:16px;right:78px;max-width:none}
}
@media(max-height:630px){
 .farm-stage .field-mode-row{top:148px;gap:2px}
 .farm-stage .field-mode-row button{min-height:44px;height:44px}
 .farm-stage .field-zoom-controls button{min-height:29px}
 .farm-stage .field-action-footer button{min-height:39px}
}

/* Center action confirm/cancel above farm photo. */
.farm-stage .field-action-panel{left:8px;right:8px}
.farm-stage .field-action-footer{justify-content:center;gap:8px}
.farm-stage .field-action-footer button{min-width:102px}
.farm-stage .field-crop-strip{max-width:calc(100% - 55px)}
/* Management tab replaces the legacy duplicated editor, action/sound buttons. */
.screen-record .editor-panel{display:none!important}
.screen-record .crop-manager-panel{display:block;padding:17px 15px;max-width:780px}
.crop-manager-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:14px}
.crop-manager-heading h2{font-size:24px;margin:0 0 4px;color:#1b5839}
.crop-manager-heading p{font-size:15px;color:#687f6e;margin:0;line-height:1.5}
.crop-manager-heading button{flex:none;min-height:45px;border:0;border-radius:10px;padding:10px 12px;background:#26764d;color:#fff;font-size:16px;font-weight:900}
.catalog-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.catalog-crop-card{display:flex;align-items:center;gap:9px;min-width:0;border:1px solid #dce9dd;background:#fafff9;border-radius:11px;padding:9px 7px;min-height:68px;text-align:left;color:#214932}
.catalog-crop-card:focus-visible{outline:3px solid #84c88c}
.catalog-crop-card .crop-thumb{display:grid;place-items:center;width:45px;min-width:45px;height:45px;border-radius:9px;background:#e8f4e3;font-size:28px}
.catalog-crop-card .crop-asset-icon{display:block;width:43px;height:43px;object-fit:contain}
.catalog-crop-card strong{display:block;font-size:16px;line-height:1.3;word-break:keep-all}
.catalog-crop-card small{display:block;color:#719078;font-size:12px;line-height:1.5}
.catalog-crop-card .tag-edited{color:#226f47;font-weight:850}
.catalog-form{margin-top:15px;padding:18px 13px;background:#f0f8ef;border:1px solid #bfdcc3;border-radius:14px;display:flex;flex-direction:column;gap:5px}
.catalog-form[hidden]{display:none!important}
.catalog-form-head{display:flex;align-items:center;justify-content:space-between}
.catalog-form-head h3{margin:0;font-size:23px;color:#255638}
.catalog-form-head button{border:0;background:#fff;color:#a3473e;border-radius:10px;font-size:23px;font-weight:900;width:43px;height:43px}
.catalog-form label{font-size:17px;font-weight:900;color:#214a34;margin:10px 0 2px}
.catalog-form input,.catalog-form select{width:100%;min-height:51px;border:2px solid #bbd7bd;border-radius:11px;padding:10px;color:#183a28;font-size:19px;background:white}
.catalog-days{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.catalog-days small{color:#6c8371;font-size:13px}
.catalog-date-example{background:#e0f2d9;border-radius:10px;font-size:16px;font-weight:850;color:#266641;padding:12px;line-height:1.5;margin:8px 0}
.catalog-icon-palette{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;max-height:215px;overflow-y:auto;padding:6px;background:#fff;border:1px solid #d5e5d5;border-radius:10px}
.catalog-icon-palette button{display:grid;place-items:center;border:2px solid transparent;background:#eff6ed;border-radius:9px;min-width:0;aspect-ratio:1;font-size:24px}
.catalog-icon-palette button.active{border-color:#338856;background:#d5efcb}
.catalog-save{border:0;min-height:55px;border-radius:11px;background:#30864f;color:#fff;font-size:19px;font-weight:900;margin-top:14px}
.field-crop-choice .crop-asset-icon{display:block;width:39px;height:39px;object-fit:contain}
.farm-stage .crop-svg-icon{pointer-events:none;user-select:none}
.farm-stage .crop-svg-icon.sprouting{animation:farm-sprout .72s cubic-bezier(.2,1.2,.35,1) both;transform-origin:center bottom;transform-box:fill-box}
.screen .crop-asset-icon{width:36px;height:36px;object-fit:contain;vertical-align:middle}
@media(min-width:700px){.catalog-list{grid-template-columns:repeat(3,1fr)}.catalog-icon-palette{grid-template-columns:repeat(10,minmax(0,1fr))}}
/* Strong green target boundary for active actions; inactive/harvested ground is dimmed. */
.farm-stage .plot.action-target,.farm-stage .plot.action-target:hover{
 fill:transparent;stroke:#27e76f;stroke-width:3.4px;stroke-opacity:1;vector-effect:non-scaling-stroke;
 filter:drop-shadow(0px 0px 2px rgba(10,57,16,.9));
}
.farm-stage .plot.unavailable,.farm-stage .plot.unavailable:hover{stroke:#dee6d9;stroke-opacity:.15;fill:transparent;cursor:not-allowed;filter:none}
.farm-stage .plot.selected,.farm-stage .plot.action-target.selected,.farm-stage .plot.selected:hover{
 stroke:#c0ff6c;stroke-width:4px;stroke-opacity:1;fill:rgba(28,201,89,.52);
 filter:drop-shadow(0px 0px 3px rgba(42,91,15,.93));
}
/* Farm vertical action buttons 10% larger than previous 48x52. */
.farm-stage .field-mode-row{width:53px;right:8px;gap:4px}
.farm-stage .field-mode-row button{width:53px;height:58px;min-height:58px;font-size:23px}
.farm-stage .field-mode-row button span{font-size:15.5px}
@media(min-width:750px){.farm-stage .field-mode-row{width:53px;right:15px}}
@media(max-height:630px){.farm-stage .field-mode-row{width:49px}.farm-stage .field-mode-row button{width:49px;height:49px;min-height:49px}}
/* Icon list of built-in vector artwork (only unused icons shown). */
.catalog-icon-palette .crop-asset-icon{width:36px;height:37px;object-fit:contain}
/* Decorative wandering animals never intercept map taps or zoom gestures. */
.farm-stage .farm-map .animal-layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none!important;z-index:3;overflow:hidden;touch-action:none;user-select:none}
.farm-stage .farm-map .animal-layer *{pointer-events:none!important}
.farm-stage .animal-layer .wildlife{filter:drop-shadow(0px 2px 3px rgba(30,30,15,.36))}
@media(prefers-reduced-motion:reduce){.animal-layer .wildlife{animation:none!important}}
/* Harvest agenda uses the exact same SVG icons as planting and field tiles. */
.agenda-emoji .crop-asset-icon{width:36px;height:36px;object-fit:contain}
.crop-card .crop-learn-more{display:block;margin-top:10px;color:#1d7843;font-weight:900;font-size:14px}
.guide-sections.info-open>:not(#cropInfoDetail){display:none!important}
.crop-info-detail{padding:18px 15px 23px;background:#fff;border:1px solid #dbe5d8}
.crop-info-detail[hidden]{display:none!important}
.crop-info-toolbar{display:flex;justify-content:space-between;gap:9px;align-items:center;color:#7b967e;font-size:12px;margin-bottom:18px}
.crop-info-toolbar button{border:1px solid #acdab0;background:#e5f5dc;color:#1e693b;font-size:17px;font-weight:900;min-height:44px;padding:8px 12px;border-radius:10px}
.crop-info-title{display:flex;align-items:center;gap:15px;margin-bottom:17px}
.crop-info-title .crop-info-photo{width:78px;height:78px;display:grid;place-items:center;border-radius:17px;background:#e8f6e0;font-size:46px;flex:none}
.crop-info-title .crop-asset-icon{width:68px;height:68px;object-fit:contain}
.crop-info-title h2{font-size:30px;line-height:1.15;word-break:keep-all;margin:0 0 6px;color:#225b38}
.crop-info-title p{font-size:15px;font-weight:800;color:#607963;margin:0}
.crop-info-facts{display:grid;grid-template-columns:1fr;gap:8px;margin-bottom:16px}
.crop-info-facts>div{display:flex;justify-content:space-between;gap:12px;padding:11px;background:#f1f8ed;border-radius:10px;font-size:16px}
.crop-info-facts strong{color:#507454;flex:none}
.crop-info-facts span{font-weight:900;color:#245936;text-align:right;overflow-wrap:anywhere}
.crop-info-detail section{margin-bottom:15px;padding:14px;border:1px solid #d8e9d8;border-radius:12px}
.crop-info-detail section h3{font-size:20px;color:#2a6a3c;margin:0 0 8px}
.crop-info-detail section p{font-size:17px;line-height:1.55;margin:0}
.crop-info-note{font-size:14px;background:#fff8e8;border-radius:9px;padding:11px;color:#816d3e;line-height:1.55}
.crop-info-source{display:flex;flex-direction:column;gap:8px;margin-top:17px}
.crop-info-source a{background:#246f45;color:#fff;text-decoration:none;font-size:17px;font-weight:850;border-radius:12px;padding:14px 12px;text-align:center}
.crop-info-source a+a{background:#e2f4dc;color:#245d38;border:1px solid #b3d8ae}
/* 100+ crops remain usable without a long horizontal swipe. Search is on the
   photo and visible only during planting, without changing the viewport size. */
.field-crop-search{display:block;pointer-events:auto;width:calc(100% - 55px);border:2px solid #8ace9a;border-radius:10px;background:#f9fff4;color:#184f36;min-height:42px;height:42px;font-size:19px;font-weight:800;padding:8px 12px;box-shadow:0 2px 9px #0006}
.field-crop-search[hidden]{display:none!important}
.field-crop-empty{padding:14px;color:white;font-size:18px;font-weight:800}
.catalog-search-label{display:block;font-size:17px;font-weight:900;color:#26583d;margin:5px 0}
.catalog-search{width:100%;min-height:49px;border:2px solid #a9d2ae;background:#fff;color:#15472b;font-size:19px;border-radius:11px;padding:10px 12px;margin-bottom:14px}
/* Preserve backup/restore from header menu while removing weather-tab clutter. */
.backup-menu{position:fixed;right:8px;top:calc(var(--appbar) + 4px);z-index:49;width:min(300px,calc(100vw - 16px));background:#fff;border:2px solid #b2d8b5;box-shadow:0 7px 35px #142a1e77;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:8px}
.backup-menu[hidden]{display:none!important}
.backup-menu strong{font-size:19px;color:#1a5638;margin:5px}
.backup-menu button{min-height:48px;border:1px solid #c8ddcb;border-radius:10px;background:#edf7e9;font-size:18px;font-weight:800;color:#215c3e}
.backup-menu #backupClose{background:#f7f6f2;color:#575f56}
/* Photo-first status; compact high-contrast ticker appears over the map, no vertical space used. */
.farm-stage .farm-ticker{position:absolute;z-index:12;top:4px;left:7px;right:66px;min-height:42px;border:2px solid #cae6b4;border-radius:11px;background:#123c2ff1;color:#fff;padding:8px 10px;box-shadow:0 3px 14px #0006;overflow:hidden;pointer-events:none}
.farm-stage .farm-ticker span{font-size:clamp(18px,4.35vw,22px);line-height:1.24;font-weight:900;display:block;width:max-content;white-space:nowrap;animation:tickerSlide 16s linear both}
@keyframes tickerSlide{0%,15%{transform:translateX(0)}85%,100%{transform:translateX(calc(-1 * var(--ticker-travel,0px)))}}
.farm-stage .farm-ticker[hidden]{display:none!important}
.farm-stage #fieldCommandDock .action-icon{display:block;width:29px;height:29px;object-fit:contain}
.sound-quick{width:35px;height:34px;border:1px solid #b6d9c5;border-radius:8px;background:#174d35;color:white;font-size:20px;display:grid;place-items:center;padding:0;cursor:pointer}
.farm-stage .crop-due-badge{stroke:#f2fcf0;stroke-width:2;pointer-events:none;filter:drop-shadow(0 2px 3px #0b3216b8)}
.farm-stage .crop-due-badge.water.soon{fill:#1a77af}.farm-stage .crop-due-badge.water.today{fill:#e7a32d}.farm-stage .crop-due-badge.water.danger{fill:#cb252f}
.farm-stage .crop-due-badge.harvest.soon{fill:#397b35}.farm-stage .crop-due-badge.harvest.ready{fill:#dc9122}
.farm-stage .crop-due-symbol{font-size:16px;text-anchor:middle;pointer-events:none}
.farm-stage .crop-due-number{font-size:21px;font-weight:900;text-anchor:middle;fill:#fff;paint-order:stroke;stroke:#193721;stroke-width:2.3px;pointer-events:none}
.farm-stage .crop-unknown-water{font-size:19px;text-anchor:middle;fill:#fff;stroke:#2672ab;stroke-width:2px;paint-order:stroke;pointer-events:none}
.farm-stage .farm-map .rain-layer{position:absolute;inset:0;width:100%;height:100%;z-index:5;pointer-events:none!important;overflow:hidden}
.farm-stage .farm-map .rain-layer[hidden]{display:none!important}
.farm-stage .rain-line{stroke:#c5e9fe;stroke-width:2.1;stroke-linecap:round;opacity:.62;animation:fallRain .9s linear infinite}
@keyframes fallRain{0%{opacity:0;transform:translate(-10px,-30px)}35%{opacity:.7}100%{opacity:0;transform:translate(17px,62px)}}
@media(prefers-reduced-motion:reduce){.farm-stage .rain-line,.farm-stage .farm-ticker span{animation:none!important}}
.farm-stage .water-select-all{align-self:center;pointer-events:auto;border:2px solid #b5d9ed;border-radius:11px;background:#e2f5ff;color:#145b7f;font-size:17px;font-weight:900;padding:9px 14px;min-height:42px;box-shadow:0 3px 10px #0007}
.farm-stage .water-select-all[hidden]{display:none!important}
