/* One task at a time. Shared navigation, quiet secondary controls and spacious touch targets. */
body.refined{--text:#f1f2f5;--muted:#a5aab5;--line:#30343c;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
body.refined [hidden]{display:none!important}
body.refined button,body.refined summary,body.refined select{touch-action:manipulation}
body.refined button{font-size:14px;min-height:44px}
body.refined :is(input,select,textarea){font-size:16px}
body.refined :is(p,.help,.subtle){line-height:1.6}
body.refined>.site-header{position:sticky;top:0;height:76px;min-height:76px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:20px;background:#101115;border-bottom:1px solid #2b2e35;z-index:20}
body.refined>.site-header>.site-nav{position:static;inset:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:min(440px,52vw);height:48px;min-height:48px;margin:0 auto;padding:2px;gap:3px;overflow:visible;order:0}
body.refined>.site-header>.site-nav>a,body.refined>.site-header>.site-nav>button{font-size:14px;border-radius:8px;min-height:44px;height:44px;padding:8px}
body.refined>.site-header>.account-link{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #343841;border-radius:8px;font-size:14px;color:#c6cbd5;flex:none}
body.refined>.site-header>.account-link[aria-current=page]{border-color:var(--accent-line);color:var(--accent-text)}
body.refined>.site-header .beta,body.refined>.site-header .home-tag{display:none}
body.refined :is(.dialog-head,.dialog-heading,.modal-head){position:sticky;top:0;z-index:4;background:#191b20;border-bottom:1px solid var(--line);padding:16px 20px;margin:0}
body.refined :is(.dialog-head,.dialog-heading,.modal-head) h2{font-size:20px;line-height:1.35}
body.refined :is(#tourDialogBody,#modalBody,#dialogBody){padding:20px}
body.refined dialog{width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border-radius:14px;overflow:auto}
body.refined :is(.modal-actions,.dialog-actions){position:sticky;bottom:-20px;padding:14px 0 4px;background:#191b20;gap:10px;z-index:3}
body.refined :is(.modal-actions,.dialog-actions) button{min-height:46px}
body.refined :is(.field label,.field>label,.form-details summary,.checkline label,.form-check){font-size:14px}
body.refined .form-details summary{padding:14px;min-height:48px}
body.refined :is(.field-row,.fields2,.fields3,.dimension-grid)>*{min-width:0}
body.refined .help,body.refined .subtle{font-size:13px;color:var(--muted)}
body.refined .phone-menu{display:grid;gap:10px}
body.refined .phone-menu>button{min-height:50px;text-align:left;padding:12px 15px;border-color:#3b4049;background:#23262d;font-size:15px}
body.refined .phone-menu>.field{margin:12px 0}
/* Home: the current tour and three destinations, with settings beneath. */
body.refined .home-main{max-width:1100px;padding:36px 24px 60px}
body.refined .tour-hub{margin:0;padding:22px;background:#15171c;border-color:#30353e;border-radius:14px}
body.refined .tour-current{gap:20px;align-items:center}
body.refined .tour-current h2{font-size:clamp(24px,3vw,32px);line-height:1.25;letter-spacing:-.5px;margin:4px 0}
body.refined .tour-current .eyebrow{font-size:12px;letter-spacing:1.2px}
body.refined .tour-current .help{font-size:14px;margin:8px 0 0}
body.refined .tour-controls{width:auto;flex:none}
body.refined .tour-switcher{margin-top:18px;padding-top:14px}
body.refined .tour-switcher>summary{font-size:14px;min-height:36px;cursor:pointer}
body.refined .tour-banner{margin-top:18px;border:0}
body.refined .tour-banner img{max-height:220px}
body.refined .home-cards{margin:22px 0;gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}
body.refined .home-card{min-height:220px;padding:24px;border-radius:12px;background:#16191e;border-color:#323740}
body.refined .home-icon{width:46px;height:46px;border-radius:11px;margin-bottom:23px;background:var(--accent-soft);color:var(--accent-text)}
body.refined .home-icon svg{width:26px;height:26px}
body.refined .home-card h2{font-size:21px;margin:0 0 10px}
body.refined .home-card p{font-size:15px;line-height:1.6;color:#acb2bf;max-width:260px}
body.refined .tour-settings{border:1px solid #30353e;border-radius:12px;background:#13161b}
body.refined .tour-settings>summary{cursor:pointer;min-height:56px;padding:16px 20px;font-size:15px;list-style:none}
body.refined .tour-settings>summary::after{content:'+';float:right;color:var(--muted)}
body.refined .tour-settings[open]>summary::after{content:'−'}
body.refined .tour-settings-body{padding:0 20px 20px}
body.refined .colour-control{justify-content:space-between;font-size:14px;padding:10px 0}
body.refined .artwork-control{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}
body.refined .banner-upload{min-height:44px;padding:10px 14px;margin:0;border:1px solid #454b56;border-radius:8px;font-size:14px}
body.refined .tour-vehicles-head{font-size:15px}
body.refined .tour-vehicle small{font-size:13px}body.refined .tour-vehicle button{font-size:13px;min-height:44px}
/* Planner: one main action row; plan management lives in Plan options. */
body.refined[data-mobile-pane]{height:100dvh;display:flex;flex-direction:column;overflow:hidden}
body.refined[data-mobile-pane]>.projectbar{min-height:76px;height:auto;flex:none;padding:10px 20px;display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--line);background:#15171c}
body.refined .projectbar .plan-title{flex:1;min-width:0}
body.refined .projectbar #planName{display:block;width:100%;max-width:520px;min-width:0;padding:0 3px;height:30px;min-height:30px;font-size:17px;font-weight:550;border-color:transparent;background:transparent;text-overflow:ellipsis}
body.refined .projectbar #planName:focus{border-color:var(--accent-line)}
body.refined .plan-save-line{height:24px}
body.refined .projectbar #tourSaveStatus{position:static;display:block;text-align:left;width:auto;max-width:100%;height:24px;min-height:24px;margin:0;padding:0 3px;font-size:12px;line-height:24px;border:0;color:#aeb6c2;background:transparent;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.refined .plan-history{display:flex;align-items:center;gap:6px;flex:none}
body.refined .plan-history #undoBtn,body.refined .plan-history #redoBtn{width:40px;min-width:40px;height:44px;padding:0;font-size:23px}
body.refined #mobileMenuBtn.plan-options-button{display:block;font-size:14px;letter-spacing:0;min-height:44px;padding:9px 12px;white-space:nowrap}
body.refined[data-mobile-pane]>main{display:grid;grid-template-columns:230px minmax(0,1fr) 280px;padding:0;max-width:none;width:100%;height:auto;min-height:0;flex:1;overflow:hidden;margin:0}
body.refined[data-mobile-pane] :is(.left,.right,.workspace){height:100%;min-height:0;max-height:none;min-width:0;overflow-y:auto}
body.refined[data-mobile-pane] .workspace{display:flex;flex-direction:column;overflow:hidden;background:#111318}
body.refined .planner-primary{display:flex;gap:10px;padding:14px 16px 4px;flex:none}
body.refined .planner-primary button{flex:1;min-height:46px;white-space:normal;font-size:14px;margin:0}
body.refined .workspace .viewbar{height:auto;min-height:54px;padding:8px 16px;display:flex;flex-wrap:nowrap;gap:10px;flex:none;background:transparent}
body.refined .workspace #mobileView.camera-select{display:block;width:160px;min-width:0;max-width:65%;min-height:40px;height:40px;font-size:14px;padding:7px 10px;background:#1b1e25}
body.refined .workspace #fitView{margin-left:auto;font-size:13px;min-height:40px;width:auto;min-width:80px;padding:7px 10px;background:transparent;border-color:transparent;color:#b4bdca}
body.refined .workspace #stage{flex:1;min-height:160px;height:auto;background:radial-gradient(ellipse at 55% 45%,#20252d,#111318 75%)}
body.refined #emptyOverlay{max-width:280px;width:calc(100% - 80px);font-size:14px;line-height:1.6;text-align:center;padding:20px;background:#191d24e8;border:1px solid #3a424e;border-radius:12px}
body.refined #emptyOverlay strong,body.refined #emptyOverlay span{display:block}
body.refined #emptyOverlay strong{font-size:17px;color:#eceff4;margin-bottom:8px}
body.refined #emptyOverlay span{color:#aeb7c5}
body.refined .canvas-tools{right:12px;top:12px;transform:none;flex-direction:column;gap:0;border-color:#39424f;background:#171c24e8}
body.refined .canvas-tools button{width:40px;height:40px;min-height:40px}
body.refined .workspace .statusbar{flex:none;padding:9px 14px;min-height:38px;font-size:13px;display:block;line-height:1.5;background:#15191f}
body.refined #interactionHint{display:none}
body.refined[data-mobile-pane]>footer{display:none}
body.refined .view-settings{flex:none}
body.refined .view-settings>summary{font-size:13px;min-height:40px;padding:10px 14px}
body.refined .weight-card{padding:12px;margin:14px 12px;background:#1a1e25;border-color:#363e4a}
body.refined .weight-reading strong{font-size:24px}
body.refined .weight-title,body.refined .weight-reading span,body.refined .weight-remaining{font-size:13px}
body.refined .weight-settings>summary{font-size:13px;min-height:40px;padding-top:8px}
body.refined .side-section>summary{font-size:15px;padding:15px 14px;min-height:50px}
body.refined .inventory-connection{margin:2px 14px 10px;gap:6px}
body.refined .inventory-connection #inventoryStatus{font-size:12px}
body.refined .obj-name{font-size:14px;line-height:1.4}
body.refined .obj-dims{font-size:12px;line-height:1.5}
body.refined .object-row{padding:12px 10px;min-height:65px}
body.refined .right>.panelhead{padding:16px}
body.refined .right>.panelhead h2{font-size:14px;color:var(--muted);font-weight:500}
body.refined #inspector{padding:0 12px 20px}
body.refined .object-overview{padding:0 3px 16px}
body.refined .object-overview strong{font-size:17px;line-height:1.4}
body.refined .object-overview :is(span,small){font-size:13px}
body.refined .option-section{background:#191d24;border-color:#343b46;border-radius:9px;margin-bottom:9px}
body.refined .option-section>summary{padding:13px;min-height:58px;font-size:14px}
body.refined .option-section>summary small{font-size:12px;line-height:1.5;color:#a6b0be}
body.refined .section-body{padding:14px 12px}
body.refined .section-body .option-section{background:#14181f}
body.refined .section-body .option-section>summary{font-size:14px;min-height:48px}
body.refined .position-sliders{display:grid;grid-template-columns:1fr;padding:0;background:none;border:0;gap:14px;margin:18px 0}
body.refined .range-control label{font-size:14px;display:flex;align-items:center;justify-content:space-between;gap:6px}
body.refined .range-control output{display:inline;font-size:13px;color:var(--accent-text);font-variant-numeric:tabular-nums}
body.refined .range-control input{min-height:38px;height:38px;cursor:pointer}
body.refined .precise-coordinates{border:1px solid #39424e;border-radius:7px;margin:12px 0;padding:10px}
body.refined .precise-coordinates>summary{font-size:14px;min-height:32px}
body.refined .precise-coordinates .fields3{grid-template-columns:1fr;margin-top:12px}
body.refined .mobile-panel-title{display:none}
/* Inventory and venues share a quiet search row and an explicit selection mode. */
body.refined .tool-main{max-width:1160px;padding:28px 24px 60px}
body.refined .tour-context{display:flex;align-items:center;gap:12px;font-size:13px;margin-bottom:20px;width:fit-content;max-width:100%;line-height:1.5}
body.refined .tour-context #tourContext{overflow-wrap:anywhere;color:var(--accent-text)}
body.refined .context-action{color:#a1aab8;font-size:12px;white-space:nowrap}
body.refined .page-heading{gap:18px;align-items:center;margin-bottom:18px}
body.refined .page-heading h1{font-size:28px;line-height:1.3}
body.refined .heading-actions{gap:10px;flex-direction:row;width:auto}
body.refined .heading-actions #saveState{font-size:12px;order:0}
body.refined .actions-menu>summary{min-width:82px;width:auto;padding:10px 14px;font-size:14px}
body.refined .actions-menu>summary::after{display:none}
body.refined .actions-menu>div{z-index:12;min-width:230px;padding:8px;background:#20252d}
body.refined .selection-note{font-size:13px;line-height:1.6;margin:0 0 18px}
body.refined .work-panel{border-color:#343b46;overflow:visible;background:#15191f}
body.refined .simple-toolbar{display:flex;flex-wrap:nowrap;gap:10px;padding:14px;align-items:flex-start;position:relative;border-bottom:1px solid #303843}
body.refined .simple-toolbar>input{flex:1;min-width:0;width:0;flex-basis:auto}
body.refined .inventory-filters{position:relative;flex:none}
body.refined .inventory-filters>summary{cursor:pointer;list-style:none;min-height:46px;display:flex;align-items:center;justify-content:center;padding:10px 14px;border:1px solid #444d5a;border-radius:8px;font-size:14px;white-space:nowrap}
body.refined .inventory-filters>summary::-webkit-details-marker{display:none}
body.refined .inventory-filters[open]>summary{border-color:var(--accent-line);color:var(--accent-text)}
body.refined .filter-fields{position:absolute;right:0;top:54px;z-index:11;width:300px;max-width:calc(100vw - 48px);padding:18px;background:#20252d;border:1px solid #495261;box-shadow:0 14px 40px #0008;border-radius:10px;display:grid;gap:14px}
body.refined .filter-field{display:grid;gap:6px;font-size:14px;margin:0}
body.refined .filter-field select{width:100%;font-size:15px}
body.refined .list-actions{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;padding:8px 14px;gap:10px;border:0}
body.refined .list-actions #listSummary{font-size:13px;margin-right:auto}
body.refined #selectMode{font-size:13px;padding:7px 10px;min-height:40px}
body.refined .selection-count{font-size:13px;order:0}
body.refined .bulk-actions{width:100%;order:5;display:flex;gap:7px;flex-wrap:wrap;padding:10px 0;border-top:1px solid #3a4451}
body.refined .bulk-actions>button{min-height:44px;padding:8px 12px;font-size:13px;flex:none}
body.refined .bulk-actions .selection-tools{display:flex;width:100%;margin:0 0 4px;justify-content:flex-start}
body.refined .bulk-actions .selection-tools button{font-size:13px;min-height:40px}
body.refined .tool-main .item-row{display:grid;grid-template-columns:44px minmax(0,1fr) 160px 56px;gap:10px 14px;padding:15px 18px;min-height:80px;align-items:center;position:relative}
body.refined .tool-main .item-row>.select-item{display:none}
body.refined .tool-main .item-row>.kit-badge{grid-column:1;grid-row:1;width:40px;height:40px}
body.refined .tool-main .item-row>.item-details{grid-column:2;grid-row:1;min-width:0;flex-basis:auto}
body.refined .tool-main .item-row>.inventory-location{grid-column:3;grid-row:1;font-size:13px;width:auto;min-width:0;max-width:none;order:0;margin:0;line-height:1.5}
body.refined .inventory-location small{font-size:12px;letter-spacing:.4px;margin-bottom:2px}
body.refined .tool-main .item-row>.on-tour{grid-column:4;grid-row:1;min-height:50px;width:56px;margin:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px}
body.refined .on-tour span{font-size:12px;color:#b1bdcc}
body.refined .item-name-button{display:block;text-align:left;color:#f0f3f8;background:transparent;border:0;min-height:44px;padding:0;font-size:16px;line-height:1.4;font-weight:550;overflow-wrap:anywhere;max-width:100%}
body.refined .item-name-button:hover{color:var(--accent-text);background:transparent;text-decoration:underline;text-underline-offset:4px}
body.refined .tool-main .item-details h3{font-size:16px}
body.refined .tool-main .item-meta{font-size:13px;line-height:1.5;margin-top:0;color:#a0acbd}
body.refined .tool-main .item-title .item-status{font-size:12px;line-height:18px;padding:1px 6px;border-radius:4px}
body.refined.selecting-items .item-row>.select-item{display:block;grid-column:4;grid-row:1;justify-self:center;width:24px!important;height:24px!important}
body.refined.selecting-items .item-row>.on-tour{display:none}
body.refined .inventory-group>summary{font-size:14px;padding:14px 18px;min-height:48px;background:#1c222b}
body.refined .inventory-group>summary small{font-size:12px}
body.refined .tool-main .check-row{grid-template-columns:44px 40px minmax(0,1fr) 170px}
body.refined .tool-main .check-row>.check-button{grid-column:1;grid-row:1;min-height:44px}
body.refined .tool-main .check-row>.kit-badge{grid-column:2;grid-row:1}
body.refined .tool-main .check-row>.item-details{grid-column:3;grid-row:1;min-width:0}
body.refined .tool-main .check-row>.inventory-location{grid-column:4;grid-row:1;margin:0;min-width:0}
body.refined .venue-summary{display:grid;grid-template-columns:minmax(260px,1fr) minmax(120px,1fr) auto;gap:18px;padding:16px;margin-bottom:12px;background:#181e27;border-color:#3b4757}
body.refined .phase-switch{width:auto;display:flex;min-width:0}
body.refined .phase-switch button{flex:1;font-size:14px;white-space:normal}
body.refined .venue-progress{font-size:14px;line-height:1.5;min-width:0}
body.refined .venue-summary>#scanBtn{min-height:48px;font-size:15px;margin:0}
body.refined .check-instruction{font-size:14px;color:#a8b3c3;margin:0 0 20px}
body.refined .panel-note{font-size:13px}
body.refined .scan-alternatives{margin-bottom:0}
body.refined .scan-alternatives .manual-entry{margin-top:14px}
body.refined .last-scanned-heading small{font-size:12px;letter-spacing:.5px}
body.refined .scan-condition{min-height:44px;font-size:13px}
@media(max-width:1100px) and (min-width:901px){body.refined[data-mobile-pane]>main{grid-template-columns:200px minmax(0,1fr) 250px}body.refined>.site-header{padding:0 16px;gap:12px}body.refined .planner-primary{padding-inline:10px;gap:7px}body.refined .planner-primary button{font-size:13px;padding-inline:8px}}
@media(max-width:900px){
 body.refined>.site-header{height:104px;min-height:104px;padding:0 14px 48px;gap:10px;position:sticky}
 body.refined>.site-header>.site-nav{position:absolute;inset:auto 10px 0;width:calc(100% - 20px);max-width:none;height:48px;min-height:48px;margin:0;padding:2px;display:grid}
 body.refined>.site-header>.account-link{min-height:38px;padding:7px 10px;font-size:13px}
 body.refined>.site-header .brand-icon,body.refined>.site-header .brandmark{width:32px;height:32px}
 body.refined>.site-header .brand>span:nth-child(2){font-size:9px}
 body.refined>.site-header .brand strong{font-size:17px}
 body.refined[data-mobile-pane]>.projectbar{padding:8px 12px;min-height:72px;gap:8px}
 body.refined .projectbar #planName{font-size:15px;min-height:28px;height:28px}
 body.refined .plan-history{gap:2px}
 body.refined .plan-history #undoBtn,body.refined .plan-history #redoBtn{min-width:32px;width:32px}
 body.refined #mobileMenuBtn.plan-options-button{font-size:13px;padding:8px}
 body.refined[data-mobile-pane]>main{display:block;position:relative;height:auto;min-height:0;overflow:hidden}
 body.refined[data-mobile-pane] :is(.left,.right,.workspace){display:none;min-height:0;max-height:none;width:100%;height:100%;margin:0;overflow-y:auto;border:0}
 body.refined[data-mobile-pane=plan] .workspace{display:flex;flex-direction:column;overflow:hidden}
 body.refined[data-mobile-pane=equipment] .left{display:block}
 body.refined[data-mobile-pane=trailer] .right,body.refined[data-mobile-pane=object] .right{display:block}
 body.refined .planner-primary{padding:10px 12px 2px;gap:9px}
 body.refined .planner-primary button{font-size:14px;min-height:44px}
 body.refined .workspace .viewbar{min-height:50px;padding:5px 12px;gap:8px}
 body.refined .workspace #mobileView.camera-select{flex:0 1 170px;min-height:40px;font-size:14px}
 body.refined .workspace #stage{min-height:100px}
 body.refined .workspace .statusbar{padding:7px 12px;min-height:34px;max-height:60px;overflow:auto;font-size:12px}
 body.refined .selection-strip{display:flex;min-height:48px;padding:6px 12px;gap:12px;background:#191e26;flex:none}
 body.refined .selection-strip span{display:none}
 body.refined .selection-strip strong{font-size:14px}
 body.refined .selection-strip button{font-size:13px;min-height:36px;padding:6px 10px}
 body.refined:has(#emptyOverlay:not([hidden])) .selection-strip{display:none}
 body.refined .view-settings>summary{min-height:36px;padding:7px 12px;font-size:12px}
 body.refined .mobile-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-height:62px;padding:4px 6px max(4px,env(safe-area-inset-bottom));background:#171b22;flex:none;border-top:1px solid #394352}
 body.refined .mobile-nav button{font-size:12px;min-height:52px;gap:4px;padding:4px 1px}
 body.refined .mobile-nav svg{width:20px;height:20px}
 body.refined .mobile-panel-title{display:block;font-size:20px;margin:20px 18px 8px}
 body.refined .right>.side-section{margin:0 auto;padding:0 16px;max-width:680px}
 body.refined .right #inspector{max-width:680px;margin:auto;padding:0 14px 28px}
 body.refined .option-section>summary{font-size:15px;padding:14px;min-height:60px}
 body.refined .option-section>summary small{font-size:13px}
 body.refined .section-body{padding:16px 14px}
 body.refined .section-body .option-section>summary{font-size:14px}
 body.refined .section-body :is(input:not([type=checkbox]):not([type=color]):not([type=range]),select){min-height:44px;font-size:16px}
 body.refined .tool-main{padding:24px 16px 40px}
 body.refined .venue-summary{grid-template-columns:1fr auto;gap:14px}
 body.refined .phase-switch{grid-column:1/-1;width:100%}
 body.refined .home-main{padding:26px 18px 40px}
 body.refined .home-cards{gap:12px}
 body.refined .home-card{padding:20px;min-height:220px}
}
@media(max-width:650px){
 body.refined .home-cards{grid-template-columns:1fr;gap:12px;margin:18px 0}
 body.refined .home-card{min-height:120px;display:grid;grid-template-columns:44px 1fr;column-gap:18px;align-content:center;padding:20px}
 body.refined .home-icon{position:static;grid-column:1;grid-row:1/3;width:44px;height:44px;margin:0;align-self:start}
 body.refined .home-card h2{grid-column:2;margin:0 0 6px;font-size:20px}
 body.refined .home-card p{grid-column:2;font-size:14px;max-width:none}
 body.refined .tour-current{flex-direction:row;align-items:flex-start;gap:12px}
 body.refined .tour-current>div:first-child{min-width:0;flex:1}
 body.refined .tour-current h2{font-size:23px}
 body.refined .tour-current .help{font-size:13px}
 body.refined .tour-controls button{font-size:13px;padding:9px 11px}
 body.refined .tour-hub{padding:18px}
 body.refined .tour-current .eyebrow{font-size:12px}
 body.refined .tool-main{padding:20px 12px 40px}
 body.refined .page-heading{gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:16px}
 body.refined .page-heading>div:first-child{min-width:0;flex:1}
 body.refined .page-heading h1{font-size:25px}
 body.refined .heading-actions{flex:none;gap:7px;position:static;flex-wrap:wrap}
 body.refined .heading-actions #saveState{position:static;flex-basis:100%;text-align:right;order:3;font-size:12px}
 body.refined .heading-actions button,body.refined .actions-menu>summary{font-size:13px;padding:9px 11px;min-width:0}
 body.refined .selection-note{font-size:13px;margin-bottom:16px}
 body.refined .simple-toolbar{padding:12px;gap:8px;flex-wrap:wrap}
 body.refined .simple-toolbar>input{flex:1;min-width:100px;flex-basis:120px;width:0}
 body.refined .inventory-filters{position:static}
 body.refined .inventory-filters>summary{font-size:13px;padding:10px;min-height:46px}
 body.refined .filter-fields{position:absolute;inset:68px 12px auto;width:auto;max-width:none;max-height:60dvh;overflow:auto;grid-template-columns:1fr 1fr;gap:12px;padding:14px}
 body.refined .filter-field{font-size:13px;min-width:0}
 body.refined .filter-field select{font-size:14px;padding:10px 8px;min-width:0}
 body.refined .list-actions{padding:6px 12px}
 body.refined .tool-main .item-row{grid-template-columns:36px minmax(0,1fr) 52px;grid-template-rows:auto auto;padding:13px 12px;gap:1px 10px;min-height:95px}
 body.refined .tool-main .item-row>.kit-badge{grid-column:1;grid-row:1/3;width:34px;height:36px;align-self:start;margin-top:7px}
 body.refined .tool-main .item-row>.item-details{grid-column:2;grid-row:1;min-width:0}
 body.refined .tool-main .item-row>.inventory-location{grid-column:2;grid-row:2;font-size:12px;min-width:0;margin:3px 0 0;padding:0;color:#a4afbe}
 body.refined .inventory-location small{display:none}
 body.refined .tool-main .item-row>.on-tour{grid-column:3;grid-row:1/3;width:52px;align-self:center}
 body.refined.selecting-items .item-row>.select-item{grid-column:3;grid-row:1/3}
 body.refined .item-name-button{font-size:15px;min-height:36px;line-height:1.4}
 body.refined .tool-main .item-meta{font-size:12px;line-height:1.5}
 body.refined .tool-main .check-row{grid-template-columns:44px minmax(0,1fr);gap:1px 12px;min-height:92px}
 body.refined .tool-main .check-row>.check-button{grid-column:1;grid-row:1/3;align-self:center;width:44px;min-width:44px}
 body.refined .tool-main .check-row>.kit-badge{display:none}
 body.refined .tool-main .check-row>.item-details{grid-column:2;grid-row:1;min-width:0}
 body.refined .tool-main .check-row>.inventory-location{grid-column:2;grid-row:2;min-width:0;margin:3px 0 0}
 body.refined .inventory-group>summary{padding:12px;font-size:14px}
 body.refined .venue-summary{padding:12px;gap:12px}
 body.refined .phase-switch button{font-size:14px;padding:8px 10px;min-height:46px}
 body.refined .venue-summary>#scanBtn{font-size:14px;min-height:46px}
 body.refined .venue-progress{font-size:13px}
 body.refined .check-instruction{font-size:13px;line-height:1.6;margin-bottom:16px}
 body.refined dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}
 body.refined :is(#tourDialogBody,#modalBody,#dialogBody){padding:16px}
 body.refined :is(.dialog-head,.dialog-heading,.modal-head){padding:12px 16px}
 body.refined :is(.modal-actions,.dialog-actions){bottom:-16px;padding:12px 0 2px}
 body.refined .dialog-actions .danger{flex-basis:auto;margin-right:auto;font-size:13px}
 body.refined .dialog-actions button{flex:1;white-space:normal}
 body.refined :is(.fields3,.dimension-grid){gap:8px}
 body.refined .dimension-grid label{font-size:13px}
 body.refined .notice{bottom:max(18px,env(safe-area-inset-bottom));z-index:25}
}
@media(max-width:900px) and (max-height:600px){body.refined[data-mobile-pane]>.site-header{height:88px;min-height:88px;padding-bottom:42px}body.refined>.site-header>.site-nav{height:42px;min-height:42px}body.refined>.site-header>.site-nav>a,body.refined>.site-header>.site-nav>button{height:40px;min-height:40px}body.refined[data-mobile-pane]>.projectbar{min-height:58px;padding-block:3px}body.refined .planner-primary{padding-top:5px}body.refined .planner-primary button{min-height:40px}body.refined .workspace .viewbar{min-height:44px;padding-block:2px}body.refined .workspace #stage{min-height:90px}body.refined .selection-strip{display:none}body.refined .mobile-nav{min-height:48px}body.refined .mobile-nav button{min-height:40px;flex-direction:row}body.refined .mobile-nav svg{width:17px;height:17px}body.refined .view-settings{max-height:45%}}
@media print{body.refined>.site-header{display:none!important}body.refined #printArea{display:block}}
body.refined .mobile-panel-head{display:none}
body.refined .item-name-button{text-decoration:underline;text-decoration-color:#566070;text-underline-offset:4px;text-decoration-thickness:1px}
@media(max-width:900px){body.refined .mobile-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px 0}body.refined .mobile-panel-head .mobile-panel-title{margin:0;font-size:20px}body.refined .mobile-panel-head button{font-size:13px}body.refined[data-mobile-pane=equipment] .equipment-section>summary{display:none}body.refined[data-mobile-pane=equipment] .equipment-section{margin-top:10px}}
@media(max-width:360px){body.refined .tour-current{flex-wrap:wrap}body.refined .tour-controls{margin-left:auto}body.refined .filter-fields{grid-template-columns:1fr}body.refined .field-row{grid-template-columns:1fr}body.refined .plan-history #redoBtn{width:28px;min-width:28px}body.refined .plan-history #undoBtn{width:28px;min-width:28px}}
/* Keep the active vehicle and save state visible without another toolbar. */
body.refined[data-mobile-pane]>.projectbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px}
body.refined .projectbar .plan-title{display:contents}
body.refined .projectbar #planName{grid-column:1;grid-row:1;min-width:0;max-width:none}
body.refined .projectbar .plan-history{grid-column:2;grid-row:1}
body.refined .plan-save-line{grid-column:1/-1;grid-row:2;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;height:24px}
body.refined .projectbar #projectSummary{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;color:#aab5c4}
body.refined .projectbar #tourSaveStatus{flex:none;max-width:50%;font-size:12px}

/* The same five destinations, in the same place, on every tool. */
body.refined>.site-header>.site-nav{grid-template-columns:repeat(5,minmax(0,1fr));width:min(600px,55vw)}
body.refined>.site-header>.site-nav>a,body.refined>.site-header>.site-nav>button{white-space:normal;line-height:1.15;display:flex;align-items:center;justify-content:center;text-align:center}
body.refined .home-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.load-empty{padding:14px 16px;color:var(--muted,#a8abb2);font-size:13px;line-height:1.6}
body.refined .schedule-main{max-width:1120px;margin:0 auto;padding-bottom:50px}
.schedule-tabs{display:flex;gap:8px;margin:20px 0}
.schedule-tabs button{min-width:100px;min-height:44px}
.schedule-tabs [aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-text)}
.tour-stop{display:grid;grid-template-columns:62px minmax(0,1fr) auto;gap:20px;align-items:start;padding:22px 20px;margin-bottom:12px;border:1px solid #2c3037;border-radius:14px;background:#15181d}
.tour-stop.is-today{border-color:var(--accent-line)}
.stop-date{text-align:center;border:1px solid #353b46;border-radius:10px;overflow:hidden;line-height:1.35}
.stop-date span{display:block;background:#232831;padding:4px;font-size:12px;text-transform:uppercase}
.stop-date strong{display:block;font-size:26px;padding-top:2px}.stop-date small{display:block;color:#abb4c1;padding-bottom:5px;font-size:11px}
.stop-heading{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.stop-heading h2{font-size:19px;margin:0;overflow-wrap:anywhere}
.today-tag{font-size:11px;border:1px solid var(--accent-line);border-radius:5px;padding:3px 7px;color:var(--accent-text);background:var(--accent-soft)}
.stop-details .help{margin:6px 0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.stop-actions{display:flex;gap:8px}.stop-actions a{display:flex;align-items:center;justify-content:center;border:1px solid #3a414d;background:#252b34;border-radius:8px;padding:10px 14px;text-decoration:none;color:#f1f4f9;min-height:44px;font-size:14px}.stop-actions button{min-height:44px}
.stop-notes{margin-top:10px}.stop-notes summary{cursor:pointer;font-size:13px;color:#b8c3d2;padding:6px 0}.stop-notes p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:14px;margin:6px 0 0;color:#e0e5ec}
.tour-map{height:520px;height:min(58vh,520px);min-height:320px;border-radius:12px;background:#242c34;isolation:isolate}.map-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0}.map-heading .help{margin:0}.map-heading button{flex:none;min-height:44px}
.tour-map-pin span{background:#202730;color:#fff;border:2px solid #fff;border-radius:50% 50% 50% 0;display:flex;width:30px;height:30px;align-items:center;justify-content:center;font-weight:700;font-size:12px;box-shadow:0 2px 5px #0008}.leaflet-container{font-family:inherit}.leaflet-popup-content{font-size:14px;line-height:1.6}.leaflet-container a{color:#1265a1}.leaflet-control-attribution{color:#333}.leaflet-container .leaflet-control-zoom a{color:#222}
#dateDialog{width:min(620px,calc(100vw - 24px));max-height:90dvh;overflow:auto}#dateForm input,#dateForm textarea{width:100%;min-width:0}#dateForm textarea{resize:vertical;background:#12151b;border:1px solid #394150;color:#edf1f7;padding:12px;border-radius:8px;font:inherit}#dateForm .field{margin:0 0 16px}#dateForm .field label{display:block;margin:0 0 7px}#dateForm .dialog-actions{flex-wrap:wrap}#dateForm #deleteDate{margin-right:auto}
.location-map{height:270px;margin-top:12px;border-radius:10px;background:#262d36;isolation:isolate}.location-buttons{display:flex;gap:8px;flex-wrap:wrap}.location-buttons button{min-height:44px}.location-results{display:grid;gap:6px}.location-results button{text-align:left;white-space:normal;line-height:1.5;min-height:44px}.coordinates{margin-top:14px}.coordinates summary{cursor:pointer;font-size:13px;color:#b4c0ce;padding:8px 0}.coordinate-fields{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.coordinate-fields label{flex:1;min-width:100px;font-size:12px}.coordinate-fields input{margin-top:5px}.coordinate-fields button{min-height:44px}
.scheduled-venue{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:18px;border:1px solid #303743;border-radius:12px;margin:0 0 18px;background:#151a21}.scheduled-select{flex:1;min-width:190px}.scheduled-select label{display:block;font-size:12px;color:#bdc7d5;margin-bottom:7px}.scheduled-select select{width:100%;min-height:46px}.scheduled-venue>a{padding:12px 0;color:#b9c8dc;font-size:13px}.scheduled-venue .help,.scheduled-venue .inline-error{flex-basis:100%;margin:0}.scheduled-venue .inline-error:empty{display:none}
@media(max-width:900px){body.refined>.site-header>.site-nav{width:calc(100% - 20px);grid-template-columns:repeat(5,minmax(0,1fr))}body.refined>.site-header>.site-nav>a,body.refined>.site-header>.site-nav>button{padding:5px 3px;font-size:13px}}
@media(max-width:600px){body.refined .home-cards{grid-template-columns:1fr}.tour-stop{grid-template-columns:52px minmax(0,1fr);gap:12px;padding:16px}.stop-actions{grid-column:2;flex-wrap:wrap}.stop-heading h2{font-size:17px}.tour-map{min-height:310px;height:52dvh}.map-heading{align-items:start}.schedule-main .page-heading{align-items:start}.schedule-main .heading-actions{flex-wrap:wrap}.schedule-main #scheduleSave{font-size:11px}body.refined>.site-header>.site-nav>a,body.refined>.site-header>.site-nav>button{font-size:12px}.scheduled-venue{padding:14px}.scheduled-select{flex-basis:100%}#dateForm input,#dateForm textarea{font-size:16px}.location-map{height:245px}}
#dateDialogBody{padding:22px}@media(max-width:600px){#dateDialogBody{padding:16px}.scheduled-select select{font-size:16px}}
.venue-search-row{display:flex;align-items:stretch;gap:8px}.venue-search-row input{flex:1;min-width:0}.venue-search-row button{flex:none;min-height:46px}.venue-address-summary{background:var(--accent-soft);border:1px solid var(--accent-line);border-radius:9px;padding:12px 14px;margin-top:12px}.venue-address-summary strong{font-size:12px;color:var(--accent-text)}.venue-address-summary p{font-size:14px;line-height:1.5;margin:5px 0 0;overflow-wrap:anywhere}.location-results button strong,.location-results button span{display:block}.location-results button span{font-size:12px;color:#aebccc;margin-top:3px}.venue-search-credit{font-size:11px;color:#98a6b9;line-height:1.5;margin:16px 0 0}#venueHelp{font-size:12px;margin:8px 0}.venue-search-row button{font-size:13px;padding-inline:12px}@media(max-width:400px){.venue-search-row{flex-wrap:wrap}.venue-search-row button{width:100%}}

body.refined>.site-header>.signed-in-profile{display:flex;align-items:center;flex:none;min-width:32px}body.refined>.site-header>.site-nav{flex-shrink:1}@media(max-width:900px){body.refined>.site-header>.signed-in-profile{margin-left:0}}
