/* Application-wide overrides loaded after the page bundle, in cascade order:
   1. field validation bubble  2. compact application surfaces  3. UI corrections. */

/* --- field validation bubble --- */
.field-validation-bubble{position:fixed!important;inset:auto;box-sizing:border-box!important;display:flex;align-items:flex-start;gap:8px;width:max-content!important;max-width:min(320px,calc(100vw - 24px))!important;margin:0!important;padding:9px 12px!important;border:1px solid #e7dfcc!important;border-radius:9px!important;background:#fffdf8!important;color:#534b3c!important;box-shadow:0 4px 16px #302a1814!important;font-family:inherit!important;font-size:12px!important;font-weight:400!important;line-height:1.8!important;text-align:right!important;overflow:visible!important;overflow-wrap:anywhere;z-index:2147483000!important;pointer-events:none;animation:none!important;transition:none!important}
.field-validation-bubble[popover]:not(:popover-open){display:none}
.field-validation-bubble::before{content:"";position:absolute;left:var(--validation-arrow-x,24px);top:-5px;width:8px;height:8px;transform:translateX(-50%) rotate(45deg);border-top:1px solid #e7dfcc;border-left:1px solid #e7dfcc;background:#fffdf8}
.field-validation-bubble[data-placement="above"]::before{top:auto;bottom:-5px;transform:translateX(-50%) rotate(225deg)}
.field-validation-bubble::backdrop{background:transparent;pointer-events:none}
.field-validation-bubble .field-validation-icon{display:grid;place-items:center;flex:0 0 18px;width:18px;height:18px;margin-top:2px;border-radius:5px;background:#f7ecd4;color:#9a711e;font-family:Arial,sans-serif;font-size:13px;font-weight:700;line-height:1}
.field-validation-bubble .field-validation-text{min-width:0}
[data-validation-error-id][aria-invalid="true"]{border-color:#bda578!important;outline-color:#bda578}
.kplus-select-host:has(select[data-validation-error-id]) .kplus-select-trigger{border-color:#bda578!important}
body.app-shell[data-page][data-role] .modal .modal-head{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;min-width:0!important}
body.app-shell[data-page][data-role] .modal .modal-head>div:first-child{min-width:0;flex:1}
body.app-shell[data-page][data-role] .modal .modal-head h3{margin:0!important;line-height:1.7!important;overflow-wrap:anywhere}
body.app-shell[data-page][data-role] .modal .modal-head :is(.icon-btn,[data-dialog-close]){position:static!important;transform:none!important;flex-shrink:0;align-self:center;margin:0!important}
body.app-shell[data-page][data-role] :is(.geo-analysis-modal,.geo-history-modal)>.modal-card{padding:20px!important}
body.app-shell[data-page][data-role] :is(.geo-analysis-modal,.geo-history-modal) .modal-head{padding:12px 4px 16px!important;margin:0 0 18px!important}
body.app-shell[data-page][data-role] .geo-result-head .result-source{display:flex!important;flex:0 1 auto!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:8px 12px!important;min-width:0!important}
body.app-shell[data-page][data-role] .geo-result-head .result-source #result-date-range{white-space:normal;line-height:1.8}
body.app-shell.page-dashboard[data-page][data-role] .dashboard-mobile-farm-slot{display:flex!important;align-items:center!important;gap:10px!important;min-width:0}
body.app-shell.page-dashboard[data-page][data-role] .dashboard-mobile-farm-slot .dashboard-head-farm-picker{flex:1 1 0!important;width:0!important;min-width:0!important;max-width:calc(100% - 54px)!important;margin:0!important}
body.app-shell.page-dashboard[data-page][data-role] #dashboard-personalize{position:static!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:1fr!important;gap:0!important;place-items:center!important;justify-content:center!important;align-items:center!important;flex:0 0 44px!important;width:44px!important;height:44px!important;padding:0!important;margin:0!important;transform:none!important}
body.app-shell.page-dashboard[data-page][data-role] #dashboard-personalize svg{position:static!important;inset:auto!important;transform:none!important;justify-self:center!important;align-self:center!important;display:block;width:18px!important;height:18px!important;margin:0!important}
body.app-shell .loading-block:empty::after{animation:none!important;background:#edf1e9!important;background-size:auto!important}
body.app-shell :is(.skeleton-card,.skeleton-card span){animation:none!important}
.finance-row-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}
@media(min-width:761px){body.app-shell.page-dashboard[data-page][data-role] .dashboard-mobile-farm-slot{display:none!important}}
@media(max-width:980px){
  body.page-satellite.app-shell[data-page][data-role] .geo-pro .geo-bottom-dock{position:fixed!important;bottom:var(--geo-visible-bottom,calc(88px + env(safe-area-inset-bottom)))!important;max-height:62px!important}
  body.page-satellite.app-shell[data-page][data-role] .geo-pro .leaflet-bottom{position:fixed!important;bottom:var(--geo-controls-bottom,calc(160px + env(safe-area-inset-bottom)))!important;z-index:650!important;pointer-events:none!important}
  body.page-satellite.app-shell[data-page][data-role] .geo-pro .leaflet-bottom .leaflet-control{pointer-events:auto!important;margin-bottom:0!important}
  body.app-shell[data-page][data-role] .geo-result-head{flex-wrap:wrap!important}
  body.app-shell[data-page][data-role] .geo-result-head>div:first-child{flex:1 1 100%!important}
  body.app-shell[data-page][data-role] .geo-result-head .result-source{width:100%;justify-content:space-between!important}
  body.app-shell[data-page][data-role] :is(.geo-analysis-modal,.geo-history-modal)>.modal-card{padding:14px!important}
}
/* Specific legacy mobile rules placed the result close button absolutely. */
body.app-shell.page-satellite[data-page][data-role] #geo-analysis-modal .geo-result-head #close-geo-results{position:static!important;inset:auto!important;transform:none!important;flex:none!important;order:0!important;align-self:center!important;grid-column:auto!important;grid-row:auto!important;margin:0!important}

/* --- compact application surfaces --- */
body.app-shell[data-page] .modal-card{padding:22px!important;gap:18px!important}
body.app-shell[data-page] .modal-head{margin:0 0 20px!important;padding:0 0 16px!important;gap:16px!important;border-bottom:1px solid #e8ece7}
body.app-shell[data-page] .modal-head h3{margin:3px 0 0!important;line-height:1.6!important;text-wrap:balance}
body.app-shell[data-page] .modal-actions{margin-top:20px!important;padding-top:16px!important;gap:10px!important;border-top:1px solid #e8ece7}
body.app-shell[data-page] :is(.toolbar-filters,.row-actions,.tabs,.category-chips){gap:8px!important}
body.app-shell[data-page] :is(.btn,.table-action,.status-chips button,.category-chips button,.animated-select-trigger){word-break:normal!important;white-space:nowrap!important}
body.app-shell[data-page] :is(.page-section-intro p,.market-hero p,.download-app-card p,.field>span){text-wrap:pretty}
body.app-shell[data-page] .top-avatar{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;flex:none}
body.app-shell[data-page] .topbar-actions #farm-ai-launcher{position:static!important;inset:auto!important;transform:none!important;display:inline-flex!important;gap:7px!important;width:auto!important;min-width:0!important;height:38px!important;padding:0 12px!important;border-radius:12px!important;background:#eaf3ed!important;color:#275c43!important;border:1px solid #d5e6da!important;box-shadow:none!important;z-index:auto!important}
body.app-shell[data-page] #farm-ai-launcher .ai-orb{width:24px!important;height:24px!important;background:transparent!important;box-shadow:none!important;color:#275c43!important}
body.app-shell[data-page] #farm-ai-launcher .ai-launcher-copy{display:block!important;color:#275c43!important}
body.app-shell[data-page] #farm-ai-launcher .ai-launcher-copy b{color:inherit!important;font-size:12px!important}
body.app-shell[data-page] #ai-workspace#ai-workspace{position:fixed!important;inset:0!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:#fcfdfb!important}
body.app-shell[data-page] #ai-workspace#ai-workspace:not([open]){display:none!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-shell{display:block!important;position:relative!important;height:100%!important;background:#fcfdfb!important;overflow:hidden!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-main-panel{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:66px auto minmax(0,1fr) auto!important;grid-column:auto!important;direction:rtl!important;width:100%!important;height:100%!important;background:#fcfdfb!important;min-width:0!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-topbar{grid-column:1!important;grid-row:1!important;position:relative!important;padding:10px 22px!important;background:#fff!important;border-bottom:1px solid #e4ebe4!important;z-index:10!important;gap:12px!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-history-toggle{display:inline-flex!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-title-stack{min-width:0!important;flex:1!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-topbar strong{max-width:none!important;font-size:14px!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-context-toggle{height:36px!important;border:1px solid #dce6de!important;background:#f4f8f4!important;color:#355b43!important;box-shadow:none!important;padding:0 10px!important;white-space:nowrap!important;gap:6px!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-context-sidebar{position:absolute!important;top:66px!important;inset-inline-start:16px!important;right:16px!important;left:auto!important;bottom:auto!important;width:min(340px,calc(100vw - 32px))!important;max-height:calc(100dvh - 100px)!important;height:auto!important;padding:0!important;grid-column:auto!important;grid-row:auto!important;z-index:80!important;overflow:auto!important;transform:none!important;background:#fff!important;border:1px solid #dce6de!important;border-radius:16px!important;box-shadow:0 16px 50px #15391f26!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-context-sidebar:has(.ai-context-drawer:not([open])){display:none!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-context-drawer>summary{display:none!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-context-drawer-body{display:block!important;padding:18px!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-context-picker-grid{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-farm-picker{display:grid!important;gap:6px!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-farm-picker select{position:static!important;appearance:auto!important;opacity:1!important;width:100%!important;height:42px!important;min-height:42px!important;padding:7px 10px!important;border:1px solid #dce6de!important;border-radius:10px!important;background:#f8faf6!important;font-size:13px!important;color:#284935!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-farm-picker>svg{display:none!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-history-panel{display:flex!important;flex-direction:column!important;position:absolute!important;inset:0 auto 0 0!important;width:min(292px,86vw)!important;max-width:none!important;height:100%!important;z-index:85!important;transform:translateX(-110%)!important;transition:transform .18s ease!important;background:#f2f6ef!important;border:0!important;border-right:1px solid #dee7dc!important;padding:18px!important;box-shadow:none!important}
body.app-shell[data-page] #ai-workspace#ai-workspace.history-open .ai-history-panel{transform:none!important;box-shadow:12px 0 38px #16382526!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-conversation-list{flex:1!important;min-height:0!important;overflow:auto!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-quota-footer{display:none!important}
body.app-shell[data-page] #ai-workspace#ai-workspace #ai-panel-backdrop:not([hidden]){position:absolute!important;inset:0!important;z-index:70!important;background:#16382538!important;display:block!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-selected-context{grid-column:1!important;grid-row:2!important;max-width:800px!important;width:calc(100% - 40px)!important;margin:12px auto 0!important;border-radius:12px!important;background:#eef5ee!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-selected-context[hidden]{display:none!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-chat-stage{grid-column:1!important;grid-row:3!important;width:100%!important;max-width:850px!important;margin:auto!important;height:100%!important;min-height:0!important;padding:26px!important;overflow:auto!important;background:transparent!important;gap:18px!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-welcome{max-width:660px!important;margin:auto!important;padding:28px 0!important;text-align:center!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-welcome h2{font-size:clamp(20px,3vw,28px)!important;line-height:1.8!important;text-wrap:balance}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-starters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin-top:24px!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-starters button{padding:14px!important;background:#fff!important;color:#35503c!important;border:1px solid #dce6de!important;border-radius:13px!important;white-space:normal!important;line-height:1.7!important;text-wrap:balance}
body.app-shell[data-page] #ai-workspace#ai-workspace .advanced-ai-message .bubble{border-radius:16px!important;box-shadow:none!important;line-height:1.9!important;padding:16px!important;max-width:100%!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .advanced-ai-message.user .bubble{background:#e9f3e8!important;color:#294b34!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .advanced-ai-message.assistant .bubble{background:transparent!important;color:#263d2c!important;border:0!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-composer{position:relative!important;grid-column:1!important;grid-row:4!important;width:100%!important;max-width:850px!important;margin:0 auto!important;padding:12px 24px max(20px,env(safe-area-inset-bottom))!important;background:#fcfdfb!important;border:0!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-composer-row{background:#fff!important;border:1px solid #cfdcd0!important;border-radius:18px!important;padding:10px 12px!important;min-height:78px!important;box-shadow:0 5px 18px #27482909!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-composer-row:focus-within{border-color:#7b9c7a!important;box-shadow:0 0 0 3px #eaf3e8!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-composer textarea{background:transparent!important;box-shadow:none!important;min-height:38px!important;font-size:14px!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-send-button{background:#376b50!important;color:#fff!important;border:0!important;border-radius:12px!important;box-shadow:none!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-composer-meta{display:flex!important;justify-content:space-between!important;font-size:11px!important;color:#6d806e!important;margin-top:7px!important}
body.app-shell[data-page] :is(.classified-card,.my-classified-card){height:auto!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;background:#fff!important;border:1px solid #e4eae1!important;border-radius:18px!important}
body.app-shell[data-page] .classified-card-media{height:190px!important;flex:none!important}
body.app-shell[data-page] .classified-card-body{position:static!important;inset:auto!important;display:flex!important;flex-direction:column!important;visibility:visible!important;opacity:1!important;height:auto!important;min-height:180px!important;padding:18px!important;gap:9px!important;color:#2b4331!important;background:#fff!important;transform:none!important}
body.app-shell[data-page] .classified-card-body h3{margin:0!important;font-size:16px!important;line-height:1.8!important}
body.app-shell[data-page] .classified-card-body p{margin:0!important;display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;line-height:1.9!important;color:#687869!important}
body.app-shell[data-page] .classified-card-body footer{position:static!important;margin-top:auto!important;padding:10px 0!important;display:flex!important;justify-content:space-between!important;gap:10px!important}
body.app-shell[data-page] .my-classified-card{padding:18px!important;gap:12px!important}
.classified-existing-images,.classified-detail-gallery{display:flex;gap:10px;overflow-x:auto;margin:12px 0 18px}
.classified-existing-images img{width:92px;height:80px;object-fit:cover;border-radius:10px}
.classified-existing-images label{display:grid;gap:7px;flex:none}.classified-detail-gallery img{width:220px;height:180px;object-fit:contain;border-radius:12px;background:#f5f7f2}
.classified-description{white-space:pre-wrap;line-height:1.9}
body.app-shell[data-page] #weather-current{min-height:0!important;height:auto!important;padding:24px!important}
body.app-shell[data-page] #weather-current .weather-current-content{display:grid!important;grid-template-columns:minmax(0,1fr) 150px!important;grid-template-rows:auto auto!important;gap:18px!important;align-items:center!important;position:relative!important;min-height:0!important;padding:0!important}
body.app-shell[data-page] #weather-current .weather-hero-copy{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:14px!important}
body.app-shell[data-page] #weather-current .current-temp{font-size:56px!important;line-height:1.2!important;font-weight:800!important;flex:none!important}
body.app-shell[data-page] #weather-current .weather-phase-badge{display:none!important}
body.app-shell[data-page] #weather-current .current-condition{display:grid!important;gap:5px!important}
body.app-shell[data-page] #weather-current .weather-hero-art{height:120px!important;width:150px!important;position:static!important}
body.app-shell[data-page] #weather-current .weather-hero-icon{display:block!important;width:110px!important;height:110px!important;margin:auto!important}
body.app-shell[data-page] #weather-current .weather-hero-icon svg{width:100%!important;height:100%!important}
body.app-shell[data-page] #weather-current .weather-facts{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin:0!important;padding-top:14px!important;border-top:1px solid #ffffff30!important}
body.app-shell[data-page] #weather-current .weather-facts>span{display:grid!important;gap:5px!important;padding:0!important;min-height:0!important;background:transparent!important}
body.app-shell[data-page] #weather-current .weather-facts b{white-space:nowrap!important;font-size:14px!important}
.dk-upload-hint{display:block;font-size:11px;line-height:1.8;color:#738073;margin-top:7px}
.dk-notice{width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);border:0;border-radius:24px;padding:0;color:#2b4032;background:#fff;box-shadow:0 25px 90px #132d2e33;overflow:auto}
.dk-notice:not([open]){display:none}.dk-notice::backdrop{background:#132b2554;backdrop-filter:blur(3px)}
.dk-notice-card{padding:28px;display:grid;gap:17px;text-align:center}.dk-notice-symbol{margin:auto;width:58px;height:58px;display:grid;place-items:center;background:color-mix(in srgb,var(--notice-accent) 12%,white);color:var(--notice-symbol-ink,var(--notice-accent));border-radius:18px}.dk-notice-symbol svg{width:27px;height:27px}
.dk-notice h2{margin:0;font-size:20px;line-height:1.8;text-wrap:balance}.dk-notice-body{margin:0;font-size:14px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere}.dk-notice-error{font-size:12px;color:#a33737}.dk-notice-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.dk-notice#dk-announcement .dk-notice-actions .btn-primary,.dk-notice#dk-update-notice .dk-notice-actions .btn-primary{background:var(--notice-accent)!important;color:var(--notice-button-ink,#fff)!important}.dk-notice[data-tone="warning"] .dk-notice-card{border-top:4px solid #dab061}.dk-notice[data-tone="success"] .dk-notice-card{border-top:4px solid #4e9766}
.dk-update-available{font-size:11px!important;min-height:32px!important;padding:5px 9px!important;background:#eaf3ed!important;color:#275c43!important}
.dk-announcement-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.dk-announcement-layout>aside{display:grid;gap:20px;align-content:start}.dk-announcement-preview{border-top:4px solid var(--notice-accent)!important}.dk-announcement-preview p,.dk-announcement-row p{white-space:pre-wrap;line-height:1.8}.dk-announcement-row{border-top:1px solid #e4eae1;padding:16px 0;display:grid;gap:10px}.dk-announcement-row small{display:block;color:#738073;font-size:12px;margin-top:6px}
.dk-tour{position:fixed;inset:0;margin:0;padding:0;border:0;max-width:none;max-height:none;width:100vw;height:100dvh;background:transparent;overflow:hidden;pointer-events:none}.dk-tour:not([open]){display:none}.dk-tour::backdrop{background:#112a2266}.dk-tour-spot{position:fixed;border:2px solid #edf6d3;border-radius:12px;box-shadow:0 0 0 9999px #112a2220;pointer-events:none}.dk-tour-card{position:fixed;pointer-events:auto;background:#fff;border:1px solid #e0e9df;border-radius:18px;padding:18px;box-shadow:0 14px 44px #14292133;color:#294231;max-height:calc(100dvh - 24px);overflow:auto}.dk-tour-card header,.dk-tour-card footer{display:flex;justify-content:space-between;align-items:center;gap:12px}.dk-tour-card h3{margin:10px 0;font-size:17px}.dk-tour-card p{font-size:13px;line-height:1.9;margin:0 0 16px}.dk-tour-card small{color:#71806c}.dk-tour-card .icon-btn{width:32px;height:32px;min-width:32px}
@media(max-width:680px){
 body.app-shell[data-page] .modal-card{padding:18px!important}
 body.app-shell[data-page] .topbar-actions{gap:6px!important;min-width:0!important}
 body.app-shell[data-page] .topbar-actions #farm-ai-launcher{width:34px!important;height:34px!important;padding:0!important;justify-content:center!important}
 body.app-shell[data-page] #farm-ai-launcher .ai-launcher-copy{display:none!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-topbar{padding:10px!important;gap:6px!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-context-toggle>span{display:none!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-topbar-primary{gap:5px!important;min-width:0!important;flex:1!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-title-stack strong{max-width:40vw!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-title-stack small{font-size:10px!important;max-width:40vw!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-chat-stage{padding:18px!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-composer{padding:10px 12px max(12px,env(safe-area-inset-bottom))!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-starters{gap:8px!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-starters button{font-size:12px!important;padding:12px!important}
 body.app-shell[data-page] #weather-current{padding:18px!important}
 body.app-shell[data-page] #weather-current .weather-current-content{grid-template-columns:minmax(0,1fr) 85px!important;gap:14px!important}
 body.app-shell[data-page] #weather-current .weather-hero-art{width:85px!important;height:85px!important}
 body.app-shell[data-page] #weather-current .weather-hero-icon{width:85px!important;height:85px!important}
 body.app-shell[data-page] #weather-current .current-temp{font-size:46px!important}
 body.app-shell[data-page] #weather-current .weather-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
 .dk-announcement-layout{grid-template-columns:1fr}.dk-notice-card{padding:24px}
 body.app-shell[data-page] :is(.health-status-filters,.health-filters,.status-chips){display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;padding-bottom:5px!important}
}
@media(prefers-reduced-motion:reduce){body.app-shell[data-page] #ai-workspace#ai-workspace .ai-history-panel{transition:none!important}}

body.app-shell[data-page] #health-status{display:flex!important;gap:4px!important;flex-wrap:nowrap!important;overflow-x:auto!important;max-width:100%!important}body.app-shell[data-page] #health-status button{white-space:nowrap!important;flex-shrink:0!important;word-break:normal!important;min-width:max-content!important;padding-inline:12px!important}

body.app-shell.page-admin[data-page] .admin-command-nav{display:none!important}

.expert-case-records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.expert-case-records section{padding:15px;border:1px solid #e1e9dd;border-radius:14px}.expert-case-records h4{margin:0 0 12px}.expert-case-records article{padding:10px 0;border-top:1px solid #e6ebe1}.expert-case-records small{display:block;color:#77856f}.expert-case-records p{white-space:pre-wrap;line-height:1.9;margin:6px 0}.expert-readonly-note{padding:12px;border-radius:12px;background:#f0f5eb;color:#4b6549}@media(max-width:680px){.expert-case-records{grid-template-columns:1fr}}

/* Compact accuracy notice beside the existing composer, without changing the assistant layout. */
body.app-shell[data-page] #ai-workspace .ai-accuracy-note{display:block!important;max-width:780px!important;margin:7px auto 0!important;padding:0!important;color:#6c786d!important;font-size:var(--text-xs)!important;line-height:1.8!important;text-align:center!important;white-space:normal!important;text-wrap:pretty}body.app-shell[data-page] #ai-workspace .ai-accuracy-note a{color:#416249!important;text-decoration:underline!important;text-underline-offset:3px!important;white-space:nowrap!important}
/* Admin user identity remains readable; compact mobile filters do not inherit a column flex basis. */
body.app-shell.page-admin .table-user>span{display:grid;gap:3px;min-width:0}
body.app-shell.page-admin .table-user>span>small{direction:ltr;text-align:start;unicode-bidi:isolate;white-space:nowrap}
@media(max-width:760px){body.app-shell.page-admin[data-page][data-role] .toolbar-filters>.field.compact{flex:none;min-width:0;min-height:0;height:auto}}

/* --- UI corrections --- */
body.app-shell[data-page] #farm-ai-launcher{position:fixed!important;inset:auto 18px 24px auto!important;display:inline-flex!important;align-items:center!important;gap:8px!important;width:auto!important;height:44px!important;padding:0 14px 0 10px!important;border-radius:15px!important;background:linear-gradient(135deg,rgba(26,72,49,.86),rgba(56,108,77,.8))!important;color:#f4f6ee!important;border:1px solid #e3f1dc66!important;backdrop-filter:blur(14px) saturate(130%)!important;box-shadow:0 8px 24px #1b3e3026,inset 0 1px #ffffff26!important;z-index:1250!important}
body.app-shell[data-page] #farm-ai-launcher .ai-launcher-copy{display:block!important;color:inherit!important}body.app-shell[data-page] #farm-ai-launcher .ai-launcher-copy b{font-size:12px!important;color:inherit!important}body.app-shell[data-page] #farm-ai-launcher .ai-launcher-copy small{display:none!important}body.app-shell[data-page] #farm-ai-launcher .ai-orb{width:25px!important;height:25px!important;color:#e9f3d6!important;background:transparent!important;box-shadow:none!important;font-size:23px!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-shell{display:grid!important;grid-template-columns:0 minmax(0,1fr)!important;grid-template-rows:64px minmax(0,1fr)!important;direction:rtl!important}
body.app-shell[data-page] #ai-workspace#ai-workspace.history-open .ai-shell{grid-template-columns:260px minmax(0,1fr)!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-topbar{grid-column:1/-1!important;grid-row:1!important;padding:10px 18px!important;min-height:0!important;inset:auto!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-main-panel{grid-column:2!important;grid-row:2!important;grid-template-rows:auto minmax(0,1fr) auto!important;min-height:0!important;height:100%!important;overflow:hidden!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-history-panel{position:relative!important;inset:auto!important;grid-column:1!important;grid-row:2!important;transform:none!important;width:100%!important;max-width:none!important;min-width:0!important;height:100%!important;padding:0!important;overflow:hidden!important;visibility:hidden!important;z-index:20!important;border:0!important;border-left:1px solid #e1e7dd!important;box-shadow:none!important;background:#f3f6ef!important}
body.app-shell[data-page] #ai-workspace#ai-workspace.history-open .ai-history-panel{visibility:visible!important;box-shadow:none!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-history-panel header{padding:16px!important;gap:12px!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-history-panel .ai-new-chat-button{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;min-height:38px!important;padding:8px 12px!important;border-radius:10px!important;background:#e5ede0!important;color:#34573b!important;font-size:12px!important;border:1px solid #d6e1cf!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-new-chat-button svg{width:16px!important;height:16px!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-conversation-list{padding:8px 10px!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-selected-context{grid-row:1!important;margin:8px auto 0!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-chat-stage{grid-row:2!important;padding:20px!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-composer{grid-row:3!important;padding:12px 18px max(14px,env(safe-area-inset-bottom))!important;overflow:visible!important;z-index:90!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-context-sidebar{position:absolute!important;top:auto!important;right:18px!important;left:auto!important;bottom:100%!important;width:min(340px,calc(100% - 36px))!important;max-height:var(--ai-context-room,min(440px,55dvh))!important;height:auto!important;visibility:visible!important;pointer-events:auto!important;transform:none!important;overflow:auto!important;padding:0!important;z-index:100!important;border:1px solid #d9e3d4!important;border-radius:16px!important;background:#fff!important;box-shadow:0 12px 34px #1c3b2221!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-composer-toolbar{display:flex!important;align-items:center!important;gap:8px!important}
body.app-shell[data-page] #ai-workspace#ai-workspace #ai-toggle-context{display:grid!important;place-items:center!important;flex:none!important;width:36px!important;height:36px!important;padding:0!important;min-width:36px!important;border:1px solid #dce5d7!important;border-radius:10px!important;background:#f4f7f0!important;color:#34573b!important}
body.app-shell[data-page] #ai-workspace#ai-workspace #ai-toggle-context svg{width:17px!important;height:17px!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-composer-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:10px!important}
body.app-shell[data-page] #ai-workspace#ai-workspace .ai-composer textarea{min-width:0!important;width:100%!important}
.dk-notice-symbol img{width:36px;height:36px;object-fit:contain}.dk-notice#dk-update-notice h2{font-size:18px}.dk-notice#dk-update-notice .dk-notice-body{font-size:13px;line-height:1.9}
body.app-shell.page-satellite #geo-workspace.map-short-viewport .geo-map-topbar{display:grid!important;grid-template-columns:44px 44px!important;width:96px!important;max-width:96px!important;gap:6px!important}
body.app-shell.page-satellite #geo-workspace.map-short-viewport .geo-zoom-stack{display:contents!important}
body.app-shell.page-satellite #geo-workspace.map-short-viewport .geo-map-topbar .geo-ai-map-launcher{display:none!important}
body.app-shell.page-satellite #geo-workspace .geo-panel-fab{z-index:1251!important}
@media(max-width:980px){body.app-shell[data-page] #farm-ai-launcher{bottom:calc(82px + env(safe-area-inset-bottom))!important;right:12px!important;height:42px!important;padding-inline:10px!important}body.app-shell.page-satellite #farm-ai-launcher{bottom:var(--map-assistant-bottom,210px)!important;right:10px!important}}
@media(max-width:700px){
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-shell,body.app-shell[data-page] #ai-workspace#ai-workspace.history-open .ai-shell{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:56px auto minmax(0,1fr)!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-topbar{padding:8px 12px!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-title-stack{max-width:calc(100vw - 114px)!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-topbar strong{max-width:100%!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-history-panel{display:none!important;grid-row:2!important;grid-column:1!important;max-height:164px!important;height:auto!important;border-left:0!important;border-bottom:1px solid #e1e7dd!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace.history-open .ai-history-panel{display:flex!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-history-panel header{flex-direction:row!important;align-items:center!important;padding:8px 12px!important;gap:10px!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-history-panel header>div{flex:1!important;min-width:0!important;width:auto!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-history-panel .ai-new-chat-button{width:auto!important;white-space:nowrap!important;flex:none!important;max-width:140px!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-history-panel header strong{font-size:12px!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-history-panel header small{font-size:10px!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-conversation-list{max-height:94px!important;padding:4px 10px!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-main-panel{grid-column:1!important;grid-row:3!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-chat-stage{padding:14px!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-composer{padding:8px 12px max(10px,env(safe-area-inset-bottom))!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-composer-row{grid-template-columns:1fr!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-composer-toolbar{justify-content:flex-end!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-starters{margin-top:12px!important}
}
@media(max-height:520px) and (orientation:landscape) and (max-width:980px){
 body.app-shell.page-satellite .topbar{min-height:50px!important;height:50px!important;padding-block:6px!important}
 body.app-shell.page-satellite .topbar-title small{display:none!important}
 body.app-shell.page-satellite .mobile-bottom-nav{height:52px!important;min-height:52px!important;padding-block:3px!important}
 body.app-shell.page-satellite #geo-workspace .geo-commandbar{padding:8px 12px!important}
 body.app-shell.page-satellite #geo-workspace .geo-command-main{display:grid!important;grid-template-columns:minmax(130px,1fr) minmax(150px,1fr) auto!important;gap:10px!important;align-items:center!important}
 body.app-shell.page-satellite #geo-workspace .geo-search-control,body.app-shell.page-satellite #geo-workspace #geo-farm-picker-toggle,body.app-shell.page-satellite #geo-workspace #open-analysis-composer{height:42px!important;min-height:42px!important}
 body.app-shell.page-satellite #geo-workspace .geo-location-search{grid-column:1!important;grid-row:1!important}
 body.app-shell.page-satellite #geo-workspace .geo-farm-picker{grid-column:2!important;grid-row:1!important}
 body.app-shell.page-satellite #geo-workspace .geo-command-actions{grid-column:3!important;grid-row:1!important}
 body.app-shell.page-satellite #geo-workspace .map-status,body.app-shell.page-satellite #geo-workspace .map-scale-card{top:68px!important;font-size:11px!important}
 body.app-shell.page-satellite #geo-workspace .geo-bottom-dock{height:48px!important}
 body.app-shell.page-satellite #geo-workspace .geo-bottom-dock button{height:40px!important;min-height:40px!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-shell{grid-template-rows:50px minmax(0,1fr)!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-welcome{padding:6px 0!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-welcome h2{font-size:18px!important;margin:0!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-welcome p{margin:4px!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-starters{display:none!important}
 body.app-shell[data-page] #ai-workspace#ai-workspace .ai-composer{padding-block:5px!important}
}
[data-user-avatar] img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;border-radius:inherit}.account-profile-card{align-self:start!important;height:auto!important}.account-plan-link{text-decoration:none;gap:5px}.account-plan-link svg{width:13px;height:13px}.account-avatar-picker{width:100%;margin-top:25px;padding-top:20px;border-top:1px solid #dce4d5;text-align:center}.account-avatar-picker h3{font-size:14px;margin:0 0 14px}.avatar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.avatar-grid button{border:1px solid transparent;padding:7px;background:transparent;border-radius:14px;cursor:pointer;display:grid;justify-items:center;gap:5px;min-width:0;color:#586b51;font:inherit;font-size:10px}.avatar-grid button[aria-pressed=true]{background:#e0ecd6;border-color:#91b57a}.avatar-grid button:hover{background:#e6eedf}.avatar-grid button:focus-visible{outline:2px solid #729c5e;outline-offset:2px}.avatar-grid img{width:64px;height:64px;max-width:100%;object-fit:contain;border-radius:14px}.avatar-grid button span{line-height:1.6}.avatar-reset{margin-top:14px}#avatar-save-status{font-size:11px;line-height:1.8;min-height:20px;margin:6px 0 0}
body.app-shell[data-page] #ai-workspace#ai-workspace{height:var(--ai-visible-height,100dvh)!important;max-height:var(--ai-visible-height,100dvh)!important}@media(max-width:700px){body.app-shell[data-page] #ai-workspace#ai-workspace.typing-viewport .ai-history-panel{display:none!important}}
.dk-update-available{display:inline-grid!important;place-items:center!important;width:34px!important;height:34px!important;min-height:34px!important;padding:5px!important}.dk-update-available img{width:22px;height:22px;object-fit:contain}
body.app-shell[data-page] #ai-workspace#ai-workspace #ai-new-chat::after{content:none!important}body.app-shell[data-page] #ai-workspace#ai-workspace .ai-send-button svg{transform:none!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important}body.app-shell[data-page] #ai-workspace#ai-workspace .ai-conversation-list::before{position:static!important;display:block!important;margin:0 4px 6px!important;flex:none!important}body.app-shell[data-page] #ai-workspace#ai-workspace .ai-conversation-item{flex:none!important}
@media(max-height:520px) and (orientation:landscape) and (max-width:980px){
 body.app-shell.page-satellite #geo-workspace .geo-commandbar{display:grid!important;grid-template-columns:minmax(150px,1fr) minmax(250px,1.15fr)!important;gap:12px!important;align-items:start!important}
 body.app-shell.page-satellite #geo-workspace .geo-command-main{display:block!important;width:100%!important;grid-column:1!important;min-width:0!important}
 body.app-shell.page-satellite #geo-workspace .geo-command-row{grid-column:2!important;min-width:0!important;display:flex!important;gap:8px!important;align-items:center!important}
 body.app-shell.page-satellite #geo-workspace .geo-farm-select{min-width:0!important;flex:1!important;margin:0!important}
 body.app-shell.page-satellite #geo-workspace .geo-command-actions{flex:none!important}
 body.app-shell.page-satellite #geo-workspace .geo-search-control input{height:36px!important;min-height:36px!important;padding-block:4px!important;font-size:12px!important}
 body.app-shell.page-satellite #geo-workspace .geo-search-control,#geo-workspace #geo-farm-picker-toggle{max-height:42px!important}
 body.app-shell.page-satellite #geo-workspace .map-status{left:120px!important;max-width:calc(100% - 280px)!important;top:60px!important;line-height:1.5!important}
 body.app-shell.page-satellite #geo-workspace .map-scale-card{top:60px!important;padding:8px 10px!important;font-size:11px!important}
}
@media(min-width:981px){body.app-shell[data-page] #farm-ai-launcher{right:auto!important;left:18px!important}}
body.app-shell.page-satellite #geo-workspace#geo-workspace.map-tiny-viewport .geo-map-topbar{grid-template-columns:repeat(3,44px)!important;width:144px!important;max-width:144px!important;gap:4px!important}
@media(max-height:520px) and (orientation:landscape) and (max-width:980px){
 body.app-shell.page-satellite[data-role] header.topbar.topbar{height:50px!important;min-height:50px!important;max-height:50px!important}
 body.app-shell.page-satellite[data-role] nav.mobile-bottom-nav.mobile-bottom-nav{height:52px!important;min-height:52px!important;max-height:52px!important;padding-block:3px!important}
 body.app-shell.page-satellite #geo-workspace#geo-workspace .geo-command-row{height:42px!important;min-height:42px!important;max-height:42px!important}
 body.app-shell.page-satellite #geo-workspace#geo-workspace .geo-search-control,body.app-shell.page-satellite #geo-workspace#geo-workspace #geo-farm-picker-toggle,body.app-shell.page-satellite #geo-workspace#geo-workspace #open-analysis-composer{height:42px!important;min-height:42px!important;max-height:42px!important}
 body.app-shell.page-satellite #geo-workspace#geo-workspace .geo-bottom-dock{height:48px!important;min-height:48px!important;max-height:48px!important}
 body.app-shell.page-satellite #geo-workspace#geo-workspace .geo-bottom-dock button{height:40px!important;min-height:40px!important;max-height:40px!important}
}
