/* R455 · shared Looking Glass control geometry. Scoped to the web application. */
#root :is(.lg259,.wq-shell){--lg-control-height:44px;--lg-control-gap:12px;--lg-field-gap:8px;}
#root :is(.lg259,.wq-shell) :is(button,input,select,textarea){box-sizing:border-box;max-width:100%;}
#root .lg259 :is(.lg-actions,.lg-toolbar,.lg-panel-heading,.lg-heading-actions,.lg-editor-save,.lg-pagination,.atlas-account-actions,.wm-review-toolbar,.wm-review-map-controls,.wm-reuse-actions){gap:var(--lg-control-gap)!important;flex-wrap:wrap;min-width:0;}
#root .lg259 :is(.lg-actions,.lg-toolbar){display:flex;align-items:center;}
#root .lg259 :is(.lg-actions,.lg-toolbar)>:is(button,.lg-button){margin:0!important;flex-shrink:0;}
#root .lg259 :is(.lg-actions,.lg-toolbar):has(>label>select){align-items:flex-end;}
#root .lg259 label:has(>input:is([type=checkbox],[type=radio])){display:flex!important;flex-direction:row!important;align-items:center;justify-content:flex-start;gap:10px!important;min-width:0;max-width:100%;line-height:1.5;}
#root .lg259 label>input:is([type=checkbox],[type=radio]){flex:0 0 20px;width:20px!important;height:20px!important;min-height:20px!important;margin:0!important;padding:0!important;align-self:flex-start;margin-top:2px!important;}
#root .lg259 label:has(>select),#root .lg259 label:has(>input:not([type=checkbox],[type=radio],[type=range])){gap:var(--lg-field-gap);min-width:0;}
#root .lg259 :is(.lg-actions,.lg-toolbar)>label{margin:0;}
#root .lg259 :is(.lg-actions,.lg-toolbar)>label:has(>select){flex:0 1 260px;}
#root .lg259 :is(.lg-actions,.lg-toolbar)>label>select{width:100%;margin:0;}
#root .lg259 :is(.lg-actions,.lg-toolbar,.lg-editor-save,.lg-dialog,.ps-card,.lg-editor-group) button:not(.lg-text):not([aria-label^="Sort"]),
#root .lg259 :is(select,input:not([type=checkbox],[type=radio],[type=range],[type=file])){min-height:var(--lg-control-height)!important;line-height:1.4;}
#root .lg259 :is(button,.lg-button){white-space:normal;word-break:normal!important;overflow-wrap:normal!important;hyphens:none;}
#root .lg259 :is(button,select,input,textarea):focus-visible{outline:2px solid #087f9c;outline-offset:3px;}
/* Ungrouped legacy actions retain a gutter until their component adopts lg-actions. */
#root .lg259 :is(article,section,div,form,p,footer):not(.lg-actions,.lg-toolbar,.lg-tabs,.lg-stp-steps,.lg-heading-actions,.atlas-account-actions,.lg-view-switch)>button+button{margin-inline-start:8px;}
#root .lg259 :is(.lg-actions,.lg-toolbar,.lg-tabs,.lg-stp-steps,.lg-heading-actions,.atlas-account-actions,.lg-view-switch)>button+button{margin-inline-start:0;}
#root .lg259 :is(.lg-edit-grid,.ps-grid){grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:20px;}
#root .lg259 :is(.lg-panel,.lg-card,.lg-editor-group,.ps-card,.lg-stp-detail,.lg-workbench,.lg-main,fieldset){min-width:0;max-width:100%;box-sizing:border-box;}
#root .lg259 :is(.lg-table-wrap,.wm-review-table-wrap){max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;}
#root .lg259 :is(.lg-stp-detail,.ps-card) :is(p,small){overflow-wrap:break-word;}
#root .lg259 .lg-geocoding-actions{margin:20px 0 16px;align-items:center;}
#root .lg259 .lg-geocoding-filter{margin:20px 0 16px;gap:16px!important;}
#root .lg259 .lg-geocoding-filter>label{font-weight:500;}
#root .lg259 .lg-geocoding-filter>span{color:#526b78;font-size:.9em;}
#root .lg259 .lg-bulk-address-split{margin:0 0 24px;gap:12px!important;}
#root .lg259 .lg-split-toolbar{align-items:flex-end;gap:12px!important;}
#root .lg259 .lg-split-toolbar>label{flex:0 1 280px;}
#root .lg259 .lg-split-toolbar>button{min-height:var(--lg-control-height)!important;padding-block:10px;}
#root .lg259 .lg-split-toolbar>label>select{min-height:var(--lg-control-height)!important;font-weight:400;}
#root .lg259 .lg-bulk-address-split>small{max-width:90ch;color:#526b78;line-height:1.6;}
#root .lg259 .lg-stp-detail>.lg-actions.atlas-stp-bottom{margin-top:24px;padding-top:20px;align-items:center;}
#root .lg259 .ps-page,#root .ps-page.lg259{padding-inline:clamp(16px,4vw,48px);}
#root .lg259 .ps-card{padding:clamp(16px,3vw,28px);}
#root .lg259 .ps-card label{margin-block:16px;}
#root .lg259 .lg-address-split-dialog{padding:clamp(12px,3vw,24px)!important;}
#root .lg259 .lg-address-split-dialog>.lg-editor-group{max-height:calc(100dvh - 32px)!important;padding:clamp(16px,3vw,24px)!important;}
#root .wq-shell :is(.wq-actions,.wq-footer,.wq-pagination,.wq-toolbar,.wq-clienttabs){gap:12px;flex-wrap:wrap;}
#root .wq-shell :is(button,select,.wq-row-open){min-height:40px;}
@media(max-width:800px){
 #root .lg259 .lg-app-header{height:auto!important;min-height:60px;flex-wrap:wrap;gap:12px!important;padding:12px 16px!important;}
 #root .lg259 .lg-app-header nav{display:flex;flex-wrap:wrap;gap:8px!important;max-width:100%;}
 #root .lg259 .lg-heading-actions{max-width:100%!important;justify-content:flex-start!important;margin-left:0!important;}
 #root .lg259 .lg-page-heading,#root .lg259 .lg-panel-heading{flex-wrap:wrap;gap:16px!important;}
 #root .lg259 .lg-tabs{gap:12px!important;overflow-x:auto;max-width:100%;}
 #root .lg259 .lg-stp-layout{grid-template-columns:minmax(0,1fr)!important;}
 #root .lg259 .atlas-mobile-step-picker{display:flex!important;flex-direction:column;gap:8px;margin-bottom:16px;}
 #root .lg259 .lg-stp-steps{display:none!important;}
 #root .lg259 .lg-stp-detail{width:100%;}
}
@media(max-width:480px){
 #root .lg259 .lg-main{padding-inline:16px!important;}
 #root .lg259 .lg-actions:not(.atlas-stp-bottom)>label:has(>select),#root .lg259 .lg-split-toolbar>label{flex:1 1 100%;}
 #root .lg259 .lg-split-toolbar>button,#root .lg259 .lg-geocoding-actions>button{width:100%;}
 #root .lg259 .lg-geocoding-filter{align-items:flex-start;flex-direction:column;}
 #root .lg259 .lg-editor-save{position:static!important;}
 #root .lg259 .lg-stp-detail .atlas-stp-bottom>button{flex:1 1 120px;}
 #root .lg259 .lg-stp-detail .atlas-step-context{flex-basis:100%;text-align:center;order:2;}
 #root .lg259 .lg-heading-actions{width:100%!important;}
 #root .lg259 .lg-heading-actions .atlas-account-actions{justify-content:flex-start!important;}
 #root .wq-shell .wq-pagination{width:100%;justify-content:flex-start;}
}
@media(pointer:coarse){#root .lg259 :is(button,select):not([aria-label^="Sort"]){min-height:44px;}#root .wq-shell :is(button,select,.wq-row-open){min-height:44px;}}
/* Release-specific compact rules must not collapse command gutters. */
#root .lg259 .lg-heading-actions .atlas-account-actions{display:flex!important;align-items:center!important;gap:8px!important;}
#root .lg259 .lg-heading-actions .atlas-account-actions :is(.atlas-navigation,#atlas-account-refresh-action,#atlas-account-sync-actions){display:contents!important;}
#root .lg259 .lg-heading-actions .atlas-account-actions button{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;flex:0 0 44px!important;}
@media(max-width:800px){
 #root .lg259 .lg-account-heading{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:16px!important;}
 #root .lg259 .lg-account-heading>div:first-child{flex:0 0 auto!important;min-height:0!important;}
 #root .lg259 .lg-heading-actions{flex:0 0 auto!important;gap:12px!important;}
 #root .lg259 .lg-app-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;}
 #root .lg259 .lg-app-header>.lg-brand{grid-column:1;grid-row:1;margin:0!important;padding:0!important;}
 #root .lg259 .lg-app-header>.lg-profile{grid-column:2;grid-row:1;margin:0!important;}
 #root .lg259 .lg-app-header>nav{grid-column:1/-1;grid-row:2;margin:0!important;padding:0!important;width:100%;border:0!important;}
 #root .lg259 .lg-product-identity{font-size:clamp(16px,4vw,22px)!important;}
}
#root .lg259 .lg-workbench>.atlas-iris-report{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px!important;}
#root .lg259 .lg-workbench>.atlas-iris-report>details{flex:1 1 240px!important;min-width:0;width:auto!important;}
#root .lg259 .lg-workbench>.atlas-iris-report>details>summary{max-width:100%;white-space:normal;min-height:44px;}
#root .lg259 .lg-workbench>.atlas-iris-report>.atlas-account-actions{flex:0 1 auto!important;min-width:0;margin:0!important;position:static!important;}
#root .lg259 .lg-workbench>.atlas-iris-report>details[open]{flex-basis:100%!important;}
#root .lg259 .lg-workbench>.atlas-iris-report button.atlas-working-download{min-height:44px!important;}
#root .lg259 .atlas-iris-report .atlas-iris-summary{width:100%!important;}
#root .lg259 .lg-heading-actions .atlas-account-actions{flex:0 1 auto!important;max-width:100%!important;width:auto!important;}
@media(max-width:480px){#root .lg259 .lg-heading-actions .atlas-account-actions{flex-basis:100%!important;}}
#root .lg259 .lg-heading-actions .atlas-account-actions button{border:1px solid #bdcdd5!important;border-radius:8px!important;background:#fff!important;color:#244653!important;padding:10px!important;}
#root .lg259 .lg-heading-actions .atlas-account-actions button:disabled{opacity:.45;}
#root .lg259 .lg-stp-detail>button,#root .lg259 .lg-panel>button:not(.lg-text){min-height:44px!important;padding:10px 16px;}
/* Keep the assigned-account header usable on narrow screens. */
@media(max-width:480px){
 #root .wq-shell .wq-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:12px!important;height:auto!important;min-height:64px;padding:12px 16px!important;}
 #root .wq-shell .wq-header .wq-brand{grid-column:1;grid-row:1;min-width:0;}
 #root .wq-shell .wq-header .wq-profile{grid-column:2;grid-row:1;margin:0!important;}
 #root .wq-shell .wq-header>.wq-active{grid-column:1/-1;grid-row:2;justify-self:start;margin:0!important;padding:8px 0;}
}
