:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#18251f;background:#f1f4ef;--green:#173f35;--accent:#dce9aa;--line:#dfe6df;--muted:#728078}*{box-sizing:border-box}body{margin:0;min-width:320px}.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(360px,.9fr) 1.1fr}.identity-panel{background:var(--green);color:#fff;padding:42px clamp(30px,6vw,90px);display:flex;flex-direction:column;justify-content:space-between}.brand{display:flex;gap:11px;align-items:center;color:#fff}.brand>span{width:46px;height:46px;border-radius:12px;background:var(--accent);color:var(--green);display:grid;place-items:center;font-weight:900}.brand b,.brand small{display:block}.brand small{opacity:.7}.identity-copy{max-width:570px}.identity-copy h1{font-size:clamp(36px,4.5vw,64px);line-height:1.04;letter-spacing:-2.2px;margin:14px 0 24px}.identity-copy>p:last-child{font-size:17px;line-height:1.6;color:#c7d5ce}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.5px;color:var(--muted);margin:0}.identity-panel .eyebrow{color:#b8c9c1}.security-note{font-size:12px;color:#aec0b7;border-top:1px solid #356054;padding-top:20px}.auth-panel{display:grid;place-items:center;padding:30px}.auth-card{width:min(450px,100%);background:white;border:1px solid var(--line);border-radius:18px;padding:30px;box-shadow:0 20px 55px rgba(30,65,50,.1)}.tabs{display:flex;background:#f0f3ef;padding:4px;border-radius:11px;margin-bottom:30px}.tab{flex:1;border:0;background:transparent;padding:10px;border-radius:8px;color:var(--muted);font-weight:700;cursor:pointer}.tab.active{background:#fff;color:var(--green);box-shadow:0 3px 10px rgba(30,65,50,.08)}form{display:grid;gap:17px}form h2{font-size:26px;margin:7px 0}label{font-size:12px;font-weight:700;color:#46574f}input,select{display:block;width:100%;border:1px solid var(--line);background:#fbfcfa;border-radius:10px;padding:12px;margin-top:7px;color:#17211d;font:inherit}label small{display:block;margin-top:6px;color:var(--muted);font-weight:400}.primary,.secondary{border:0;border-radius:10px;padding:12px 17px;font-weight:800;cursor:pointer}.primary{background:#1d6a52;color:#fff}.secondary{border:1px solid var(--line);background:white;color:#29483d}.message{display:none;padding:11px;border-radius:9px;margin-bottom:17px;background:#f7dedb;color:#94372e;font-size:13px}.message.show{display:block}.message.success{background:#e3f0e7;color:#1d694f}.dashboard{grid-column:1/-1;min-height:100vh}.dashboard header{height:82px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,5vw,70px);background:var(--green)}.dashboard-body{padding:70px clamp(20px,8vw,120px);max-width:1300px;margin:auto}.dashboard-body>h1{font-size:clamp(34px,5vw,58px);margin:10px 0 34px}.profile-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.profile-grid article,.team-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:25px}.profile-grid span{display:block;color:var(--muted);font-size:12px;margin-bottom:10px}.profile-grid strong{font-size:20px}.team-card{margin-top:24px}.team-card form{grid-template-columns:1fr 1.2fr 1fr 170px auto;margin:22px 0}.team-card input,.team-card select{margin:0}.team-list{border-top:1px solid var(--line)}.team-row{display:grid;grid-template-columns:1fr 1.3fr .8fr;padding:13px 6px;border-bottom:1px solid var(--line);font-size:13px}.role-pill{width:max-content;background:#e5eee8;color:#1d694f;border-radius:20px;padding:4px 8px;font-size:11px;font-weight:800}@media(max-width:850px){.auth-shell{grid-template-columns:1fr}.identity-panel{min-height:330px;padding:28px}.identity-copy h1{font-size:38px}.security-note{display:none}.auth-panel{padding:20px}.profile-grid{grid-template-columns:1fr}.team-card form{grid-template-columns:1fr}.team-row{grid-template-columns:1fr}}
[hidden]{display:none!important}
.dashboard header nav{display:flex;gap:6px;margin-left:auto;margin-right:18px}.nav-button{border:0;background:transparent;color:#bcd0c6;padding:10px 15px;border-radius:9px;font-weight:700;cursor:pointer}.nav-button.active,.nav-button:hover{background:#27594b;color:#fff}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}.page-head h1{margin-bottom:4px}.fields-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr);gap:18px}.map-card,.detail-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:20px}.map-head{display:flex;align-items:start;justify-content:space-between;margin-bottom:15px}.map-head h2,.detail-card h2{margin:0 0 5px}.map-head p{margin:0;color:var(--muted);font-size:12px}.demo-pill{background:#f2e8c9;color:#7e631d;padding:5px 8px;border-radius:20px;font-size:10px;font-weight:900}.geometry-map{height:430px;border-radius:12px;overflow:hidden;background-color:#edf1eb;background-image:linear-gradient(30deg,rgba(91,122,101,.07) 12%,transparent 12.5%,transparent 87%,rgba(91,122,101,.07) 87.5%);background-size:55px 96px}.geometry-map.preview{height:280px;margin:15px 0}.geometry-map svg{width:100%;height:100%}.parcel-shape{fill:#78a98b;stroke:#fff;stroke-width:20;vector-effect:non-scaling-stroke}.parcel-shape.clickable{cursor:pointer}.parcel-shape.clickable:hover{fill:#4f8a6b}.field-list{display:grid;gap:10px}.field-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:15px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:17px;cursor:pointer}.field-row:hover{border-color:#8eb29d}.field-row span,.parcel-row span{display:block;color:var(--muted);font-size:12px;margin-top:5px}.empty-map{height:100%;display:grid;place-items:center;color:var(--muted);text-align:center;padding:25px}.back-button{border:0;background:transparent;color:#1d6a52;font-weight:800;cursor:pointer;margin-bottom:25px}.area-large{font-size:30px}.parcel-row{padding:13px 0;border-bottom:1px solid var(--line)}.future-slot{margin-top:20px;border:1px dashed #bcc8c0;color:var(--muted);padding:18px;border-radius:10px;font-size:12px}#editFieldForm{margin-top:22px;border-top:1px solid var(--line);padding-top:18px}dialog{border:0;border-radius:18px;padding:0;width:min(760px,calc(100% - 28px));box-shadow:0 30px 90px rgba(20,50,38,.3)}dialog::backdrop{background:rgba(17,40,31,.6)}dialog form{padding:26px}.dialog-head{display:flex;justify-content:space-between;align-items:start}.dialog-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}.dialog-grid .wide{grid-column:1/-1}.dialog-grid textarea{display:block;width:100%;margin-top:7px;border:1px solid var(--line);border-radius:10px;padding:12px;font:inherit}.demo-notice{background:#f7f0dd;color:#715a1e;padding:12px;border-radius:9px;font-size:12px}.warning{background:#f7dedb;color:#94372e;padding:12px;border-radius:9px;font-size:12px}.success-box{background:#e3f0e7;color:#1d694f;padding:12px;border-radius:9px;font-size:12px}#previewSection{border-top:1px solid var(--line);margin-top:18px;padding-top:4px}#confirmWarning{display:flex;align-items:center;gap:9px;margin:13px 0}#confirmWarning input{width:auto;margin:0}@media(max-width:900px){.fields-layout{grid-template-columns:1fr}.dialog-grid{grid-template-columns:1fr}.dialog-grid .wide{grid-column:auto}.dashboard header nav{margin:0}.nav-button{padding:8px}.geometry-map{height:330px}.field-row{grid-template-columns:1fr auto}}
.satellite-card{margin-top:18px;background:#fff;border:1px solid var(--line);border-radius:15px;padding:20px}.scene-sync{display:grid;grid-template-columns:1fr 1fr 1fr 100px auto;align-items:end;gap:12px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.scene-sync input{margin-top:6px}.scene-list{display:grid}.scene-row{display:grid;grid-template-columns:minmax(0,1fr) 100px 100px auto;align-items:center;gap:14px;padding:15px 6px;border-bottom:1px solid var(--line)}.scene-row span{display:block;color:var(--muted);font-size:11px;margin-top:4px}.status-pill{width:max-content;background:#e5eee8;color:#1d694f!important;border-radius:20px;padding:5px 8px;font-weight:800}.real-provider{background:#dcebe3;color:#16563f}.scene-message{padding:12px;color:var(--muted)}.empty-map.small{height:100px}@media(max-width:900px){.scene-sync{grid-template-columns:1fr 1fr}.scene-row{grid-template-columns:1fr auto}.scene-row .demo-pill{display:none}}
.scene-sync{grid-template-columns:1fr 1fr auto!important}
.ndvi-preview{width:92px;height:72px;object-fit:contain;background:#eef3e9;border-radius:10px}.chart-line{fill:none;stroke:#4f772d;stroke-width:4}.chart-axis{stroke:#9ca3af;stroke-width:1}#ndviChart svg{width:100%;max-height:220px;background:#fbfdf8;border-radius:14px}#ndviChart circle{fill:#31572c}
.ndvi-open{border:0;background:transparent;padding:0;color:#1d6a52;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.ndvi-open span{color:#1d6a52}.ndvi-detail{grid-column:1/-1;padding:18px;background:#f7faf5;border-radius:14px}.ndvi-map-frame{height:min(52vw,480px);min-height:280px;display:grid;place-items:center;background:#e7eee5;border:2px solid #397259;border-radius:12px;overflow:hidden}.ndvi-map-frame img{width:100%;height:100%;object-fit:contain;image-rendering:auto}.ndvi-legend{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:12px}.ndvi-legend i{display:block;width:min(320px,50%);height:12px;border-radius:8px;background:linear-gradient(90deg,#ff0050,#ffff50,#00ff50)}
.scene-browser{width:min(980px,calc(100% - 24px));max-width:none}.scene-browser>div{padding-left:24px;padding-right:24px}.scene-browser-head,.scene-browser-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:20px;padding-bottom:16px}.scene-browser-head h2{margin:3px 0}.scene-browser-map{position:relative;height:min(58vh,590px);min-height:300px;display:grid;place-items:center;background:#e6ece4;border:3px solid #fff;outline:2px solid #2d6a4f;border-radius:12px;overflow:hidden}.scene-browser-map img{width:100%;height:100%;object-fit:contain}.field-contour-label{position:absolute;top:12px;left:12px;background:rgba(20,45,34,.82);color:#fff;padding:6px 9px;border-radius:14px;font-size:11px;font-weight:800}.scene-browser-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:16px 0}.scene-browser-stats div{padding:12px;background:#f2f6f0;border-radius:10px}.scene-browser-stats span{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}.scene-browser-empty{min-height:360px;display:grid;place-content:center;justify-items:center;gap:14px}.scene-browser-nav{border-top:1px solid var(--line)}@media(max-width:700px){.scene-browser-stats{grid-template-columns:1fr 1fr}.scene-browser-map{min-height:260px}.scene-browser-nav{flex-wrap:wrap}.scene-browser-nav span{order:-1;width:100%;text-align:center}}
.task-list{display:grid;gap:14px}.task-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;min-width:0}.task-card-head,.task-detail-head,.inspection-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.task-card h2,.task-detail-head h1,.inspection-head h1{margin:5px 0}.task-card>p,.task-description{color:var(--muted);line-height:1.5}.task-meta,.task-actions,.map-legend{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.task-actions{margin-top:18px}.priority,.offline-badge,.due{font-size:12px;font-weight:800;border-radius:20px;padding:6px 9px}.priority-low{background:#edf1ed}.priority-normal{background:#e5eee8}.priority-high{background:#fff0c8;color:#725500}.priority-urgent,.overdue{background:#f7dedb;color:#94372e}.offline-badge{background:#e9edf6;color:#40547a}.task-facts{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:18px 0}.task-facts>div{background:#fff;border:1px solid var(--line);padding:15px;border-radius:12px}.task-facts span{display:block;color:var(--muted);font-size:11px;margin-bottom:7px}.mobile-map-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:14px;margin:18px 0}.map-legend{margin-bottom:10px;font-size:12px;font-weight:800}.map-legend span:before{content:"";display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:5px;vertical-align:-2px}.field-key:before{background:#79a98b}.anomaly-key:before{background:#d65f4a}.zone-key:before{background:#d4a63c}.gps-key:before{background:#2959c8}.field-layer{fill:#78a98b;fill-opacity:.55;stroke:#336b50}.anomaly-layer{fill:#d65f4a;fill-opacity:.72;stroke:#963728}.zone-layer{fill:#e9c75b;fill-opacity:.55;stroke:#99761a}.field-layer,.anomaly-layer,.zone-layer{stroke-width:3;vector-effect:non-scaling-stroke}.task-primary-actions{display:flex;justify-content:flex-end}.task-primary-actions .primary{min-height:52px;font-size:16px}.inspection-form{display:grid;gap:14px;max-width:820px;margin:0 auto}.inspection-step{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px}.inspection-step>div,.inspection-step fieldset{min-width:0}.inspection-step h2{margin:2px 0 12px}.step-number{margin:0;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--green);font-weight:900}.inspection-form textarea{display:block;width:100%;margin-top:8px;padding:13px;border:1px solid var(--line);border-radius:10px;font:inherit;resize:vertical;min-height:112px}.inspection-form fieldset{border:0;padding:0;margin:0}.inspection-form legend{font-weight:800;margin-bottom:12px}.choice{display:flex;align-items:center;gap:10px;padding:8px 0;font-size:14px}.choice input{width:22px;height:22px;margin:0}.choice.disabled{opacity:.55}.touch-button,.photo-picker{min-height:44px;display:inline-flex;align-items:center;justify-content:center}.photo-picker{width:max-content;margin:0;cursor:pointer}.field-help{color:var(--muted);font-size:12px;line-height:1.4}.validation{display:block;color:#a2372d;font-size:12px;margin-top:6px}.photo-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin-top:14px}.photo-tile{position:relative;min-width:0;background:#f3f5f1;border-radius:11px;overflow:hidden}.photo-tile img{display:block;width:100%;height:120px;object-fit:cover}.photo-tile div{padding:8px;font-size:11px;color:var(--muted)}.remove-photo{position:absolute;top:6px;right:6px;width:44px;height:44px;border:0;border-radius:50%;background:rgba(20,30,25,.8);color:#fff;font-size:24px;cursor:pointer}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.primary:focus-visible,.secondary:focus-visible,.nav-button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #79a9e8;outline-offset:2px}
@media(max-width:768px){.dashboard header{height:auto;min-height:72px;flex-wrap:wrap;padding:10px 14px;gap:8px}.dashboard header .brand div{display:none}.dashboard header nav{order:3;width:100%;overflow-x:auto;justify-content:space-between}.nav-button{min-height:44px;white-space:nowrap}.dashboard-body{padding:28px 14px}.task-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.geometry-map{height:260px}.task-card{padding:16px}.task-card-head,.task-detail-head,.inspection-head{flex-direction:column}.task-actions>*{flex:1;min-height:48px}.inspection-step{padding:14px;grid-template-columns:36px minmax(0,1fr)}.completion-step button{width:100%;margin-top:9px}.photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:414px){.dashboard-body{padding:22px 10px}.task-facts{grid-template-columns:1fr}.task-card,.mobile-map-card,.inspection-step{border-radius:12px}.inspection-step{grid-template-columns:1fr}.step-number{width:30px;height:30px}.geometry-map{height:220px}.photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-tile img{height:105px}.touch-button,.photo-picker,.task-primary-actions .primary{width:100%}.task-meta{align-items:flex-start}}

/* Stage 8.3: Owner / Manager operational dashboard */
.monitoring-card{margin-bottom:18px}.monitoring-kpis{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:8px;margin:14px 0}.monitoring-kpis span{background:#f5f7f3;border-radius:9px;padding:11px;color:var(--muted);font-size:12px}.monitoring-kpis b{display:block;color:var(--ink);font-size:20px;margin-top:5px}.monitoring-row{cursor:default}.monitoring-row button{min-height:44px}@media(max-width:768px){.monitoring-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.monitoring-row{align-items:flex-start;flex-direction:column}.monitoring-row button{width:100%}}
.manager-dashboard{max-width:1440px;padding-top:42px}.dash-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.dash-head h1{font-size:clamp(30px,4vw,48px);margin:5px 0}.dash-head p,.dash-head small{color:var(--muted)}.dash-head button{min-height:44px}.kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:12px;margin-bottom:18px}.kpi-card,.dash-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:18px;min-width:0}.kpi-card span{display:block;color:var(--muted);font-size:12px;min-height:30px}.kpi-card strong{display:block;font-size:clamp(22px,3vw,31px);margin-top:7px}.dash-card h2{margin:0 0 15px}.dash-attention{margin-bottom:18px;border-color:#e4c798}.attention-list,.compact-list,.team-workload{display:grid;gap:10px}.attention-item{display:flex;align-items:center;justify-content:space-between;gap:14px;border-left:5px solid #81948a;background:#f8faf7;border-radius:10px;padding:14px}.attention-item.priority-urgent{border-left-color:#b54438}.attention-item.priority-attention{border-left-color:#c68d20}.attention-item.priority-info{border-left-color:#4778a8}.attention-item h3,.attention-item p{margin:4px 0}.attention-item small,.compact-row small,.team-workload small{display:block;color:var(--muted);margin-top:5px}.attention-priority{font-size:10px;font-weight:900;text-transform:uppercase}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);gap:18px;align-items:start}.dash-map{grid-row:span 2}.dashboard-map{height:430px;background:#edf1eb;border-radius:12px;overflow:hidden}.dashboard-map svg{width:100%;height:100%}.dashboard-field{fill:#7ba88b;stroke:#fff;stroke-width:3;vector-effect:non-scaling-stroke;cursor:pointer}.dashboard-field.attention-info{fill:#6793b2}.dashboard-field.attention-attention{fill:#d3a03f}.dashboard-field.attention-urgent{fill:#bd574b}.dashboard-field:focus{outline:none;stroke:#173f35;stroke-width:7}.dash-map-fallback,.dash-empty,.dash-error,.dash-detail-loading{display:grid;place-items:center;min-height:100px;text-align:center;color:var(--muted);padding:18px}.compact-row{width:100%;min-height:60px;border:1px solid var(--line);background:#fbfcfa;border-radius:10px;padding:12px;text-align:left;display:flex;justify-content:space-between;align-items:center;gap:12px;color:inherit;cursor:pointer}.compact-row:hover,.compact-row:focus-visible{border-color:#709d87;outline:3px solid rgba(112,157,135,.25)}.compact-row>span:last-child{text-align:right}.followup{display:inline-block;background:#fff0c8;color:#725500;border-radius:16px;padding:4px 7px;font-size:11px}.team-workload{grid-template-columns:repeat(2,minmax(0,1fr))}.team-workload article{border:1px solid var(--line);border-radius:10px;padding:13px}.team-workload dl,.inspection-facts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:12px 0 0}.team-workload dl div,.inspection-facts div{background:#f5f7f3;border-radius:7px;padding:8px;min-width:0}.team-workload dt,.inspection-facts dt{font-size:10px;color:var(--muted)}.team-workload dd,.inspection-facts dd{margin:3px 0 0;font-weight:800;overflow-wrap:anywhere}.inspection-facts{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:22px}.manager-photo-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}.manager-photo{border:1px solid var(--line);border-radius:10px;background:#fff;padding:0;overflow:hidden;text-align:left;cursor:pointer}.manager-photo img{width:100%;height:130px;object-fit:cover;display:block}.manager-photo span{display:block;padding:8px;font-size:11px}.dash-skeleton div{height:82px;border-radius:12px;background:linear-gradient(90deg,#e8ece7,#f6f8f5,#e8ece7);background-size:200% 100%;margin-top:12px;animation:dashPulse 1.2s infinite}@keyframes dashPulse{to{background-position:-200% 0}}
@media(max-width:1100px){.kpi-grid{grid-template-columns:repeat(3,1fr)}.dashboard-grid{grid-template-columns:1fr}.dash-map{grid-row:auto}.team-workload{grid-template-columns:1fr 1fr}}
@media(max-width:768px){.manager-dashboard{padding-top:24px}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-head,.attention-item{align-items:flex-start}.attention-item{flex-direction:column}.attention-item button{min-height:44px;width:100%}.dashboard-map{height:300px}.team-workload,.inspection-facts{grid-template-columns:1fr}.compact-row{min-height:70px}}
@media(max-width:390px){.kpi-grid{grid-template-columns:1fr 1fr;gap:8px}.kpi-card{padding:13px}.dash-head{flex-direction:column}.dash-head button{width:100%}.dashboard-map{height:230px}.compact-row{flex-direction:column;align-items:flex-start}.compact-row>span:last-child{text-align:left}}

/* Stage 8.4: persistent notifications and separate activity history */
.notification-button{position:relative;width:44px;height:44px;border:0;border-radius:50%;background:#27594b;color:#fff;display:grid;place-items:center;cursor:pointer}.notification-button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.notification-button:focus-visible{outline:3px solid #79a9e8}.notification-button span{position:absolute;right:-4px;top:-5px;min-width:21px;height:21px;border-radius:12px;background:#c7493d;color:#fff;font-size:10px;font-weight:900;display:grid;place-items:center;padding:0 4px}.notification-list{display:grid;gap:11px}.notification-item{display:flex;justify-content:space-between;gap:18px;background:#fff;border:1px solid var(--line);border-left:5px solid #6d8176;border-radius:13px;padding:17px}.notification-item.unread{background:#f7fbf7;box-shadow:0 5px 18px rgba(30,70,50,.07)}.notification-item.priority-urgent{border-left-color:#b54438}.notification-item.priority-attention{border-left-color:#c68d20}.notification-item.priority-info{border-left-color:#4778a8}.notification-item h2,.notification-item p{margin:5px 0}.notification-item small{color:var(--muted)}.notification-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.notification-actions button{min-height:44px}.activity-preview{margin-top:18px}.activity-feed{background:#f8faf7}.activity-item{display:grid;grid-template-columns:145px 1fr;gap:14px;padding:11px 0;border-bottom:1px solid var(--line)}.activity-item time,.activity-item small{color:var(--muted);font-size:12px}.activity-item small{display:block;margin-top:4px}
@media(max-width:768px){.notification-item{flex-direction:column}.notification-actions{justify-content:flex-start}.notification-actions button{flex:1}.activity-item{grid-template-columns:1fr;gap:3px}}
.gps-marker{fill:#2959c8;stroke:#fff;stroke-width:3;vector-effect:non-scaling-stroke}
.wgs-map{position:relative;width:100%;height:100%;overflow:hidden;background:#e8ede8}.wgs-map img{position:absolute;width:256px;height:256px}.wgs-map svg{position:absolute;inset:0;width:100%;height:100%}.wgs-map polygon{fill:rgba(52,143,82,.28);stroke:#156b38;stroke-width:4;vector-effect:non-scaling-stroke}.wgs-map small{position:absolute;right:5px;bottom:3px;background:rgba(255,255,255,.85);padding:2px 4px;font-size:9px}.real-map{background:#e8ede8}
.interactive-field-map{position:relative;touch-action:none;background:#dce8df;cursor:grab}.interactive-field-map[data-mode="draw"]{cursor:crosshair}.field-map-tiles,.field-map-overlay{position:absolute;inset:0;overflow:hidden}.field-map-tiles img{position:absolute;width:256px;height:256px;user-select:none}.field-map-overlay{width:100%;height:100%;pointer-events:none}.field-map-overlay polygon,.field-map-overlay polyline{fill:rgba(35,139,76,.3);stroke:#17683a;stroke-width:3;vector-effect:non-scaling-stroke}.field-map-overlay circle{fill:#fff;stroke:#17683a;stroke-width:3;pointer-events:all;cursor:grab}.field-map-controls{position:absolute;z-index:3;left:10px;top:10px;display:flex;flex-wrap:wrap;gap:7px;max-width:calc(100% - 20px)}.field-map-controls button{min-width:44px;min-height:44px;border:1px solid #b8c9bd;border-radius:9px;background:#fff;color:#173f35;font-weight:800;box-shadow:0 2px 8px rgba(20,50,38,.18)}.field-map-attribution{position:absolute;right:4px;bottom:3px;z-index:3;background:rgba(255,255,255,.88);padding:2px 5px;font-size:9px}.drawing-map{height:430px;margin-top:10px}.field-methods{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;border:0;padding:0;margin:18px 0}.field-methods legend{font-weight:800;margin-bottom:9px}.field-methods label{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding:12px}.field-methods input{width:auto;margin:0}.method-panel{margin:15px 0}.confirmation-actions{display:flex;gap:10px;flex-wrap:wrap}.cadastral-meta{display:block}.field-basics{margin-bottom:4px}
@media(max-width:768px){.field-methods{grid-template-columns:1fr}.drawing-map{height:58vh;min-height:340px}.field-map-controls{right:8px;left:8px}.field-map-controls button{flex:1 1 auto}.confirmation-actions>*{min-height:48px;flex:1 1 130px}}

/* Interactive map must fill its card after grid/dialog resize. */
.scene-browser-map img{image-rendering:pixelated}
.scene-mode-tabs{display:flex;gap:8px;margin:0 0 14px}.scene-mode-tabs button{border:1px solid var(--line);background:#fff;padding:9px 16px;border-radius:18px;font-weight:800}.scene-mode-tabs button.active{background:#173f35;color:#fff}.context-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}.context-toolbar label{font-size:13px;margin-left:auto}.context-map{position:relative;height:min(58vh,590px);min-height:320px;overflow:hidden;background:#17251f;border-radius:12px;touch-action:none;cursor:grab}.context-transform{position:absolute;inset:0;transform-origin:center;will-change:transform}.context-transform img,.context-transform svg{position:absolute;inset:0;width:100%;height:100%}.context-transform img{object-fit:fill;image-rendering:auto}.context-transform svg{pointer-events:none}.context-field{fill:rgba(255,255,255,.04);stroke:#fff;stroke-width:8;vector-effect:non-scaling-stroke}.context-deviation{fill:rgba(220,45,45,.32);stroke:#e32f2f;stroke-width:6;vector-effect:non-scaling-stroke}.context-deviation.positive{fill:rgba(35,120,230,.28);stroke:#2475dc}@media(max-width:700px){.context-map{min-height:280px}.context-toolbar label{width:100%;margin-left:0}}
.ndvi-legend i{background:linear-gradient(90deg,#a56037 0 20%,#dcaa37 20% 40%,#adcd50 40% 60%,#46a04b 60% 80%,#0f5f37 80%)}
@media(min-width:701px){.scene-browser{width:min(620px,calc(100% - 24px))}.scene-browser-map{width:min(480px,100%);height:320px;min-height:0;margin-inline:auto}.ndvi-map-frame{width:min(480px,100%);height:320px;min-height:0;margin-inline:auto}}
@media(min-width:701px){.scene-browser{width:min(1120px,calc(100% - 24px))}.scene-browser .context-map{width:min(980px,100%);height:min(70vh,680px);min-height:520px;margin-inline:auto}.scene-browser .context-transform img{image-rendering:auto}}
.scene-browser .context-toolbar{padding:12px;border:1px solid var(--line);border-radius:14px;background:#f7f9f7}.scene-browser .context-toolbar button{min-height:44px}.field-work-journal .work-filters{padding:12px;border-radius:12px;background:#f5f8f5}.field-work-journal .work-filters select{min-height:44px}.fcc-timeline .timeline-scene-event{grid-template-columns:120px 14px minmax(150px,1fr) 150px}.timeline-scene-open{grid-column:4;display:grid;grid-template-columns:64px 1fr;align-items:center;gap:8px;padding:5px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-weight:800;text-align:left}.timeline-scene-open img{width:64px;height:44px;object-fit:cover;border-radius:7px;image-rendering:auto}.timeline-scene-open span{grid-column:2!important;color:var(--ink)!important;font-size:11px!important}@media(max-width:620px){.fcc-timeline .timeline-scene-event{grid-template-columns:90px 12px 1fr}.timeline-scene-open{grid-column:3;width:100%;margin-top:5px}}
.context-map[data-geometry-edit] .context-deviation{display:none}.context-map[data-geometry-edit] .context-field{stroke-width:4}.context-map[data-geometry-edit] .working-vertex{r:9;stroke-width:3}.map-edit-actions{position:absolute;z-index:8;top:12px;right:12px;display:flex;gap:8px;padding:8px;border-radius:12px;background:rgba(255,255,255,.94);box-shadow:0 3px 14px rgba(0,0,0,.2)}.map-edit-actions button{min-height:42px}.context-map[data-geometry-edit]~.geometry-area-summary{display:none}@media(max-width:620px){.map-edit-actions{left:10px;right:10px;top:10px}.map-edit-actions button{flex:1}}
.working-vertex.active{stroke:#ffcf33!important}.contour-count{align-self:center;padding:0 6px;color:var(--ink);font-size:12px;font-weight:900;white-space:nowrap}.add-working-contour:disabled{opacity:.45}
.context-map .context-edge-hit{stroke:transparent;stroke-width:24;vector-effect:non-scaling-stroke;pointer-events:stroke;cursor:copy}.context-map .context-edge-add{fill:#fff;stroke:#1d6a52;stroke-width:3;vector-effect:non-scaling-stroke;pointer-events:all;cursor:copy}.context-map .context-edge-add:hover{fill:#dce9aa}
.fcc-map-preview .context-cadastral{display:none}.fcc-map-preview .context-field{fill:rgba(255,255,255,.025);stroke:#fff;stroke-width:3;stroke-dasharray:10 8;stroke-opacity:.82;vector-effect:non-scaling-stroke}
.fcc-map-preview .context-cadastral{fill:none;stroke:#fff;stroke-width:2;stroke-dasharray:8 11;stroke-opacity:.28;vector-effect:non-scaling-stroke}.fcc-map-preview .context-field{fill:rgba(255,255,255,.025);stroke:#fff;stroke-width:4;vector-effect:non-scaling-stroke}.fcc-map-preview .context-deviation{opacity:.22}
.exclusion-draw-hint{align-self:center;color:var(--ink);font-size:12px;font-weight:800;white-space:nowrap}.context-map[data-geometry-edit="exclusion"]{cursor:crosshair}.context-map[data-geometry-edit="exclusion"] .context-exclusion{fill:rgba(220,55,45,.2);stroke:#fff;stroke-width:3;stroke-dasharray:8 6}
.ndvi-legend span:first-child,.ndvi-legend span:last-child{font-size:0}.ndvi-legend span:first-child::after{content:'≤ 0,2 слабка';font-size:12px}.ndvi-legend span:last-child::after{content:'≥ 0,75 щільна';font-size:12px}
.analysis-result{font-weight:750;color:#2d5d49}.anomaly-summary{padding:12px 0}.anomaly-overlay-map{position:relative;width:min(480px,100%);height:320px;margin:auto;display:grid;place-items:center}.anomaly-overlay-map>img,.anomaly-overlay-map>div{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.anomaly-overlay-map svg{width:100%;height:100%}.anomaly-overlay-map .field-layer{fill:transparent;stroke:#fff;stroke-width:2}.anomaly-overlay-map .anomaly-layer{fill:rgba(235,77,75,.26);stroke:#c92f2f;stroke-width:3}.anomaly-overlay-map .empty-map{display:none}
.ndvi-scene{grid-template-columns:110px minmax(0,1fr) 150px auto}
@media(max-width:900px){.ndvi-scene{grid-template-columns:110px minmax(0,1fr)}.ndvi-scene .ndvi-open{grid-column:1}.ndvi-scene>div{grid-column:2}.ndvi-scene>.status-pill{grid-column:2}.ndvi-scene>.detect-anomalies{grid-column:2;justify-self:start}}
.interactive-field-map{isolation:isolate}
.interactive-field-map>.field-map-tiles,.interactive-field-map>.field-map-overlay{inset:0;width:100%;height:100%}
.interactive-field-map>.field-map-tiles{z-index:0}
.interactive-field-map>.field-map-loading{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:3;pointer-events:none;max-width:calc(100% - 24px);padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.92);color:#21352b;font-size:.85rem;box-shadow:0 1px 4px rgba(0,0,0,.18);text-align:center}
.interactive-field-map>.field-map-loading[hidden]{display:none}
.required-mark{color:#b42318;margin-left:3px;font-weight:700}
#fieldForm [aria-invalid="true"]{border-color:#b42318;box-shadow:0 0 0 1px #b42318}
#fieldDrawingMap[data-missing]{outline:2px solid #b42318;outline-offset:2px}
#fieldMissing ul{margin:6px 0 0;padding-left:20px}
.gps-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px}
.platform-admin{margin-bottom:18px}
.platform-archive{margin-top:8px}.platform-archive>summary{cursor:pointer;font-weight:700;color:#56645b}
.platform-fold>summary{cursor:pointer;list-style:none;position:relative;padding-right:32px}.platform-fold>summary::-webkit-details-marker{display:none}.platform-fold>summary::after{content:'';position:absolute;right:8px;top:50%;width:10px;height:10px;border-right:2px solid #56645b;border-bottom:2px solid #56645b;transform:translateY(-70%) rotate(45deg)}.platform-fold[open]>summary::after{transform:translateY(-30%) rotate(-135deg)}.platform-fold>summary h2{margin-bottom:0}
.admin-farms{list-style:none;padding:0;display:grid;gap:8px}.admin-farms li{border:1px solid #e3e8e4;border-radius:10px;padding:10px 12px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}.admin-farms li button{margin-left:auto}@media(max-width:700px){.admin-farms li button{margin-left:0;width:100%}}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:8px 0 16px}
.platform-table{border-collapse:collapse;width:100%;min-width:720px;font-size:.92rem}
.platform-table th,.platform-table td{border-bottom:1px solid #e3e8e4;padding:8px;text-align:left;vertical-align:top}
.platform-table th{font-size:.8rem;color:#56645b;font-weight:700}
.status-pill.muted{background:#eef1ef;color:#56645b}
.platform-farm-map{height:320px;margin:12px 0}
.platform-fields,.platform-recommendations{padding-left:18px}
.platform-farm #platformRecommendForm{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;max-width:640px;align-items:stretch}
.platform-farm #platformRecommendForm label{display:grid;gap:4px}
.platform-farm #platformRecommendForm select,.platform-farm #platformRecommendForm textarea{width:100%;box-sizing:border-box}
.platform-farm #platformRecommendForm button{justify-self:start}
.gps-actions button{min-height:48px;flex:1 1 160px}
#gpsStatus.gps-error{color:#b42318;font-weight:600}
#gpsStatus.gps-done{color:#1d6b43;font-weight:600}
/* The no-Mapbox notice must not cover the map buttons (on a phone it lay over «Намалювати межі»): it sits at the bottom and lets taps through. */
.interactive-field-map>.mapbox-token-warning{top:auto;bottom:8px;left:8px;right:8px;max-width:none;pointer-events:none;opacity:.94}
.interactive-field-map>.field-map-tiles>img{display:block;max-width:none}
.interactive-field-map>.field-map-overlay{z-index:1}

/* Operational overview header: keep farm, role and refresh time visually separate. */
.dash-title-block{min-width:0}.dash-context{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:8px}.dash-context strong{font-size:16px;color:var(--green)}.dash-context span{padding-left:9px;border-left:1px solid #cbd6cf;color:var(--muted);font-size:13px}.dash-updated{display:block;margin-top:7px;color:var(--muted);font-size:12px}.dash-head .eyebrow{margin-bottom:3px}.dash-head h1{line-height:1.05}
@media(max-width:520px){.dash-context{align-items:flex-start;flex-direction:column;gap:4px}.dash-context span{padding-left:0;border-left:0}.dash-updated{margin-top:10px}}

/* Dashboard hero overrides the generic application navigation header. */
.dashboard header.dash-head{height:auto;min-height:0;padding:26px 30px;margin-bottom:22px;border-radius:18px;background:var(--green);align-items:flex-end}.dashboard header.dash-head h1{margin:6px 0 0;color:#fff;line-height:1.05}.dashboard header.dash-head .eyebrow{margin-top:9px;color:#bcd0c6}.dashboard-farm{display:block;color:var(--accent);font-size:15px}.dashboard header.dash-head .dash-updated{color:#c8d7d0}.dashboard header.dash-head #dashboardRefresh{flex:0 0 auto}
@media(max-width:520px){.dashboard header.dash-head{padding:22px 18px;align-items:flex-start;flex-direction:column}.dashboard header.dash-head #dashboardRefresh{width:100%}}

.danger-zone{margin-top:22px;padding-top:18px;border-top:1px solid #efc6c2}.danger-zone strong{color:#8f2f28}.danger-zone p{color:var(--muted);font-size:12px;line-height:1.45}.danger{border:1px solid #c84d43;border-radius:10px;padding:11px 16px;background:#fff;color:#a2332b;font-weight:800;cursor:pointer}.danger:hover{background:#a83a31;color:#fff}.danger:disabled{opacity:.55;cursor:wait}
.context-cadastral{fill:none;stroke:#ffd447;stroke-width:7;stroke-dasharray:18 12;vector-effect:non-scaling-stroke}.working-vertex{fill:#fff;stroke:#196f4f;stroke-width:5;vector-effect:non-scaling-stroke;pointer-events:all;cursor:move}.context-layers,.geometry-area-summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:10px 0}.context-layers label{background:#eef3ef;border-radius:16px;padding:7px 10px;font-size:12px}.geometry-area-summary{justify-content:space-between;padding:10px 12px;background:#f6f8f5;border-radius:10px}.geometry-area-summary span{font-size:12px}.context-ndvi{opacity:.48}
.field-control-center{display:grid;gap:18px}.fcc-hero,.fcc-main-map,.fcc-grid>section,.fcc-timeline,.fcc-season{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px}.fcc-hero{display:grid;grid-template-columns:minmax(220px,.7fr) 1.7fr;gap:24px;align-items:center}.fcc-hero h1{margin:4px 0}.fcc-summary{display:grid;grid-template-columns:repeat(5,minmax(110px,1fr));gap:10px}.fcc-summary span{font-size:11px;color:var(--muted);background:#f3f7f3;padding:12px;border-radius:10px}.fcc-summary strong{display:block;color:var(--ink);font-size:15px;margin-top:5px}.fcc-main-map{padding:20px}.fcc-map-preview{position:relative;display:block;width:100%;height:min(52vh,540px);border:0;border-radius:13px;overflow:hidden;background:#17251f;padding:0;cursor:pointer}.fcc-map-preview img,.fcc-map-preview svg{position:absolute;inset:0;width:100%;height:100%}.fcc-map-preview img{object-fit:fill}.fcc-map-preview svg{pointer-events:none}.fcc-layer-list{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.fcc-layer-list span{padding:6px 10px;border-radius:15px;background:#eaf1ec;font-size:12px;font-weight:700}.fcc-main-map>p{font-size:13px;color:var(--muted);margin:8px 0}.fcc-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.fcc-grid h2,.fcc-timeline h2,.fcc-season h2{margin-top:0}.fcc-item{display:grid;grid-template-columns:1fr auto;gap:5px 12px;padding:12px 0;border-bottom:1px solid var(--line)}.fcc-item span{font-size:12px;color:var(--muted)}.fcc-item button{grid-row:1/3;grid-column:2}.neutral-empty{color:var(--muted);background:#f5f7f5;padding:12px;border-radius:9px}.fcc-timeline>div{display:grid;grid-template-columns:120px 14px 1fr;gap:10px;align-items:center;padding:8px 0}.fcc-timeline>div:before{content:'';grid-column:2;width:9px;height:9px;border-radius:50%;background:var(--green)}.fcc-timeline time{grid-column:1;grid-row:1;color:var(--muted);font-size:12px}.fcc-timeline span{grid-column:3;grid-row:1}.fcc-season{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.fcc-season h2{width:100%;margin-bottom:0}.fcc-season p{flex:1 1 420px;margin:0}.fcc-season>span{color:var(--muted);font-size:12px}.fcc-technical{margin-top:18px}.fcc-technical>summary{cursor:pointer;padding:14px;background:#eef3ef;border-radius:10px;font-weight:800}.fcc-technical-body{display:grid;gap:0;margin-top:12px}@media(max-width:820px){.fcc-hero{grid-template-columns:1fr}.fcc-summary{grid-template-columns:1fr 1fr}.fcc-grid{grid-template-columns:1fr}.fcc-map-preview{height:360px}.fcc-main-map .map-head{align-items:flex-start;flex-direction:column}.fcc-main-map .primary{width:100%;min-height:46px}}@media(max-width:480px){.fcc-summary{grid-template-columns:1fr}.fcc-hero,.fcc-main-map,.fcc-grid>section,.fcc-timeline,.fcc-season{padding:15px}.fcc-map-preview{height:300px}.fcc-item{grid-template-columns:1fr}.fcc-item button{grid-row:auto;grid-column:auto;min-height:44px}.fcc-timeline>div{grid-template-columns:94px 12px 1fr}.fcc-layer-list span{font-size:11px}}
.field-work-journal{margin:24px 0;padding:24px;border:1px solid var(--line);border-radius:24px;background:var(--surface,#fff)}
.work-journal-head,.work-entry header,.work-actions,.work-filters{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.work-journal-head h2{margin:.2rem 0}.work-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.work-summary span{padding:14px;border-radius:14px;background:var(--surface-soft,#f5f7f3);display:grid;gap:4px}.work-summary strong{font-size:1.25rem}.work-filters{justify-content:flex-start;margin:14px 0}.work-list{display:grid;gap:12px}.work-entry{border:1px solid var(--line);border-radius:16px;padding:16px}.work-entry p{margin:.55rem 0}.work-entry ul{margin:.4rem 0;padding-left:20px}.work-economics{color:var(--success,#276b3a)}.work-actions{justify-content:flex-start}.work-create{margin-top:18px;border-top:1px solid var(--line);padding-top:16px}.work-create summary{cursor:pointer;font-weight:700}.work-create form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.work-create label{display:grid;gap:6px}.work-create textarea{min-height:80px}.work-create form>p,#workMaterials,.work-create form>button{grid-column:1/-1}.work-material-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:8px;align-items:center;margin-bottom:8px}.farm-work-dialog{width:min(1000px,94vw);max-height:88vh;border:0;border-radius:20px;padding:22px}.farm-work-dialog::backdrop{background:#0008}.farm-work-dialog .dialog-close{float:right;font-size:1.5rem}.farm-work-dialog .work-list{max-height:65vh;overflow:auto}
@media(max-width:760px){.work-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.work-create form{grid-template-columns:1fr}.work-material-row{grid-template-columns:1fr 1fr}.field-work-journal{padding:16px;border-radius:18px}}
.farm-operations{display:grid;gap:24px;margin-bottom:28px}.ops-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.ops-head h1{margin:.25rem 0}.ops-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ops-kpis span,.ops-plan span{display:grid;gap:5px;padding:16px;border-radius:16px;background:var(--surface-soft,#f4f7f2);border:1px solid var(--line)}.ops-kpis strong,.ops-plan strong{font-size:1.35rem}.ops-filters{display:flex;flex-wrap:wrap;gap:10px;padding:14px;border:1px solid var(--line);border-radius:16px}.ops-filters input,.ops-filters select{min-width:140px;flex:1}.ops-field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.ops-field{display:grid;gap:14px;padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--surface,#fff)}.ops-field header{display:flex;justify-content:space-between;gap:10px}.ops-field h3{margin:0}.ops-field header p{margin:.25rem 0}.ops-state{height:max-content;padding:6px 9px;border-radius:999px;background:#edf4e9;font-weight:700;font-size:.82rem}.ops-field dl,.ops-economics{display:grid;gap:8px;margin:0}.ops-field dl>div,.ops-economics>div{display:flex;justify-content:space-between;gap:10px}.ops-field dt{color:var(--muted)}.ops-field dd,.ops-economics dd{margin:0;text-align:right;font-weight:600}.ops-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.ops-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.ops-row>div{display:grid;gap:3px}.ops-row span{color:var(--muted)}.ops-plan{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ops-materials{display:grid;gap:9px}.ops-materials article{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;padding:12px;border-radius:12px;background:var(--surface-soft,#f4f7f2)}.ops-timeline{display:grid}.ops-timeline article{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.ops-timeline article>div{display:grid}.ops-timeline span{color:var(--muted)}
@media(max-width:900px){.ops-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-field-grid{grid-template-columns:1fr}.ops-columns{grid-template-columns:1fr}.ops-row{grid-template-columns:1fr auto}.ops-row button{grid-column:1/-1;min-height:44px}.ops-timeline article{grid-template-columns:90px 1fr}.ops-timeline button{grid-column:1/-1;min-height:44px}}
@media(max-width:560px){.farm-operations{gap:18px}.ops-head{display:grid}.ops-kpis{grid-template-columns:1fr 1fr}.ops-kpis span{padding:13px}.ops-filters{display:grid}.ops-filters input,.ops-filters select{width:100%;min-width:0;min-height:44px}.ops-plan{grid-template-columns:1fr 1fr}.ops-materials article{grid-template-columns:1fr}.ops-field{padding:15px}.ops-field header{display:grid}.ops-field button,.ops-head button{min-height:46px;width:100%}}
.context-exclusion{fill:rgba(190,55,45,.34);stroke:#fff;stroke-width:5;stroke-dasharray:14 8;vector-effect:non-scaling-stroke}.exclusion-panel{margin:14px 0;padding:16px;border:1px solid var(--line);border-radius:16px}.exclusion-panel h3{margin-top:0}.exclusion-panel article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.exclusion-panel article>div{display:grid;gap:3px}.exclusion-panel span{color:var(--muted)}
@media(max-width:560px){.exclusion-panel article{grid-template-columns:1fr 1fr}.exclusion-panel article>div{grid-column:1/-1}.exclusion-panel button{min-height:46px}.context-layers label{min-height:44px;display:flex;align-items:center}}
.field-map-overlay .registered-field-shape{fill:rgba(35,139,76,.12);stroke:#39775e;stroke-width:2;stroke-dasharray:7 5;vector-effect:non-scaling-stroke}
.interactive-field-map[data-mode="draw"] .field-map-overlay,.interactive-field-map[data-mode="edit"] .field-map-overlay{pointer-events:auto}
.field-map-overlay .field-edge-hit{stroke:transparent;stroke-width:48;vector-effect:non-scaling-stroke;pointer-events:stroke;cursor:copy}
.field-map-overlay .field-edge-add{fill:#fff;stroke:#1d6a52;stroke-width:2;pointer-events:all;cursor:copy;r:10}
.interactive-field-map[data-mode="edit"] .field-map-overlay polygon:not(.registered-field-shape){pointer-events:none}
.drawing-map-legend{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:8px 0 2px;font-size:12px;font-weight:800;color:#46574f}.drawing-map-legend span:before{content:"";display:inline-block;width:23px;height:12px;margin-right:7px;vertical-align:-2px;border-radius:3px}.drawing-map-legend .registered-key:before{background:rgba(35,139,76,.12);border:2px dashed #39775e}.drawing-map-legend .new-field-key:before{background:rgba(35,139,76,.3);border:2px solid #17683a}
.field-anomaly-card{display:grid;gap:6px;margin-top:12px;padding:15px 18px;border:1px solid #e5aaa6;border-radius:14px;background:#fff4f3}.field-anomaly-card strong{font-size:17px;color:#8f2f28}.field-anomaly-card span{font-size:13px}.field-anomaly-card b{margin-top:5px;color:#71413d}.field-status-toolbar [data-status-layer="anomalies"].active{background:#b93632;color:#fff;border-color:#b93632}.field-status-toolbar [data-status-layer="anomalies"]:disabled{opacity:.45;cursor:not-allowed}
.field-anomaly-summary{display:grid;gap:6px}.field-check-form{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:12px;margin-top:12px;padding-top:14px;border-top:1px solid #e5aaa6}.field-check-form h3,.field-check-description,.field-check-result{grid-column:1/-1}.field-check-form h3{margin:0}.field-check-form label{display:grid;gap:5px;font-weight:700;color:var(--ink)}.field-check-form select,.field-check-form input,.field-check-form textarea{width:100%;background:#fff}.field-check-form .primary{justify-self:start}.field-check-result{margin:0;font-weight:700;color:var(--green)}.link-button{padding:0;border:0;background:none;color:var(--green);font-weight:800;text-decoration:underline;cursor:pointer}@media(max-width:760px){.field-check-form{grid-template-columns:1fr}.field-check-form .primary{width:100%}}
.field-status-ndvi-legend{position:absolute;z-index:4;left:14px;bottom:30px;display:flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.92);box-shadow:0 2px 12px rgba(20,45,36,.2);font-size:12px;font-weight:800}.field-status-ndvi-legend i{display:block;width:150px;height:12px;border-radius:999px;background:linear-gradient(90deg,#8b1a1a,#e17b2d,#f5e65b,#81c95b,#176c38)}
.context-transform>img:not(.context-ndvi){filter:none}

/* Add-field workspace: give the boundary map the full available screen. */
#fieldDialog{width:calc(100vw - 24px);max-width:none;height:calc(100vh - 24px);max-height:none;margin:12px;padding:0}
#fieldDialog #fieldForm{height:100%;max-height:100%;padding:18px 22px;overflow-y:auto;align-content:start}
#fieldDialog .dialog-head{position:sticky;top:-18px;z-index:10;margin:-18px -22px 0;padding:18px 22px 12px;background:#fff;border-bottom:1px solid var(--line)}
#fieldDialog #mapMethod{display:grid;grid-template-columns:minmax(0,1fr);margin:8px 0}
#fieldDialog .drawing-map{width:100%;height:clamp(520px,68vh,900px);margin-top:8px}
#fieldDialog .field-basics{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:768px){#fieldDialog{width:calc(100vw - 8px);height:calc(100vh - 8px);margin:4px;border-radius:12px}#fieldDialog #fieldForm{padding:14px}#fieldDialog .dialog-head{top:-14px;margin:-14px -14px 0;padding:14px}#fieldDialog .field-basics{grid-template-columns:1fr}#fieldDialog .drawing-map{height:70vh;min-height:430px}}
.context-image-warning{position:absolute;z-index:4;left:10px;bottom:10px;padding:6px 9px;border-radius:8px;background:rgba(255,255,255,.9);color:#654b13;font-size:12px;font-weight:700}.context-image-error{position:absolute;inset:0;display:grid;place-items:center;padding:24px;text-align:center;background:#eef3ef;color:var(--muted);font-weight:700}.context-rgb-fallback{object-fit:contain!important}
.scene-mode-tabs{position:sticky;top:0;z-index:5;background:#fff;padding:6px}.scene-mode-tabs button{flex:1}.context-layers{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 0}.context-layers:before{content:'Шари';font-weight:900;color:var(--ink)}.context-layers label{margin:0;padding:7px 10px;border-radius:16px;background:#eef3ef}.context-base-map{height:min(65vh,650px)}.contour-history{margin:10px 0}.contour-history summary{cursor:pointer;font-weight:800;color:#29483d}.contour-history button{margin-top:8px}
.context-map .context-transform svg{pointer-events:auto}.context-map .working-vertex{pointer-events:all;cursor:grab;stroke-width:8;r:15}.context-map .working-vertex:active{cursor:grabbing}.context-map:has(.working-vertex){cursor:crosshair;user-select:none}.context-map:has(.working-vertex) .context-field{pointer-events:none}
.context-map .context-cadastral{fill:none;stroke:#fff;stroke-width:2;stroke-dasharray:9 10;stroke-opacity:.32;vector-effect:non-scaling-stroke}
.contour-refinement-area{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:10px;margin:10px 0;padding:12px;border:1px solid var(--line);border-radius:10px;background:#f5f8f5}.contour-refinement-area span{color:var(--muted);font-size:12px}.contour-refinement-area strong{display:block;margin-top:3px;color:var(--ink);font-size:16px}@media(max-width:620px){.contour-refinement-area{grid-template-columns:1fr}}
/* Dark green surfaces always use white foreground text and icons. */
.identity-panel,.identity-panel h1,.identity-panel p,.identity-panel small,.identity-panel strong,.identity-panel .eyebrow,.identity-panel .security-note,.dashboard header,.dashboard header h1,.dashboard header h2,.dashboard header p,.dashboard header small,.dashboard header span,.dashboard header strong,.dashboard header button,.dashboard header.dash-head,.dashboard header.dash-head h1,.dashboard header.dash-head p,.dashboard header.dash-head small{color:#fff!important}.dashboard header svg{color:#fff;stroke:currentColor}.nav-button.active,.nav-button:hover,.scene-mode-tabs button.active,.primary{color:#fff!important}.brand>span{color:var(--green)!important}
.context-layers label:has([data-context-layer="cadastral"]){display:none}.fcc-map-preview .context-cadastral{display:none}.fcc-map-preview .context-field{fill:rgba(255,255,255,.025);stroke:#fff;stroke-width:3;stroke-dasharray:10 8;stroke-opacity:.82;vector-effect:non-scaling-stroke}
.fcc-map-viewport{position:absolute;inset:0;display:block;transform-origin:0 0;will-change:transform}.fcc-map-viewport>img,.fcc-map-viewport>svg{position:absolute;inset:0;width:100%;height:100%}.fcc-map-preview.is-zoomed{cursor:grab;touch-action:none}.fcc-map-preview.is-zoomed:active{cursor:grabbing}.fcc-map-zoom{display:flex;gap:7px;margin:10px 0 2px}.fcc-map-zoom button{min-width:42px;min-height:40px;padding:7px 13px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-weight:800}.fcc-map-zoom button:hover{background:#eaf1ec}
.fcc-ndvi-stale{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0 12px;padding:11px 13px;border-radius:10px;background:#fff4d6;color:#554516}.fcc-ndvi-stale span{flex:1 1 320px}.fcc-ndvi-stale button{min-height:40px}
.mapbox-field-map{background:#dce8df}.mapbox-field-map .mapboxgl-canvas{outline:none}.mapbox-field-map .mapboxgl-ctrl-top-left{top:8px;left:8px}.mapbox-field-map .mapboxgl-ctrl-group{border-radius:9px;overflow:hidden}.mapbox-field-map .mapboxgl-ctrl-attrib{font-size:10px}.mapbox-field-map .mapboxgl-ctrl-logo{opacity:.75}.mapbox-token-warning{position:absolute;z-index:5;right:10px;top:10px;max-width:280px;padding:8px 10px;border-radius:8px;background:#fff4d6;color:#554516;font-size:11px}
.scene-browser{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);margin-block:8px;overflow:auto}.scene-browser>.scene-browser-head{position:sticky;top:0;z-index:12;min-height:52px;padding-top:8px;padding-bottom:8px;background:#fff}.scene-browser-head .eyebrow{display:none}.scene-browser-head h2{font-size:1.15rem}.scene-browser #sceneBrowserContent{padding-top:0}.scene-browser .scene-mode-tabs{margin-bottom:6px;padding:4px 0}.scene-browser .scene-mode-tabs button{padding:7px 12px;min-height:38px}.scene-browser .context-toolbar{margin-bottom:6px;padding:6px 8px}.scene-browser .context-toolbar button{min-height:38px;padding:7px 11px}.scene-browser .context-layers{padding:4px 0;margin:0}.scene-browser .context-layers label{padding:5px 8px}.scene-browser .context-map,.scene-browser .scene-browser-map{height:calc(100dvh - 238px);min-height:340px;max-height:680px}.scene-browser .scene-browser-stats{margin:7px 0;gap:6px}.scene-browser .scene-browser-stats div{padding:7px 9px}.scene-browser .field-help{margin:5px 0;font-size:11px}.scene-browser>.scene-browser-nav{position:sticky;bottom:0;z-index:12;padding-top:7px;padding-bottom:7px;background:#fff}.scene-browser>.scene-browser-nav button{min-height:38px}@media(max-height:760px) and (min-width:701px){.scene-browser .context-map,.scene-browser .scene-browser-map{height:calc(100dvh - 205px);min-height:390px}.scene-browser .scene-browser-stats,.scene-browser #sceneBrowserContent>.field-help{display:none}.scene-browser .context-layers{font-size:11px}.scene-browser>.scene-browser-nav{padding-top:5px;padding-bottom:5px}}
.scene-browser{position:relative}.scene-browser>.scene-browser-nav{position:static;height:0;min-height:0;padding:0;border:0;background:transparent}.scene-browser>.scene-browser-nav button{position:absolute;z-index:20;top:50%;width:52px;height:58px;min-height:58px;padding:0;overflow:hidden;font-size:0;border-radius:14px;background:rgba(255,255,255,.94);box-shadow:0 4px 18px rgba(0,0,0,.25)}.scene-browser>.scene-browser-nav button:before{font-size:31px;line-height:1}.scene-browser>.scene-browser-nav .previous-scene{left:10px}.scene-browser>.scene-browser-nav .previous-scene:before{content:'‹'}.scene-browser>.scene-browser-nav .next-scene{right:10px}.scene-browser>.scene-browser-nav .next-scene:before{content:'›'}.scene-browser>.scene-browser-nav button:disabled{opacity:.35}.scene-browser #sceneBrowserPosition{position:absolute;z-index:13;top:19px;left:50%;transform:translateX(-50%);padding:4px 9px;border-radius:12px;background:#eef3ef;font-size:12px;font-weight:800;white-space:nowrap}@media(max-width:700px){.scene-browser>.scene-browser-nav button{top:48%;width:44px;height:52px}.scene-browser>.scene-browser-nav .previous-scene{left:4px}.scene-browser>.scene-browser-nav .next-scene{right:4px}.scene-browser #sceneBrowserPosition{top:55px}}
.field-status{display:grid;gap:18px}.field-status>section,.field-status-head,.field-status-season{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px}.field-status-head{display:flex;justify-content:space-between;gap:18px;align-items:center}.field-status-head h1{margin:3px 0}.field-status-head>div:last-child{display:grid;text-align:right}.field-status-head>div:last-child strong{font-size:1.5rem}.field-status-head span,.field-status-season span{color:var(--muted);font-size:12px}.field-status-season{display:flex;align-items:end;gap:22px;flex-wrap:wrap}.field-status-season span{display:grid;gap:5px}.field-status-season strong{color:var(--ink);font-size:14px}.field-status-season form{display:flex;gap:8px}.field-status-chart{width:100%;height:220px;overflow:visible}.field-status-chart path{fill:none;stroke:#21875b;stroke-width:4}.field-status-chart line{stroke:#b9c7be}.ndvi-chart-point{cursor:pointer;outline:none}.ndvi-chart-point circle{fill:#fff;stroke:#21875b;stroke-width:4}.ndvi-chart-point.active circle{fill:#ffd55c;stroke:#173f35;stroke-width:5}.field-status-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:10px}.field-status-toolbar [data-status-mode].active{background:var(--green);color:#fff}.field-status-toolbar #fieldStatusPosition{margin-left:auto;font-weight:800}#fieldStatusMap{height:min(55vh,560px);min-height:380px;border-radius:14px;overflow:hidden;background:#dce8df}.field-status-stats{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-top:10px}.field-status-stats span{padding:10px;background:#f2f6f0;border-radius:9px;color:var(--muted);font-size:11px}.field-status-stats strong{display:block;color:var(--ink);font-size:13px;margin-top:4px}@media(max-width:800px){.field-status-head{align-items:flex-start;flex-direction:column}.field-status-head>div:last-child{text-align:left}.field-status-stats{grid-template-columns:1fr 1fr}#fieldStatusMap{min-height:320px}.field-status-toolbar #fieldStatusPosition{width:100%;margin:0;text-align:center}}
.context-map .context-vertex-hit{fill:transparent!important;stroke:transparent!important;stroke-width:0!important;pointer-events:all!important;cursor:grab}.context-map .context-vertex-hit:active{cursor:grabbing}
.fcc-layer-list .fcc-layer-button{min-height:38px;padding:7px 12px;border:1px solid #cbd8d0;border-radius:18px;background:#f4f7f4;color:#29483d;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.fcc-layer-list .fcc-layer-button.active{border-color:#1d6a52;background:#1d6a52;color:#fff}.fcc-layer-list .fcc-layer-button:disabled{cursor:not-allowed;opacity:.5}
.ndvi-chart-point text{fill:#173f35;font-size:13px;font-weight:800;pointer-events:none}
.field-status-summary{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:10px;margin:14px 0}.field-status-summary span{display:flex;flex-direction:column;padding:12px;border-radius:12px;background:#f1f5f2;color:#36534b}.field-status-summary strong{font-size:1.35rem;color:#143f34}@media(max-width:900px){.field-status-summary{grid-template-columns:repeat(2,minmax(130px,1fr))}}
.field-weather{margin-top:18px}.weather-summary{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:10px;margin:14px 0}.weather-summary span{display:flex;flex-direction:column;padding:12px;border-radius:12px;background:#edf4ef;color:#36534b}.weather-summary strong{font-size:1.05rem;color:#143f34}.weather-chart{width:100%;max-height:210px;background:#fbfdfb;border-radius:14px}.weather-chart path{fill:none;stroke:#19745b;stroke-width:4}.weather-chart line{stroke:#9bada7;stroke-width:1}.weather-chart circle{fill:#fff;stroke:#19745b;stroke-width:2}.weather-source,.weather-context{color:#597069}.weather-context{padding:10px 0}@media(max-width:900px){.weather-summary{grid-template-columns:repeat(2,minmax(130px,1fr))}}
.map-raster-status{position:absolute;left:50%;top:50%;z-index:5;max-width:520px;transform:translate(-50%,-50%);padding:12px 16px;border-radius:12px;background:rgba(20,63,52,.92);color:#fff;font-weight:800;text-align:center;pointer-events:none}
.map-raster-status.warning{top:18px;transform:translateX(-50%);background:rgba(92,70,18,.94)}
.map-raster-status.stale-geometry{display:flex;flex-direction:column;align-items:center;gap:10px;max-width:620px;pointer-events:auto}
.map-raster-status.stale-geometry .status-process-ndvi{border-color:#fff}
.current-geometry-banner,.stale-analytics-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:12px 0;padding:13px 15px;border-radius:12px}.current-geometry-banner{background:#eaf5ee;border:1px solid #b9d7c5}.current-geometry-banner>div{display:grid}.current-geometry-banner span{color:var(--muted);font-size:12px}.stale-analytics-panel{background:#fff4d6;border:1px solid #e5ca72}.stale-analytics-panel>div{display:grid;gap:3px}.stale-analytics-panel span{color:#67551c}.stale-analytics-panel .primary{min-height:42px}@media(max-width:700px){.current-geometry-banner,.stale-analytics-panel{align-items:stretch}.stale-analytics-panel .primary{width:100%}}
.fcc-current-geometry,.stale-history-note{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:11px 14px;border-radius:10px;background:#eaf5ee;border:1px solid #b9d7c5}.fcc-current-geometry span{color:var(--muted);font-size:12px}.stale-history-note{display:grid;margin-bottom:10px;background:#fff4d6;border-color:#e5ca72}.stale-analytics{opacity:.78;background:#faf7ed}.stale-analytics-label{color:#745f20;font-weight:700}.stale-scene{background:#fff4d6;border:1px solid #e5ca72}
#fieldDetailPage{overflow-anchor:none}
#fieldDetailPage.field-opening{position:relative;min-height:72vh}
#fieldDetailPage.field-opening #fieldDetail{visibility:hidden}
#fieldDetailPage.field-opening::after{content:'Завантаження картки поля…';position:absolute;left:50%;top:120px;transform:translateX(-50%);padding:18px 24px;border-radius:14px;background:#eef4f0;color:#174b3d;font-weight:800}
.fcc-preview-date{position:absolute;left:18px;bottom:18px;z-index:3;padding:8px 12px;border-radius:999px;background:rgba(18,58,48,.9);color:#fff;font-weight:800}
.field-inspection-callout{display:grid;gap:18px;margin:24px 0;padding:24px;border:2px solid #2f7d55;border-radius:18px;background:#f2faf5}.field-inspection-callout h2{margin:.2rem 0}.field-inspection-callout p{margin:.35rem 0}.field-inspection-callout>.primary{justify-self:end;min-width:280px}.task-route-list{display:grid;gap:8px}.task-route-list>div{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 0;border-top:1px solid #cfdfd5}.task-route-list .secondary{min-height:42px}.task-route-list .point-photo-entry{grid-column:1/-1;width:100%;min-height:46px}.task-route-list .point-photo-entry[aria-busy="true"]{opacity:1;cursor:progress}.inspection-points>div{min-width:0}.inspection-point{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:18px 0;border-top:1px solid var(--line)}.inspection-point>strong{font-size:17px}.inspection-point>span{margin-right:auto;color:var(--muted);white-space:nowrap}.inspection-point>a,.inspection-point>.zone-gps{flex:0 0 auto}.inspection-point>label:not(.photo-picker){flex:1 0 100%;min-width:0}.inspection-point .zone-gps{margin:0}@media(max-width:700px){.field-inspection-callout{align-items:stretch}.field-inspection-callout>.primary{width:100%;min-width:0;justify-self:stretch}.task-route-list>div{grid-template-columns:38px minmax(0,1fr)}.task-route-list .secondary{grid-column:1/-1;width:100%}.inspection-point{align-items:stretch}.inspection-point>strong,.inspection-point>span{flex:1 0 100%}.inspection-point>span{white-space:normal}.inspection-point>a,.inspection-point>.zone-gps,.inspection-point>.photo-picker{width:100%}}
.inspection-zone-record-list{display:grid;gap:16px}.inspection-zone-record{border:1px solid #d9e2d6;border-radius:18px;padding:18px;background:#f8faf6}.inspection-zone-record h3{margin:0 0 14px}.inspection-zone-record label{display:grid;gap:7px;margin-top:12px}.inspection-zone-record .photo-picker{display:inline-flex;width:max-content;max-width:100%}
.photo-action-feedback{display:block;flex:1 0 100%;margin-top:7px;color:var(--muted);font-size:13px;line-height:1.4}.photo-action-feedback[data-state="ready"]{color:#17633f;font-weight:800}.photo-action-feedback[data-state="error"]{color:#9b332a;font-weight:800}
.inspection-route-marker circle{fill:#b63f31;stroke:#fff;stroke-width:2.5;vector-effect:non-scaling-stroke}.inspection-route-marker.control circle{fill:#195d4b}.inspection-route-marker text{fill:#fff;font-weight:900;text-anchor:middle;paint-order:stroke;stroke:rgba(0,0,0,.2);stroke-width:.5;pointer-events:none}.inspection-route-badge{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:#b63f31;color:#fff;font-weight:900}.inspection-route-badge.control{background:#195d4b}.route-number-key:before{background:#b63f31!important;border-radius:50%!important}.route-control-key:before{background:#195d4b!important;border-radius:50%!important}
.route-unavailable{display:inline-flex;align-items:center;justify-content:center;color:var(--muted)!important;background:#eef2ee!important;border-style:dashed!important;cursor:not-allowed;line-height:1.3;text-align:center}
.inspection-summary-step>div{display:grid;gap:18px}.inspection-summary-step fieldset{margin:0}.inspection-points .inspection-point:last-child textarea{margin-top:6px}.inspection-step[hidden]{display:none!important}
.voice-input-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px;grid-column:1/-1}.voice-input-button{width:auto}.voice-input-status{font-size:.9rem;color:#526258}
/* Voice input (owner 27.11): a red button while recording; the hint replaces the button where the browser cannot recognise speech. */
.voice-input-button.voice-recording{background:#c62828;border-color:#c62828;color:#fff}.voice-input-button.voice-recording:hover{background:#a61f1f}.voice-input-controls.is-recording .voice-input-status{color:#c62828;font-weight:700}.voice-input-hint{color:#526258}[hidden]+.voice-input-controls{display:none}
/* A small form on the page in place of the browser's prompt() (owner 27.11, list В). */
.voice-dialog-backdrop{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:16px;background:rgba(17,31,25,.45)}.voice-dialog{display:grid;gap:12px;width:min(520px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:20px;border-radius:16px;background:#fff;box-shadow:0 18px 50px rgba(0,0,0,.25);box-sizing:border-box}.voice-dialog h3{margin:0}.voice-dialog label{display:grid;gap:6px;font-weight:700}.voice-dialog input,.voice-dialog select,.voice-dialog textarea{width:100%;box-sizing:border-box;font:inherit;font-weight:400;padding:10px;border:1px solid var(--line);border-radius:10px}.voice-dialog .voice-input-controls{margin-top:0}.voice-dialog select.voice-language{width:auto;padding:6px 8px}.voice-dialog-actions{display:flex;flex-wrap:wrap;gap:10px}.voice-dialog-actions button{width:auto}.voice-input-controls .voice-input-status{flex:1 1 220px;min-width:0;overflow-wrap:anywhere}
/* The recommendation text (owner 27.11): a full-width field under its label, so dictated text is readable. */
#platformRecommendForm textarea{display:block;width:100%;min-height:110px;margin-top:6px;padding:10px;font:inherit;border:1px solid var(--line);border-radius:10px;box-sizing:border-box}
.field-compact-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;min-width:min(100%,520px)}
.field-compact-meta span{display:flex;flex-direction:column;gap:4px;color:var(--muted,#61706b);font-size:.9rem}
.field-compact-meta strong{color:var(--ink,#17352d);font-size:1rem;overflow-wrap:anywhere}
.field-active-work,.field-management{background:#fff;border:1px solid #dce5df;border-radius:22px;padding:24px;margin:20px 0}
.field-active-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-top:1px solid #e5ebe7}
.field-active-row:first-of-type{border-top:0}.field-active-row>div{display:flex;flex-direction:column;gap:5px}.field-active-row span{color:var(--muted,#61706b)}
.field-management>summary,.fcc-technical>summary{cursor:pointer;font-weight:800;padding:4px 0}
.field-management-body{display:grid;gap:18px;padding-top:18px}.field-management-body .danger-zone{margin-top:8px}
.current-work-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.current-work-actions button{padding:8px 12px}
.fcc-main-map .map-head{gap:12px;flex-wrap:wrap}.fcc-main-map .edit-current-field-geometry{flex:0 0 auto;min-height:42px}
.fcc-hero>div:first-child>.edit-current-field-geometry{margin-top:10px;margin-left:8px;min-height:42px;vertical-align:top}
.field-row-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.field-row-actions button{white-space:nowrap}
.field-change-requests,.agronomist-field-changes{margin:18px 0;padding:20px;border:1px solid var(--line);border-radius:16px;background:#fff}.field-change-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid var(--line)}.field-change-row:first-of-type{border-top:0}.field-change-row span{display:block;margin-top:4px;color:var(--muted);font-size:12px}.field-change-actions{display:flex;gap:8px;flex-wrap:wrap}.agronomist-field-changes summary{cursor:pointer;font-weight:800}.agronomist-field-edit{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.agronomist-field-edit .field-change-actions,.agronomist-field-edit p{grid-column:1/-1}
.clear-field-contour{margin:10px 0 0;width:100%;border-color:#c66;color:#8d2d2d;background:#fff7f7}
.dashboard header #networkState,.dashboard header #logoutButton{color:#fff!important;background:#27594b;border:1px solid #477968}.dashboard header #networkState[data-state="offline"]{color:#fff!important;background:#8a4a32;border-color:#ae6b50}.dashboard header #logoutButton:hover{color:#fff!important;background:#326b5a}
@media(max-width:720px){.field-active-row{align-items:stretch;flex-direction:column}.field-active-row button{width:100%}}
@media(max-width:720px){.fcc-main-map .edit-current-field-geometry,.fcc-hero>div:first-child>.edit-current-field-geometry{width:100%;margin-left:0}}
@media(max-width:720px){#fieldsPage .page-head{align-items:stretch;flex-direction:column}#fieldsPage .page-head>button{width:100%;min-height:48px}#fieldsPage .fields-layout{gap:14px}.field-row{grid-template-columns:minmax(0,1fr);align-items:stretch;gap:10px;padding:14px}.field-row>div{min-width:0}.field-row>div:nth-child(2){display:flex;align-items:center;justify-content:space-between;gap:10px}.field-row>div:nth-child(2) span{margin-top:0}.field-row-actions{grid-column:1/-1;width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px;justify-content:stretch}.field-row-actions button{width:100%;min-width:0;min-height:46px;padding-inline:10px;white-space:normal}#fieldsMap{height:240px}}
@media(max-width:390px){.field-row-actions{grid-template-columns:1fr}}
@media(max-width:720px){.field-change-row{align-items:stretch;flex-direction:column}.field-change-actions button{flex:1}.agronomist-field-edit{grid-template-columns:1fr}.agronomist-field-edit .field-change-actions,.agronomist-field-edit p{grid-column:auto}}
.task-recommendation,.field-recommendations,.recommendation-queue{margin:22px 0;padding:24px;border:1px solid #d6e2da;border-radius:20px;background:#fff;box-shadow:0 8px 24px rgba(23,63,53,.06)}
.recommendation-form,.recommendation-decision{display:grid;gap:16px;margin-top:16px}.recommendation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.recommendation-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.recommendation-meta{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:.9rem}.recommendation-readonly>p{font-size:1.05rem;white-space:pre-wrap}.recommendation-readonly dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.recommendation-readonly dl div{padding:12px;border-radius:12px;background:#f1f5f2}.recommendation-readonly dt{color:var(--muted);font-size:.8rem}.recommendation-readonly dd{margin:4px 0 0;font-weight:800}.recommendation-comment{margin-top:14px;padding:14px;border-radius:12px;background:#fff4d6}.recommendation-comment p{margin:.35rem 0 0}.recommendation-queue{display:grid;gap:10px}.recommendation-queue-item{display:flex;justify-content:space-between;gap:16px;align-items:center;width:100%;padding:14px;border:1px solid #dce5df;border-radius:12px;background:#f8faf8;color:var(--ink);text-align:left;cursor:pointer}.recommendation-queue-item span:first-child{display:grid;gap:4px}.recommendation-queue-item:hover{border-color:#2f7d55;background:#f0f8f3}
@media(max-width:720px){.recommendation-grid,.recommendation-readonly dl{grid-template-columns:1fr}.recommendation-actions{align-items:stretch;flex-direction:column}.recommendation-actions button{width:100%}.task-recommendation,.field-recommendations,.recommendation-queue{padding:18px}.recommendation-queue-item{align-items:flex-start;flex-direction:column}}
.mobile-field-loading{min-height:38vh;display:grid;place-content:center;gap:.5rem;text-align:center;color:var(--muted)}
.mobile-field-loading strong{color:var(--ink);font-size:1.25rem}.mobile-field-actions{display:flex;gap:.65rem;flex-wrap:wrap;margin-top:1rem}
.mobile-field-map svg{display:block;width:100%;height:clamp(220px,44vh,420px);background:#edf2ec;border-radius:18px}.mobile-field-next{padding:1.25rem;border-radius:18px;background:#f4f7f2}
@media(max-width:768px){.mobile-field-card .fcc-hero{grid-template-columns:1fr}.mobile-field-card .fcc-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-field-actions>*{flex:1 1 12rem}.mobile-field-map{padding:1rem}.mobile-field-next{margin-top:1rem}}
@media(max-width:390px){.mobile-field-card .fcc-summary{grid-template-columns:1fr}.mobile-field-actions>*{width:100%;flex-basis:100%}}

.rgb-boundary-dialog{width:min(1100px,96vw);max-height:94vh;padding:20px;border:0;border-radius:16px;overflow:auto}
.rgb-boundary-dialog::backdrop{background:#10251dbb}
.rgb-boundary-head,.rgb-boundary-sources,.rgb-boundary-actions{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.rgb-boundary-sources{justify-content:flex-start;margin:12px 0}
.rgb-boundary-sources label{display:grid;gap:6px;min-width:200px}
.rgb-boundary-map{height:52vh;min-height:320px;position:relative;border-radius:8px;overflow:hidden;touch-action:none}
.rgb-boundary-dialog [data-editor-caption]{font-weight:700;margin:12px 0}
.rgb-boundary-dialog [data-editor-message]{color:#86431c;min-height:1.5em}.rgb-boundary-dialog .rgb-boundary-head{position:sticky;top:-20px;z-index:6;background:#fff;margin:-20px -20px 8px;padding:12px 20px;justify-content:flex-start;border-bottom:1px solid #e3e7e3}.rgb-boundary-dialog .rgb-boundary-head h2{flex:1;min-width:0;margin:0;font-size:1.1rem}.rgb-boundary-dialog .editor-back{min-height:44px;padding:8px 14px;border:1px solid #c9cfca;border-radius:10px;background:#fff;color:#1b4a3a;font-weight:700}.editor-load-error{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:8px 0;padding:10px 12px;border-radius:10px;background:#fbefe7;color:#86431c}.editor-load-error[hidden]{display:none}.editor-load-error span{flex:1;min-width:12em}@media(max-width:600px){.rgb-boundary-dialog .rgb-boundary-head{top:-12px;margin:-12px -12px 8px;padding:10px 12px}}
.rgb-boundary-dialog .geometry-area-summary{padding:14px 0}
@media(max-width:600px){.rgb-boundary-dialog{padding:12px}.rgb-boundary-map{height:48vh}.rgb-boundary-sources label{min-width:0;flex:1}.rgb-boundary-actions button{flex:1}}
/* Keep field actions inside the mobile viewport; avoid content-driven grid overflow. */
@media(max-width:768px){#fieldsPage .fields-layout{grid-template-columns:minmax(0,1fr)}#fieldsPage .field-list,#fieldsPage .field-row{min-width:0}#fieldsPage .field-row-actions{min-width:0}.dashboard header nav{min-width:0;max-width:100%}.rgb-boundary-sources label{flex:1 1 100%;width:100%}.rgb-boundary-sources select{min-width:0;max-width:100%}}
@media(max-width:768px){.auth-shell{grid-template-columns:minmax(0,1fr)}.dashboard{min-width:0;max-width:100%}.fields-layout>section{min-width:0}}

.rgb-scene-navigation{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.rgb-scene-navigation button{min-height:52px;font-size:19px;touch-action:manipulation}.rgb-scene-navigation button:disabled{opacity:.45;cursor:default}

/* Scoped overview outlines: CSP-safe; never use the legacy 20px stroke here. */
.geometry-map .parcel-shape.field-overview-shape{fill:#78a98b;stroke:#17683a;stroke-width:1.5;vector-effect:non-scaling-stroke}

[data-editor-exclusions] li{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:10px 0}[data-editor-exclusions] button,.rgb-boundary-actions button{min-height:44px}[data-editor-delete-selected]{border:1px solid #a2332b;background:#a2332b;color:#fff;box-shadow:none}[data-editor-delete-selected]:disabled{border-color:#c9cfca;background:#eceeec;color:#4a524c;opacity:1;cursor:not-allowed}[data-editor-gps-status]{font-weight:600;margin:8px 0}

.support-faq-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,260px);gap:12px;margin:14px 0}.support-faq-controls input,.support-faq-controls select{min-height:44px}.support-faq-item{border-top:1px solid var(--line);padding:12px 0}.support-faq-item summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.support-faq-item p{margin:8px 0 0}.support-faq .badge{background:#f3ecd9;color:#6b5418;border-radius:20px;padding:3px 8px;font-size:11px;font-weight:800}@media(max-width:700px){.support-faq-controls{grid-template-columns:1fr}}
/* Support helper (support_helper.js): question, dictation, answer card with steps. */
.support-helper-form{display:grid;gap:8px;margin:14px 0 6px}.support-helper-form label{font-weight:700}.support-helper-form textarea{width:100%;min-height:88px;font:inherit;padding:10px;border:1px solid var(--line);border-radius:10px;box-sizing:border-box}.support-helper-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:10px}.support-helper button{min-height:44px}.support-helper .voice-input-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.support-helper-answer{border-top:1px solid var(--line);padding-top:14px;margin-top:10px}.support-helper-answer h3{margin:4px 0 10px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}.support-helper-steps{margin:0;padding-left:22px;display:grid;gap:6px}.support-helper-source{margin:10px 0 0}.support-helper-similar ul{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:2px}.support-helper .badge{background:#f3ecd9;color:#6b5418;border-radius:20px;padding:3px 8px;font-size:11px;font-weight:800}.support-helper .muted{color:var(--muted)}
/* Mobile nav: wrap instead of hidden horizontal scroll, so every section (incl. «Команда», «Підтримка») stays visible. */
@media(max-width:768px){.dashboard header nav{flex-wrap:wrap;overflow-x:visible;justify-content:flex-start;gap:4px}.dashboard header nav .nav-button{flex:1 1 auto;text-align:center}}
.support-faq .muted,.support-tickets .muted{color:var(--muted)}.support-tickets-head,.support-tabs,.support-form-actions,.support-admin-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}.support-tabs{justify-content:flex-start;margin:12px 0}.support-tabs .active{background:#27594b;color:#fff}.support-tickets button,.support-tickets select,.support-tickets input{min-height:44px}.support-new,.support-reply{display:grid;gap:12px;margin:14px 0}.support-new label,.support-reply label,.support-admin-tools label{display:grid;gap:6px;font-weight:700}.support-tickets-message.error{color:#a5352a}.support-ticket-list{display:grid}.support-ticket-row{display:flex;justify-content:space-between;gap:12px;align-items:center;text-align:left;border:0;border-top:1px solid var(--line);background:transparent;padding:12px 0;cursor:pointer;width:100%}.support-ticket-row small{display:block;color:var(--muted);margin-top:4px;font-weight:400}.support-messages{display:grid;gap:10px;margin:14px 0}.support-message{border:1px solid var(--line);border-radius:12px;padding:12px}.support-message-admin,.support-message-ai{background:#f1f6f2}.support-message-body{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0}.support-shot{display:block;max-width:100%;max-height:320px;margin-top:10px;border-radius:8px;border:1px solid var(--line)}

/* Card headers inside the dashboard are not the site header: ".dashboard header" rules (green bar, fixed height,
   white text) also matched <header> in field and work cards, leaving status badges white on a light pill. */
.dashboard .ops-field header,.dashboard .work-entry header{height:auto;min-height:0;padding:0;background:none;color:#18251f!important;flex-wrap:nowrap;align-items:flex-start}
.dashboard .ops-field header :is(h3,strong,small),.dashboard .ops-field header span:not(.badge),.dashboard .work-entry header :is(strong,small,p),.dashboard .work-entry header span:not(.badge){color:#18251f!important}
.dashboard .ops-field header p{color:var(--muted)!important}
/* Field Status mode switch (Map / RGB / NDVI / anomaly zones): the buttons have no class, give them the app's look. */
.field-status-toolbar :is([data-status-mode],[data-status-layer]){min-height:40px;padding:8px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#18251f;font:inherit;font-weight:700;cursor:pointer}
/* Task postponement: new date + reason; the first due date stays visible. */
.due-original{font-size:12px;color:var(--muted);padding:6px 0}.task-postpone-form{display:grid;gap:10px;margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:12px}.task-postpone-form label{display:grid;gap:4px;font-weight:700}.task-postpone-form input{min-height:40px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;font:inherit}

/* Multilingual support (stage 4.1): brand logo, language switcher on the sign-in screen (lang_switcher.js). */
.brand>span.brand-mark{background:transparent;overflow:hidden;padding:0}
.brand-mark img{width:46px;height:46px;object-fit:contain;display:block}
.auth-language{display:flex;justify-content:flex-end;margin:-12px -10px 12px 0}
.lang-switcher{position:relative}
.lang-button{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 10px;border:1px solid transparent;border-radius:10px;background:transparent;color:#18251f;font:inherit;font-weight:600;cursor:pointer}
.lang-button:hover,.lang-button[aria-expanded="true"]{background:#eef3e9;border-color:var(--line)}
.lang-panel{position:absolute;right:0;top:calc(100% + 6px);width:240px;max-width:calc(100vw - 32px);padding:8px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 34px rgba(30,65,50,.16);z-index:40}
.lang-search{width:100%;min-height:40px;padding:6px 10px;border:1px solid var(--line);border-radius:10px;font:inherit}
.lang-list{list-style:none;margin:6px 0 0;padding:0;max-height:min(320px,60vh);overflow:auto}
.lang-list li{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:42px;padding:8px 10px;border-radius:10px;cursor:pointer;color:#18251f}
.lang-list li small{color:var(--muted);font-weight:600}
.lang-list li.active,.lang-list li:hover{background:#eef3e9}
.lang-list li[aria-selected="true"]{font-weight:700;color:var(--green)}
.lang-list .lang-empty{cursor:default;color:var(--muted)}
.auth-card h2,.identity-panel h1{overflow-wrap:break-word;hyphens:auto}
/* Language switcher in the cabinet header (stage 4.2): light text on the dark header, dark text in the open list. */
.dashboard header .lang-button{color:#fff}
.dashboard header .lang-button:hover,.dashboard header .lang-button[aria-expanded="true"]{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.25)}
.dashboard header .lang-panel span,.dashboard header .lang-panel small,.dashboard header .lang-panel li{color:#18251f!important}
.dashboard header .lang-panel li small{color:var(--muted)!important}
/* Dictation language beside the voice input button (stage 4.5). */
.voice-language{width:auto;min-width:0;max-width:100%;padding:6px 8px}
/* Long translated labels ("Alle als gelesen markieren") wrap instead of widening the notifications page (stage 4.6). */
#notificationsPage .page-head{flex-wrap:wrap;gap:12px}#notificationsPage .page-head>*{min-width:0}#markAllRead{white-space:normal;max-width:100%;text-align:center}
/* DB-IP Lite attribution under the sign-in forms (stage 5). */
.geo-attribution{margin:16px 0 0;font-size:.8rem;opacity:.75}.geo-attribution a{color:inherit}
/* «Історія контурів» of the field card. */
.contour-history-dialog{width:min(1040px,calc(100% - 24px));max-height:calc(100dvh - 24px);border:0;border-radius:18px;padding:20px;box-sizing:border-box;overflow:auto}.contour-history-dialog::backdrop{background:rgba(15,35,28,.55)}
.contour-history-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.contour-history-head h2{margin:0;font-size:1.3rem;min-width:0;overflow-wrap:anywhere}.contour-history-note{color:var(--muted);margin:8px 0 14px}
.contour-history-body{display:grid;grid-template-columns:minmax(230px,300px) minmax(0,1fr);gap:18px;align-items:start}.contour-history-list{display:flex;flex-direction:column;gap:8px;max-height:68dvh;overflow:auto}
.contour-history-row{display:flex;flex-direction:column;gap:3px;text-align:left;width:100%;background:#fff;color:inherit;border:1px solid var(--line);border-radius:12px;padding:10px 12px;font:inherit;font-size:.9rem;cursor:pointer}.contour-history-row.active{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green);background:#f3f7f1}.contour-history-row em{font-style:normal;font-size:.75rem;background:var(--accent);border-radius:999px;padding:1px 8px;margin-left:4px}
.contour-history-detail{min-width:0}.contour-history-detail h3{margin:0 0 8px}.contour-history-map{display:block;width:100%;height:auto;background:#f1f4ef;border-radius:12px}.contour-history-map path{vector-effect:non-scaling-stroke}.contour-history-map .selected{fill:rgba(44,122,84,.32);stroke:#173f35;stroke-width:2.5}.contour-history-map .exclusion{fill:rgba(190,60,50,.45);stroke:#a4322a;stroke-width:1.5}.contour-history-map .current{fill:none;stroke:#c9770c;stroke-width:2.5;stroke-dasharray:8 6}
.contour-history-legend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:.82rem;margin:8px 0}.contour-history-legend span::before{content:"";display:inline-block;width:14px;height:10px;margin-right:6px;border:2px solid #173f35;background:rgba(44,122,84,.32)}.contour-history-legend .exclusion::before{border-color:#a4322a;background:rgba(190,60,50,.45)}.contour-history-legend .current::before{border:2px dashed #c9770c;background:none}
.contour-history-exclusions,.contour-history-impact{margin:8px 0;padding-left:20px;font-size:.92rem}.contour-history-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.contour-history-error{background:#f8dedb;color:#8a241c;border-radius:10px;padding:10px 12px}.contour-history-done{background:#e7f2e3;color:#173f35;border-radius:10px;padding:10px 12px}
@media(max-width:700px){.contour-history-dialog{padding:14px}.contour-history-body{grid-template-columns:minmax(0,1fr)}.contour-history-list{max-height:none}}
/* The scene viewer: the mode tabs stay under its sticky header, and opening an image keeps both in view. */
.scene-browser .scene-mode-tabs{top:64px}.scene-browser .context-map,.scene-browser .scene-browser-map{scroll-margin-top:124px}
@media(max-width:700px){.scene-browser .context-map,.scene-browser .scene-browser-map{scroll-margin-top:140px}}
/* The small text buttons of the sign-in forms. */
.link-button{background:none;border:0;padding:6px 0;font:inherit;font-size:.92rem;color:var(--green);text-decoration:underline;cursor:pointer;justify-self:start;align-self:flex-start}
.tabs:has([data-tab="register"][hidden]){grid-template-columns:1fr}
/* Background refresh of the saved contour (field status) */
.contour-refresh{display:grid;gap:8px;margin:12px 0;padding:13px 15px;border-radius:12px;background:#eef6f0;border:1px solid #b9d6c1}
.contour-refresh>div{display:flex;flex-direction:column;gap:4px}
.contour-refresh progress{width:100%;height:8px}
.contour-refresh-dates{display:grid;gap:4px;margin:8px 0 0;padding-left:20px;max-height:260px;overflow:auto}
.contour-refresh-dates li span{margin-right:8px;color:#4c5b52}
.contour-refresh-dates .refresh-failed strong{color:#9b2c1f}
/* Investor cabinet (stage 1: the account; farms come with an invitation) and the confirmation notice of a registration. */
.investor-panel{grid-column:1/-1;min-height:100vh;background:#f1f4ef}.investor-panel header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 24px;background:var(--green);color:#fff}.investor-panel .brand b{color:#fff}.investor-card{width:min(720px,calc(100% - 32px));margin:40px auto;background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px}.investor-card h1{margin:.3rem 0 1rem;overflow-wrap:break-word}#registerSent{display:grid;gap:14px}#registerSent[hidden]{display:none}#registerSent h2{font-size:26px;margin:7px 0}
.form-note{margin:0;font-size:13px;line-height:1.45;color:var(--muted)}
/* Services and payments (B6a) */
.billing-head{flex-wrap:wrap;gap:12px}.billing-head>div{min-width:0}.billing-head h1{overflow-wrap:anywhere}@media(max-width:560px){.billing-head{flex-direction:column;align-items:stretch}.billing-head .billing-tabs button{flex:1 1 auto}}
.service-bar{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px}.service-bar[hidden]{display:none}.billing-tabs{display:flex;flex-wrap:wrap;gap:8px}
.billing-card,.billing-invoice{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;margin:0 0 16px}.billing-card h2{margin:0 0 12px;font-size:20px}
.billing-invoice-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.billing-invoice h3{margin:0;font-size:17px}
.billing-lines{width:100%;border-collapse:collapse;margin:10px 0;font-size:14px}.billing-lines th,.billing-lines td{text-align:left;padding:7px 6px;border-bottom:1px solid var(--line);vertical-align:top}
.billing-sums{display:grid;grid-template-columns:auto auto;gap:4px 16px;justify-content:end;margin:8px 0}.billing-sums dd{margin:0;text-align:right}.billing-sums .due{font-weight:800}
.billing-requisites{background:#f6f9f5;border-radius:12px;padding:12px 14px;margin-top:10px;font-size:14px}.billing-requisites h4{margin:0 0 6px}
#billingOrderForm label.check{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;font-size:15px}#billingOrderForm label.check input{width:auto;margin:0}#billingOrderForm label.check small{flex-basis:100%;color:var(--muted);font-weight:400}
.billing-actions{display:flex;flex-wrap:wrap;gap:10px}.billing-services,.billing-season-services,.billing-balances{margin:0;padding-left:18px;display:grid;gap:6px}
/* Balance settlement, invoice PDF, end date rules (B6a.1) */
.form-note.error{color:#b3261e}.contract-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media(max-width:760px){.contract-pair{grid-template-columns:1fr}}.contract-text{white-space:pre-wrap;word-break:break-word;font:14px/1.5 inherit;font-family:inherit;background:#f7faf8;border:1px solid var(--line);border-radius:10px;padding:12px;max-height:420px;overflow:auto;margin:8px 0}.contract-sign{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:10px}.contract-template textarea{width:100%;font-family:inherit}
.billing-pdf{margin:12px 0 0}.billing-pdf a{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#1d694f;font-weight:800;text-decoration:none}
.billing-settle{background:#fffbea;border:1px solid #e6cf7a;border-radius:12px;padding:12px 14px;margin-top:10px}.billing-settle p{margin:0 0 8px}
.billing-rules{margin-top:12px}.billing-rules summary{cursor:pointer;font-weight:700;color:#1d694f}.billing-rules ul{margin:8px 0 0;padding-left:18px;display:grid;gap:6px;font-size:14px}
.billing-extension,.billing-actual{display:block;color:var(--muted);font-weight:400;flex-basis:100%}
/* Investor access on the team page (B6b) */
#investorAccessRoot{display:grid;gap:18px;margin-top:18px}#investorInviteForm{display:flex;flex-wrap:wrap;gap:10px}#investorInviteForm input{flex:1 1 220px}
.investor-row{flex-wrap:wrap}.investor-access-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}.investor-access-head h2{margin:0}
.investor-pick{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:16px;align-items:start;margin:12px 0}
.investor-map-box{min-height:340px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#eef3ee;position:relative}.investor-map-mapbox{height:420px}
.investor-map-plain svg{display:block;width:100%;height:auto}.investor-map-field polygon{fill:#27a56c;fill-opacity:.22;stroke:#1d6a52;stroke-width:2;cursor:pointer}.investor-access .status-pill{width:auto;max-width:100%;white-space:normal}.investor-map-field text{font-size:30px;fill:#173b2f;text-anchor:middle;pointer-events:none;font-weight:700}
.investor-map-field.selected polygon{fill:#f2b705;fill-opacity:.5;stroke:#9a6a00;stroke-width:4}.investor-map-field.locked polygon{fill:#8a8f8c;cursor:not-allowed}.investor-map-field:focus-visible polygon{stroke:#000;stroke-width:5}
.investor-map-note{display:block;padding:6px 10px;color:var(--muted);font-size:12px}
.investor-fields-head{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:6px}.investor-field-list{list-style:none;margin:0;padding:0;display:grid;gap:6px;max-height:520px;overflow:auto}
.investor-field-list li{border:1px solid var(--line);border-radius:12px;padding:8px 10px;background:#fff}.investor-field-list li.selected{border-color:#d1a000;background:#fffbea}
.investor-field-list label.check,.block-grid label.check{display:flex;flex-wrap:wrap;gap:6px;align-items:baseline;font-size:15px}.investor-field-list label.check input,.block-grid input{width:auto;margin:0}.investor-field-list small{flex-basis:100%;color:var(--muted)}
.block-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:4px 12px;margin:6px 0}.block-grid label.check{font-size:14px}.field-blocks summary,.default-blocks summary,.investor-journal summary{cursor:pointer;font-weight:700;color:#1d694f}
.investor-history h3{margin:18px 0 8px}.investor-grants{margin:0;padding-left:18px;display:grid;gap:8px}.investor-journal ol{margin:8px 0;padding-left:20px;display:grid;gap:4px}.investor-journal time{color:var(--muted);margin-right:6px}
.investor-link-dialog{max-width:640px;width:calc(100% - 24px)}.investor-link-dialog .billing-lines{font-size:13px}
.investor-map-plain{position:relative}.investor-map-plain svg{touch-action:pan-x pan-y;user-select:none}.investor-map-plain.zoomed svg{touch-action:none;cursor:grab}
.investor-map-zoom{position:absolute;top:8px;right:8px;display:flex;flex-direction:column;gap:6px}.investor-map-zoom button{width:38px;height:38px;padding:0;border-radius:10px;background:#fff;border:1px solid var(--line);font-size:20px;font-weight:800;color:#1d694f}
/* Payment admin panel and investor cabinet (B6c) */
.admin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;align-items:end}.admin-grid button{justify-self:start}
.admin-payment-form{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px;align-items:end;margin-top:10px}.admin-lines{margin:6px 0;padding-left:18px;font-size:14px}
.admin-grants{display:grid;gap:12px}.admin-consent{background:#f6f9f5;border-radius:12px;padding:10px 12px;margin:8px 0}.admin-consent blockquote{margin:6px 0;font-style:italic}.admin-block form{display:grid;gap:8px;margin-top:8px}
.admin-accounts{margin:0 0 12px;padding-left:18px;display:grid;gap:6px;word-break:break-word}
.investor-cabinet{display:grid;gap:14px}.investor-farm-list,.investor-field-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.investor-field-card{display:grid;gap:10px}.investor-contour{display:block;width:100%;max-height:220px;background:#eef3ee;border-radius:12px}.investor-contour .field{fill:#27a56c;fill-opacity:.25;stroke:#1d6a52;stroke-width:2}.investor-contour .anomaly{fill:#d9534f;fill-opacity:.35;stroke:#a12622;stroke-width:1.5}
.investor-field-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:16px;align-items:start}.investor-field-head h2{margin:0 0 6px}
.block-chips{display:flex;flex-wrap:wrap;gap:6px}.block-chips span{background:#e5eee8;color:#1d694f;border-radius:20px;padding:3px 9px;font-size:13px;font-weight:700}
.investor-scenes{list-style:none;margin:0;padding:0;display:grid;gap:6px}.investor-scenes li{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.investor-scenes li span{flex:1 1 200px}
.investor-image img{display:block;max-width:100%;border-radius:12px;margin-top:8px}.investor-image figcaption{color:var(--muted);font-size:13px}
.investor-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;margin-top:6px}.investor-photos img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px}
.investor-inspection{border-top:1px solid var(--line);padding-top:8px;margin-top:8px}.investor-works ul{margin:4px 0;padding-left:18px}.investor-consent form{display:grid;gap:8px;margin-top:8px}
#investorPanelCabinet{margin-top:18px}
@media(max-width:700px){.investor-field-head{grid-template-columns:1fr}}
@media(max-width:860px){.investor-pick{grid-template-columns:1fr}.investor-map-mapbox{height:320px}}
@media(max-width:560px){.billing-lines{font-size:12.5px}.billing-lines th,.billing-lines td{padding:6px 3px}.billing-card,.billing-invoice{padding:14px}}
@media(max-width:600px){.scene-sync{grid-template-columns:1fr 1fr!important}.scene-sync>*{min-width:0}.scene-sync input{width:100%;min-width:0}.scene-sync button{grid-column:1/-1}}@media(max-width:600px){.rgb-boundary-dialog .rgb-boundary-head h2{font-size:.95rem;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}}
.field-row span.field-monitoring{display:inline-block;margin-top:6px;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:700}.field-monitoring-on{background:#e4f4ea;color:#17683a!important}.field-monitoring-off{background:#f1f1ee;color:#5d6660!important}.field-monitoring-waiting{background:#fff4dc;color:#7a5200!important}

/* owner 19.11: «Господарства» of the platform admin */
.farm-search input{width:100%;max-width:520px;margin:4px 0 14px}
.farm-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.farm-tiles .farm-tile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;background:#fff;color:#1d2b22;border:1px solid #dfe6e1;border-radius:14px;padding:14px 16px;font:inherit;font-weight:400;cursor:pointer;min-height:0;width:100%;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.farm-tiles .farm-tile:hover,.farm-tiles .farm-tile:focus-visible{border-color:#1f6b52;background:#f6faf7}
.farm-tile-name{font-weight:800;font-size:1.05rem}.farm-tile-warn{color:#a4441b;font-weight:700}.farm-tile-calm{color:#2f6b45}.farm-tile-muted{color:#56645b;font-size:.85rem}
.farm-page .farm-back{margin-bottom:10px}.farm-tabs{margin:8px 0 14px;flex-wrap:wrap}
.farm-facts{display:grid;grid-template-columns:max-content 1fr;gap:6px 16px;margin:0 0 12px}.farm-facts dt{font-weight:700;color:#56645b}.farm-facts dd{margin:0}
@media(max-width:700px){.farm-tiles{grid-template-columns:1fr}.farm-facts{grid-template-columns:1fr;gap:2px}.farm-facts dd{margin-bottom:8px}}
/* Owner 19.11 (B1): vegetation season of a field in the field card */
.vegetation-season{margin:16px 0}.vegetation-season-list{display:grid;gap:10px;margin:12px 0}.vegetation-season-item{border:1px solid #d8e2da;border-radius:10px;padding:12px;background:#fff}.vegetation-season-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.vegetation-season-ended{opacity:.75}.vegetation-season-form{display:grid;gap:10px;margin-top:12px}.vegetation-season-form h3{margin:0}.vegetation-season-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.vegetation-season-form label{display:grid;gap:4px}.vegetation-season-form input{width:100%;box-sizing:border-box}.vegetation-season-actions{display:flex;flex-wrap:wrap;gap:8px}.vegetation-season-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.vegetation-season-buttons:empty{display:none}.vegetation-season-buttons>form,.vegetation-season-confirm{flex-basis:100%}.vegetation-season-confirm{display:grid;gap:8px;border:1px solid #efc6c2;background:#fff7f6;border-radius:10px;padding:12px}.vegetation-season-confirm p{margin:0}.vegetation-season-confirm label{display:grid;gap:4px}button.vegetation-season-danger.secondary{color:#a2332b;border-color:#c84d43}button.vegetation-season-danger.primary{background:#a2332b;border-color:#a2332b;color:#fff}.vegetation-season-history{margin-top:10px}.vegetation-season-history ol{margin:8px 0 0;padding-left:20px;display:grid;gap:6px}.vegetation-season-history li{display:grid;gap:2px}.vegetation-season-history small{color:#56645b}
@media(max-width:700px){.vegetation-season-dates{grid-template-columns:1fr}.vegetation-season-actions button,.vegetation-season-buttons>button{flex:1 1 100%}}
/* Owner 19.11 (B2): monitoring per season of a field, paid from the balance; top-up; payment admin's seasons and contracts */
.billing-season-list{display:grid;gap:8px;margin:12px 0}.billing-season-item{border:1px solid #d8e2da;border-radius:10px;padding:10px 12px;background:#fff;align-items:flex-start;flex-wrap:nowrap}.billing-season-item>span{min-width:0;overflow-wrap:anywhere}.billing-season-paid{color:#1f6b4a;font-weight:800;width:16px;text-align:center}.billing-season-quote{margin:8px 0;padding-left:18px;display:grid;gap:6px}.billing-balance-line{font-weight:700}.billing-seasons button:disabled{opacity:.45;cursor:not-allowed}.billing-topup{margin-top:12px}.billing-topup p{overflow-wrap:anywhere}.vegetation-season-billing{margin:8px 0 0;font-size:14px}.vegetation-season-billing.success-text{color:#1f6b4a;font-weight:700}.vegetation-season-billing.warning{font-size:14px}.admin-topup,.admin-old-invoices,.admin-contracts{margin-bottom:14px}.admin-contract{border-top:1px solid #e3e9e4;padding:10px 0}.admin-contract p{margin:4px 0;overflow-wrap:anywhere}.admin-contract-end{display:flex;flex-wrap:wrap;gap:8px;align-items:end}
@media(max-width:700px){.billing-seasons .billing-actions button{flex:1 1 100%}.admin-contract-end>*{flex:1 1 100%}}
.vegetation-season-kind{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:12px}.vegetation-season-kind legend{font-weight:700;margin-bottom:4px}.vegetation-season-head .status-pill+.status-pill{margin-left:6px}
.vegetation-season-pause{border:1px solid #d8e2da;border-radius:10px;padding:10px 12px;margin:10px 0;background:#f7faf8}.vegetation-season-pause.paused{border-color:#9fbfe0;background:#f1f6fc}.vegetation-season-pause p{margin:0 0 6px}.farm-winter-pause{margin-top:16px}.farm-winter-pause details{margin-top:8px}
/* Owner 19.11: partner programme, stage 2 */
.partner-terms-list{margin:8px 0;padding-left:18px;display:grid;gap:6px}.partner-terms-form{display:grid;gap:10px;margin-top:10px}.partner-status{margin:6px 0 0}.partner-invitation-list{margin:0;padding-left:18px;display:grid;gap:10px}.partner-invitation-list li{overflow-wrap:anywhere}.partner-invite-form textarea{width:100%;box-sizing:border-box}.partner-register{display:grid;gap:10px;border:1px solid #d8e2da;border-radius:10px;padding:12px;background:#f7faf7}.partner-register-info p{margin:4px 0}.partner-extra{overflow-wrap:anywhere}.partner-choice{display:grid;gap:8px;border:1px solid #c9d8cc;border-radius:10px;padding:10px}.partner-choice legend{font-weight:700;padding:0 4px}.partner-choice label.check{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;gap:8px;font-weight:600}.partner-choice input[type=radio]{width:auto;min-height:0;flex:0 0 auto;margin:3px 0 0}.partner-choice-box{margin-bottom:14px}.investor-partner{margin-top:18px}
@media(max-width:700px){.partner-choice-box .billing-actions button{flex:1 1 100%}}
/* Partner programme, stage 6a: a payout button that cannot be pressed looks so. */
.partner-payout button:disabled{opacity:.5;cursor:not-allowed}
/* Partner programme, stage 6b: the agreement's texts side by side (English first), one column on a phone. */
.partner-agreement-text{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px;max-height:60vh;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:12px}.partner-agreement-text pre{white-space:pre-wrap;font:inherit;font-size:13px;margin:0}
/* R3 (owner 23.11): the free retrospective — home card, form, progress and the extended report */
.retro-card{display:flex;gap:16px;align-items:center;justify-content:space-between;background:#f2f8f1;border:1px solid #cfe2cc;border-radius:16px;padding:18px 20px;margin:0 0 16px}.retro-card h2{margin:2px 0 6px;font-size:20px}.retro-card p{margin:0}
.retro-rules{margin:8px 0 14px;padding-left:20px;color:var(--muted)}.retro-form{display:grid;gap:12px}.retro-form label>span,.retro-dates label>span{display:block;font-size:13px;margin-bottom:4px}.retro-dates{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}
.retro-preview{background:#f7faf6;border:1px solid #d8e2da;border-radius:10px;padding:12px}.retro-preview p{margin:0 0 6px}.retro-confirm{font-weight:600}
.retro-bar{height:12px;border-radius:6px;background:#e4ece3;overflow:hidden;margin:12px 0 6px}.retro-bar span{display:block;height:100%;background:#2f7d3b}
.retro-note{background:#fff8e6;border:1px solid #f0dfb0;border-radius:10px;padding:8px 12px}.retro-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.retro-facts div{background:#f7faf6;border-radius:10px;padding:10px}.retro-facts dt{font-size:12px;color:var(--muted)}.retro-facts dd{margin:4px 0 0;font-weight:600}
.retro-summary{margin:8px 0 12px;padding-left:20px;line-height:1.55}.retro-cta{margin-top:8px}
.retro-chart{width:100%;height:auto;max-height:260px}.retro-chart text{font-size:14px;fill:#6b7a6e}.retro-grid{stroke:#e4ece3}.retro-line{fill:none;stroke:#2f7d3b;stroke-width:2.5}.retro-dot{fill:#2f7d3b}.retro-peak{fill:#e0a400;stroke:#7a5a00}.retro-drops{margin:6px 0 0;padding-left:20px}
.retro-key-dates{display:grid;gap:14px;max-width:820px}.retro-compare .retro-image{max-width:420px}.retro-key h3{font-size:15px;margin:0 0 8px}.retro-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.retro-image{margin:0}.retro-image-frame{position:relative;background:#eef2ee;border-radius:10px;overflow:hidden}.retro-image img{display:block;width:100%;height:auto;image-rendering:pixelated}
.retro-contour{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.retro-contour path{fill:none;stroke:#ffeb3b;stroke-width:2}.retro-image figcaption{font-size:12px;color:var(--muted);margin-top:4px}
.retro-table-wrap{overflow-x:auto}.retro-table{width:100%;border-collapse:collapse;font-size:14px}.retro-table th,.retro-table td{text-align:left;padding:8px;border-bottom:1px solid #e4ece3;vertical-align:top}
.retro-level{display:inline-block;border-radius:999px;padding:2px 8px;font-size:12px;font-weight:600;background:#eef2ee}.retro-level-SERIOUS{background:#fde2e0;color:#9b1c13}.retro-level-MODERATE{background:#fff1cc;color:#7a5a00}.retro-level-FIELD_WIDE{background:#e3eefc;color:#1e4f8f}
.retro-timeline{margin:8px 0 0;padding-left:20px;line-height:1.6}.retro-timeline time{font-weight:600}.retro-limits{padding-left:20px;color:var(--muted)}
@media(max-width:700px){.retro-card{flex-direction:column;align-items:stretch}.retro-dates{grid-template-columns:1fr}.retro-facts{grid-template-columns:1fr 1fr}.retro-pair{gap:6px}.retro-form .billing-actions button,.retro-card button{flex:1 1 100%;width:100%}}
/* R4: the retrospective mark on a farm tile and the Copernicus costs panel */
.farm-tile-retro{color:#1f6b33;font-weight:600}.copernicus-costs h2{margin:0 0 6px}.copernicus-table-wrap{overflow-x:auto;margin:10px 0}.copernicus-table{width:100%;border-collapse:collapse;font-size:14px}.copernicus-table th,.copernicus-table td{text-align:left;padding:8px;border-bottom:1px solid #e4ece3;white-space:nowrap}.copernicus-table thead th{font-size:12px;color:var(--muted)}.copernicus-farms{margin-top:8px}.copernicus-farms ol{margin:8px 0 0;padding-left:20px}.retro-admin-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
.field-weather .weather-sum{display:grid;gap:4px}.field-weather .weather-sum strong{font-size:1.3em}.weather-dry{color:#a2332b;font-weight:700}.weather-wet{color:#1f6b4a;font-weight:700}.weather-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.weather-toggle{display:flex;gap:6px}.weather-toggle .active{background:#173f35;color:#fff}.weather-bars,.weather-temperature{width:100%;height:auto}.weather-bars rect{fill:#2f7fc1}.weather-bars rect.unknown{fill:#c8d3cc}.weather-bars line,.weather-temperature line{stroke:#9aa79f}.weather-temperature path{fill:none;stroke-width:2}.weather-temperature .current.max{stroke:#c2452f}.weather-temperature .current.min{stroke:#2f7fc1}.weather-temperature .previous{stroke:#9aa79f;stroke-dasharray:5 4}.weather-bars text,.weather-temperature text{font-size:22px;fill:#56645b}.weather-legend{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:14px}.weather-legend .key{display:inline-block;width:22px;height:3px}.weather-legend .current-key{background:#c2452f}.weather-legend .previous-key{background:#9aa79f}.weather-refresh{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px}.weather-source{font-size:13px;color:#56645b;overflow-wrap:anywhere}

/* Owner 28.11: the cabinet menu always fits the window — no horizontal scroll, the language switcher never cut. Between
   the phone layout (768 px) and very wide screens the items get narrower and, when they still do not fit, the menu takes a
   second row inside the header. */
@media(min-width:769px){.dashboard header{height:auto;min-height:82px;flex-wrap:wrap;row-gap:6px;column-gap:10px;padding-top:8px;padding-bottom:8px;padding-left:clamp(16px,3vw,70px);padding-right:clamp(16px,3vw,70px)}
.dashboard header nav{flex:1 1 0;min-width:0;flex-wrap:wrap;justify-content:flex-end;gap:2px;margin-left:auto;margin-right:6px}
.dashboard header .nav-button{padding:8px 10px;white-space:nowrap}
.dashboard header #networkState,.dashboard header .notification-button,.dashboard header .lang-switcher,.dashboard header #logoutButton{flex:0 0 auto;white-space:nowrap}}

/* owner 30.11: the cabinet of an invented demo farm says so */
.demo-farm-banner{max-width:1148px;margin:14px auto 0;margin-inline:max(16px,calc((100% - 1148px)/2));padding:12px 16px;border-radius:12px;background:#f7f0dd;border:1px solid #e3d3a3;color:#5e4a14;font-weight:700;font-size:14px;line-height:1.4}
.demo-farm-banner[hidden]{display:none}

/* owner 30.11: «Порівняння двох дат» in the field card (field_status_ui.js renderCompare) */
.field-compare{margin:18px 0}.field-compare-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
@media(max-width:700px){.field-compare-images{gap:6px}.field-compare-images figcaption{font-size:11px}}

/* owner 01.12: «Подивитися демо» — read-only demo view with a way out */
.demo-farm-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.demo-farm-banner[hidden]{display:none}.demo-farm-banner span{flex:1 1 420px}.demo-farm-banner button{flex:0 0 auto}
.auth-card .demo-enter{width:100%;margin-top:4px}
.demo-locked-dialog{max-width:420px;width:calc(100% - 32px);border:0;border-radius:16px;padding:22px}.demo-locked-dialog p{margin:0 0 16px;line-height:1.45}.demo-locked-actions{display:flex;gap:10px;flex-wrap:wrap}
