/* DEC638: appearance changes colors only. Shared Field CSS owns all control geometry and typography. */
/* DEC628: Field Maps references inform hierarchy and spacing, not data or platform identity.
 * This presentation layer retains the existing viewport, form, map and AI owners. */
body.orb-field[data-field-theme="light"]{color-scheme:light;--brand-primary:#0075bc;--brand-accent:#087f66;--bg-deep:#f5f5f4;--bg-surface:#f0f1f2;--bg-card:#fff;--bg-card-solid:#fff;--bg-card-hover:#eaf3fa;--border-subtle:#d9dde1;--text-primary:#17212b;--text-secondary:#52616e;--text-muted:#61707b;--text-link:#006eb6;--error:#b52e36;--success:#087e5c}
body.orb-field[data-field-theme="light"] .top-header{background:#fafafa;border-bottom-color:#d6d9dc;box-shadow:none;backdrop-filter:none;color:#17212b}
body.orb-field[data-field-theme="light"] .top-header .header-btn{background:transparent;border-color:transparent;box-shadow:none;color:#0075bc}
body.orb-field[data-field-theme="light"] .map-controls>.btn-icon,body.orb-field[data-field-theme="light"] #fieldCollectionZoom button,body.orb-field[data-field-theme="light"] .compass-indicator{background:#fff;color:#0075bc;border-color:#d6dce1;box-shadow:0 2px 8px #17212b22}
body.orb-field[data-field-theme="light"] .location-banner{background:#f2f2f1;color:#56636d;border-color:transparent;border-bottom-color:#d5dadd;box-shadow:none}
body.orb-field[data-field-theme="light"] .location-banner .loc-text{color:inherit}
body.orb-field[data-field-theme="light"] #addBtn{background:#0075bc;color:#fff;border-color:#fff;box-shadow:0 3px 12px #14253644}
body.orb-field[data-field-theme="light"] #addBtn[data-field-control="open"]::before{color:#fff}
body.orb-field[data-field-theme="light"] .slider-panel,body.orb-field[data-field-theme="light"] #collectionPanel,body.orb-field[data-field-theme="light"] #searchPanel{background:#fafafa;--text-secondary:#52616e;--text-muted:#61707b;--error:#b52e36;border-color:#dddfe2;border-bottom-color:transparent;box-shadow:0 -3px 18px #16232c20;backdrop-filter:none}
body.orb-field[data-field-theme="light"] .slider-handle::before{background:#bec2c4}
body.orb-field[data-field-theme="light"] #collectionPanel .collection-header{border-color:#dde0e2}
body.orb-field[data-field-theme="light"] #fieldRecoveryBadge{color:#61707b}
body.orb-field[data-field-theme="light"] #fieldCollectionAsk{background:#eff4f7;color:#006fac;border-color:#d8e2e9}
body.orb-field[data-field-theme="light"] #submitBtn,body.orb-field[data-field-theme="light"] #pointActionBtn,body.orb-field[data-field-theme="light"] #vertexActionBtn{background:#0075bc;background-image:none;color:#fff;box-shadow:none;border-color:transparent}
body.orb-field[data-field-theme="light"] #pointActionBtn.update-mode{background:#0075bc;color:#fff}
body.orb-field[data-field-theme="light"] .template-filter,body.orb-field[data-field-theme="light"] #searchInput{background:#e9ebec;border-color:transparent;color:#17212b}
body.orb-field[data-field-theme="light"] .template-group-header{color:#61707b}
body.orb-field[data-field-theme="light"] button.template-list-item,body.orb-field[data-field-theme="light"] button.subtype-item{background:transparent;border-color:transparent;border-bottom-color:#e0e3e5;color:#17212b;box-shadow:none}
body.orb-field[data-field-theme="light"] button.template-list-item:hover,body.orb-field[data-field-theme="light"] button.subtype-item:hover{background:#eaf3fa}
body.orb-field[data-field-theme="light"] .geometry-type-badge{background:#e7eef3;color:#52616e}
body.orb-field[data-field-theme="light"] #collectionPanel .feature-info-display{background:transparent;border-color:transparent;border-bottom-color:#dce1e4;box-shadow:none}
body.orb-field[data-field-theme="light"] :is(#featureCoords,#fieldPositionQuality,#fieldPlacementSummary,#fieldPointHelp){color:#52616e}
body.orb-field[data-field-theme="light"] #collectionPanel .form-group label{color:#52616e}
body.orb-field[data-field-theme="light"] #collectionPanel :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select){background-color:#fff;color:#17212b;border-color:#c8d0d6;box-shadow:none}
body.orb-field[data-field-theme="light"] #collectionPanel :is(input,textarea)::placeholder{color:#677782}
body.orb-field[data-field-theme="light"] #collectionPanel .collect-action-btn{color:#006fac;background:#fff;border-color:#d3dce2;box-shadow:none}
body.orb-field[data-field-theme="light"] #collectionPanel :is(.field-draft-controls,.field-position-details,.field-inspection-context){color:#52616e;background:#f0f3f5;border-color:#d3dce2}
body.orb-field[data-field-theme="light"] #fieldCheckFields,body.orb-field[data-field-theme="light"] #fieldSaveDraft{background:#eff4f7;color:#006fac;border-color:#cfdae2}
body.orb-field[data-field-theme="light"] #fieldComposer{background:#fff;border-color:#d2dce2;box-shadow:0 2px 12px #17212b1a}
body.orb-field[data-field-theme="light"] #fieldComposer textarea#owAtlasQuestion{background:#f0f2f4!important;color:#17212b!important}
body.orb-field[data-field-theme="light"] #fieldComposer button#owAtlasSend{background:#0075bc;color:#fff}
body.orb-field[data-field-theme="light"] #fieldAskExpand{color:#006fac}
body.orb-field[data-field-theme="light"] #aiPanel .review-starters button{background:#f0f4f7;color:#17212b;border-color:#d4dce2}
body.orb-field[data-field-theme="light"] #aiPanel :is(h1,h2,h3,p){color:var(--text-primary)}
body.orb-field[data-field-theme="light"] #overflowMenu,body.orb-field[data-field-theme="light"] .modal-content,body.orb-field[data-field-theme="light"] .basemap-content{background:#fff;color:#17212b;border-color:#d6dce1;box-shadow:0 5px 22px #17212b26}
body.orb-field[data-field-theme="light"] #overflowMenu .menu-item{color:#243542;border-bottom-color:#edf0f2}
body.orb-field[data-field-theme="light"] #overflowMenu .menu-item:hover{background:#edf5fa}
body.orb-field[data-field-theme="light"] #passwordModal .modal-subtitle,body.orb-field[data-field-theme="light"] .basemap-option span{color:#52616e}
body.orb-field[data-field-theme="light"] #passwordModal input{background:#fff;color:#17212b;border-color:#c7d1d8}
body.orb-field[data-field-theme="light"] button[data-field-control="close"],body.orb-field[data-field-theme="light"] button[data-field-control="minimize"]{background:#f0f2f4;border-color:#d6dee4;color:#c93640!important}
body.orb-field[data-field-theme="light"] button[data-field-control="minimize"]{color:#52616e!important}
body.orb-field[data-field-theme="light"] button[data-field-control="open"]::before{color:#087e5c}
body.orb-field[data-field-theme="light"] .header-btn[data-field-control="open"]::before{text-shadow:none}
body.orb-field[data-field-theme="light"] #layerConfigView{background:#f6f7f8;color:#17212b}
body.orb-field[data-field-theme="light"] #layerConfigView :is(.layer-config-header,.layer-config-sidebar,.layer-config-editor){background:#fafafa;color:#17212b;border-color:#d6dce1}
body.orb-field[data-field-theme="light"] :focus-visible{outline-color:#0075bc!important}

/* Keep the same artwork legible against the alternate surface. Colored brand assets stay intact. */
body.orb-field[data-field-theme="light"] :is(#searchIcon,#layersIcon,#gpsIcon,#headerLogo){filter:brightness(.45)}
body.orb-field[data-field-theme="light"] #fieldTheme{background:#fff;color:#17212b}
body.orb-field[data-field-theme="light"] #settingsPanel .toggle-switch-js:not(.active)::before{background:#c8d0d6}

body.orb-field[data-field-theme="light"] #collectionPanel :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select){background-color:#fff!important;color:#17212b!important}

body.orb-field[data-field-theme="light"] #fieldProjects input:not([type=checkbox]){background:#f0f2f4!important;color:#17212b!important}

/* DEC639: the shared AI status blue is unreadable on the Light composer surface. */
body.orb-field[data-field-theme="light"] #owAtlasStatus{color:#52616e!important}

/* DEC641: message colors share the same layout in both appearances. */
body.orb-field[data-field-theme="light"] #aiPanel{--field-message-user:#edf2f6}

body.orb-field[data-field-theme="light"] #fieldCollectionConfirm button[data-destructive=true]{color:#c72f39}

/* DEC651: readable connection/error card on the Light conversation surface. */
body.orb-field[data-field-theme="light"] #aiPanel #chatFailure{background:#fff0ec;color:#632d22;border-color:#c99c90}
