/* One current web interface at every width, independent of browser/device names. */
html.web-ui .remember-browser{display:flex;align-items:flex-start;gap:10px;margin:14px 0 8px;line-height:1.4;cursor:pointer}
html.web-ui .remember-browser input{flex:none;width:20px;height:20px;margin:0;accent-color:#ddba00}
html.web-ui .browser-devices .settings-list{grid-template-columns:1fr}
html.web-ui .browser-devices .row .text{min-width:0;overflow-wrap:anywhere}
html.web-ui .browser-devices .row .muted{display:block}
html.web-ui body .photo-mobile-job-details,html.web-ui body .photo-mobile-info,html.web-ui body .photo-mobile-info-close{display:none!important}
@media(max-width:1100px) and (min-width:651px){
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture{grid-template-columns:minmax(200px,30%) minmax(0,1fr)!important;gap:12px!important}
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-context{padding:14px;gap:8px}
}
@media(max-width:650px), (max-width:950px) and (max-height:480px) and (pointer:coarse){
 html.web-ui body .shell{margin:0!important;width:100%!important;height:calc(100dvh - 66px - env(safe-area-inset-bottom))!important;padding:8px!important;gap:6px!important;grid-template-rows:48px minmax(0,1fr)!important}
 html.web-ui body .top{height:44px!important;min-height:44px!important}
 html.web-ui body .top .logo{width:106px;height:44px;background-size:525.57px 399.71px;background-position:-54.32px -103.35px}
 html.web-ui body .hero{margin:0 104px 0 112px!important;grid-area:1/1;align-self:center}
 html.web-ui body .hero h1{font-size:16px!important}
 html.web-ui body .nav{inset:auto 4px calc(4px + env(safe-area-inset-bottom))!important;max-width:none!important;width:calc(100% - 8px)!important;height:58px;display:flex!important;gap:3px;padding:4px!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;touch-action:pan-x;scrollbar-width:none}
 html.web-ui body .nav button{flex:0 0 66px!important;min-width:66px!important;width:66px!important;display:flex;flex-direction:column;gap:3px;justify-content:center;padding:4px!important;min-height:46px!important;font-size:10px!important}
 html.web-ui body .nav button span{position:static!important;width:auto!important;height:auto!important;clip-path:none!important;overflow:visible!important;white-space:nowrap}
 html.web-ui body .nav button svg{width:20px;height:20px}
}
@media(max-width:650px), (max-width:950px) and (max-height:480px) and (pointer:coarse){
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop]{position:relative!important;padding:8px!important;gap:8px;grid-template-rows:36px minmax(0,1fr);border-radius:16px}
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .folder-heading{height:36px;gap:8px;padding-bottom:4px}
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .folder-heading>strong{font-size:12px!important;min-width:0;max-width:65%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:6px 8px}
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important;gap:8px!important}
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-context{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 102px;grid-template-rows:auto auto;gap:4px 8px;padding:10px!important;border-radius:14px;max-height:132px;overflow:hidden}
 html.web-ui body .photo-desktop-context .photo-desktop-job{grid-area:1/1;min-height:0;overflow:hidden}
 html.web-ui body .photo-desktop-context .photo-desktop-job>:not(h2):not(.photo-desktop-number){display:none!important}
 html.web-ui body .photo-desktop-context .photo-desktop-job .photo-desktop-number{font-size:16px!important;margin:0 0 3px!important}
 html.web-ui body .photo-desktop-context .photo-desktop-job h2{font-size:12px!important;line-height:1.3!important;margin:0!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 html.web-ui body .photo-desktop-context .photo-source-actions{grid-area:1/2/3/3!important;align-self:center;gap:6px!important;padding:0!important;margin:0!important}
 html.web-ui body .photo-desktop-context .photo-source-actions>button{width:46px!important;height:46px!important;min-height:46px!important;min-width:46px!important;padding:8px!important}
 html.web-ui body .photo-desktop-context .photo-source-actions>button span{display:none!important}
 html.web-ui body .photo-desktop-context .photo-source-actions>button svg{width:24px!important;height:24px!important}
 html.web-ui body .photo-desktop-context .photo-mobile-job-details{display:block!important;grid-area:2/1;padding:2px 6px!important;font-size:11px!important;min-height:24px!important;height:24px!important;justify-self:start}
 html.web-ui body .photo-desktop-context #photo-status:not(:empty){grid-column:1/-1;font-size:10px!important;margin:0!important}
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #work-gallery{grid-area:2/1!important;min-height:0!important}
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop].photo-context-expanded .photo-desktop-context{position:absolute!important;inset:44px 8px 8px;z-index:8;max-height:none;display:flex!important;background:#f4f9fc;overflow:hidden}
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop].photo-context-expanded .photo-desktop-job{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop].photo-context-expanded .photo-desktop-job>:not(h2):not(h3){display:block!important}
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop].photo-context-expanded .photo-desktop-job h2{display:block;-webkit-line-clamp:unset}
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop].photo-context-expanded .photo-mobile-job-details{flex:none;align-self:start}
 html.web-ui body dialog.work-photo-viewer[data-photo-desktop-viewer][open]{grid-template-columns:minmax(0,1fr)!important;gap:0!important;padding:0!important}
 html.web-ui body dialog.work-photo-viewer[data-photo-desktop-viewer] .gallery-image{grid-area:1/1;min-width:0;border-radius:16px}
 html.web-ui body dialog.work-photo-viewer[data-photo-desktop-viewer] .photo-viewer-details{display:none;grid-area:1/1;position:absolute;inset:0;z-index:12;background:#f6faff;overflow:auto;overscroll-behavior:contain}
 html.web-ui body dialog.work-photo-viewer[data-photo-desktop-viewer][data-details-open=true] .photo-viewer-details{display:flex}
 html.web-ui body .photo-mobile-info{display:grid!important;position:absolute;top:0;left:44px;place-items:center;font-size:22px!important}
 html.web-ui body .photo-mobile-info-close{display:block!important;flex:none;align-self:end}
 html.web-ui body dialog.work-photo-viewer[data-photo-desktop-viewer] .photo-viewer-details .photo-details-text{flex:0 0 auto}
 html.web-ui body .workspace>.photo-redesign:has([data-photo-folder-grid]){padding:8px!important;gap:6px}
 html.web-ui body [data-photo-folder-grid]{gap:8px!important}
}

