/* AgroAgent original visual system. Decorative lines are NOT parcel boundaries. */
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400 700;font-display:swap;src:url("assets/golos-cyrillic.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400 700;font-display:swap;src:url("assets/golos-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{--bg:#f4f3ec;--card:#fffefa;--text:#203a2f;--muted:#617164;--accent:#204d38;--accent-dark:#153828;--accent2:#e7ede1;--line:#dfe4d9;--warn:#faf0d9;--danger:#954a36;--wheat:#c6a363}
body{font-family:"Golos Text",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.5}
h1,h2,h3{letter-spacing:-.035em;line-height:1.2}
h2{font-size:28px}h3{font-size:20px}
.app-shell{max-width:1600px}
.topbar{padding:0 2px;margin-bottom:24px}
.topbar h1{display:flex;align-items:center;gap:12px;font-size:27px;font-weight:650;letter-spacing:-.055em}
.brand-mark{width:40px;height:40px;fill:none;stroke:var(--accent);stroke-width:1.6;stroke-linejoin:round}
.eyebrow{font-size:11px;letter-spacing:.09em;text-transform:uppercase}
.status-dot{width:8px;height:8px;background:#46765a;box-shadow:0 0 0 5px #e3eadf}
.card{border-radius:16px;box-shadow:0 3px 18px #203a2f05}
.hero{min-height:244px;gap:32px;padding:32px 36px;color:#fffefa;position:relative;isolation:isolate;background:linear-gradient(90deg,#163f31f5 0%,#163f31cc 55%,#163f31cc 100%),url("assets/pilot-wheat.jpg") center 62%/cover no-repeat;overflow:hidden}
.hero .small{color:#e2dfc2;font-size:11px;letter-spacing:.1em}
.hero-title{font-size:clamp(30px,3.2vw,44px);font-weight:600;margin:12px 0}
.hero-description{color:#f1eddc;font-size:15px;line-height:1.6;margin:0}
.hero-weather{width:32%;min-width:230px;border-left:1px solid #ffffff45;padding-left:28px}
.hero .hint{color:#e0e6d5;font-size:12px;font-weight:400;line-height:1.5}
.hero .weather-line{display:block;margin:8px 0}
.hero .temp{display:block;font-size:38px;font-weight:600;font-variant-numeric:tabular-nums}
.hero .weather-line span:not(.temp){font-size:13px}
.season-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:22px 0;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:8px 0}
.season-metrics article{padding:16px 24px;min-width:0;border-right:1px solid var(--line)}
.season-metrics article:last-child{border:0}
.season-metrics span,.season-metrics small{display:block;color:var(--muted);font-size:12px}
.season-metrics strong{display:block;font-size:clamp(21px,2vw,30px);font-weight:600;letter-spacing:-.035em;margin:8px 0;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:break-word}
.season-metrics small{font-size:11px;line-height:1.4}
.decision-chain{display:flex;justify-content:space-between;list-style:none;margin:0 0 22px;padding:0;gap:12px}
.decision-chain li{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:7px}
.decision-chain li:not(:last-child)::after{content:"→";color:#a2ae9f;margin-left:12px}
.decision-chain span{color:var(--accent);font-variant-numeric:tabular-nums;font-size:10px;background:#e9eddf;border-radius:50%;padding:5px 7px}
.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.dashboard-card{padding:24px;display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.dashboard-heading h3{margin:7px 0 12px;font-weight:600}
.section-eyebrow{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.1em}
.attention-card{border-top:3px solid var(--wheat)}
.dashboard-empty{font-size:13px;line-height:1.65;color:var(--muted);margin:0 0 16px}
.dashboard-card .text-link{border:0;background:none;color:var(--accent);padding:5px 0;font-size:13px;font-weight:600;text-align:left;margin-top:auto;display:flex;gap:12px;align-items:center;min-height:44px}
.pulse-financial{font-size:30px;line-height:1.4;font-weight:600;font-variant-numeric:tabular-nums}
.pulse-work{border-bottom:1px solid var(--line);padding:8px 0;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;font-size:13px}
.pulse-work-status{font-size:11px;padding:4px 8px;border-radius:6px;background:var(--accent2)}
.grid{gap:16px}
.module{position:relative;min-height:128px;background:var(--card);padding:22px;gap:8px;border-radius:14px;transition:border-color .15s,box-shadow .15s}
.module:hover{border-color:#9ab29a;box-shadow:0 4px 18px #204d380c}
.module strong{font-weight:600;font-size:17px}
.module .icon svg,.bottom-nav svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.module .icon{display:block;width:28px;height:28px;color:var(--accent)}
.module-map{background:linear-gradient(145deg,#edf0e4,#fafbf4)}
.panel-card,.map-card,.ai-card,.economics-panel{padding:28px}
.app-shell .field-group-header{background:#f1f3e9;border-color:var(--line);padding:18px}
.app-shell .parcel-card-row{background:var(--card);border-color:var(--line);padding:16px;border-radius:12px}
.app-shell #worksPanel .work-card,.app-shell #observationsPanel .observation-card{background:var(--card);border-color:var(--line);border-radius:14px;box-shadow:none}
.app-shell #worksPanel .works-summary,.app-shell #observationsPanel .observation-form{background:#f1f3e9;border-color:var(--line)}
.app-shell #worksPanel .works-add-button,.app-shell #observationsPanel .observations-add-button{background:var(--accent);border-radius:10px}
.app-shell #observationsPanel .observations-add-button{color:#fff;border-color:var(--accent)}
.econ-kpi,.econ-scenario,.econ-market-card{background:#f2f4e9;border-color:var(--line);border-radius:12px}
.econ-kpi strong{font-size:26px;font-weight:600;line-height:1.35}
.econ-kpi span{color:var(--muted);font-size:12px}
.econ-completeness{background:#faf6e9;border-left-color:var(--wheat)}
.econ-responsive-table th{background:#f0f2e7;letter-spacing:.02em}
.chip{background:var(--accent2);color:var(--accent);font-size:11px;font-weight:600}
.chat{background:#f6f7ef;border-color:var(--line)}
.bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr));background:#fffefaed}
.bottom-nav button{gap:5px;color:var(--muted)}
.bottom-nav button.active{color:var(--accent)}
.bottom-nav button span{font-size:10px}
.pilot-dev-settings{margin-top:32px;font-size:12px;color:var(--muted)}
@media(min-width:1000px){
 .app-shell{padding:32px 32px 48px 248px}
 .bottom-nav{top:28px;bottom:auto;left:max(24px,calc((100vw - 1600px)/2 + 24px));transform:none;width:192px;display:flex;flex-direction:column;padding:18px 12px;border:1px solid var(--line);border-radius:16px;gap:6px;background:var(--card)}
 .bottom-nav::before{content:"РАБОЧЕЕ ПРОСТРАНСТВО";font-size:9px;color:var(--muted);letter-spacing:.07em;padding:8px 10px 16px}
 .bottom-nav button{flex-direction:row;justify-content:flex-start;text-align:left;padding:12px;gap:12px;border-radius:10px}
 .bottom-nav button.active{background:var(--accent);color:#fffefa}
 .bottom-nav button span{font-size:13px}
 .app-shell>section{scroll-margin-top:24px}
 .grid{grid-template-columns:repeat(5,minmax(0,1fr));margin:24px 0}
 .module{padding:18px;min-height:154px}
 .module strong{font-size:15px}.module span:last-child{font-size:11px}
 .economics-panel{padding:28px}.econ-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:999px){.app-shell{padding-top:24px}.hero{padding:28px}.decision-chain li:not(:last-child)::after{display:none}.decision-chain{flex-wrap:wrap}.season-metrics article{padding:16px}.dashboard-card{padding:20px}}
@media(max-width:600px){
 .app-shell{padding:20px 14px 108px}.topbar{margin-bottom:20px}.topbar h1{font-size:25px}
 .hero{min-height:0;padding:24px;display:block;background-position:60% center}.hero-title{font-size:32px}
 .hero-weather{width:100%;min-width:0;border-left:0;border-top:1px solid #ffffff45;padding:16px 0 0;margin-top:20px}
 .hero .weather-line{display:flex;align-items:center;gap:12px}.hero .temp{font-size:30px}
 .hero .weather-line span:not(.temp){flex:1;min-width:0}
 .season-metrics{grid-template-columns:repeat(2,minmax(0,1fr));padding:0;margin:16px 0}
 .season-metrics article{padding:16px}.season-metrics article:nth-child(2){border-right:0}.season-metrics article:nth-child(-n+2){border-bottom:1px solid var(--line)}
 .season-metrics strong{font-size:24px}.decision-chain{gap:8px 12px;margin-bottom:16px}.decision-chain li{font-size:11px}
 .dashboard-grid{grid-template-columns:minmax(0,1fr);gap:12px}.dashboard-card{padding:20px}
 .grid{gap:12px}.module-map{grid-column:auto}.module{min-height:144px;padding:18px}
 .panel-card,.map-card,.ai-card,.economics-panel{padding:18px}h2{font-size:25px}
 .econ-kpi strong{font-size:26px}.bottom-nav{padding:8px 6px env(safe-area-inset-bottom,8px);max-width:100%}
}
@media(prefers-reduced-motion:reduce){.module{transition:none}}

/* Working UI aligned to the owner's presentation; no illustrative business data. */
.workspace-inactive{display:none!important}
:root{--bg:#f7f9f8;--card:#fff;--text:#16251e;--muted:#596b60;--accent:#167038;--accent-dark:#0d5429;--accent2:#edf6ee;--line:#e2e8e3;--sidebar:#04261b}
h2{font-size:30px}.card{border-radius:12px;box-shadow:none}
button,input,select,textarea{max-width:100%}button{min-height:44px}
input,select,textarea{background:#fff;border-radius:8px}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #c5a55c;outline-offset:3px}
.topbar{position:sticky;top:0;z-index:600;background:var(--bg);padding:12px 0 18px;margin-bottom:16px;gap:16px}
.topbar h1{font-size:32px;letter-spacing:-.04em}.workspace-actions{display:flex;gap:10px;flex-shrink:0}
.workspace-actions svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.workspace-actions button{display:grid;place-items:center;width:44px;padding:8px;background:#fff;color:var(--accent);border:1px solid var(--line)}
.sidebar-brand{display:none}.bottom-nav button svg{flex-shrink:0}
#mobileMenuToggle{display:none}.sidebar-collapse{margin-top:auto}
.presentation-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.analytics-panel{padding:28px;margin:24px 0}.analytics-crops{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}
.weather-panel{padding:28px;margin:24px 0}.weather-overview{display:grid;grid-template-columns:1fr 2fr;gap:32px;padding:28px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:24px}
#weatherTemperature{font-size:64px;line-height:1.2;letter-spacing:-.05em;font-weight:500}.weather-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:center}
.weather-facts span{display:block;color:var(--muted);font-size:13px}.weather-facts strong{display:block;font-size:23px;margin-top:10px;font-weight:500;overflow-wrap:anywhere}
.analytics-crop{padding:20px;border:1px solid var(--line);border-radius:10px;min-width:0}
.analytics-crop strong{display:block;font-size:26px;color:var(--accent);margin:8px 0}
.analytics-crop h3{font-size:18px;margin:0;overflow-wrap:anywhere}.analytics-crop small{color:var(--muted)}
.analytics-bar{height:7px;margin:16px 0 8px;border-radius:5px;background:#edf2ee;overflow:hidden}.analytics-bar span{display:block;height:100%;background:var(--accent);border-radius:5px}
.season-metrics{gap:16px;border:0;background:none;padding:0}.season-metrics article{border:1px solid var(--line)!important;border-radius:12px;background:#fff;padding:22px}
.season-metrics strong{color:var(--accent)}.attention-card{border-top:3px solid #c6a363}
.app-shell .field-group-header{background:#fff;border-color:var(--line);border-radius:10px}
.app-shell #worksPanel .works-toolbar{align-items:center;gap:12px}
.app-shell #worksPanel,.app-shell #observationsPanel{padding:28px}
.app-shell #worksPanel .works-filter-button{background:#fff;color:var(--muted);border-radius:6px;border-color:var(--line)}
.app-shell #worksPanel .works-filter-button.active{background:var(--accent2);color:var(--accent);border-color:#b8d4be}
.app-shell #worksPanel .works-summary{background:#fff;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:14px 0}
.works-search{min-width:160px;flex:1;padding:10px 14px;border:1px solid var(--line);border-radius:8px}
.app-shell #worksPanel .work-card{border-radius:0;border-width:0 0 1px;margin:0;padding:20px 0;background:#fff}
.app-shell #worksPanel .work-card-head{display:grid;grid-template-columns:minmax(160px,1fr) minmax(180px,2fr) auto;gap:24px;align-items:center}
.work-field{font-size:14px;overflow-wrap:anywhere}.work-field small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.app-shell #worksPanel .work-title{font-size:16px}.app-shell #worksPanel .work-status{border-radius:6px;white-space:normal;font-size:12px}
.work-detail{margin-top:14px}.work-detail summary{font-size:13px;color:var(--muted);cursor:pointer;min-height:30px}
.app-shell #worksPanel .work-meta{grid-template-columns:repeat(3,minmax(0,1fr));background:#f8faf8;border-radius:8px;padding:14px;gap:10px}
.app-shell #worksPanel .work-actions{margin-top:12px;gap:8px}.app-shell #worksPanel .work-actions button{font-size:13px;min-height:36px;border-radius:7px}
.app-shell #observationsPanel .observation-card{padding:22px;margin-top:16px}
.app-shell #observationsPanel .observation-photo-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px}
.app-shell #observationsPanel .observation-photo-item img{width:100%;height:190px;max-height:none;object-fit:cover;border-radius:10px}
.app-shell #observationsPanel .observation-conversation-message{border-radius:12px;background:#fff}
.app-shell #observationsPanel .observation-conversation-message.user{background:#edf8ee;border-color:#d4ead7}
.app-shell #observationsPanel .observation-ai-section-title,.app-shell #observationsPanel .observation-conversation-ai-section-title{font-size:16px;color:var(--text)}
.app-shell #mapPanel .farm-map{height:clamp(420px,62vh,760px);border-radius:12px;border-color:var(--line)}
.app-shell .map-parcel-card{background:#fff;border-color:var(--line);border-left:3px solid var(--accent)}
.app-shell #mapParcelWeather .map-weather-temp,.app-shell #mapGroupWeather .map-weather-temp{font-size:46px;letter-spacing:-.04em;color:var(--text)}
.app-shell .map-weather-grid{gap:16px}.app-shell .map-weather-metric{background:#fff;border:1px solid var(--line);padding:16px;border-radius:8px}
.app-shell .map-weather-value{font-size:22px;font-weight:600}.app-shell .map-weather-label{color:var(--muted)}
.econ-kpi,.econ-scenario,.econ-market-card{background:#fff;border:1px solid var(--line)}
.econ-kpi strong{color:var(--accent);font-size:28px}.econ-kpis{gap:14px}.econ-responsive-table th{background:#fafcfb;font-weight:500;color:var(--muted)}
.econ-responsive-table td{border-color:var(--line)}.econ-form-grid{align-items:end}
.notifications-card{padding:22px}.notifications-toggle{font-size:22px;font-weight:600}
.notification-filter{display:flex;align-items:center;gap:12px;margin:12px 0;font-size:13px;color:var(--muted)}.notification-filter select{padding:8px 12px;border:1px solid var(--line);min-height:44px}
.notifications-list .notification-item{border:0;border-bottom:1px solid var(--line);border-radius:0;background:#fff;padding:18px 0}
.ai-card .chat{background:#fff;min-height:300px}.ai-card .msg{border:1px solid var(--line);border-radius:12px;line-height:1.65;padding:18px;max-width:90%}
.ai-card .msg.user{background:#edf8ee;border-color:#d4ead7}.ai-card .chat-form{padding-top:12px}.ai-card .chat-form input{min-height:52px}
@media(min-width:1000px){
 .app-shell{max-width:none;padding:20px 36px 48px 300px}
 .bottom-nav{position:fixed;top:0;bottom:0;left:0;width:264px;border:0;border-radius:0;background:var(--sidebar);padding:28px 16px;gap:6px;overflow-y:auto;z-index:800}
 .bottom-nav::before{display:none}.sidebar-brand{display:flex;align-items:center;gap:12px;padding:0 10px 32px;color:#fff}
 .sidebar-brand .brand-mark{stroke:#79c48b;width:42px;height:42px;flex-shrink:0}.sidebar-brand strong{font-size:23px;font-weight:600;letter-spacing:-.03em}.sidebar-brand small{display:block;font-size:12px;color:#a8c5b1}
 .bottom-nav button{color:#d9e9df;padding:12px;gap:14px;min-height:48px;background:transparent;border:0}
 .bottom-nav button svg{color:#86c999}.bottom-nav button span{font-size:14px}.bottom-nav button.active{background:#155337;color:#fff}
 .bottom-nav button:hover{background:#103f2c}.sidebar-collapse{padding-top:16px!important;border-top:1px solid #27513e!important;border-radius:0!important}
 .sidebar-collapsed .bottom-nav{width:84px;padding:28px 10px}.sidebar-collapsed .sidebar-brand{padding:0 11px 28px}.sidebar-collapsed .bottom-nav button{justify-content:center;padding:12px}
 .sidebar-collapsed .bottom-nav button span,.sidebar-collapsed .sidebar-brand div{display:none}.sidebar-collapsed .app-shell{padding-left:120px}
 .sidebar-collapsed #sidebarCollapse svg{transform:rotate(180deg)}
 .app-shell>section{scroll-margin-top:104px}.econ-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:999px){
 #mobileMenuToggle{display:grid}.sidebar-collapse{display:none!important}
 .mobile-menu-open::before{content:"";position:fixed;inset:0;background:#07170f80;z-index:799}
 .mobile-menu-open .bottom-nav{top:0;bottom:0;left:0;transform:none;width:min(300px,85vw);max-width:none;display:flex;flex-direction:column;gap:6px;padding:24px 16px;background:var(--sidebar);overflow-y:auto;z-index:800;border:0;border-radius:0}
 .mobile-menu-open .sidebar-brand{display:flex;align-items:center;gap:12px;color:#fff;margin:0 0 24px}.mobile-menu-open .brand-mark{stroke:#86c999}
 .mobile-menu-open .sidebar-brand small{display:block;color:#a8c5b1;font-size:12px}.mobile-menu-open .desktop-only:not(.sidebar-collapse){display:flex!important}
 .mobile-menu-open .bottom-nav button{flex-direction:row;justify-content:flex-start;color:#d9e9df;gap:14px;padding:12px;min-height:48px}.mobile-menu-open .bottom-nav button span{font-size:14px}
 .mobile-menu-open .bottom-nav button.active{background:#155337;color:#fff}.app-shell>section{scroll-margin-top:104px}
 .app-shell #worksPanel .work-card-head{gap:12px;grid-template-columns:1fr 2fr auto}.app-shell #worksPanel .work-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 .topbar h1{font-size:25px}.topbar .eyebrow{font-size:9px;letter-spacing:.04em}.topbar{gap:8px}.workspace-actions{gap:6px}
 .analytics-panel,.weather-panel{padding:18px}.analytics-crops{grid-template-columns:1fr}.season-metrics{gap:12px}.season-metrics article{padding:16px}
 .weather-overview{grid-template-columns:1fr;gap:16px}.weather-facts{gap:12px}.weather-facts strong{font-size:18px}#weatherTemperature{font-size:52px}
 .presentation-heading{align-items:flex-start}.presentation-heading h2{font-size:25px}
 .app-shell #worksPanel .work-card-head{grid-template-columns:1fr auto;gap:12px}.work-field{grid-column:1/-1}.app-shell #worksPanel .work-meta{grid-template-columns:1fr}
 .app-shell #observationsPanel .observation-photo-list{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell #observationsPanel .observation-photo-item img{height:140px}
 .app-shell #mapParcelWeather .map-weather-temp,.app-shell #mapGroupWeather .map-weather-temp{font-size:38px}.ai-card .msg{max-width:100%;padding:14px}.notifications-card{padding:18px}
 .app-shell #worksPanel .work-actions button{min-height:44px}
 .app-shell #worksPanel,.app-shell #observationsPanel{padding:18px}
}
.observation-ai-source {
  color: #365846;
  background: #f0f5f1;
  border: 1px solid #d4e1d8;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.observation-ai-details { margin: 12px 0; border-top: 1px solid #d4e1d8; padding-top: 10px; }
.observation-ai-details > summary { cursor: pointer; font-weight: 600; color: #234e37; padding: 10px 0; }
.observation-ai-details > summary:focus-visible { outline: 3px solid #418553; outline-offset: 2px; }
.observation-ai-analysis, .observation-ai-analysis * { min-width: 0; overflow-wrap: anywhere; }

/* Existing presentation theme, compact manual-review layout. */
.app-shell > .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 18px; }
.app-shell > .grid .module { min-height: 130px; border-color: #c5d7cc; background: #edf5ef; }
.app-shell > .grid .module strong { font-size: 19px; color: #183f2e; }
.app-shell > .grid .module:hover { background: #dfece3; border-color: #598b69; }
.app-shell > .grid .module:active { transform: translateY(1px); background: #d1e4d6; }
.app-shell > .grid .module:focus-visible { outline: 3px solid #418553; outline-offset: 3px; }
.parcel-compact-header { font-size: 15px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.parcel-card-head { flex-direction: column; align-items: stretch; gap: 10px; }
.parcel-row-actions button[aria-expanded="true"] { background: #183f2e; color: white; }
.parcel-management-season { margin: 12px 0; }
.parcel-management-season summary { cursor: pointer; padding: 10px 0; }
.parcel-card-row #observationsPanel { margin: 14px 0 0; width: 100%; box-sizing: border-box; }
.app-shell[data-workspace="fields"] #observationsPanel[data-inline="true"] { display: block; }
.app-shell[data-workspace="fields"] #observationsPanel[data-inline="true"][hidden] { display: none; }
.parcel-card-row, .parcel-satellite-panel { min-width: 0; }
.parcel-satellite-panel { max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
.satellite-history-table { table-layout: fixed; }
.satellite-history-table th, .satellite-history-table td { white-space: normal; overflow-wrap: anywhere; }
@media(max-width: 800px) { .app-shell > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 420px) { .app-shell > .grid .module { min-height: 112px; padding: 15px; } .app-shell > .grid .module strong { font-size: 17px; } }
/* One harvest selector stays visible in every workspace, including mobile. */
.topbar { flex-wrap: wrap; }
.harvest-season-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; flex: 1 1 100%; }
.app-shell > section { scroll-margin-top: var(--workspace-header-height, 104px); }
.harvest-season-toolbar label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.harvest-season-toolbar select { font: inherit; padding: 8px 12px; border-radius: 8px; max-width: 100%; }
.harvest-season-toolbar small { flex: 1 1 260px; opacity: .75; }
.weather-forecast { border-top: 1px solid var(--line, #dce5de); margin-top: 20px; padding-top: 12px; min-width: 0; }
.weather-forecast .presentation-heading { flex-wrap: wrap; gap: 8px; }
.weather-forecast details { border: 1px solid #dce5de; border-radius: 10px; margin: 8px 0; overflow: hidden; }
.weather-forecast summary { padding: 12px; cursor: pointer; font-weight: 600; }
.weather-forecast-scroll { max-width: 100%; overflow-x: auto; }
.weather-forecast table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 13px; }
.weather-forecast th, .weather-forecast td { padding: 8px 10px; text-align: right; white-space: nowrap; border-top: 1px solid #e7ece8; }
.weather-forecast th:first-child, .weather-forecast td:first-child { position: sticky; left: 0; background: #f6f9f5; text-align: left; }

/* Reference alignment: shared tokens; existing product actions and data stay intact. */
:root {
 --bg:#f4ecd6; --card:#fffdf6; --text:#16251e; --muted:#52665a;
 --accent:#1b7f3b; --accent-dark:#12612b; --accent2:#edf7ee; --line:#e4d9ba;
 --sidebar:#04261b; --sidebar-end:#01180f; --sidebar-active:#0b5930;
 --success-ink:#236536; --success-bg:#edf7ee; --info-ink:#245b8c; --info-bg:#edf4fc;
 --warning-ink:#78551c; --warning-bg:#fff6e5; --danger-ink:#a12d32; --danger-bg:#fff0f0;
 --neutral-ink:#54615b; --neutral-bg:#f1ead7;
 --radius-sm:8px; --radius-card:14px; --radius-pill:999px;
 --shadow-card:0 2px 10px #5a461406; --shadow-hover:0 5px 18px #5a461410;
 --space-1:8px; --space-2:16px; --space-3:24px; --space-4:32px;
 --type-title:30px; --type-body:15px; --type-caption:13px;
 --focus:#12612b;
}
body { font-size:var(--type-body); }
h2 { font-size:var(--type-title); }
.card { border-color:var(--line); border-radius:var(--radius-card); box-shadow:var(--shadow-card); }
.topbar h1 { font-size:32px; font-weight:700; letter-spacing:-.035em; }
.topbar .eyebrow { letter-spacing:.07em; }
button { border-radius:var(--radius-sm); }
.app-shell :is(.secondary-button,.ghost-button) { background:var(--card); color:var(--accent-dark); border:1px solid var(--line); }
.app-shell :is(.secondary-button,.ghost-button):hover { background:var(--accent2); border-color:#a7c5af; }
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
 outline:3px solid var(--focus); outline-offset:3px;
}
.bottom-nav button:focus-visible { outline-color:#f0cf77; }
.module .icon svg,.bottom-nav svg,.workspace-actions svg,.sidebar-weather svg { stroke-width:1.6; }
.module:hover { box-shadow:var(--shadow-hover); }
.chip,.pulse-work-status { border-radius:var(--radius-pill); background:var(--success-bg); color:var(--success-ink); }
#headerNotifications { position:relative; }
#headerNotifications[data-unread="true"]::after { content:""; position:absolute; width:8px; height:8px; background:var(--danger-ink); border:2px solid white; border-radius:50%; top:6px; right:7px; box-sizing:content-box; }
.sidebar-weather { display:none; padding:var(--space-2); border:1px solid #305342; border-radius:var(--radius-card); color:#fff; background:#163e2c80; margin-top:auto; }
.sidebar-weather-reading { display:flex; align-items:center; gap:14px; }
.sidebar-weather-reading strong { font-size:30px; font-weight:500; letter-spacing:-.035em; }
.sidebar-weather svg { width:32px; height:32px; stroke:#d8e9a8; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.sidebar-weather p { margin:8px 0; }
.sidebar-weather small { display:block; font-size:12px; color:#c2d8cb; overflow-wrap:anywhere; }
.sidebar-weather-facts { display:flex; flex-wrap:wrap; gap:6px 12px; font-size:12px; margin:12px 0; }
@media(min-width:1000px) {
 .bottom-nav { background:var(--sidebar); background-image:linear-gradient(175deg,var(--sidebar),var(--sidebar-end)); gap:5px; padding:28px 16px 20px; }
 .bottom-nav button.active { background:var(--sidebar-active); border-radius:10px; }
 .bottom-nav button.active svg { color:#b0e5a6; }
 .bottom-nav button:hover { background:#16472e; }
 .sidebar-brand { padding:0 10px 30px; gap:12px; }
 .sidebar-brand strong { font-size:23px; font-weight:650; }
 .sidebar-brand small { font-size:12px; margin-top:2px; }
 .sidebar-weather { display:block; margin-top:24px; }
 .sidebar-weather:not([hidden]) ~ .sidebar-collapse { margin-top:16px; }
 .sidebar-collapsed .sidebar-weather { display:none; }
 .sidebar-collapse { flex-shrink:0; }
}
@media(max-width:999px) {
 .mobile-menu-open .bottom-nav { background:linear-gradient(175deg,var(--sidebar),var(--sidebar-end)); }
 .mobile-menu-open .bottom-nav button.active { background:var(--sidebar-active); }
 .mobile-menu-open .sidebar-weather { display:block; margin:16px 0; }
}

/* Screen presentation: retain original data, form validation and event handlers. */
.season-metrics article { position:relative; padding:22px 74px 22px 22px; border-radius:var(--radius-card); box-shadow:var(--shadow-card); }
.season-metrics .metric-icon { position:absolute; top:50%; right:18px; transform:translateY(-50%); width:44px; height:44px; padding:10px; border-radius:12px; color:var(--accent); background:var(--accent2); fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.app-shell > .grid .module { background:var(--card); border-color:var(--line); }
.app-shell > .grid .module .icon { width:44px; height:44px; border-radius:12px; display:grid; place-items:center; background:var(--accent2); }
.app-shell .field-group-header { border-radius:var(--radius-card); padding:20px; box-shadow:var(--shadow-card); }
.field-group-title-block > strong { color:var(--text); }
.parcel-crop-chip,.parcel-season-chip { display:inline-block; margin:3px 0; border-radius:var(--radius-pill); padding:3px 9px; background:var(--success-bg); color:var(--success-ink); font-size:13px; font-weight:500; }
.parcel-season-chip { background:var(--neutral-bg); color:var(--neutral-ink); }
.parcel-boundary-note { padding:10px 12px; background:var(--warning-bg); border:1px solid #e4d0a3; border-radius:var(--radius-sm); color:var(--warning-ink); font-weight:400; }
.app-shell #observationsPanel .observation-photo-list { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); align-items:start; }
.observation-photo-list > .observation-vision-selection { grid-column:1/-1; min-width:0; }
.observation-photo-list[data-observed-date]:has(.observation-photo-item)::before { content:attr(data-observed-date); display:block; grid-column:1/-1; font-size:16px; font-weight:600; margin-top:8px; }
.app-shell #observationsPanel .observation-photo-item { border:1px solid var(--line); border-radius:var(--radius-card); overflow:visible; background:#fff; }
.app-shell #observationsPanel .observation-photo-item img { border-radius:12px; aspect-ratio:4/3; height:auto; min-height:120px; object-fit:cover; }
.app-shell #observationsPanel .observation-photo-name { padding:10px; font-size:13px; line-height:1.5; color:var(--muted); }
.observation-chain li { border:1px solid var(--line); border-radius:12px; background:var(--neutral-bg); padding:10px 12px; }
.observation-chain strong::before { content:""; display:inline-block; width:6px; height:6px; margin-right:7px; border-radius:50%; background:var(--neutral-ink); vertical-align:middle; }
.app-shell #observationsPanel .observation-conversation-message { position:relative; max-width:92%; padding:20px; border:1px solid var(--line); border-radius:var(--radius-card); box-shadow:var(--shadow-card); }
.app-shell #observationsPanel .observation-conversation-message.user { align-self:flex-end; margin-left:auto; background:var(--accent2); border-color:#cde6d1; border-bottom-right-radius:4px; }
.app-shell #observationsPanel .observation-conversation-message.assistant { align-self:flex-start; margin-right:auto; background:var(--card); border-bottom-left-radius:4px; }
.app-shell #observationsPanel .observation-conversation-message.assistant .observation-conversation-message-role { display:flex; align-items:center; gap:8px; color:var(--accent-dark); }
.observation-conversation-message.assistant .observation-conversation-message-role::before { content:""; width:22px; height:22px; flex-shrink:0; border:1.6px solid currentColor; border-radius:7px; background:radial-gradient(circle at 35% 45%,currentColor 1.5px,transparent 2px),radial-gradient(circle at 65% 45%,currentColor 1.5px,transparent 2px),var(--accent2); }
.app-shell #observationsPanel :is(.observation-ai-section-title,.observation-conversation-ai-section-title,.observation-conversation-message h4) { display:flex; align-items:center; gap:10px; font-size:16px; line-height:1.45; margin:16px 0 8px; }
.app-shell #observationsPanel :is(.observation-ai-section-title,.observation-conversation-ai-section-title,.observation-conversation-message h4)::before { content:""; width:8px; height:8px; flex:0 0 8px; border:2px solid var(--accent); border-radius:50%; background:var(--accent2); }
.app-shell #observationsPanel .observation-ai-section:nth-of-type(2n) .observation-ai-section-title::before { border-color:var(--warning-ink); background:var(--warning-bg); }
.app-shell #observationsPanel :is(.observation-ai-list,.observation-conversation-ai-list) { font-size:14px; line-height:1.65; }
.app-shell #observationsPanel .observation-work-form { border-color:var(--line); border-radius:var(--radius-card); background:#fff; }
.observation-work-confirmations { background:var(--warning-bg); color:var(--warning-ink); }
.app-shell #worksPanel .work-field { position:relative; padding-left:48px; min-height:40px; }
.work-field::before { content:""; position:absolute; left:0; top:0; width:36px; height:36px; border:1px solid #cbe0d0; border-radius:10px; background:linear-gradient(120deg,transparent 40%,#277643 41%,#277643 44%,transparent 45%,transparent 54%,#277643 55%,#277643 58%,transparent 59%) center/22px 22px no-repeat,var(--accent2); }
.app-shell #worksPanel .work-status { display:inline-flex; align-items:center; justify-self:end; gap:7px; border:1px solid transparent; border-radius:var(--radius-pill); padding:6px 11px; font-size:13px; }
.app-shell #worksPanel .work-status::before { content:""; width:6px; height:6px; flex:0 0 6px; border-radius:50%; background:currentColor; }
.app-shell #worksPanel .works-status-planned { background:var(--success-bg); color:var(--success-ink); }
.app-shell #worksPanel .works-status-progress { background:var(--info-bg); color:var(--info-ink); }
.app-shell #worksPanel .works-status-done { background:var(--neutral-bg); color:var(--neutral-ink); }
.app-shell #worksPanel .works-status-cancelled { background:var(--danger-bg); color:var(--danger-ink); }
.app-shell #worksPanel .works-filter-button { border-radius:var(--radius-sm); padding:10px 14px; }
.app-shell #worksPanel .works-filter-button.active { background:var(--accent2); color:var(--accent-dark); border-color:#a7c5af; }
.weather-overview { border:1px solid var(--line); border-radius:var(--radius-card); padding:var(--space-3); background:linear-gradient(125deg,#f3faf4,#fff 55%); gap:var(--space-4); }
.weather-overview > div:first-child { border-right:1px solid var(--line); }
.weather-facts { gap:16px; }.weather-facts article { min-width:0; }
.weather-facts strong { font-variant-numeric:tabular-nums; font-size:24px; }
#weatherCondition { color:var(--muted); }
.weather-forecast { border:0; padding-top:0; }
#weatherForecastDays { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); align-items:start; gap:12px; }
#weatherForecastDays details { min-width:0; margin:0; border-radius:var(--radius-card); border-color:var(--line); background:var(--card); box-shadow:var(--shadow-card); }
#weatherForecastDays summary { list-style-position:inside; padding:18px; color:var(--text); }
#weatherForecastDays summary span,#weatherForecastDays summary strong,#weatherForecastDays summary small { display:block; }
.forecast-card-date { font-size:16px; font-weight:650; }
.forecast-card-temperature { font-size:24px; font-weight:600; color:var(--accent-dark); margin:16px 0 8px; font-variant-numeric:tabular-nums; }
#weatherForecastDays summary small { font-size:12px; font-weight:400; color:var(--muted); }
.forecast-card-hint { margin-top:16px; font-size:13px; color:var(--accent-dark); }
.analytics-crop,.econ-kpi,.econ-scenario,.econ-market-card { border-radius:var(--radius-card); box-shadow:var(--shadow-card); }
.analytics-crop { position:relative; border-left:3px solid var(--accent); }
.analytics-bar { height:9px; border-radius:var(--radius-pill); background:var(--neutral-bg); }
.econ-kpi { border-top:3px solid #cce2d0; }
.map-workspace { display:grid; grid-template-columns:minmax(0,1fr) 248px; gap:16px; align-items:start; }
.map-summary { padding:20px; border:1px solid var(--line); border-radius:var(--radius-card); background:#fff; }
.map-summary h3 { font-size:17px; margin:0 0 16px; }.map-summary h3:not(:first-child) { margin-top:28px; }
.map-summary p { font-size:13px; line-height:1.65; color:var(--muted); }
.map-legend-row { display:flex; gap:10px; align-items:center; }
.map-legend-line { width:24px; flex:0 0 24px; height:12px; border:2px solid #f2f0dc; background:#2f4739; box-shadow:0 0 0 1px #627c6c; }
.map-legend-line.is-selected { border-color:#d6ad58; background:#2f4739; }
.satellite-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; }
.satellite-metric { padding:16px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.notification-filter-chips { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 8px; }
.notification-filter-chips button { min-height:44px; padding:10px 16px; border:1px solid var(--line); background:var(--card); color:var(--neutral-ink); font-size:13px; }
.notification-filter-chips button[aria-pressed="true"] { color:#fff; background:var(--accent); border-color:var(--accent); }
.notification-filter:has(+ .notification-filter-chips:not([hidden])):not(:focus-within) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.notification-filter:focus-within { position:static; width:auto; height:auto; overflow:visible; clip-path:none; white-space:normal; }
.notifications-list .notification-item { position:relative; padding:24px 16px 24px 80px; border:1px solid var(--line); border-radius:var(--radius-card); box-shadow:var(--shadow-card); }
.notification-item > strong { display:block; font-size:16px; line-height:1.5; padding-right:12px; }
.notification-icon { position:absolute; left:18px; top:24px; width:44px; height:44px; border-radius:12px; padding:11px; fill:none; stroke:var(--info-ink); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; background:var(--info-bg); }
.notification-item[data-tone="danger"] .notification-icon { stroke:var(--danger-ink); background:var(--danger-bg); }
.notification-item[data-tone="warning"] .notification-icon { stroke:var(--warning-ink); background:var(--warning-bg); }
.notification-item.is-new::after { content:""; position:absolute; top:30px; right:16px; width:6px; height:6px; border-radius:50%; background:var(--accent); }
.notification-message { font-size:14px; line-height:1.65; }.notification-meta { font-size:12px; margin:8px 0 12px; }
.notification-actions button { border:1px solid var(--line); border-radius:var(--radius-sm); background:#fff; color:var(--accent-dark); padding:8px 12px; }
.ai-card .msg.user { margin-left:auto; background:var(--accent2); color:var(--text); border-color:#cde6d1; border-bottom-right-radius:4px; }
.ai-card .msg.assistant { margin-right:auto; border-bottom-left-radius:4px; }
@media(max-width:1200px) and (min-width:1000px) { .season-metrics article { padding:18px; padding-top:68px; }.season-metrics .metric-icon { top:16px; left:18px; transform:none; width:36px; height:36px; padding:8px; } }
@media(max-width:999px) { .map-workspace { grid-template-columns:minmax(0,1fr); } }

/* Phone layout extends the verified mobile shell and its existing 44px/16px rules. */
@media(max-width:600px) {
 .season-metrics { grid-template-columns:minmax(0,1fr); gap:12px; }
 .season-metrics article { padding:18px 82px 18px 18px; }
 .season-metrics .metric-icon { right:18px; }
 .app-shell > .grid { grid-template-columns:minmax(0,1fr); }
 .app-shell > .grid .module { min-height:108px; padding:18px; }
 .app-shell > .grid .module .icon { float:right; }
 .app-shell .field-group-header { padding:16px; }
 .weather-overview { padding:18px; gap:24px; }
 .weather-overview > div:first-child { border-right:0; }
 #weatherForecastDays { display:flex; overflow-x:auto; gap:12px; align-items:flex-start; padding:4px 4px 12px; scroll-snap-type:x proximity; scroll-padding-inline:4px; }
 #weatherForecastDays > details { flex:0 0 88%; min-width:0; max-width:88%; scroll-snap-align:start; }
 #weatherForecastDays summary { padding:16px; }
 #weatherForecastDays .weather-forecast-scroll { max-width:100%; }
 .app-shell #observationsPanel .observation-photo-list { grid-template-columns:minmax(0,1fr); }
 .app-shell #observationsPanel .observation-conversation-message { max-width:100%; padding:14px; }
 .app-shell #observationsPanel .observation-photo-item img { height:auto; }
 .notifications-card { padding:16px; }
 .notification-filter-chips { gap:8px; }
 .notification-filter-chips button { flex:1 1 auto; padding:10px 12px; }
 .notifications-list .notification-item { padding:16px; }
 .notification-item > strong { padding:0 10px 0 54px; min-height:44px; display:flex; align-items:center; font-size:15px; }
 .notification-icon { top:16px; left:16px; width:40px; height:40px; padding:10px; }
 .notification-item.is-new::after { top:22px; right:12px; }
 .notification-meta { margin-top:14px; }
 .notification-message { font-size:14px; line-height:1.6; }
 .notification-actions { display:grid; grid-template-columns:minmax(0,1fr); }
 .notification-actions button { width:100%; }
 .map-summary { padding:16px; }
}
/* ui-final: top tabs on desktop, photo tiles on the home screen */
:root { --tab:#2f7a4a; --tab-hover:#266a40; --tab-active:#0f3d27; --tab-ink:#fff; --gold:#c6a363; }
.home-tiles { grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:16px; margin-top:20px; }
.app-shell > .home-tiles .module { position:relative; isolation:isolate; overflow:hidden; display:flex; flex-direction:column; justify-content:flex-end; align-items:flex-start; text-align:left; min-height:230px; padding:22px 80px 22px 86px; border:0; border-radius:var(--radius-card); color:#fff; background-color:#143626; background-size:cover; background-position:center; box-shadow:var(--shadow-card); }
.app-shell > .home-tiles .module::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,#04261b10 20%,#04261bcc 100%); }
.app-shell > .home-tiles .module:hover { box-shadow:var(--shadow-hover); transform:translateY(-2px); }
.app-shell > .home-tiles .module .icon { position:absolute; top:auto; bottom:22px; left:24px; width:46px; height:46px; border:1px solid #ffffff90; border-radius:12px; background:#04261b55; color:#fff; display:grid; place-items:center; }
.app-shell > .home-tiles .module strong { font-size:24px; font-weight:650; color:#fff; letter-spacing:-.02em; }
.app-shell > .home-tiles .module > span:not(.icon):not(.tile-arrow) { font-size:14px; color:#eaf3ec; max-width:82%; line-height:1.4; margin-top:4px; }
.app-shell > .home-tiles .tile-arrow { position:absolute; right:20px; bottom:20px; width:44px; height:44px; border:1px solid #ffffffb0; border-radius:50%; display:grid; place-items:center; background:#04261b66; }
.app-shell > .home-tiles .tile-arrow svg { width:20px; height:20px; fill:none; stroke:#fff; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.app-shell > .home-tiles .module:focus-visible { outline:3px solid #f0cf77; outline-offset:3px; }
.app-shell > .home-tiles .tile-fields { background-image:url("assets/home/tile-fields.jpg"); }
.app-shell > .home-tiles .tile-map { background-image:url("assets/home/tile-map.jpg"); }
.app-shell > .home-tiles .tile-observations { background-image:url("assets/home/tile-observations.jpg"); }
.app-shell > .home-tiles .tile-works { background-image:url("assets/home/tile-works.jpg"); }
.app-shell > .home-tiles .tile-weather { background-image:url("assets/home/tile-weather.jpg"); }
.app-shell > .home-tiles .tile-economics { background-image:url("assets/home/tile-economics.jpg"); }
.home-ask { display:grid; grid-template-columns:auto minmax(180px,.9fr) minmax(0,2fr) auto; align-items:center; gap:16px; padding:16px 20px; margin-top:16px; }
.home-ask-icon { width:44px; height:44px; border-radius:12px; display:grid; place-items:center; background:var(--accent2); }
.home-ask-icon svg { width:24px; height:24px; fill:none; stroke:var(--accent); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.home-ask-text strong { display:block; font-size:17px; }
.home-ask-text small { display:block; color:var(--muted); font-size:12px; line-height:1.4; margin-top:2px; }
.home-ask input { min-height:46px; padding:10px 14px; border:1px solid var(--line); border-radius:10px; background:#fff; font-size:15px; width:100%; }
.home-ask button { min-height:46px; padding:0 22px; border:0; border-radius:10px; background:var(--accent); color:#fff; font-weight:650; cursor:pointer; }
.home-ask button:hover { background:var(--accent-dark); }
.app-shell[data-workspace="home"] #closeAnalytics { display:none; }
@media(min-width:1000px) {
 .app-shell { display:flex; flex-direction:column; max-width:1500px; margin:0 auto; padding:0 36px 48px; }
 .bottom-nav { order:-1; position:sticky; top:0; left:auto; bottom:auto; width:auto; max-width:none; z-index:800; flex-direction:row; flex-wrap:nowrap; justify-content:center; align-items:center; gap:6px; padding:14px 0 14px 200px; margin:0 0 12px; background:var(--bg); background-image:none; border:0; border-radius:0; overflow:visible; box-shadow:0 8px 14px -14px #4a3c1c80; }
 .bottom-nav::before { display:none; }
 .bottom-nav .sidebar-brand { position:absolute; left:0; top:50%; transform:translateY(-50%); display:flex; align-items:center; gap:10px; padding:0; color:var(--text); }
 .bottom-nav .sidebar-brand .brand-mark { stroke:var(--accent); width:34px; height:34px; }
 .bottom-nav .sidebar-brand strong { font-size:19px; color:var(--text); }
 .bottom-nav .sidebar-brand small { font-size:11px; color:var(--muted); margin-top:0; }
 .bottom-nav button { flex-direction:row; justify-content:center; gap:8px; min-height:44px; padding:10px 14px; border-radius:999px; background:var(--tab); white-space:nowrap; flex:0 0 auto; color:var(--tab-ink); border:1px solid transparent; }
 .bottom-nav button svg { color:#cdeccf; width:20px; height:20px; }
 .bottom-nav button span { font-size:13.5px; font-weight:600; }
 .bottom-nav button:hover { background:var(--tab-hover); }
 .bottom-nav button.active { background:var(--tab-active); color:#fff; border-color:var(--gold); box-shadow:0 2px 0 var(--gold); }
 .bottom-nav button.active svg { color:#f0cf77; }
 .bottom-nav button:focus-visible { outline:3px solid #f0cf77; outline-offset:2px; }
 .bottom-nav [data-nav="observations"], .bottom-nav [data-nav="analytics"], .bottom-nav [data-nav="notifications"], .bottom-nav #sidebarCollapse, .bottom-nav #sidebarWeather { display:none!important; }
 .app-shell>section, .app-shell>form { scroll-margin-top:96px; }
}
@media(min-width:1000px) and (max-width:1200px) {
 .bottom-nav { padding-left:150px; padding-right:12px; justify-content:flex-end; }
 .bottom-nav .sidebar-brand small { display:none; }
 .bottom-nav button { padding:10px 14px; }
}
@media(max-width:999px) and (min-width:601px) { .home-tiles { grid-template-columns:repeat(2,minmax(0,1fr))!important; } .home-ask { grid-template-columns:auto minmax(0,1fr) auto; } .home-ask-text { grid-column:2 / 4; } .home-ask input { grid-column:1 / 3; } }
@media(max-width:600px) {
 .home-tiles { grid-template-columns:minmax(0,1fr)!important; gap:12px; }
 .app-shell > .home-tiles .module { min-height:150px; padding:18px 62px 18px 76px; }
 .app-shell > .home-tiles .module strong { font-size:21px; }
 .app-shell > .home-tiles .module .icon { left:18px; bottom:18px; width:42px; height:42px; }
 .app-shell > .home-tiles .tile-arrow { right:14px; bottom:14px; width:40px; height:40px; }
 .home-ask { grid-template-columns:auto minmax(0,1fr); padding:14px; margin-bottom:12px; }
 .home-ask input, .home-ask button { grid-column:1 / -1; }
}
/* ui-final: map crop colouring legend */
.map-crop-toggle { display:flex; align-items:center; gap:10px; min-height:44px; font-size:14px; }
.map-crop-toggle input { width:20px; height:20px; accent-color:var(--accent); }
.map-crop-legend { display:grid; gap:6px; }
.map-crop-row { display:grid; grid-template-columns:20px minmax(0,1fr); grid-template-areas:"sw label" ". meta"; gap:2px 10px; align-items:center; width:100%; min-height:44px; padding:6px 10px; text-align:left; border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--text); cursor:pointer; }
.map-crop-row[aria-pressed="false"] { opacity:.45; text-decoration:line-through; }
.map-crop-row:hover { border-color:#a7c5af; background:var(--accent2); }
.map-crop-row:focus-visible { outline:3px solid #f0cf77; outline-offset:2px; }
.map-crop-swatch { grid-area:sw; width:20px; height:20px; border-radius:6px; border:1px solid #00000033; }
.map-crop-label { grid-area:label; font-weight:600; font-size:14px; }
.map-crop-row small { grid-area:meta; color:var(--muted); font-size:12px; }
.map-legend-note { font-size:12px; color:var(--muted); }
.field-satellite-link { margin:8px 0; }
/* ui-final: observations open from the parcel card; no duplicate entry points */
.bottom-nav [data-nav="observations"] { display:none!important; }
@media(min-width:1000px) { .app-shell > .home-tiles { grid-template-columns:repeat(6,minmax(0,1fr))!important; } .app-shell > .home-tiles .module { grid-column:span 2; } .app-shell > .home-tiles .tile-fields, .app-shell > .home-tiles .tile-map { grid-column:span 3; } }
/* ui-final: sign-in window */
.login-overlay { position:fixed; inset:0; z-index:2000; display:grid; place-items:center; padding:20px; background:var(--bg); }
.login-overlay[hidden] { display:none; }
.login-open .app-shell { visibility:hidden; }
.login-card { width:min(420px,100%); display:grid; gap:14px; padding:30px 28px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius-card); box-shadow:var(--shadow-hover); }
.login-mark { width:44px; height:44px; fill:none; stroke:var(--accent); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.login-card h1 { margin:0; font-size:28px; letter-spacing:-.03em; }
.login-lead { margin:0; color:var(--muted); font-size:15px; }
.login-card label { display:grid; gap:6px; font-size:14px; font-weight:600; }
.login-card input { min-height:48px; padding:10px 14px; border:1px solid var(--line); border-radius:10px; background:#fff; font-size:16px; }
.login-card input:focus-visible { outline:3px solid #f0cf77; outline-offset:2px; }
.login-message { min-height:20px; margin:0; font-size:14px; color:var(--danger-ink); }
.login-card button[type=submit] { min-height:48px; border:0; border-radius:10px; background:var(--accent); color:#fff; font-size:16px; font-weight:650; cursor:pointer; }
.login-card button[type=submit]:hover { background:var(--accent-dark); }
.login-card button[type=submit]:disabled { opacity:.6; cursor:wait; }
.logout-button { width:auto!important; padding:0 14px!important; }
.logout-button span { font-size:13px; font-weight:600; }
/* ui-final: a missing figure is a short note, not a headline; the header never covers a panel title */
.econ-kpi.econ-kpi-note strong { font-size:16px; font-weight:500; color:var(--muted); line-height:1.4; }
@media(min-width:1000px) { .topbar { position:static; } }
/* ui-final: assistant notes */
.assistant-notes { margin-top:16px; padding:14px 16px; border:1px solid var(--line); border-radius:var(--radius-card); background:var(--card); }
.assistant-notes summary { cursor:pointer; font-weight:600; min-height:44px; display:flex; align-items:center; }
.assistant-notes ul { list-style:none; margin:8px 0; padding:0; display:grid; gap:8px; }
.assistant-notes li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border-radius:10px; background:var(--accent2); overflow-wrap:anywhere; }
.assistant-notes-empty { color:var(--muted); background:transparent!important; }
.assistant-notes-form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:end; }
.assistant-notes-form input { min-height:44px; font-size:16px; }
.assistant-keep { margin-top:10px; min-height:36px; }
@media(prefers-reduced-motion:reduce) {
 html { scroll-behavior:auto; }
 *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}

.weather-picker { margin:12px 0 18px; border:1px solid var(--line); border-radius:var(--radius-sm); padding:12px 14px; background:#fff; }
.weather-picker > summary { cursor:pointer; font-weight:600; color:var(--accent-dark); }
.weather-crop-chips { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.weather-crop-chip { display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:8px 12px; border:1px solid var(--line); border-radius:999px; background:var(--card); color:var(--text); }
.weather-crop-chip[aria-pressed="true"] { border-color:var(--accent); background:var(--accent2); font-weight:600; }
.weather-pick-map { height:340px; border-radius:var(--radius-sm); border:1px solid var(--line); overflow:hidden; }
@media(max-width:700px) { .weather-pick-map { height:270px; } }

.ai-card .chat-form { grid-template-columns:1fr 46px 46px; }
.chat-form .chat-voice-button { min-width:44px; min-height:44px; border:1px solid var(--line); border-radius:var(--radius-sm); background:#fff; color:var(--text); font-size:18px; }
.chat-form .chat-voice-button.is-recording { background:#fde8e4; border-color:#d9776a; animation:voice-pulse 1.2s ease-in-out infinite; }
@keyframes voice-pulse { 50% { box-shadow:0 0 0 6px rgba(217,119,106,.25); } }

/* Справка и замечания разработчикам */
.help-panel{padding:28px;margin:24px 0}.help-panel h2{margin:0 0 6px}
.help-contents{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 8px}
.help-contents a{padding:6px 12px;border:1px solid var(--line);border-radius:999px;text-decoration:none;color:var(--text);font-size:14px;background:#fff}
.help-contents a:hover{border-color:var(--accent);color:var(--accent)}
.help-block{margin-top:22px;padding-top:18px;border-top:1px solid var(--line);scroll-margin-top:96px}
.help-block h3{margin:0 0 8px;font-size:18px}.help-block p{margin:0 0 8px}.help-block ul{margin:0;padding-left:20px;display:grid;gap:8px}
.help-feedback{background:#f4f8f4;border:1px solid var(--line);border-radius:12px;padding:18px}
.help-feedback-field{display:grid;grid-template-columns:1fr 46px;gap:10px;align-items:start;margin-top:10px}
.help-feedback textarea{width:100%;box-sizing:border-box;min-height:120px;padding:12px;border:1px solid var(--line);border-radius:10px;font:inherit;resize:vertical;background:#fff;color:var(--text)}
.help-feedback .chat-voice-button{min-width:46px;min-height:46px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);font-size:18px;cursor:pointer}
.help-feedback .chat-voice-button.is-recording{background:#fde8e4;border-color:#d9776a;animation:voice-pulse 1.2s ease-in-out infinite}
.help-feedback-actions{display:flex;align-items:center;gap:14px;margin-top:10px}.help-feedback-actions small{color:var(--muted)}
.home-help-link{margin:6px 4px 0;text-align:right}.home-help-link .link-button{background:none;border:none;padding:6px 4px;color:var(--accent);text-decoration:underline;cursor:pointer;font:inherit;font-size:14px}
@media(max-width:700px){.help-panel{padding:18px}}
.help-feedback-actions button{background:var(--accent);color:#fff;border:none;border-radius:10px;padding:12px 20px;font:inherit;font-weight:700;cursor:pointer}.help-feedback-actions button:disabled{opacity:.6;cursor:wait}
