/* Proposition 3B : couleurs seules. Aucun changement de grille, taille ou espacement. */
body.terrain-workspace{--g:#32843e;--gh:#286b34;--gl:#eaf3eb;--gd:#286b34;background:#dce1de;color:#252a2d}
.terrain-workspace .workspace-rail,.terrain-workspace .workspace-brand{background:#252a2d;border-color:#424b46}
.terrain-workspace .workspace-brand{background:transparent}
.terrain-workspace .app-page-nav button{color:#d8e1da}
.terrain-workspace .app-page-nav button[aria-current=page]{background:#fff;color:#9f3629;box-shadow:0 3px 12px #0002}
.terrain-workspace .app-page-nav button:hover{background:#39463c;color:white}
.terrain-workspace .app-page-nav button[aria-current=page]:hover{background:#fff;color:#9f3629}
.terrain-workspace .btn,.terrain-workspace .workspace-start,.login-submit{background:#9f3629;color:#fff}
.terrain-workspace .btn:hover:not(:disabled),.login-submit:hover{background:#81291f}
.terrain-workspace .btn:disabled{background:#d4dcd5;color:#59665d}
.terrain-workspace .dashboard-ring .ring-value{stroke:#469c49}
.terrain-workspace .dashboard-ring b{color:#286b34}
.terrain-workspace .dashboard-ring .ring-track{stroke:#e2e9e3}
.terrain-workspace .state-tied .dashboard-ring .ring-value{stroke:#cfab28}
.terrain-workspace .state-tied .dashboard-ring b{color:#776019}
.terrain-workspace .state-single .dashboard-ring .ring-value{stroke:#85988a}
.terrain-workspace .state-single .dashboard-ring b{color:#536358}
.terrain-workspace .evidence-track i,.terrain-workspace .kpi-mini-track i{background:#469c49}
.terrain-workspace .dashboard-recency-tabs button[aria-pressed=true],.terrain-workspace .geo-layer-tabs button.on,.terrain-workspace .workspace-view.active,.terrain-workspace .workspace-view[aria-current=page]{background:#252a2d;color:#fff}
.terrain-workspace .source input,.terrain-workspace input[type=checkbox]{accent-color:#32843e}
.terrain-workspace .dashboard-scope-pill.confirmed{background:#e7f2e8;color:#286b34}
.terrain-workspace .dashboard-scope-pill:not(.confirmed){background:#fff3c2;color:#725913}
.terrain-workspace .input-wrap input:focus{border-color:#32843e;box-shadow:0 0 0 3px #d9eadc;background:#fff}
.terrain-workspace .app-summary-card.dashboard-card:hover{border-color:#469c49;box-shadow:0 8px 24px #252a2d14}
.terrain-workspace .app-summary-card.dashboard-card[aria-expanded=true]{border-color:#32843e;box-shadow:0 0 0 2px #d9eadc}
.terrain-workspace .online-research .research-primary,.terrain-workspace .online-research a.research-primary{background:#9f3629;border-color:#9f3629;color:#fff}
.login-identity{background:#252a2d}
.login-lock{background:#eaf3eb;border-color:#c1d7c5;color:#286b34}
.login-version span{background:#469c49}
.login-form input:focus{border-color:#32843e;box-shadow:0 0 0 3px #d9eadc}
body:has(.login-shell){background:#dce1de}
/* Sélections dans les pages : rouge de connexion, texte blanc. Menu latéral distinct. */
.terrain-workspace :is(.research-categories,.research-subnav,.guide-categories,.dashboard-recency-tabs,.dashboard-scope-options,.app-recognition-toolbar,.field-layer-switches,.history-periods) button[aria-pressed=true],
.terrain-workspace .workspace-views button[aria-current=page],
.terrain-workspace .search-mode-btn.on,.terrain-workspace .search-mode-btn.active,
.terrain-workspace .geo-tool-tabs button.active,.terrain-workspace .geo-layer-tabs button.on,
.terrain-workspace .measure-actions button.active{background:#9f3629;color:#fff;border-color:#9f3629}
.terrain-workspace .geo-tool-tabs button.active span{background:#ffffff26;color:#fff}
.terrain-workspace .field-layer-switches button[aria-pressed=true] small{color:#fff}

/* Transparent logo: preserve the previous 1983:793 layout box. */
.brand-lockup{display:inline-block;position:relative;vertical-align:middle;flex-shrink:0;background:transparent!important;border-radius:0!important;aspect-ratio:1983 / 793}
.brand-lockup>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;margin:0!important;border-radius:0!important;background:transparent!important}
.brand-lockup.is-dark>img:first-child{filter:brightness(0) invert(1)}
.brand-lockup.is-dark>img:last-child{clip-path:inset(0 74% 0 0)}
.terrain-workspace .workspace-brand>.brand-lockup{display:block;width:152px;max-height:66px}
.login-logo.brand-lockup{height:auto}
@media(max-width:600px){.login-logo.brand-lockup{height:54px}}


/* Approved Compact map views: native pictograms, existing actions. */
.terrain-workspace .app-recognition-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:3px;padding:4px;border:0;border-radius:14px;background:#edf1ee;box-sizing:border-box;container-type:inline-size}
.terrain-workspace .app-recognition-toolbar button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:10px 6px;border:0;border-radius:10px;background:transparent;color:#38443d;font:600 13px/1.3 "Segoe UI",sans-serif}
.terrain-workspace .app-recognition-toolbar button[aria-pressed=true]{background:#9f3629;color:#fff}
.terrain-workspace .app-recognition-toolbar button:disabled{background:transparent;color:#6a756f;opacity:.65}
.terrain-workspace .app-recognition-toolbar button:focus-visible{outline:2px solid #9f3629;outline-offset:2px}
.map-view-icon{width:23px;height:23px;flex-shrink:0}
.map-view-label{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.map-view-label strong{font-size:13px;font-weight:750;white-space:nowrap}
.map-view-label small{font-size:11px;font-weight:500;opacity:.8}
@media(max-width:560px){.terrain-workspace .app-recognition-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:561px){
 @container(max-width:440px){
  .terrain-workspace .app-recognition-toolbar button{gap:4px;padding:8px 4px}
  .map-view-icon{width:18px;height:18px}
  .map-view-label strong{font-size:11px}
  .map-view-label small{font-size:10px}
 }
}
