/* Desktop pages occupy the center; shared header, scope and navigation stay visible. */
@media (min-width:1024px) and (orientation:landscape),(min-width:1024px) and (pointer:fine),(min-width:1024px) and (pointer:none){
 html.desktop-shell.shell-desktop{--shell-menu-width:216px;--ds-header:112px;--ds-left-space:0px!important;--ds-right-space:0px!important;--shell-text:#e7ecf4;--shell-muted:#b6bfce;--shell-surface:#20242b;--shell-panel:#252b34;--shell-line:#8997ae30}
 html.desktop-shell.shell-desktop.ds-drawer-left{--ds-left-space:var(--shell-menu-width)!important}
 html.desktop-shell.shell-desktop.ds-drawer-right{--ds-right-space:var(--shell-menu-width)!important}
 html.desktop-shell.shell-desktop,html.desktop-shell.shell-desktop body{height:100%;overflow:hidden}
 html.desktop-shell.shell-desktop #app{height:100dvh;display:block;overflow:hidden}
 html.desktop-shell.shell-desktop .top.shell-header{position:fixed;inset:0 0 auto;height:112px;min-height:112px;display:block;padding:0 26px;z-index:32;background:var(--shell-panel);border-bottom:1px solid var(--shell-line);box-sizing:border-box}
 .shell-desktop .shell-header .brand{position:absolute;left:26px;top:27px;width:188px;max-width:188px;height:61px;max-height:61px;object-fit:contain}
 .shell-desktop .shell-job{position:absolute;left:236px;right:calc(50% + 56px);top:56px;transform:translateY(-50%);text-align:center;font-size:16px;font-weight:400;line-height:1.4;overflow-wrap:anywhere;max-height:68px;overflow:hidden}
 .shell-desktop .shell-identity{position:absolute;left:calc(50% - 32px);top:24px;display:flex;gap:18px;align-items:center}
 .shell-desktop .shell-identity .profile{position:static;padding:0!important;display:block;min-height:64px;width:64px;height:64px;flex:none;background:none!important;border:0;box-shadow:none!important}
 .shell-desktop .shell-identity .header-avatar{width:64px!important;height:64px!important;max-width:64px!important;max-height:64px!important;font-size:22px}
 .shell-desktop .shell-name{font-size:16px!important;font-weight:400!important;line-height:1.4;padding:0!important;background:none!important;border:0;box-shadow:none!important;text-align:left;max-width:calc(50vw - 352px);overflow-wrap:anywhere;min-height:44px}
 .shell-desktop .shell-header-tools{position:absolute;right:24px;top:34px;display:flex;align-items:center;gap:14px;height:44px}
 .shell-desktop .shell-date{font-size:14px;white-space:nowrap;color:var(--shell-muted)}
 .shell-desktop .shell-header-tools button{position:static!important;width:36px!important;height:36px!important;min-height:36px!important;padding:6px!important;margin:0!important;box-shadow:none!important;background:none!important;border:0!important}
 .shell-desktop .shell-header-tools svg{width:24px;height:24px}
 html.desktop-shell.shell-desktop .layout{position:fixed;inset:112px 0 0;height:auto;min-height:0;display:block;overflow:hidden;max-width:none;margin:0}
 html.desktop-shell.shell-desktop .workspace{position:absolute;inset:0 var(--ds-right-space) 0 var(--ds-left-space);width:auto!important;height:100%;margin:0!important;min-height:0;max-width:none;padding:0 24px!important;overflow:hidden;display:flex;flex-direction:column;box-sizing:border-box;transition:none}
 html.desktop-shell.shell-desktop .workspace>#sync-warning{position:static!important;inset:auto!important;order:2;flex:none;height:38px;min-height:38px;padding:8px 0;margin:0;background:var(--shell-surface)!important;border-top:1px solid var(--shell-line);font-size:12px;z-index:auto}
 html.desktop-shell.shell-desktop .workspace>.enterprise-alert-zone,html.desktop-shell.shell-desktop .workspace>.simulation-banner{display:none}
 html.desktop-shell.shell-desktop .nav{display:flex!important;flex-direction:column;position:fixed!important;inset:112px auto 0 0;width:var(--shell-menu-width)!important;height:auto!important;padding:20px 12px!important;gap:8px!important;overflow:auto;overscroll-behavior:contain;background:var(--shell-panel);border-right:1px solid var(--shell-line);border-top:0;z-index:31;transform:translateX(-100%)!important;visibility:hidden;transition:none!important;box-sizing:border-box}
 html.desktop-shell.shell-desktop.ds-drawer-left .nav{transform:none!important;visibility:visible!important}
 html.desktop-shell.shell-desktop .nav>.shell-nav-item{display:flex!important;flex-direction:row!important;justify-content:flex-start;align-items:center;gap:12px;width:100%;padding:10px 12px!important;min-height:64px!important;flex:none;border:0!important;border-radius:12px;font-size:14px!important;font-weight:400!important;background:none;box-shadow:none;color:var(--shell-text);text-align:left;white-space:normal}
 .shell-desktop .nav>.shell-nav-item>span{display:block!important;font:inherit}
 .shell-desktop .nav>.shell-nav-item.active{background:#7590ff1c;box-shadow:inset 3px 0 #7d9aff;color:#b6c6ff}
 .shell-desktop .nav>.shell-nav-item:hover{background:#8b9ab916}
 .shell-desktop .shell-nav-item>svg,.shell-desktop .shell-nav-item>.realistic-icon,.shell-desktop .shell-sensor-icon{width:38px!important;height:42px!important;flex:none;max-width:38px;max-height:42px;object-fit:contain}
 .shell-desktop .nav>.shell-module-start{margin-top:18px;border-top:1px solid var(--shell-line)!important;border-radius:0;padding-top:24px!important;min-height:84px!important}
 html.desktop-shell.shell-desktop .shell-right{position:fixed!important;inset:112px 0 0 auto;width:var(--shell-menu-width)!important;height:auto;display:flex;flex-direction:column;overflow:hidden;background:var(--shell-panel);border-left:1px solid var(--shell-line);padding:16px 10px;z-index:31;transform:translateX(100%)!important;visibility:hidden;transition:none!important;box-sizing:border-box}
 html.desktop-shell.shell-desktop.ds-drawer-right .shell-right{transform:none!important;visibility:visible!important}
 .shell-desktop .ds-object-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0!important}
 .shell-desktop .shell-categories{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 4px;align-content:start}
 .shell-desktop .shell-categories .cp-tile{display:flex!important;flex-direction:column;justify-content:flex-start;align-items:center;min-width:0;min-height:108px!important;height:auto!important;padding:5px 2px!important;gap:3px;background:none;box-shadow:none;border:0;border-radius:9px;position:relative}
 .shell-desktop .shell-categories .cp-tile:hover,.shell-desktop .shell-categories .cp-tile.ds-selected{background:#7d9aff1a;box-shadow:inset 0 -2px #7d9aff}
 .shell-desktop .shell-categories .cp-glyph{display:block;position:relative;width:72px!important;height:72px!important;max-width:72px;max-height:72px;margin:0}
 .shell-desktop .shell-categories .realistic-icon,.shell-desktop .shell-categories .cp-glyph svg{width:72px!important;height:72px!important;max-width:72px;max-height:72px}
 .shell-desktop .shell-categories .cp-label{font-size:12px!important;font-weight:400!important;line-height:1.3;white-space:normal!important;overflow-wrap:normal;max-width:100%}
 .shell-desktop .shell-categories .cp-count{font-size:12px!important;font-weight:400!important;top:0;right:0}
 .shell-desktop .shell-location-unit{border-bottom:1px solid var(--shell-line);padding:6px 0}
 .shell-desktop .shell-location-unit>summary{cursor:pointer;padding:10px 4px;font-size:13px;font-weight:400}
 .shell-desktop .shell-settings,.shell-desktop .shell-category-back{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;white-space:normal;padding:8px 2px;min-height:40px}
 .shell-desktop .shell-category-back{justify-content:flex-start;margin-bottom:10px}
 .shell-desktop .shell-category-back>span{font-size:26px}
 .shell-desktop .shell-settings svg{width:20px;height:20px;flex:none}
 html.desktop-shell.shell-desktop .ds-panel-handle{pointer-events:auto!important;display:flex!important;visibility:visible!important;position:fixed;top:calc(112px + 50% - 56px);width:22px!important;min-width:22px;height:48px!important;min-height:48px;padding:2px!important;z-index:35;border:0!important;background:var(--shell-panel)!important;box-shadow:none!important;align-items:center;justify-content:center;transform:none!important}
 .shell-desktop .ds-panel-handle svg{width:18px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7}
 html.desktop-shell.shell-desktop .ds-handle-left{left:var(--ds-left-space)!important;right:auto!important;border-radius:0 8px 8px 0}
 html.desktop-shell.shell-desktop .ds-handle-right{right:var(--ds-right-space)!important;left:auto!important;border-radius:8px 0 0 8px}
 .shell-desktop:not(.ds-drawer-left) .ds-handle-left svg,.shell-desktop.ds-drawer-right .ds-handle-right svg{transform:rotate(180deg)}
 html.desktop-shell.shell-desktop .shell-work{position:static;display:flex;flex-direction:column;flex:1;min-height:0;height:auto;overflow:hidden;order:1}
 .shell-desktop .ds-top-context{position:static!important;flex:none;z-index:auto;margin:0 0 16px;padding:0!important;background:var(--shell-surface)!important;border:0;backdrop-filter:none}
 .shell-desktop .shell-object-tabs{display:flex;align-items:stretch;gap:18px;overflow-x:auto;overscroll-behavior:contain;border-bottom:1px solid var(--shell-line);scrollbar-width:thin;margin-bottom:18px;min-height:58px}
 .shell-desktop .shell-object-tabs>button{position:relative;flex:none;padding:16px 0 13px;min-height:58px;font-size:13px;font-weight:400;white-space:nowrap;background:none!important;box-shadow:none!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:0;color:var(--shell-muted)}
 .shell-desktop .shell-object-tabs>button[aria-selected=true]{border-bottom-color:#7d9aff!important;color:var(--shell-text)}
 .shell-desktop .shell-object-tabs>button[aria-busy=true]{opacity:.6}
 .shell-desktop .ds-status-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0;padding:0}
 .shell-desktop .ds-status-card{height:88px;min-height:88px;padding:12px 14px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;text-align:left;min-width:0;background:var(--shell-panel);border:1px solid var(--shell-line);border-radius:12px;font-size:13px;box-shadow:none}
 .shell-desktop .ds-status-number{font-size:27px;font-weight:500;line-height:1.1}
 html.desktop-shell.shell-desktop .ds-body{position:relative;flex:1;min-height:0;min-width:0;margin:0!important;padding:0 0 18px;overflow:auto;overscroll-behavior:contain;container-type:inline-size;scrollbar-gutter:stable}
 .shell-desktop .shell-section-title,.shell-desktop .shell-analytics-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:6px 0 16px}
 .shell-desktop .ds-body h1{font-size:23px;margin:0;font-weight:500}
 .shell-desktop .shell-record-group>h3{display:flex;justify-content:space-between;margin:24px 0 12px;font-size:15px;font-weight:400;color:var(--shell-muted)}
 .shell-desktop .shell-record-group>h3 small{font-size:13px;font-weight:400}
 .shell-desktop .shell-record-group .card{max-width:none}
 .shell-desktop .shell-analytics-heading .segments{width:auto;display:flex;flex:none;margin:0}
 .shell-desktop .shell-analytics-heading button{font-size:13px;min-height:38px;padding:6px 10px}
 .shell-desktop .shell-analytics-filters{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .shell-desktop .shell-analytics-filters[data-custom=true]{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 .shell-desktop .shell-analytics-filters[data-central=true]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .shell-desktop .shell-analytics-filters[data-central=true][data-custom=true]{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 html.desktop-shell.shell-desktop #sheet[open],html.desktop-shell.shell-desktop .photo-viewer[open]{position:fixed!important;inset:auto!important;top:var(--shell-dialog-top)!important;left:var(--shell-dialog-left)!important;width:var(--shell-dialog-width)!important;height:var(--shell-dialog-height)!important;max-width:none!important;max-height:none!important;min-height:0!important;margin:0!important;padding:0!important;transform:none!important;translate:none!important;animation:none!important;transition:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;display:flex!important;flex-direction:column;overflow:hidden;box-sizing:border-box;background:var(--shell-surface);z-index:30}
 html.desktop-shell.shell-desktop #sheet>.sheet-grip{display:none!important}
 html.desktop-shell.shell-desktop #sheet .sheethead{position:static;flex:none;padding:10px 6px;min-height:56px;margin:0;z-index:auto;background:var(--shell-surface)}
 html.desktop-shell.shell-desktop #sheet>.sheetbody{position:relative;flex:1;min-height:0;max-height:none;overflow:auto!important;overscroll-behavior:contain;padding:12px 6px 24px;scrollbar-gutter:stable}
 html.desktop-shell.shell-desktop #sheet::backdrop,html.desktop-shell.shell-desktop .photo-viewer::backdrop{background:none!important}
 html.desktop-shell.shell-desktop .workspace-panel-scrim,html.desktop-shell.shell-desktop .ds-resize{display:none!important}
 html.desktop-shell.shell-desktop.shell-page-open .ds-body{visibility:hidden;pointer-events:none}
 html.desktop-shell.shell-desktop.shell-photo-open #sheet{visibility:hidden;pointer-events:none}
 .shell-desktop .td-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 @container(max-width:680px){.shell-desktop .td-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.shell-desktop .shell-analytics-heading{align-items:flex-start;flex-direction:column}}
 html[data-theme=light].shell-desktop{--shell-text:#263348;--shell-muted:#5d687a;--shell-surface:#eef1f5;--shell-panel:#fff;--shell-line:#53657d33}
 html[data-theme=light].shell-desktop .shell-nav-item.active{color:#334fba}
 @media (max-width:1250px){html.desktop-shell.shell-desktop{--shell-menu-width:190px}.shell-desktop .shell-header .brand{width:140px;max-width:140px;left:22px}.shell-desktop .shell-job{left:176px;right:calc(50% + 48px)}.shell-desktop .shell-header-tools{gap:6px;right:18px}.shell-desktop .shell-name{max-width:calc(50vw - 300px)}.shell-desktop .shell-identity{gap:12px}.shell-desktop .shell-object-tabs{gap:14px}.shell-desktop .ds-status-card{padding:10px;font-size:12px}.shell-desktop .shell-date{font-size:12px}.shell-desktop .nav>.shell-nav-item{padding:10px 8px!important;gap:8px}}
}
/* v100: object selector and section tabs share one row, freeing the left rail. */
@media (min-width:1024px) and (orientation:landscape),(min-width:1024px) and (pointer:fine),(min-width:1024px) and (pointer:none){
 html.desktop-shell.shell-desktop.ds-drawer-left{--ds-left-space:0px!important}
 html.desktop-shell.shell-desktop .nav{display:none!important}
 .shell-desktop .shell-toolbar{display:flex;align-items:center;gap:22px;min-width:0;min-height:66px;margin-bottom:18px;border-bottom:1px solid var(--shell-line)}
 .shell-desktop .shell-toolbar>[data-shell-object]{flex:0 0 clamp(190px,18vw,240px);width:clamp(190px,18vw,240px);min-width:0;height:40px;min-height:40px;margin:0;padding:7px 32px 7px 12px;font-size:14px;text-overflow:ellipsis;cursor:pointer;background-color:var(--shell-panel);border:1px solid var(--shell-line);border-radius:9px;color:var(--shell-text)}
 .shell-desktop [data-shell-object][aria-busy=true]{opacity:.6;cursor:progress}
 .shell-desktop .shell-top-nav{display:flex;align-items:stretch;flex:1;min-width:0;gap:22px;overflow-x:auto;overscroll-behavior:contain;scrollbar-width:thin;align-self:stretch}
 html.desktop-shell.shell-desktop .shell-top-nav>.shell-nav-item{display:flex;align-items:center;justify-content:center;flex:none;position:relative;padding:13px 0 10px;min-height:58px;font-size:14px;font-weight:400;line-height:1.3;white-space:nowrap;background:none!important;box-shadow:none!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:0;color:var(--shell-muted)}
 html.desktop-shell.shell-desktop .shell-top-nav>.shell-nav-item.active{border-bottom-color:#7d9aff!important;color:var(--shell-text)}
 html.desktop-shell.shell-desktop .shell-top-nav>.shell-module-start{margin-left:2px}
 .shell-desktop .shell-top-nav>.shell-module-start:before{content:'';position:absolute;left:-12px;top:22px;width:1px;height:22px;background:var(--shell-line)}
 .shell-desktop .shell-label-short{display:none}
 .shell-desktop .shell-categories .cp-label{width:100%;overflow-wrap:anywhere;hyphens:auto}
 .shell-desktop .shell-analytics-heading .segments{width:max-content!important;max-width:100%;gap:4px}
 .shell-desktop .shell-analytics-heading .segments>button{width:auto!important;flex:0 0 auto;min-width:max-content;white-space:nowrap}
 html[data-theme=light].shell-desktop .shell-top-nav>.shell-nav-item.active{border-bottom-color:#436be4!important;color:#263348}
 @media (max-width:1350px){.shell-desktop .shell-top-nav{gap:18px}.shell-desktop .shell-toolbar{gap:18px}.shell-desktop .shell-label-full{display:none}.shell-desktop .shell-label-short{display:inline}}
 @media (max-width:1150px){.shell-desktop .shell-toolbar{gap:14px}.shell-desktop .shell-top-nav{gap:14px}.shell-desktop .shell-toolbar>[data-shell-object]{flex-basis:180px;width:180px;font-size:13px}html.desktop-shell.shell-desktop .shell-top-nav>.shell-nav-item{font-size:13px}}
}
/* The position and full name mirror each other around the centered portrait. */
@media (min-width:1024px) and (orientation:landscape),(min-width:1024px) and (pointer:fine),(min-width:1024px) and (pointer:none){
 .shell-desktop .shell-identity{display:contents}
 .shell-desktop .shell-identity .profile{position:absolute;left:calc(50% - 32px);top:24px}
 .shell-desktop .shell-identity .shell-name{position:absolute;left:calc(50% + 56px);right:236px;top:56px;transform:translateY(-50%);width:auto;max-width:none;text-align:center;max-height:68px;overflow:hidden}
 @media (max-width:1250px){.shell-desktop .shell-identity .shell-name{left:calc(50% + 48px);right:176px}}
}
/* The permanent section row aligns with the object selector above its visuals. */
@media (min-width:1024px) and (orientation:landscape),(min-width:1024px) and (pointer:fine),(min-width:1024px) and (pointer:none){
 html.desktop-shell.shell-desktop .shell-right{padding-top:0}
 .shell-desktop .shell-object-picker{display:flex;align-items:center;flex:none;min-height:66px;height:66px;border-bottom:1px solid var(--shell-line);margin-bottom:18px;padding:0 2px}
 .shell-desktop .shell-object-picker>[data-shell-object]{width:100%;min-width:0;height:40px;min-height:40px;font-size:14px;margin:0;padding:7px 28px 7px 10px;background-color:var(--shell-surface);color:var(--shell-text);border:1px solid var(--shell-line);border-radius:9px;text-overflow:ellipsis;cursor:pointer}
 .shell-desktop .shell-categories{grid-template-columns:repeat(var(--shell-columns,2),minmax(0,1fr))!important}
 .shell-desktop .shell-categories>.empty,.shell-desktop .shell-categories>p{grid-column:1/-1}
 html.desktop-shell.shell-desktop.shell-three-columns{--shell-menu-width:288px}
 .shell-desktop .shell-top-nav{flex:1;width:100%}
 @media (max-width:1150px){.shell-desktop .shell-top-nav{gap:20px}}
}
@media (min-width:1024px) and (orientation:landscape),(min-width:1024px) and (pointer:fine),(min-width:1024px) and (pointer:none){
 .shell-desktop .shell-toolbar>.shell-object-picker{position:fixed;top:112px;right:10px;width:calc(var(--shell-menu-width) - 20px);z-index:34;margin:0;background:var(--shell-panel)}
 .shell-desktop:not(.ds-drawer-right) .shell-toolbar{padding-right:var(--shell-menu-width)}
 .shell-desktop .shell-object-header-space{height:84px;flex:none}
}
@media (min-width:1024px) and (max-width:1250px) and (orientation:landscape),(min-width:1024px) and (max-width:1250px) and (pointer:fine),(min-width:1024px) and (max-width:1250px) and (pointer:none){
 .shell-desktop .shell-job{left:196px}
 .shell-desktop .shell-identity .shell-name{right:196px}
}
@media (min-width:1024px) and (orientation:landscape),(min-width:1024px) and (pointer:fine),(min-width:1024px) and (pointer:none){html.desktop-shell.shell-desktop .workspace>[data-command=dev]{display:none}}

@media (min-width:1024px) and (orientation:landscape),(min-width:1024px) and (pointer:fine),(min-width:1024px) and (pointer:none){.shell-desktop .shell-site-tile .ws-site-art{display:block;width:72px;height:72px;margin:0}.shell-desktop .shell-sites .cp-label{font-weight:400}}
@media (min-width:1024px) and (orientation:landscape),(min-width:1024px) and (pointer:fine),(min-width:1024px) and (pointer:none){.shell-desktop .shell-site-tile .ws-site-art{background-image:url('/enterprise-site-icons-v3.png');background-repeat:no-repeat;background-size:300% 200%;pointer-events:none}}

/* Stable drawer geometry, including three-column layouts and central staff. */
@media (min-width:1024px) and (orientation:landscape),(min-width:1024px) and (pointer:fine),(min-width:1024px) and (pointer:none){
 html.desktop-shell.shell-desktop,html.desktop-shell.shell-desktop.shell-three-columns{--shell-menu-width:216px}
 .shell-desktop .shell-categories .cp-glyph,.shell-desktop .shell-categories .realistic-icon,.shell-desktop .shell-categories .cp-glyph svg,.shell-desktop .shell-site-tile .ws-site-art{width:64px!important;height:64px!important;max-width:64px;max-height:64px}
 .shell-desktop .shell-staff-avatar{width:64px!important;height:64px!important;max-width:64px!important;font-size:20px;border-radius:50%;overflow:hidden}
 .shell-desktop .shell-staff-avatar>img{width:100%;height:100%;object-fit:cover}
 .shell-desktop .shell-staff-tile .cp-label{hyphens:none}
}

@media (min-width:1024px) and (orientation:landscape),(min-width:1024px) and (pointer:fine),(min-width:1024px) and (pointer:none){
 .shell-desktop .shell-categories[data-columns="3"] .cp-glyph,.shell-desktop .shell-categories[data-columns="3"] .realistic-icon,.shell-desktop .shell-categories[data-columns="3"] .cp-glyph svg,.shell-desktop .shell-categories[data-columns="3"] .ws-site-art,.shell-desktop .shell-categories[data-columns="3"] .shell-staff-avatar{width:56px!important;height:56px!important;max-width:56px!important;max-height:56px!important}
}

/* Shared compact workspaces for AI and the future device connector. */
.insight-workspace{min-width:0}.insight-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.insight-toolbar h2{margin:0}.insight-toolbar .actions{margin:0;display:flex;gap:8px;flex-wrap:wrap}.insight-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.insight-tiles button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:56px;padding:12px;text-align:left;font-weight:400}.insight-tiles button[aria-pressed=true]{border-color:#6b87ff;box-shadow:inset 0 -3px #6b87ff}.insight-tiles button>span:last-child:not(:first-child){font-weight:400}.insight-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px}.insight-results>.empty{grid-column:1/-1}.insight-proposal{margin:0;overflow-wrap:anywhere}.insight-proposal dl{margin:8px 0}.insight-proposal dl>div{display:flex;gap:12px;justify-content:space-between}.insight-proposal dd{margin:0;text-align:right}.insight-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px}.sensor-disconnected{color:var(--muted,#a9b4c4);font-size:14px}.sensor-filters{display:flex;gap:12px;flex-wrap:wrap}.sensor-filters label{flex:1 1 150px;min-width:0;margin:0}.sensor-filters input,.sensor-filters select{width:100%;min-width:0;box-sizing:border-box}.sensor-empty{display:flex;align-items:center;flex-direction:column;text-align:center;padding:24px 12px;gap:12px}.sensor-empty h3,.sensor-empty p{margin:0}.sensor-empty img{object-fit:contain}.sensor-empty p{max-width:460px;color:var(--muted,#a9b4c4)}
@media (max-width:1023px),(pointer:coarse) and (orientation:portrait){.insight-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.insight-tiles button{min-height:60px;font-size:15px}.insight-toolbar .actions{width:100%}.insight-toolbar .actions button{flex:1}.sensor-empty{padding:18px 8px}.insight-workspace{padding-bottom:12px}}

.insight-mobile-sensor{display:flex;justify-content:flex-end;margin-bottom:10px}.insight-mobile-sensor button{font-size:15px;min-height:44px}
.sensor-observations{display:grid;gap:10px;margin-top:16px}.sensor-observation{display:grid;grid-template-columns:1.3fr 1fr 1fr auto;gap:12px;align-items:center;text-align:left;font-weight:400;min-width:0}.sensor-observation>span{overflow-wrap:anywhere}.sensor-result-photo{display:block;max-width:180px;margin:0 auto 16px;border-radius:12px}.sensor-result-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px}.sensor-result-meta dd{margin:0;overflow-wrap:anywhere}.sensor-sha{overflow-wrap:anywhere}.sensor-launch-link{display:block;text-align:center;padding:14px;box-sizing:border-box}
@media (max-width:1023px),(pointer:coarse) and (orientation:portrait){.sensor-observation{grid-template-columns:1fr auto}.sensor-result-meta{grid-template-columns:1fr}.sensor-result-meta dd{margin-bottom:8px}}
/* One-line summary tiles throughout the workspace; preserve 44px touch targets. */
@media (min-width:1024px) and (orientation:landscape),(min-width:1024px) and (pointer:fine),(min-width:1024px) and (pointer:none){
 .shell-desktop .ds-status-card{height:44px;min-height:44px;padding:8px 12px;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;font-size:16px;box-sizing:border-box}
 .shell-desktop .ds-status-card>span:first-child{white-space:nowrap;line-height:1.2}
 .shell-desktop .ds-status-number{font-size:22px;font-weight:400;line-height:1;flex:none}
 .shell-desktop .ds-body .analytics-kpis>button,.shell-desktop .insight-tiles>button{min-height:44px;height:44px;padding:8px 12px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;box-sizing:border-box;font-size:16px}
 .shell-desktop .analytics-kpis>button>span:first-child,.shell-desktop .insight-tiles>button>span:first-child{white-space:nowrap;min-width:0}
 .shell-desktop .ds-body .analytics-kpis b{font-size:22px!important;font-weight:400!important;line-height:1}
}
@media (min-width:1024px) and (max-width:1250px) and (orientation:landscape),(min-width:1024px) and (max-width:1250px) and (pointer:fine),(min-width:1024px) and (max-width:1250px) and (pointer:none){.shell-desktop .ds-status-bar,.shell-desktop .insight-tiles{gap:8px}.shell-desktop .ds-status-card,.shell-desktop .insight-tiles>button,.shell-desktop .ds-body .analytics-kpis>button{font-size:14px;padding:8px;gap:6px}}
@media (max-width:1023px),(pointer:coarse) and (orientation:portrait){.insight-tiles>button{min-height:44px;padding:8px 10px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;font-size:15px}.insight-tiles>button>span:first-child{line-height:1.25}}
@media (max-width:1023px),(pointer:coarse) and (orientation:portrait){.analytics-kpis>button{min-height:44px;padding:8px 12px;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;box-sizing:border-box}.analytics-kpis>button>span:first-child{font-size:16px;white-space:nowrap}.analytics-kpis>button>b{font-size:22px;font-weight:400;flex:none}}
@media (max-width:600px){.analytics-kpis{grid-template-columns:minmax(0,1fr)}}
/* Desktop preview requested by the user: all employee cards in two columns. */
@media (min-width:1024px) and (orientation:landscape),(min-width:1024px) and (pointer:fine),(min-width:1024px) and (pointer:none){
 .shell-desktop .td-grid,.shell-desktop .cp-team-people,.shell-desktop .ws-ca-people,
 html.desktop-shell #sheet .td-grid,html.desktop-shell #sheet .cp-team-people,html.desktop-shell #sheet .ws-ca-people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
}
/* Compact shared header and symmetric text edges around the photograph. */
@media (min-width:1024px) and (orientation:landscape),(min-width:1024px) and (pointer:fine),(min-width:1024px) and (pointer:none){
 html.desktop-shell.shell-desktop{--ds-header:88px}
 html.desktop-shell.shell-desktop .top.shell-header{height:88px;min-height:88px}
 .shell-desktop .shell-header .brand{top:17px;height:54px;max-height:54px}
 .shell-desktop .shell-identity .profile{left:calc(50% - 28px);top:16px;width:56px;height:56px;min-height:56px}
 .shell-desktop .shell-identity .header-avatar{width:56px!important;height:56px!important;max-width:56px!important;max-height:56px!important}
 .shell-desktop .shell-job{top:44px;right:calc(50% + 46px);text-align:right}
 .shell-desktop .shell-identity .shell-name{top:44px;left:calc(50% + 46px);text-align:left}
 .shell-desktop .shell-header-tools{top:22px}
 html.desktop-shell.shell-desktop .layout{inset:88px 0 0}
 html.desktop-shell.shell-desktop .shell-right{inset:88px 0 0 auto}
 html.desktop-shell.shell-desktop .nav{inset:88px auto 0 0}
 html.desktop-shell.shell-desktop .ds-panel-handle{top:calc(50% + 44px)}
 .shell-desktop .shell-toolbar{min-height:50px;margin-bottom:8px}
 html.desktop-shell.shell-desktop .shell-top-nav>.shell-nav-item{min-height:48px;padding:8px 0 6px}
 .shell-desktop .shell-top-nav>.shell-module-start:before{top:14px;height:18px}
 .shell-desktop .shell-object-picker{height:50px;min-height:50px;margin-bottom:8px}
 .shell-desktop .shell-toolbar>.shell-object-picker{top:88px}
 .shell-desktop .shell-object-header-space{height:58px}
 .shell-desktop .ds-top-context{margin-bottom:8px}
}

@media (min-width:1024px) and (orientation:landscape),(min-width:1024px) and (pointer:fine),(min-width:1024px) and (pointer:none){.shell-desktop .td-grid,html.desktop-shell #sheet .td-grid{gap:6px 10px}.shell-desktop .td-central-heading .link{min-height:36px;padding:6px 0}.shell-desktop .td-central-unit{margin-bottom:8px}}

@media (min-width:1024px) and (orientation:landscape),(min-width:1024px) and (pointer:fine),(min-width:1024px) and (pointer:none){
 .shell-desktop .shell-section-title.shell-task-title{min-height:36px;margin:0 0 8px;gap:12px}
 .shell-desktop .ds-body .shell-task-title h1{font-size:16px;font-weight:400;line-height:1.25}
 .shell-desktop .shell-task-title>.primary{width:auto;min-height:36px;height:36px;margin:0;padding:6px 12px;font-size:16px;font-weight:400;line-height:1.25}
}



/* Stable AI controls on narrow screens and with enlarged system fonts. */
.insight-workspace .card{min-width:0;overflow-wrap:anywhere}
.insight-tiles>button{min-width:0;box-sizing:border-box}
.insight-tiles>button>span:first-child{min-width:0;overflow-wrap:anywhere}
.insight-tiles>button>span:last-child:not(:first-child){flex:none}
@media (max-width:1023px),(pointer:coarse) and (orientation:portrait){
 .insight-toolbar{align-items:stretch;min-width:0}
 .insight-toolbar .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;box-sizing:border-box}
 .insight-toolbar .actions>button{width:100%;min-width:0;margin:0;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box;min-height:44px}
 .insight-toolbar .actions>button:last-child:nth-child(odd){grid-column:1/-1}
 .insight-tiles>button{height:auto;white-space:normal;line-height:1.3}
}

/* Keep the fixed desktop shell below iPadOS status chrome in standalone mode. */
@media (min-width:1024px) and (orientation:landscape),(min-width:1024px) and (pointer:fine),(min-width:1024px) and (pointer:none){
 html.desktop-shell.shell-desktop{--shell-safe-top:env(safe-area-inset-top,0px);--shell-header-height:calc(88px + var(--shell-safe-top));--ds-header:var(--shell-header-height)}
 html.desktop-shell.shell-desktop .top.shell-header{height:var(--shell-header-height);min-height:var(--shell-header-height)}
 .shell-desktop .shell-header .brand{top:calc(17px + var(--shell-safe-top))}
 .shell-desktop .shell-identity .profile{top:calc(16px + var(--shell-safe-top))}
 .shell-desktop .shell-job,.shell-desktop .shell-identity .shell-name{top:calc(44px + var(--shell-safe-top))}
 .shell-desktop .shell-header-tools{top:calc(22px + var(--shell-safe-top))}
 html.desktop-shell.shell-desktop .layout{inset:var(--shell-header-height) 0 0}
 html.desktop-shell.shell-desktop .shell-right{inset:var(--shell-header-height) 0 0 auto}
 html.desktop-shell.shell-desktop .nav{inset:var(--shell-header-height) auto 0 0}
 .shell-desktop .shell-toolbar>.shell-object-picker{top:var(--shell-header-height)}
 html.desktop-shell.shell-desktop .ds-panel-handle{top:calc(50% + var(--shell-header-height)/2)}
}
@media (min-width:768px) and (pointer:coarse){
 html.desktop-shell.shell-desktop{--shell-safe-top:calc(env(safe-area-inset-top,0px) + 8px)}
}
@media (min-width:768px) and (max-width:1023px) and (pointer:coarse),(min-width:768px) and (pointer:coarse) and (orientation:portrait) and (pointer:coarse){
 .top,.top.header-inline-role{padding-top:calc(15px + env(safe-area-inset-top,0px));height:calc(112px + env(safe-area-inset-top,0px))}
}

/* Compact inline notifications; no absolute badges over neighbouring tabs. */
.yekton-tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:1.2em;margin-left:5px;font-size:13px;font-weight:400;line-height:1.2;flex:none}
.shell-desktop .shell-top-nav{gap:clamp(9px,1.3vw,20px)}
.shell-desktop .shell-top-nav>.shell-nav-item{white-space:nowrap}
.yekton-workspace>h1{font-size:20px;font-weight:400;margin:0 0 12px}
.yekton-subtabs{margin-bottom:16px;display:flex;gap:6px}
.yekton-subtabs>button{display:flex;align-items:center;justify-content:center;min-height:44px;flex:1;max-width:240px}
.yekton-workspace .insight-toolbar>h2{display:none}
.yekton-workspace .insight-toolbar{justify-content:flex-end}
@media(max-width:760px),(pointer:coarse) and (orientation:portrait){.yekton-workspace>h1{font-size:20px}.yekton-subtabs>button{max-width:none}.ws-tabs .yekton-tab-count{font-size:12px;margin-left:4px}.yekton-workspace .analytics-view{min-width:0}}

/* Date and select controls use one geometry, including native Safari pickers. */
.yekton-workspace :is(.analytics-filters,.sensor-filters){align-items:start;gap:12px}
.yekton-workspace :is(.analytics-filters,.sensor-filters)>label{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:6px;min-width:0;max-width:100%;margin:0;line-height:1.4}
.yekton-workspace :is(.analytics-filters,.sensor-filters) input,.yekton-workspace :is(.analytics-filters,.sensor-filters) select{display:block;appearance:none;-webkit-appearance:none;box-sizing:border-box;flex:none;width:100%;min-width:0;max-width:100%;height:48px;min-height:48px;margin:0;padding:10px 12px;border:1px solid var(--yk-edge,#505966);border-radius:12px;font-size:16px;line-height:24px;color:inherit;background-color:var(--yk-bottom,#282e37);overflow:hidden;text-overflow:ellipsis}
.yekton-workspace :is(.analytics-filters,.sensor-filters) select{padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%239ba8be' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),linear-gradient(160deg,rgba(0,0,0,.04),rgba(255,255,255,.018));background-repeat:no-repeat;background-position:right 12px center,center;background-size:16px 16px,100% 100%}
.yekton-workspace :is(.analytics-filters,.sensor-filters) input[type=date]::-webkit-date-and-time-value{min-width:0;min-height:24px;text-align:left;margin:0;padding:0}
.yekton-workspace :is(.analytics-filters,.sensor-filters) input[type=date]::-webkit-datetime-edit{min-width:0;padding:0;line-height:24px}
.yekton-workspace :is(.analytics-filters,.sensor-filters) input[type=date]::-webkit-calendar-picker-indicator{flex:none;margin:0;padding:0;width:18px;height:18px}

.yekton-ai-status{display:none!important}

.yekton-tab-count[hidden]{display:none!important}

@media (min-width:1024px) and (orientation:landscape),(min-width:1024px) and (pointer:fine),(min-width:1024px) and (pointer:none){
 html.desktop-shell.shell-desktop,html.desktop-shell.shell-desktop.ds-drawer-right{--ds-right-space:0px!important;--ds-left-space:0px!important}
 .shell-desktop .shell-right,.shell-desktop .ds-panel-handle{display:none!important}
 .shell-desktop .shell-toolbar,.shell-desktop:not(.ds-drawer-right) .shell-toolbar{padding-right:0;gap:14px}
 .shell-desktop .shell-toolbar>.shell-object-picker{position:static;inset:auto;flex:0 1 220px;width:220px;min-width:160px;height:50px;min-height:50px;margin:0;background:transparent;border:0;z-index:auto}
 .shell-desktop .shell-top-nav{flex:1;min-width:0;width:auto}
 .center-tools{display:flex;align-items:center;justify-content:flex-end;flex:0 0 88px;gap:0;min-height:48px}
 .center-tools.is-root{visibility:hidden;pointer-events:none}
 .center-tools>button{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:9px;border:0;background:none;box-shadow:none;color:var(--shell-text)}
 .center-tools>button svg{width:24px;height:24px}
 .shell-control-browser .shell-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
 .shell-control-browser .shell-section-title h1{font-size:20px;font-weight:400;margin:0}
 .shell-control-browser .shell-section-title>.link{min-width:44px;width:44px;padding:9px}
 .shell-control-browser .shell-categories{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px 24px;max-width:1050px;margin:12px auto 24px}
 .shell-control-browser .shell-categories .cp-tile{min-height:126px;padding:16px 8px 10px}
 .shell-control-browser .shell-categories .cp-glyph,.shell-control-browser .shell-categories .realistic-icon,.shell-control-browser .shell-categories .cp-glyph svg{width:84px!important;height:84px!important;max-width:84px;max-height:84px}
 .shell-control-browser .shell-categories .cp-label{font-size:16px;font-weight:400}
 .shell-desktop .ds-status-heading>[data-ds-status-back]{display:none}
}

.insight-tiles button .insight-total{font-variant-numeric:tabular-nums;font-weight:400}
.insight-tiles button .yekton-tab-count{position:static;flex:none;margin:0 0 0 4px}
.insight-new{display:block;text-align:right;font-size:12px}

.insight-tiles>button:has(.yekton-tab-count){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}
.insight-tiles>button>.yekton-tab-count{grid-column:1/-1;justify-self:end;font-size:11px}

.yekton-split-count{white-space:pre;gap:0}.yekton-split-count>[data-sensor-pending].tone-incident{color:var(--status-incident,#ff3347)}

.assignment-form .primary,.assignment-person b,.assignment-group-title{font-weight:400}

/* Process checklists have their own review section. */
.insight-workspace:not(.sensor-workspace) .insight-tiles{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