@media(max-width:650px), (max-width:950px) and (max-height:480px) and (pointer:coarse){
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .photo-desktop-context .photo-source-actions button{width:46px!important;height:46px!important;min-height:46px!important;min-width:46px!important;padding:8px!important;font-size:0!important}
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .photo-desktop-context .photo-source-actions button::before{width:25px;height:25px;margin:0}
}

html.web-ui body .photo-desktop-context{container-type:inline-size}
@container(max-width:240px){
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .photo-source-actions button{font-size:0!important}
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .photo-source-actions button::before{margin:0}
}

/* A phone uses one bounded app surface. Only its own strips/panels can scroll. */
@media(max-width:650px), (max-width:950px) and (max-height:480px) and (pointer:coarse){
 html.web-ui{width:100%;max-width:100%;overscroll-behavior:none}
 html.web-ui body:has(.shell){position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-width:100%;overscroll-behavior:none;overflow:hidden}
 html.web-ui body #app:has(.shell){width:100%;max-width:100%;height:100dvh;min-width:0}
 html.web-ui body .shell{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:44px minmax(0,1fr)!important;height:calc(100dvh - 62px - env(safe-area-inset-bottom))!important;padding:calc(4px + env(safe-area-inset-top)) calc(6px + env(safe-area-inset-right)) 4px calc(6px + env(safe-area-inset-left))!important;min-width:0;gap:4px!important}
 html.web-ui body .top{grid-area:1/1;min-width:0;gap:4px}
 html.web-ui body .hero{grid-area:1/1;pointer-events:none;min-width:0;margin:0 110px 0 110px!important}
 html.web-ui body .hero h1{font-size:15px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html.web-ui body .hero :is(p,.status,.eyebrow){display:none!important}
 html.web-ui body .workspace{grid-area:2/1;min-width:0;max-width:100%;height:100%!important}
 html.web-ui body .nav{inset:auto 0 0!important;width:100%!important;max-width:100%!important;height:calc(62px + env(safe-area-inset-bottom))!important;padding:4px calc(4px + env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) calc(4px + env(safe-area-inset-left))!important;border-radius:16px 16px 0 0!important;background:#fffffff2}
 html.web-ui body .nav>button{flex:0 0 calc((100% - 12px)/5)!important;min-width:0!important;width:auto!important;min-height:48px!important;font-size:10px!important}
 html.web-ui body .nav>.workspace-short-nav{display:none!important}
 html.web-ui body .photo-redesign .photo-job-heading{text-align:center}
 html.web-ui body .photo-redesign .photo-job-heading h2{font-size:18px!important;line-height:1.2!important;margin:0}
 html.web-ui body .photo-redesign .photo-job-heading>p{display:none!important}
 html.web-ui body .photo-redesign .photo-menu button{min-height:40px!important;padding:6px!important}
 html.web-ui body .photo-redesign [data-photo-folder-grid] .folder-tile{padding:6px!important;gap:4px!important;border-radius:20px!important}
 html.web-ui body .photo-redesign [data-photo-folder-grid] .folder-tile strong{padding:2px 3px!important;line-height:1.2!important}
 html.web-ui body .photo-redesign [data-photo-folder-grid] .folder-tile>:is(svg,.appearance-icon){display:none!important}
 html.web-ui body .photo-redesign [data-photo-folder-grid] .folder-completion{font-size:10px!important;padding:1px 3px!important;bottom:5px!important;left:5px!important}
 html.web-ui body .photo-redesign [data-photo-folder-grid] .folder-info{width:24px!important;height:24px!important;min-height:24px!important;top:4px;right:4px}
 html.web-ui body .photo-redesign [data-photo-folder-grid] .folder-reference{display:none!important}
}
@media(max-width:950px) and (max-height:480px) and (pointer:coarse){html.web-ui body .shell{grid-template-rows:32px minmax(0,1fr)!important}html.web-ui body .top{height:32px!important;min-height:32px!important}}

@media(max-width:650px), (max-width:950px) and (max-height:480px) and (pointer:coarse){html.web-ui body .photo-redesign [data-photo-folder-grid]{gap:8px!important}html.web-ui body .photo-redesign .photo-job-heading h2{text-align:center!important}}

@media(max-width:650px), (max-width:950px) and (max-height:480px) and (pointer:coarse){
 html.web-ui body .photo-redesign [data-photo-folder-grid] .folder-tile:not(.photo-card-appearance){padding:4px 4px 36px!important}
 html.web-ui body .photo-redesign [data-photo-folder-grid] .folder-tile:not(.photo-card-appearance) .folder-count{width:32px!important;height:32px!important;min-width:32px!important;font-size:16px!important;right:6px!important;bottom:6px!important}
 html.web-ui body .photo-redesign [data-photo-folder-grid] .folder-tile:not(.folder-incomplete):not(.folder-required) .folder-completion{display:none!important}
 html.web-ui body .photo-redesign [data-photo-folder-grid] .folder-tile .required-badge{display:none!important}
 html.web-ui body .photo-redesign [data-photo-folder-grid] .folder-tile strong{font-size:var(--folder-desk-font,17px)!important}
}

/* Landscape keeps job controls beside the gallery instead of consuming its height. */
@media(max-width:950px) and (max-height:480px) and (pointer:coarse){
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture{grid-template-columns:minmax(160px,24%) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important}
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #work-gallery{grid-area:1/2!important}
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-context{display:flex!important;flex-direction:column;max-height:none;justify-content:space-between}
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-source-actions{align-self:center}
}

/* Compact phone job header: one full title and three small circular actions. */
@media(max-width:650px), (max-width:950px) and (max-height:480px) and (pointer:coarse){
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-context{grid-template-columns:minmax(0,1fr) 82px 28px;grid-template-rows:auto;gap:4px 6px;padding:8px!important;max-height:96px}
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .photo-desktop-context .photo-source-actions{grid-area:1/2!important;gap:6px!important;flex-direction:row!important;flex-wrap:nowrap!important}
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .photo-desktop-context .photo-source-actions>button{width:38px!important;height:38px!important;min-height:38px!important;min-width:38px!important;padding:6px!important}
 html.web-ui body .photo-desktop-context .photo-mobile-job-details{grid-area:1/3!important;align-self:center;justify-self:center;width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border-radius:50%!important;font-size:19px!important;font-weight:700;line-height:1}
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-context .photo-desktop-job h2{font-size:13px!important;display:block!important;-webkit-line-clamp:unset;overflow-wrap:anywhere}
 html.web-ui body .workspace>.photo-redesign[data-photo-desktop].photo-context-expanded .photo-desktop-context{max-height:none}
}
