/* Catalogue, drawer and sign-in components. */
.compact-list-rows{overflow:hidden;display:flow-root}.compact-list-controls{margin-top:8px}.compact-list-controls button[hidden]{display:none}
.navigation-cover{position:fixed;z-index:15;overflow:hidden;pointer-events:none;background:var(--bg,#f4f6fa)}
.navigation-cover *{animation:none!important;transition:none!important}
.navigation-preparing{visibility:hidden;pointer-events:none}
.navigation-preparing *, .pane-restoring, .pane-restoring *{transition:none!important;animation:none!important}
#nav button.approval-neutral{color:#68717b}
#nav button{position:relative}
.approval-count{margin-left:auto;min-width:22px;height:22px;padding:0 5px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#315cdd;color:white;font-size:11px;font-weight:600;line-height:1;flex-shrink:0}
.approval-report{width:min(1000px,94vw);max-height:90vh;overflow:auto}
.approval-report form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.approval-report form>label{margin:14px 0 0;display:flex;flex-direction:column;gap:6px}
.approval-report form>label input{margin:0;height:44px}
.approval-report form>button{height:44px;margin:0}
.approval-search-box{position:relative;flex:1;min-width:0}
.approval-report .search-sort>select{flex:0 1 250px;min-width:0}
.approval-suggestions{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:5;border:1px solid #dce2eb;border-radius:10px;background:white;box-shadow:0 8px 24px #19263d18;max-height:260px;overflow:auto}
.approval-suggestion{display:flex;flex-direction:column;gap:2px;padding:8px 12px;min-height:44px;cursor:pointer;overflow-wrap:anywhere;line-height:1.35}
.approval-suggestion small{color:#77859c;font-size:11px}
.approval-suggestion:hover,.approval-suggestion[aria-selected=true]{background:#eef1f5}
.approval-report-list{display:grid;gap:7px;margin:12px 0}
.approval-report-entry{padding:9px 12px;background:#f5f7fa;border-radius:10px;overflow-wrap:anywhere}
.approval-report-entry .section-heading{margin:0 0 4px;gap:8px;align-items:center;flex-wrap:nowrap}
.approval-report-entry .section-heading>div{min-width:0;flex:1}
.approval-report-entry .section-heading>button{flex-shrink:0;padding:5px 10px;font-size:12px;min-height:32px}
.approval-object-name{margin-left:12px;color:#77859c;font-size:12px}
.approval-entry-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;font-size:13px;line-height:1.4;margin:3px 0}
.approval-report-entry details{margin-top:4px}
.approval-report-entry summary{cursor:pointer;font-size:12px}
.approval-report .actions{align-items:center}
.approval-report .approval-export>select{width:auto;max-width:100%;flex:0 1 160px}
@media(max-width:600px){.approval-report{padding:16px}.approval-report form>label,.approval-report form>button{width:100%}.approval-report .search-sort>.approval-search-box,.approval-report .search-sort>select{flex:1 1 100%}.approval-report-entry .section-heading{align-items:flex-start}.approval-object-name{display:block;margin-left:0}}
.approval-report-entry p{margin:6px 0}
.approval-report .search-sort{margin-top:12px;flex-wrap:wrap}
.sidebar-collapsed .approval-count{position:absolute;right:2px;top:2px;margin:0;min-width:17px;height:17px;font-size:10px}
#nav button.approval-neutral.active{color:#424b55;background:#e4e7eb}
#workspace.surface-preparing{visibility:hidden;pointer-events:none}
#workspace.surface-preparing *{visibility:hidden!important;transition:none!important}
.brand{display:inline-flex;align-items:baseline;letter-spacing:-1.5px;white-space:nowrap;font-weight:800;font-size:40px;line-height:1.25}
.brand span{color:#315cdd}.brand small{font-size:30px;letter-spacing:-1.2px;color:#151b25;font-weight:600}
.login-card .brand{display:inline-flex;margin-bottom:22px}aside .brand{background:#f4f6fa;border-radius:9px;padding:5px 12px;font-size:32px;align-self:flex-start}aside .brand small{font-size:24px}
.password-field{position:relative}.password-field input{min-width:0;padding-right:48px}.login-card .password-field button{position:absolute;right:3px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:40px;height:40px;padding:0;margin:0;border:0;background:transparent;color:#647086}.password-field button:hover{color:var(--blue)}.password-field button:focus-visible{outline:2px solid var(--blue);outline-offset:0}.eye-slash{display:none}[aria-pressed=true] .eye-slash{display:block}
main{max-width:none}.card{min-width:0}.directory-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,0fr);column-gap:0;align-items:start}
.directory-grid.has-drawer{grid-template-columns:minmax(0,1fr) minmax(0,.95fr);column-gap:24px}
.drawer-shell{min-width:0;overflow:hidden;opacity:0;visibility:hidden}.has-drawer .drawer-shell{opacity:1;visibility:visible}
@media(min-width:901px){#main-content:has(.directory-grid.has-drawer){padding-bottom:0}.directory-grid.has-drawer>.directory-list,.directory-grid.has-drawer>.drawer-shell{position:sticky;top:12px;max-height:calc(100dvh - 100px);min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}.directory-grid.has-drawer>.directory-list{height:calc(100dvh - 100px);margin-bottom:0}.directory-grid.has-drawer>.drawer-shell{height:auto}#main-content .directory-grid.has-drawer>.directory-list{border-bottom-left-radius:0}#main-content .directory-grid.has-drawer>.drawer-shell>.card{border-top-left-radius:0}}
.drawer-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;width:100%;max-width:100%;min-width:0;margin-bottom:8px}.drawer-title h2{margin:0;min-width:0;overflow-wrap:anywhere}.drawer-title>button:not(.drawer-entity-link){flex:0 0 auto;max-width:100%}
.close-icon-button{display:inline-grid;place-items:center;flex:0 0 40px;width:40px;min-width:40px;height:40px;min-height:40px;margin:0;padding:0;color:#66758b}.close-icon-button svg{display:block;width:18px;height:18px;pointer-events:none}.close-icon-button:hover{color:#284e93}.close-icon-button:focus-visible{outline:2px solid #8aa8f2;outline-offset:2px}
.drawer-title button.drawer-entity-link{display:flex;flex:1 1 0%;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0;max-width:100%;margin:0;padding:5px 9px;border:1px solid transparent;border-radius:10px;background:transparent;color:#2857c5;font-size:20px;font-weight:700;line-height:1.35;text-align:left;text-decoration:none;white-space:normal;overflow-wrap:anywhere;word-break:normal}
.drawer-title button.drawer-entity-link:hover{border-color:#dce7fa;background:#edf3ff;color:#1d489a;text-decoration:none;box-shadow:0 2px 8px #315cdd12}
.drawer-title button.drawer-entity-link:focus-visible{outline:2px solid #8aa8f2;outline-offset:2px}
.entity-link-icon{display:inline-flex;flex:0 0 auto;width:18px;height:18px;margin:.15em 0 0 3px;color:#8192b3}.entity-link-icon svg{display:block;width:100%;height:100%}
.entity-link{color:var(--blue)}
.drawer-shell,.drawer-shell>.card,.drawer-shell .visit-information,.drawer-shell .visit-body{min-width:0;max-width:100%}.drawer-shell .card{width:100%;margin-bottom:0}.drawer-shell details{padding:10px 0;border-bottom:1px solid var(--line)}.drawer-shell details[open] summary{margin-bottom:12px}summary{cursor:pointer}
.record-id{overflow-wrap:anywhere;margin-top:12px}.record-summary{min-width:0;overflow-wrap:anywhere}.row-actions{display:flex;flex-wrap:wrap;gap:6px;flex-shrink:0}.row-actions button{padding:7px 11px;font-size:12px}
.catalogue-tools{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:14px}.catalogue-tools>input{flex:1 1 220px;min-width:0}.catalogue-tools label{margin:0;font-weight:500}.catalogue-tools select{margin-top:4px;padding:10px 8px}
button,[role=button],.brand,.brand-image,.brand-loader{-webkit-user-select:none;user-select:none}
.brand-image img,.brand-loader video{-webkit-user-drag:none;pointer-events:none}
@media(min-width:901px){.directory-rows .row{flex-direction:row;flex-wrap:wrap;align-items:center;gap:9px}.directory-rows .row>.record-summary{flex:1 1 200px}.directory-rows .row>button{flex:0 0 auto}}
.pager{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding-top:18px}.pager span{font-size:12px;color:#647086}
.audit-line{font-size:12px;overflow-wrap:anywhere;border-bottom:1px solid var(--line);padding:8px 0;margin:0}blockquote{margin:8px 0 14px;padding:10px 14px;border-left:3px solid #7895ec;background:#f2f5ff;border-radius:0 7px 7px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.terminal{white-space:pre-wrap}#confirm-data{max-height:55vh}.confirm-copy{overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;background:#f0f3f9;padding:18px;border-radius:9px}footer{padding-top:24px}button:focus-visible{outline:2px solid #315cdd;outline-offset:3px}
@media(prefers-reduced-motion:no-preference){.directory-grid{transition:grid-template-columns .2s ease,column-gap .2s ease}.drawer-shell{transition:opacity .18s ease,visibility .18s ease}.view-enter{animation:enter-view .18s ease both}@keyframes enter-view{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}}
@media(max-width:900px){.directory-grid,.directory-grid.has-drawer{grid-template-columns:minmax(0,1fr);gap:0}.directory-grid:not(.has-drawer) .drawer-shell{display:none}.has-drawer .directory-list{display:none}.directory-grid.has-drawer>.directory-list,.directory-grid.has-drawer>.drawer-shell{position:static;height:auto;max-height:none;overflow:visible;scrollbar-gutter:auto}.drawer-shell{overflow:visible}.row{align-items:flex-start;flex-direction:column;gap:9px}.row-actions{flex-shrink:1}.catalogue-tools>input{flex-basis:100%}footer{display:block;padding-top:12px;font-size:11px}aside .brand{font-size:28px}aside .brand small{font-size:21px}.console-line{flex-wrap:wrap}.console-line input{min-width:0}.login-card{padding:26px}main{padding:18px}.card{padding:18px}}
.header-tools{text-align:right}.refresh-tools{display:flex;justify-content:flex-end;align-items:center;gap:6px;margin-bottom:6px;color:#77859c;font-size:11px}.refresh-tools button{padding:1px 7px;font-size:18px}.visit-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.visit-filters label{margin:0}.visit-team{max-height:240px;overflow:auto}.visit-team label{display:flex;gap:8px;align-items:center;margin:6px 0}.visit-team input{width:auto}.visit-comment{margin:12px 0}.visit-comment blockquote{margin:4px 0}.metric{font-size:clamp(18px,2vw,27px)}
.brand-image{position:relative;display:block;width:280px;max-width:100%;height:72px;overflow:hidden;flex-shrink:0}.brand-image img{position:absolute;top:50%;left:0;width:100%;height:auto;transform:translateY(-50%)}.login-card .brand-image{display:block;margin:0 auto 22px}aside .sidebar-brand{width:184px;height:54px;padding:0}.brand-loader{position:relative;height:108px;overflow:hidden;margin-bottom:18px}.brand-loader .brand-image{height:108px;margin-bottom:0}.brand-loader video{position:absolute;top:50%;left:50%;width:100%;height:auto;transform:translate(-50%,-50%)}.brand-loader.playing .brand-image{visibility:hidden}@media(max-width:900px){aside .sidebar-brand{width:100px;height:46px}}@media(prefers-reduced-motion:reduce){.brand-loader video{display:none!important}.brand-loader.playing .brand-image{visibility:visible}}
/* Light navigation drawer; motion only when the user permits it. */
:root{--sidebar-width:244px;--nav-surface:#edf2fa;--nav-ink:#35465f}.sidebar-collapsed{--sidebar-width:80px}
aside#sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);height:100dvh;background:var(--nav-surface);color:var(--nav-ink);padding:22px 16px;z-index:40;border-right:1px solid #dce4f0;overflow-y:auto;overflow-x:hidden;box-shadow:2px 0 14px #24385605}
#sidebar .sidebar-brand{width:178px;height:50px;background:transparent;align-self:flex-start}#sidebar .muted{display:block;color:#65748a;white-space:nowrap;margin:8px 0 20px;font-size:12px}
#sidebar .sidebar-toggle{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;padding:0;border:0;background:transparent;border-radius:50%;align-self:flex-end;margin-top:4px;color:var(--nav-ink)}#sidebar .sidebar-toggle:hover{background:#dfe7f5}
#nav{display:grid;gap:6px;overflow:visible;margin:0}#nav button{display:flex;align-items:center;gap:12px;min-height:48px;width:100%;border:0;border-radius:24px;padding:12px 16px;color:var(--nav-ink);background:transparent;text-align:left;white-space:nowrap}#nav button:hover{background:#e1e8f5}#nav button.active{background:#d7e3ff;color:#214db8;font-weight:600}.nav-icon{width:22px;height:22px;flex-shrink:0;display:block}.nav-label{overflow:hidden;text-overflow:ellipsis}
#sidebar footer{color:#65748a;font-size:11px;line-height:1.6}#main-content{margin-left:var(--sidebar-width)}#mobile-menu-toggle{display:none}#sidebar-backdrop{position:fixed;inset:0;border:0;border-radius:0;background:#14223d66;z-index:39;padding:0;opacity:0}#sidebar-backdrop.visible{opacity:1}
@media(min-width:901px){.sidebar-collapsed #sidebar{padding-left:12px;padding-right:12px}.sidebar-collapsed #sidebar .sidebar-brand{width:56px;height:42px}.sidebar-collapsed #sidebar .sidebar-toggle{align-self:center}.sidebar-collapsed #sidebar .muted,.sidebar-collapsed .nav-label{display:none}.sidebar-collapsed #nav{margin-top:20px}.sidebar-collapsed #nav button{justify-content:center;padding:12px}.sidebar-collapsed #sidebar footer{font-size:0;text-align:center}.sidebar-collapsed #bot-version{font-size:10px;display:block}.sidebar-collapsed #sidebar .sidebar-brand picture img{content:url('/wcengine/brand/mark.png')}}
@media(max-width:900px){aside#sidebar{width:min(288px,calc(100vw - 48px));padding:20px 18px;transform:translateX(-105%);visibility:hidden;box-shadow:6px 0 28px #10234620}html.sidebar-open #sidebar{transform:translateX(0);visibility:visible}html.sidebar-open{overflow:hidden}#main-content{margin-left:0}#sidebar .sidebar-brand{width:100px;height:44px}#sidebar .sidebar-toggle{position:absolute;right:16px;top:20px}#mobile-menu-toggle{display:grid;place-items:center;width:42px;height:42px;padding:0;margin-bottom:12px;border:0;border-radius:50%;background:#e4ebf7;color:#35465f}#sidebar footer{display:block}header{gap:10px}.page-title{min-width:0}}
@media(prefers-reduced-motion:no-preference){#sidebar{transition:width .2s ease,transform .2s ease,visibility .2s ease}#main-content{transition:margin-left .2s ease}#sidebar-backdrop{transition:opacity .2s ease}}
@media(min-width:901px){#sidebar #sidebar-toggle{position:fixed;left:var(--sidebar-width);top:50%;right:auto;transform:translateY(-50%);width:28px;height:44px;margin:0;padding:0;border:1px solid #dce4f0;border-left:0;border-radius:0 14px 14px 0;background:#edf2fa;box-shadow:2px 2px 6px #2438560d;z-index:41}#sidebar #sidebar-toggle:hover{background:#dfe8f8;border-color:#b9cae7}#sidebar #sidebar-toggle svg{width:18px;height:18px}}
@media(min-width:901px) and (prefers-reduced-motion:no-preference){#sidebar #sidebar-toggle{transition:left .2s ease,background .15s ease,border-color .15s ease}}
.visit-meta{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.visit-status{display:inline-block;padding:.2rem .55rem;border-radius:8px;font-size:.85rem;line-height:1.35;font-weight:600;max-width:100%;overflow-wrap:anywhere}
.status-green{color:#147d51;background:#e7f5ed}
.status-orange{color:#9a4700;background:#fff0df}
.status-grey{color:#52606d;background:#edf0f3}
.status-blue{color:#175ca8;background:#e8f1fc}
.status-yellow{color:#765315;background:#fff7d6}
.status-red{color:#b42318;background:#fdecea}
.status-overdue{color:#b42318;background:#fff;border:1px solid #b42318;border-radius:999px}
.status-purple{color:#6842a6;background:#f2ecfb}
.status-purple{border:1px solid #d8c8ef}
.permission-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.permission-layout>.card{min-width:0}
.permission-layout textarea{min-height:58vh;resize:vertical}
.permission-explanations{max-height:58vh;overflow:auto;overscroll-behavior:contain;display:grid;gap:8px}
.permission-explanation{min-width:0;padding:10px 12px;border:1px solid var(--line,#e4e8ee);border-radius:12px;background:#fff}
.permission-explanation-heading{display:flex;justify-content:space-between;align-items:start;gap:8px}
.permission-explanation code{display:block;margin-top:4px;color:#788397;font-size:11px;overflow-wrap:anywhere}
.permission-explanation p{margin:5px 0 0;color:#586579;font-size:13px;line-height:1.4}
.permission-state{flex:0 0 auto;padding:2px 7px;border-radius:999px;background:#f2f4f7;color:#586579;font-size:11px}
.permission-explanation[data-enabled=true] .permission-state{background:#e8f4ed;color:#24734b}
@media(max-width:900px){.permission-layout{grid-template-columns:minmax(0,1fr)}.permission-layout textarea{min-height:38vh}.permission-explanations{max-height:55vh}}
@media(max-width:900px){#sidebar footer{white-space:normal;overflow:visible}#bot-version{display:block;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}}
/* Compact workspace chrome; filters remain visible. */
#main-content{padding:18px 28px 18px 32px}
#main-content>header{gap:16px;margin-bottom:16px;align-items:center}
.page-title{display:flex;align-items:center;gap:12px;min-width:0;flex-wrap:wrap}
.page-title h1{margin:0;font-size:26px;white-space:nowrap}
.title-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.title-actions button{font-size:13px;padding:8px 11px;white-space:nowrap}
.header-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-shrink:0}
.personal-settings-button{width:34px;height:34px;padding:0;border-radius:50%;display:grid;place-items:center;font-size:18px;flex:none}
.personal-settings-dialog{max-height:min(82dvh,760px);overflow:hidden;transition:opacity .18s ease,transform .18s ease,display .18s allow-discrete,overlay .18s allow-discrete}.personal-settings-dialog form>label{margin:12px 0}.personal-settings-dialog .preference-check{display:flex;align-items:center;gap:10px;margin:5px 0;font-weight:500}.preference-check input{width:18px;height:18px;margin:0;flex:none}
.personal-settings-sections{display:grid;gap:10px}.personal-settings-sections button{text-align:left;min-height:48px}
#identity{margin:0;font-size:12px;display:flex;align-items:center;gap:5px;min-width:0;max-width:none;white-space:normal;flex:1 1 auto}
.refresh-tools{margin:0;gap:4px;flex-direction:row-reverse;flex-shrink:0}
.refresh-tools button{width:36px;height:36px;padding:0;font-size:22px}
#refresh-countdown{display:inline-block;flex:0 0 32px;width:32px;max-width:32px;overflow:hidden;white-space:nowrap;text-align:center;font-variant-numeric:tabular-nums}
#logout{font-size:13px;padding:8px 10px}
.directory-list.card{padding:18px}.directory-list>.actions{margin:10px 0}.directory-list>.actions button{padding:6px 10px;font-size:12px}
.search-sort{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 240px}
.search-sort>input{min-width:0;flex:1}.catalogue-tools>.search-sort{align-self:flex-end}
.catalogue-tools{gap:10px;margin-bottom:8px}.catalogue-tools label{font-size:12px}
.catalogue-tools label select{padding:9px 8px}.visit-filters{grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:8px}
.visit-filters label{font-size:12px}.visit-filters input,.visit-filters select{padding:8px;margin-top:3px}
.sort-menu{display:inline-flex;flex:0 0 auto;vertical-align:middle}
.sort-trigger{display:grid;place-items:center;width:40px;height:40px;padding:0;font-size:24px;line-height:1;color:#536782}
.sort-trigger[aria-expanded=true]{background:#e8efff;border-color:#9cb3eb;color:#244abf}
.sort-popover{position:fixed;z-index:60;width:272px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;background:#fff;border:1px solid #d6dfed;border-radius:12px;box-shadow:0 12px 32px #192c4924;padding:14px}
.sort-popover label{margin:0 0 10px;font-size:12px}.sort-popover select{margin-top:4px}.sort-popover>button{display:block;margin-left:auto;padding:6px 12px}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0 8px}.section-heading h2,.section-heading h3{margin:0}.section-heading .sort-trigger{width:34px;height:34px;font-size:22px}
.report-tools{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;min-width:0;max-width:100%}.report-tools label{margin:0;flex:1 1 170px;min-width:0}.report-tools>button{height:42px;min-width:0;max-width:100%}
@media(max-width:1150px){#main-content>header{flex-wrap:wrap;gap:10px}.header-tools{margin-left:auto}.page-title{flex:1 1 auto}}
@media(max-width:600px){#main-content{padding:12px}#main-content>header{margin-bottom:12px}.page-title{gap:8px;flex-wrap:nowrap;width:100%}.page-title h1{font-size:23px}.title-actions{margin-left:auto;flex-wrap:nowrap}.title-actions .primary{font-size:0;width:40px;height:40px;padding:0}.title-actions .primary::before{content:'+';font-size:25px}.title-actions button:not(.primary){font-size:12px;padding:8px}.header-tools{gap:6px}#identity{max-width:190px;font-size:11px}#mobile-menu-toggle{margin:0;flex-shrink:0;width:36px;height:36px}.catalogue-tools>.search-sort{flex-basis:100%}.catalogue-tools label{flex:1}.sort-trigger{width:42px;height:42px}.directory-list.card{padding:14px}.section-heading .sort-trigger{width:40px;height:40px}}
@media(prefers-reduced-motion:no-preference){.sort-popover:not([hidden]){animation:enter-view .12s ease both}}
.login-brand-motion{position:relative;width:280px;max-width:100%;height:72px;margin:0 auto 22px;overflow:hidden}
.login-card .login-brand-motion .brand-image{width:100%;height:72px;margin:0;opacity:1}
/* MP4's near-white background decodes as #fbfbfb; match the white login card. */
.login-brand-motion video{position:absolute;top:50%;left:0;width:100%;height:auto;transform:translateY(-50%);filter:brightness(1.02);opacity:0;pointer-events:none}
#login-form{padding-bottom:26px}
#login-form>button[type=submit]{display:block;margin:26px 0 0}
#login-error{margin:12px 0 0;overflow-wrap:anywhere}
#login-error:empty{display:none}
/* Show only the background until authentication and initial data are ready. */
#session-loading:not(.session-error)>.login-card{visibility:hidden;pointer-events:none}
#session-loading:not(.session-error){background:#f4f6fa}
.toast-stack{position:fixed;z-index:1200;right:18px;bottom:calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column-reverse;gap:10px;width:min(420px,calc(100vw - 36px));max-height:min(300px,40vh);overflow-y:auto;scrollbar-width:none;pointer-events:none}
.toast-stack::-webkit-scrollbar{display:none}.toast{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr) 28px;flex:0 0 auto;align-items:start;gap:10px;overflow:hidden;padding:14px 12px 12px;border:1px solid #c7d4ef;border-radius:13px;background:#fff;color:#19263d;box-shadow:0 12px 32px #19263d24;pointer-events:auto;animation:toast-in .22s cubic-bezier(.2,.7,.2,1) both}
.toast-error{border-color:#e9b9c1}.toast-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e8efff;color:#315cdd}.toast-error .toast-icon{background:#fff0f1;color:#ad3045}.toast-icon svg{display:block;width:17px;height:17px}
.toast-copy{min-width:0}.toast-message{margin:1px 0 0;max-height:32vh;overflow:auto;overflow-wrap:anywhere;white-space:pre-wrap;font-size:13px;line-height:1.45}.toast-count{display:inline-block;margin-top:5px;padding:1px 7px;border-radius:999px;background:#eef1f5;color:#526078;font-size:11px;font-weight:700}
.toast-close{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:7px;background:transparent;color:#77859c}.toast-close:hover{background:#f0f2f6}.toast-close svg{width:17px;height:17px}.toast-progress{grid-column:1/-1;height:3px;margin:3px -2px -5px;border-radius:5px;background:#e6eaf1;overflow:hidden}.toast-progress:after{display:block;width:100%;height:100%;border-radius:inherit;background:#5574d8;content:"";transform-origin:left;transform:scaleX(1)}.toast-error .toast-progress:after{background:#c85363}.toast-progress.running:after{animation:toast-drain var(--toast-life,5000ms) linear forwards}.toast-progress.paused:after{animation-play-state:paused}
.toast-exit{animation:toast-out .18s ease-in both}
@keyframes toast-in{from{opacity:0;transform:translateY(-8px) scale(.985)}to{opacity:1;transform:none}}
@keyframes toast-out{to{opacity:0;transform:translateY(-5px) scale(.985)}}
@keyframes toast-drain{to{transform:scaleX(0)}}
@media(max-width:900px){.toast-stack{right:12px;bottom:calc(12px + env(safe-area-inset-bottom));left:12px;width:auto;max-height:none;overflow:visible;gap:0}.toast{grid-template-columns:28px minmax(0,1fr) 28px;padding:12px 10px 10px}.toast-message{max-height:28vh}}
@media(prefers-reduced-motion:reduce){.toast,.toast-exit{animation:none}}
@media(prefers-reduced-motion:no-preference){
 @keyframes surface-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
 @keyframes surface-fade{from{opacity:0}to{opacity:1}}
 #login-form.surface-enter{animation:surface-rise .36s cubic-bezier(.2,.7,.2,1) both}
 #login-form.surface-enter>:not(.login-brand-motion){animation:surface-rise .32s ease both;animation-delay:60ms}
 #login-form.surface-enter>label,#login-form.surface-enter>input,#login-form.surface-enter>.password-field{animation-delay:100ms}
 #login-form.surface-enter>button{animation-delay:150ms}
 #workspace.surface-enter #sidebar{animation:surface-fade .32s ease both}
 #workspace.surface-enter #main-content>header{animation:surface-rise .32s ease both}
 #workspace.surface-enter #content{animation:none}
 /* Content uses one-shot animations on the loaded nodes, not ancestor classes.
    Replacing or synchronizing data later must never restart entrance animations. */
 #session-loading.session-error>.surface-enter{animation:surface-rise .3s ease both}
}
.photo-gallery{border-top:1px solid var(--line);margin-top:20px;padding-top:12px}.photo-gallery h3{margin:0 0 12px}.photo-progress{font-size:12px;color:#65748a;margin:8px 0}.photo-progress:empty{display:none}
.photo-albums{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(150px,45%),1fr));gap:2px;align-items:start}.photo-album{min-width:0}.photo-cover-wrap{position:relative}.photo-cover,.photo-shot{position:relative;display:block;width:100%;aspect-ratio:1;padding:0;overflow:hidden;border:0;border-radius:0;background:#e2e8f0}.photo-cover img,.photo-shot img{display:block;width:100%;height:100%;object-fit:cover}.photo-cover img:not([src]),.photo-shot img:not([src]){visibility:hidden}
.photo-tile-caption{position:absolute;inset:auto 0 0;display:flex;flex-direction:column;gap:1px;padding:7px 8px;background:#111a27bd;color:white;text-align:left;line-height:1.35}.photo-tile-caption strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.photo-tile-caption>span{font-size:10px;color:#e0e5ed}.photo-shot-date{position:absolute;inset:auto 0 0;background:#111a27b8;color:#fff;padding:4px 7px;font-size:10px;text-align:left}.photo-empty-cover{color:#65748a;font-size:12px}.photo-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;aspect-ratio:1;border:0;border-radius:0;background:#edf2f9;color:#4166b2;font-size:12px}.photo-add>svg{width:28px;height:28px}
.photo-icon{display:inline-grid;place-items:center;flex:0 0 40px;width:40px;height:40px;min-width:40px;padding:0;margin:0;border:0;border-radius:50%;background:transparent;color:#536781;text-decoration:none;cursor:pointer}.photo-icon>svg{width:20px;height:20px}.photo-icon:hover{background:#e6edf8;color:#254d9e}.photo-icon:focus-visible,.photo-cover:focus-visible,.photo-shot:focus-visible{outline:2px solid #315cdd;outline-offset:-2px}.photo-album-delete{position:absolute;right:4px;top:4px;background:#172233a8;color:white}.photo-album-delete:hover{background:#b43e38;color:white}
.photo-comment-row{display:flex;align-items:flex-start;gap:4px;min-width:0;margin:5px 0}.photo-comment-row blockquote{flex:1;min-width:0;margin:0;padding:6px 9px;border-left-width:2px;font-size:13px;line-height:1.5}.photo-no-comment{flex:1;min-width:0;padding:9px 2px;color:#8994a5;font-size:12px}.photo-comment-edit{display:grid;gap:4px;width:100%;min-width:0}.photo-comment-edit textarea{font-size:13px;min-height:74px;padding:8px}.photo-edit-actions{display:flex;justify-content:flex-end;gap:4px}.photo-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.photo-heading h2{margin:0}.photo-album-byline{font-size:12px;color:#748196;margin:3px 0 0;overflow-wrap:anywhere}.photo-upload{display:grid;gap:10px;padding:14px;margin-bottom:14px;border-radius:12px;background:#f3f6fc}.photo-upload .photo-heading{margin:0}.photo-upload textarea{min-height:70px}.photo-upload input{min-width:0;font-size:12px}.photo-upload>button{justify-self:start}
.photo-album-dialog{width:min(800px,calc(100% - 24px));max-height:90dvh;padding:18px;border-radius:16px;overflow:auto}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:2px;margin-top:14px}.photo-album-dialog .photo-comment-row{margin:0 0 14px}
.photo-viewer{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#111722;color:#eef2f9;overflow:hidden}.photo-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}.photo-view-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px;z-index:1}.photo-position{margin:0;font-size:13px;color:#d0d8e6}.photo-view-tools{display:flex;gap:4px;flex-shrink:0}.photo-viewer .photo-icon{color:#eef2f9;background:#ffffff0d}.photo-viewer .photo-icon:hover{background:#ffffff24}.photo-viewer a:not([href]){opacity:.35;pointer-events:none}.photo-stage{position:relative;min-height:0;display:grid;place-items:center;overflow:hidden}.photo-full-image{display:block;width:100%;height:100%;min-height:0;object-fit:contain}.photo-full-image:not([src]){visibility:hidden}.photo-prev,.photo-next{position:absolute;top:50%;transform:translateY(-50%)}.photo-prev{left:12px}.photo-next{right:12px}.photo-viewer .photo-view-comment{margin:10px 16px 16px;padding:8px 12px;max-height:18dvh;overflow:auto;background:#ffffff0b;border-left-color:#7392cb;font-size:13px;color:#d8e1ef}
@media(max-width:600px){.photo-albums,.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-album-dialog{padding:12px}.photo-icon{width:44px;height:44px;min-width:44px;flex-basis:44px}.photo-view-header{padding:8px;flex-wrap:wrap}.photo-position{font-size:12px}.photo-prev{left:8px}.photo-next{right:8px}}
@media(prefers-reduced-motion:no-preference){.photo-cover,.photo-shot,.photo-add{transition:filter .15s ease}.photo-cover:hover,.photo-shot:hover{filter:brightness(.96)}.photo-viewer[open]{animation:surface-fade .15s ease both}}
.login-brand-motion.playing video{opacity:1}.login-brand-motion.playing .brand-image{opacity:0}
.login-card .login-brand-motion.pending .brand-image{opacity:0;transition:none}
@media(prefers-reduced-motion:no-preference){.login-brand-motion video,.login-brand-motion .brand-image{transition:opacity .2s ease}}
@media(prefers-reduced-motion:reduce){.login-brand-motion video{display:none!important}.login-brand-motion .brand-image{opacity:1!important}}

/* Inline names: available width first, ellipsis only at an actual boundary. */
.person-name{display:inline-flex;align-items:baseline;position:relative;max-width:100%;min-width:0;vertical-align:baseline;text-align:left;line-height:inherit}
.person-name:has(.person-eye){padding-inline-end:1.6em}
.person-text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:inherit}
.person-name.expanded .person-text{white-space:normal;overflow:visible;overflow-wrap:anywhere}
.person-eye{position:absolute;inset-inline-end:0;top:50%;transform:translateY(-50%);display:inline-grid;place-items:center;width:1.4em;height:1.4em;min-height:0;padding:0;margin:0;border:0;border-radius:50%;background:transparent;color:inherit;opacity:.65;user-select:none;-webkit-user-select:none;line-height:1;font-size:inherit}
.person-eye:hover{opacity:1;background:transparent;color:var(--blue)}
.person-eye:focus-visible{opacity:1;background:#e7edf7;outline:2px solid #315cdd;outline-offset:1px}
.person-name.expanded .person-eye{top:.1em;transform:none}
.person-eye svg{display:block;width:1.1em;height:1.1em;fill:none;stroke:currentColor;stroke-width:1.6;pointer-events:none}
.header-tools{flex:1 1 auto;min-width:0;margin-left:auto;max-width:100%}
#identity{max-width:none;justify-content:flex-end;overflow:visible;flex-wrap:wrap}
#identity .person-name{flex:0 1 auto}
.identity-level{flex:0 0 auto;white-space:nowrap}
#logout{flex-shrink:0}
.object-label{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:4px 22px;max-width:100%;text-align:left}
.object-label>strong{overflow-wrap:anywhere}
.object-subtitle{color:#77859c;font-size:13px;font-weight:400;overflow-wrap:anywhere}
.photo-tile-caption{pointer-events:none;max-height:100%;overflow:auto}
.photo-tile-caption strong{white-space:normal;overflow:visible}
.photo-tile-caption .person-eye{pointer-events:auto}
.photo-tile-caption .person-name{display:block}
.photo-tile-caption .person-eye:hover{background:#ffffff33}
.photo-cover-wrap:has(.person-name.expanded) .photo-tile-caption{position:relative;max-height:none;background:#344154}
.pane-divider{display:none}
.workload-scroll{max-width:100%;overflow:auto}.workload-calendar{border-collapse:separate;border-spacing:0;width:100%;min-width:1050px;background:white;border-radius:12px;font-size:12px}.workload-calendar th,.workload-calendar td{padding:10px;border-bottom:1px solid var(--line);border-right:1px solid var(--line);vertical-align:top;text-align:left}.workload-calendar th{background:#f0f3f8}.workload-calendar tbody th{min-width:160px}.workload-calendar td{min-width:120px}.workload-entry{display:flex;flex-direction:column;gap:5px;width:100%;text-align:left;margin-bottom:7px;padding:8px;font-size:12px;white-space:normal;overflow-wrap:anywhere}
.directory-rows>.row{cursor:pointer;border-radius:8px;position:relative;isolation:isolate}
.directory-rows>.row::before{content:'';position:absolute;inset:4px 2px;z-index:-1;pointer-events:none;border-radius:14px;background:#e9eaed;filter:blur(6px);opacity:0}
.directory-rows>.row:hover::before{opacity:.42}
.directory-rows>.row.record-opened::before{opacity:.75}
.file-drop-active{outline:3px dashed #315cdd;outline-offset:-4px;background:#edf3ff}
.drop-hint{font-size:12px;color:#65748a;margin:8px 0}
@media(min-width:901px){
 .resizable-panes{grid-template-columns:100% 0px minmax(0,1fr);column-gap:0}
 .resizable-panes.has-drawer{grid-template-columns:clamp(min(280px,45%),var(--pane-left,51%),calc(100% - min(320px,50%) - 18px)) 18px minmax(0,1fr);column-gap:0}
 .resizable-panes>.pane-divider{display:block;min-width:0;overflow:hidden;align-self:stretch;min-height:200px;cursor:col-resize;touch-action:none;position:relative;border-radius:8px;visibility:hidden;pointer-events:none}
 .resizable-panes.has-drawer>.pane-divider{visibility:visible;pointer-events:auto}
 .pane-divider::after{content:'';position:absolute;top:8px;bottom:20px;left:8px;width:2px;background:#d8e0ec;border-radius:2px}
 .pane-divider:hover::after,.pane-divider:focus::after,.pane-dragging>.pane-divider::after{background:#315cdd;width:4px;left:7px}
 .resizable-panes.pane-dragging{transition:none;user-select:none}
 .resizable-panes .row-actions{flex-wrap:wrap}
}
@media(prefers-reduced-motion:no-preference){
 .directory-rows>.row::before{transition:opacity .24s ease}
 .drawer-title button.drawer-entity-link{transition:background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease}
 .drawer-title button.drawer-entity-link:hover .entity-link-icon{color:#315cdd;transform:translate(2px,-2px);transition:color .18s ease,transform .18s ease}
 .entity-link-icon{transition:color .18s ease,transform .18s ease}
 .resizable-panes{transition:grid-template-columns .28s cubic-bezier(.2,.7,.2,1)}
 .resizable-panes>.drawer-shell{transform:translateX(10px);transition:opacity .24s ease,transform .28s cubic-bezier(.2,.7,.2,1),visibility .28s}
 .resizable-panes.has-drawer>.drawer-shell{transform:translateX(0)}
 .resizable-panes.drawer-closing>.drawer-shell{visibility:visible;pointer-events:none}
}
@media(max-width:900px){.directory-grid.drawer-closing>.drawer-shell{display:block}.directory-grid.drawer-closing>.directory-list{display:none}}
@media(max-width:600px){.header-tools{width:100%}#identity{max-width:none;font-size:11px}.object-label{column-gap:14px}}
.entity-search-box{position:relative;flex:1 1 240px;min-width:0;width:100%}
.entity-search-box>input{width:100%;margin:0}
.entity-suggestions{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:35;padding:5px;background:var(--surface,#fff);border:1px solid #e5e9ee;border-radius:12px;box-shadow:0 10px 25px #1c29351a;max-height:320px;overflow:auto;overscroll-behavior:contain}
.entity-suggestions[hidden]{display:none}
.entity-suggestion{display:flex;flex-direction:column;gap:3px;min-height:44px;padding:9px 11px;border-radius:8px;cursor:pointer;overflow-wrap:anywhere;transition:background .18s ease}
.entity-suggestion:hover,.entity-suggestion[aria-selected=true]{background:#f0f2f4}
.entity-suggestion .person-name{max-width:100%}.entity-suggestion .person-text{white-space:normal;overflow:visible;text-overflow:clip}
.roks-tag-picker{margin:10px 0}.roks-tag-list,.roks-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:7px;margin:10px 0}
.roks-tag-choice,.roks-option{display:flex;align-items:center;gap:9px;min-height:40px;padding:8px 11px;border-radius:11px;background:#f3f5f7;cursor:pointer;overflow-wrap:anywhere}
.roks-tag-choice input,.roks-option input{flex:0 0 auto;width:18px;height:18px;margin:0;accent-color:#53799f}
.roks-job-area{margin-top:16px}.roks-job-area table{min-width:720px}.roks-job-area td small{display:block;color:var(--muted,#65748a);white-space:normal;margin-top:4px}.roks-job-area .error{color:#a33}.roks-progress{display:grid;gap:7px;margin:10px 0 16px;padding:12px 14px;border-radius:12px;background:var(--surface-2,#f3f6fa)}.roks-progress-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.roks-progress-heading span,.roks-progress-current{color:var(--muted,#65748a);font-size:.9em}.roks-progress-current{overflow-wrap:anywhere}.roks-progress progress{width:100%;height:8px;accent-color:var(--accent,#4682d9)}
.runtime-resource-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.runtime-resource-grid>div{display:grid;gap:5px;padding:12px;border-radius:12px;background:var(--surface-2,#f3f6fa)}.runtime-resource-grid small{color:var(--muted,#65748a)}
.roks-tag-picker>.actions{align-items:center}.roks-tag-picker>.actions>input{flex:1 1 220px;min-width:140px}
.entity-suggestion .person-eye{min-width:28px;min-height:28px}.suggestion-label{white-space:normal}
.roks-preview-dialog{display:flex;flex-direction:column;width:min(1100px,calc(100% - 24px));max-height:92dvh;padding:0;overflow:hidden;border-radius:16px}
.roks-preview-dialog:not([open]){display:none}
.roks-preview-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid var(--line,#e2e7f0)}
.roks-preview-dialog-header h2{margin:0}.roks-preview-dialog-header .actions{margin:0}.roks-preview-dialog-body{min-height:70px;padding:16px;overflow:auto;overscroll-behavior:contain}
.roks-preview-dialog-body .table-scroll{max-height:58dvh;overflow:auto}.roks-preview-dialog-body .data-table{min-width:720px}
.roks-preview-dialog-body .roks-progress{position:sticky;top:0;z-index:1}
@media(prefers-reduced-motion:reduce){.entity-suggestion{transition:none}}
dialog:not([open]){display:none}

/* Shared entity drawer + create dialog surfaces. */
.entity-surface-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;min-width:0;margin:0 0 10px}
.entity-title-stack{display:grid;gap:4px;min-width:0}
.entity-title-line{display:flex;align-items:flex-start;gap:8px;min-width:0}
.entity-title{min-width:0;margin:0;color:#17253b;font-size:clamp(19px,1.65vw,23px);line-height:1.24;overflow-wrap:anywhere;word-break:normal}
.entity-title-line>.drawer-entity-link{min-width:0;max-width:100%;padding:0;border:0;background:transparent;color:#17253b;font-size:inherit;font-weight:720;line-height:inherit;text-align:left;overflow-wrap:anywhere}
.entity-title-line>.drawer-entity-link:hover{border:0;background:transparent;color:#244c99;box-shadow:none;text-decoration:underline;text-decoration-color:#b9c9e3;text-underline-offset:3px}
.entity-title-line>.drawer-entity-link:focus-visible{outline:2px solid #8aa8f2;outline-offset:3px}
.entity-subtitle{min-width:0;color:var(--muted);font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.entity-header-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0;margin-top:3px}
.entity-status-chip{display:inline-flex;align-items:center;min-height:25px;padding:3px 9px;border:1px solid #dce4ef;border-radius:999px;background:#f6f8fb;color:#596a83;font-size:11px;font-weight:650;line-height:1.2}
.entity-status-chip.is-active{border-color:#d6e9dd;background:#eff8f2;color:#3b7451}.entity-status-chip.is-muted{border-color:#e3e6eb;background:#f1f2f4;color:#707988}
.entity-id{max-width:100%;color:#8a96a7;font-size:10px;overflow-wrap:anywhere}
.entity-action-bar,.entity-action-group{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
.entity-action-bar{margin:2px 0 14px}.entity-action-group{padding-right:6px;border-right:1px solid var(--line)}
.icon-action{display:inline-grid;place-items:center;flex:0 0 40px;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;border:1px solid #e1e7f0;border-radius:12px;background:#fff;color:#52637b;box-shadow:0 1px 2px #1b294008}
.icon-action>svg{display:block;width:19px;height:19px;pointer-events:none}.icon-action:hover{border-color:#cbd7e8;background:#f4f7fb;color:#294e8f;box-shadow:0 3px 9px #1a2b450d}
.icon-action:focus-visible{outline:2px solid #8aa8f2;outline-offset:2px}.icon-action.primary{border-color:#cddafa;background:#eef3ff;color:#315cbd}.icon-action.success{border-color:#cde7d6;background:#f0f8f2;color:#36764c}.icon-action.warning{border-color:#f1dfbd;background:#fff8eb;color:#9a6514}.icon-action.danger{border-color:#f0d4d7;background:#fff3f3;color:#a43f49}
.entity-form{display:grid;gap:12px;min-width:0}.entity-form>label{display:grid;gap:5px;min-width:0;margin:0;font-size:12px;font-weight:600;color:#53627a}.entity-form input,.entity-form select,.entity-form textarea{min-width:0;margin:0}.entity-form>h3{margin:4px 0 0;font-size:15px}.entity-form-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap;margin-top:4px}.entity-form-actions button{min-width:100px}
.entity-create-dialog{width:min(560px,calc(100% - 24px));max-width:560px;max-height:min(90dvh,900px);margin:auto;padding:0;border:1px solid #dce4ef;border-radius:20px;background:var(--surface);color:var(--text);overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 72px #10213b35}
.entity-create-dialog::backdrop{background:#0d17297a;backdrop-filter:blur(5px)}
.entity-create-form{gap:10px;padding:0 22px 20px}
.entity-create-form>.entity-surface-header{margin:0 -22px 4px;padding:18px 22px 13px;border-bottom:1px solid var(--line)}
.entity-create-form>.entity-surface-header .entity-title{font-size:21px}
.entity-create-form>.entity-form-actions{margin:3px -22px -20px;padding:14px 22px;border-top:1px solid var(--line);background:#fbfcfe}
.entity-create-form>.entity-form-actions button:first-child:not(.primary){margin-right:auto}
.entity-create-form .entity-action-bar{margin:0}
.drawer-shell .entity-form{gap:10px}.drawer-shell .entity-surface-header{margin:0}
.drawer-shell .entity-action-bar{margin:0;padding-bottom:10px;border-bottom:1px solid var(--line)}
.drawer-shell .visit-body{display:grid;align-content:start;gap:6px}
.photo-albums{grid-template-columns:repeat(auto-fill,minmax(min(140px,100%),160px));align-content:start;justify-content:start;gap:10px}
.photo-album{width:100%;min-width:0;max-width:160px}.photo-cover-wrap{width:100%;aspect-ratio:1;overflow:hidden;flex:none;border-radius:12px}
.photo-cover-wrap>.photo-cover,.photo-cover-wrap>.photo-shot{width:100%;height:100%;aspect-ratio:auto}
.photo-shot{border-radius:12px;overflow:hidden}
.profile-menu{position:relative;display:flex;align-items:center;gap:4px;min-width:0;max-width:min(44vw,390px)}
#identity.profile-trigger{display:flex;flex:0 1 auto;align-items:center;justify-content:flex-start;gap:9px;width:auto;max-width:100%;min-width:0;height:42px;padding:4px 2px 4px 5px;border:1px solid transparent;border-radius:999px;background:transparent;color:#34445d;overflow:hidden;text-align:left}
#identity.profile-trigger:hover,#identity.profile-trigger[aria-expanded=true]{border-color:#e1e7f0;background:#fff;box-shadow:0 3px 12px #1b29400d}
.profile-avatar{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:#e7eefb;color:#3157a0;font-size:11px;font-weight:750}
.profile-trigger-name{min-width:0;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:650}
.profile-trigger-level{flex:none;color:#728097;font-size:11px;font-variant-numeric:tabular-nums}
.profile-name-toggle{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:#738198}.profile-name-toggle>svg{width:17px;height:17px}.profile-name-toggle:hover{background:#eef2f8;color:#315cbd}
.profile-popover{position:absolute;z-index:80;top:calc(100% + 10px);right:0;display:grid;gap:5px;width:min(300px,calc(100vw - 24px));padding:10px;border:1px solid #dfe6ef;border-radius:16px;background:#fff;box-shadow:0 16px 42px #10213b24;text-align:left}
.profile-popover[hidden]{display:none}.profile-popover-heading{display:grid;gap:3px;padding:8px 9px 11px;border-bottom:1px solid var(--line)}.profile-full-name{overflow-wrap:anywhere;font-size:14px}.profile-access{color:var(--muted);font-size:11px}
.profile-menu-item{display:flex;align-items:center;gap:10px;min-height:42px;padding:8px 10px;border:0;border-radius:10px;background:transparent;color:#34445d;text-align:left;font-size:13px}.profile-menu-item>svg{width:18px;height:18px;flex:none}.profile-menu-item:hover{background:#f1f4f9}.profile-menu-item.profile-logout{color:#a43f49}.profile-menu-item.profile-logout:hover{background:#fff1f1}
@media(max-width:900px){.profile-menu{max-width:calc(100vw - 110px)}#identity.profile-trigger{height:40px}.profile-trigger-name{max-width:min(34vw,170px)}.entity-create-dialog{max-height:calc(100dvh - 24px);border-radius:18px}}
@media(max-width:600px){.entity-create-form{padding:0 16px 16px}.entity-create-form>.entity-surface-header{margin:0 -16px 3px;padding:16px}.entity-create-form>.entity-form-actions{margin:2px -16px -16px;padding:12px 16px}.entity-create-form>.entity-form-actions button{flex:1 1 120px}.drawer-shell .entity-title{font-size:20px}.drawer-shell .entity-action-bar{gap:6px}.entity-action-group{gap:6px}.entity-id{flex-basis:100%}.photo-albums{grid-template-columns:repeat(auto-fill,minmax(min(130px,100%),150px));gap:8px}.photo-album{max-width:150px}.profile-menu{max-width:calc(100vw - 90px)}.profile-trigger-name{max-width:29vw}.profile-trigger-level{display:none}.profile-popover{right:-4px}}
@media(prefers-reduced-motion:no-preference){.entity-create-dialog[open]{animation:surface-fade .16s ease both}.entity-surface-header .drawer-close{transition:background .16s ease,border-color .16s ease,color .16s ease}.icon-action{transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}.icon-action:active{transform:scale(.96)}}
@media(prefers-reduced-motion:reduce){.entity-create-dialog,.icon-action,#identity.profile-trigger{transition:none!important;animation:none!important}}
dialog:not(.photo-viewer){max-height:90vh;max-height:min(90dvh,calc(100dvh - 24px))}
dialog{opacity:0;transform:translateY(7px) scale(.99);transition:opacity .18s ease,transform .18s ease,display .18s allow-discrete,overlay .18s allow-discrete;-webkit-user-select:none;user-select:none}
dialog[open]{opacity:1;transform:translateY(0) scale(1)}
dialog *{-webkit-user-select:none;user-select:none}
dialog input,dialog textarea,dialog select,dialog option{ -webkit-user-select:text;user-select:text}
dialog::backdrop{background-color:transparent;transition:background-color .18s ease,display .18s allow-discrete,overlay .18s allow-discrete}
dialog[open]::backdrop{background-color:#0e193970}
@starting-style{dialog[open]{opacity:0;transform:translateY(7px) scale(.99)}dialog[open]::backdrop{background-color:transparent}}
.danger-button{color:#fff;background:#b42318;border-color:#b42318;font-weight:650}.danger-button:hover{color:#fff;background:#941b13;border-color:#941b13}
#logout-confirm{overflow:auto}#logout-confirm form>p:not(.eyebrow){color:#647086}#logout-confirm .actions{justify-content:flex-end}
#confirm{overflow:auto}
@media(max-width:600px){dialog:not(.photo-viewer):not(.roks-preview-dialog):not(.photo-album-dialog):not(.approval-report){width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:20px;border-radius:14px}#confirm,#logout-confirm{overflow:auto}#logout-confirm .actions{display:grid;grid-template-columns:1fr 1fr}#logout-confirm .actions button{min-height:44px}}
@media(prefers-reduced-motion:reduce){dialog,dialog::backdrop,.personal-settings-dialog{transition:none!important;animation:none!important}}
dialog.personal-settings-dialog[open]{display:flex;flex-direction:column;max-height:min(82dvh,760px);overflow:hidden;padding:0}
.personal-settings-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:14px 22px;border-bottom:1px solid var(--line)}
.personal-settings-header h2{min-width:0;margin:0;font-size:18px}
.personal-settings-close{flex:none}
.personal-settings-dialog form{flex:0 1 auto;min-height:0;max-height:calc(min(82dvh,760px) - 58px);padding:14px 22px 20px;overflow:auto;transition:height .24s cubic-bezier(.2,.75,.25,1)}
@media(max-width:600px){dialog:not(.photo-viewer):not(.roks-preview-dialog):not(.photo-album-dialog):not(.approval-report).personal-settings-dialog{max-height:calc(100dvh - 24px);overflow:hidden;padding:0}.personal-settings-header{padding:12px 16px}.personal-settings-dialog form{max-height:calc(100dvh - 82px);padding:12px 16px 16px}}
@media(prefers-reduced-motion:reduce){.personal-settings-dialog form{transition:none!important}}
.workload-scroll{max-width:100%;overflow:visible;max-height:none}
.workload-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;align-items:start}
.workload-day{min-width:0;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.workload-day>header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 6px;padding:8px;background:#f0f3f8;font-size:12px}
.workload-day.is-today{border-color:#c5d5eb;background:#f3f8ff;box-shadow:none}.workload-day.is-today>header{background:#e8f1ff;border-radius:9px;box-shadow:inset 0 0 0 2px #8eb2ec}.workload-day.is-today>header strong{color:#245da8}
.workload-day>header small{grid-column:1/-1;white-space:nowrap;color:#667085}.workload-today-badge{justify-self:end;padding:2px 7px;border:1px solid #b7cef0;border-radius:999px;background:#f5f9ff;color:#245da8;font-size:10px;font-weight:700;line-height:1.3}
.workload-day-content{padding:6px;min-height:28px}
.workload-state-group{margin:0 0 7px;padding:4px 4px 1px 6px;border-left:3px solid #98a2b3;border-radius:0 8px 8px 0;background:#f5f6f8}.workload-state-group h4{font-size:10px;color:#64748b;margin:3px 2px 5px;line-height:1.25}
.workload-state-group.outcome-green,.report-visit-group.outcome-green{border-left-color:#147d51;background:#f1f8f4}.workload-state-group.outcome-green h4,.report-visit-group.outcome-green h3{color:#147d51}
.workload-state-group.outcome-orange,.report-visit-group.outcome-orange{border-left-color:#9a4700;background:#fff8f0}.workload-state-group.outcome-orange h4,.report-visit-group.outcome-orange h3{color:#874000}
.workload-state-group.outcome-red,.report-visit-group.outcome-red{border-left-color:#b42318;background:#fff5f4}.workload-state-group.outcome-red h4,.report-visit-group.outcome-red h3{color:#a11f15}
.workload-state-group.outcome-grey,.report-visit-group.outcome-grey{border-left-color:#7b8794;background:#f6f7f8}.workload-state-group.outcome-grey h4,.report-visit-group.outcome-grey h3{color:#52606d}
.workload-state-group.outcome-blue,.report-visit-group.outcome-blue{border-left-color:#175ca8;background:#f2f7fd}.workload-state-group.outcome-blue h4,.report-visit-group.outcome-blue h3{color:#175ca8}
.workload-state-group.outcome-yellow,.report-visit-group.outcome-yellow{border-left-color:#a87a1a;background:#fffbeb}.workload-state-group.outcome-yellow h4,.report-visit-group.outcome-yellow h3{color:#765315}
.workload-day .report-visit{padding:6px 5px;margin-bottom:5px}.workload-day .report-visit-line{gap:4px}.workload-day .report-visit-open{font-size:11px;line-height:1.25}.workload-day .badge{font-size:9px;padding:2px 5px;white-space:nowrap}
.workload-day .calendar-visit-heading{display:grid;gap:1px;min-width:0}
.workload-day .calendar-visit-heading .report-visit-open{display:block;width:100%;flex:none;border-color:transparent;background:transparent;text-align:left;white-space:normal;overflow-wrap:break-word;word-break:normal;font-size:11px;line-height:1.25;padding:2px 3px}
.workload-day .calendar-visit-heading .report-visit-open:hover{background:#f4f6fa;border-color:transparent}
.workload-day .calendar-object-name{padding:0 3px;color:#7b8798;font-size:10px;line-height:1.25;overflow-wrap:break-word;word-break:normal}
.workload-day .calendar-visit-status{padding:3px 3px 0}
.workload-day .calendar-visit-status .visit-status{font-size:9px;line-height:1.25;padding:2px 6px;white-space:normal}
.report-visit-groups{display:grid;gap:8px}.report-visit-group{background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px 10px}
.report-visit-group h3{font-size:12px;color:#536277;margin:0 0 5px}
.report-visit{padding:7px 9px;border-bottom:1px solid #edf0f4;min-width:0}.report-visit:last-child{border-bottom:0}
.report-visit-line{display:flex;align-items:center;gap:8px;min-width:0}
.report-visit-open{flex:1;min-width:0;text-align:left;white-space:normal;overflow-wrap:anywhere;font-weight:650;padding:3px 4px}
.report-visit-people{display:block;padding:0 4px;color:#65748a;font-size:11px;overflow-wrap:anywhere}
.report-visit-details{margin:3px 4px 0;color:#64748b;font-size:11px}.report-visit-details summary{cursor:pointer}.report-visit-details blockquote{margin:4px 0;padding:4px 8px;border-left:2px solid #c9d2df;background:#f6f7f9;white-space:pre-wrap}
.report-summary-compact{display:flex;gap:6px 14px;flex-wrap:wrap;padding:8px 10px;color:#536277;font-size:12px;border-bottom:1px solid var(--line)}
.weekly-report-output>.card{margin:8px 0}.weekly-report-output .report-export-actions{margin:6px 0 0;gap:6px}.weekly-report-output .report-export-actions button{min-height:34px;padding:5px 10px;font-size:12px}
@media(max-width:1000px){.workload-week{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:650px){.workload-week{grid-template-columns:minmax(0,1fr)}.workload-day-content{padding:5px 8px}.workload-day .report-visit{padding:6px}.workload-day .report-visit-line{align-items:flex-start}.workload-day .calendar-visit-heading .report-visit-open{font-size:13px}.report-visit-line{align-items:flex-start}.report-visit-open{font-size:13px}.weekly-report-output .report-export-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;max-width:100%}.weekly-report-output .report-export-actions button{min-width:0;max-width:100%;width:100%;padding-inline:6px;white-space:normal;overflow-wrap:anywhere}.report-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;width:100%;min-width:0;max-width:100%;gap:8px}.report-tools>label{grid-column:1/-1;width:100%;min-width:0}.report-tools>button,.report-tools>input,.report-tools>.sort-menu{width:100%;min-width:0;max-width:100%}.report-tools>button{height:auto;min-height:42px;padding:8px 6px;white-space:normal;overflow-wrap:anywhere;line-height:1.25}.directory-rows>.row .visit-participants{margin:5px 0 12px;line-height:1.55}.directory-rows>.row .row-actions{margin-top:4px;gap:8px}.report-summary-compact{gap:5px 10px}}
.gallery-search-toolbar,.gallery-folder-toolbar{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin:0 0 1rem}.gallery-search-toolbar input{flex:1 1 14rem;min-width:0}.gallery-search-toolbar select{flex:1 1 10rem;min-width:0}.gallery-folder-toolbar{justify-content:flex-end}.gallery-photo-grid,.gallery-album-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.8rem;margin:1rem 0}.gallery-album-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.gallery-photo-card,.gallery-album-card{min-width:0;overflow:hidden;border-radius:16px;background:var(--surface-2,#f5f6f8);padding:.55rem}.gallery-photo-tile{display:flex;width:100%;min-width:0;flex-direction:column;gap:.35rem;padding:0;border:0;background:transparent;text-align:left;color:inherit;cursor:pointer}.gallery-photo-tile img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;background:var(--surface,#fff)}.gallery-photo-tile span,.gallery-photo-tile small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.gallery-photo-tile small{opacity:.7}.gallery-album-card>header{display:flex;justify-content:space-between;gap:.5rem;align-items:center;margin-bottom:.5rem}.gallery-album-card>header strong{overflow-wrap:anywhere}.gallery-album-card input[type=file]{width:100%;min-width:0;margin:.5rem 0}.gallery-inline-form{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.75rem;margin:.5rem 0;border-radius:12px;background:var(--surface-2,#f5f6f8)}.gallery-inline-form input{flex:1 1 10rem;min-width:0}.gallery-viewer{width:min(94vw,900px);max-width:94vw;max-height:90dvh;padding:1rem;border:0;border-radius:18px;background:var(--surface,#fff)}.gallery-viewer>header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.gallery-full-image{display:block;max-width:100%;max-height:75dvh;object-fit:contain;margin:1rem auto}.gallery-viewer::backdrop{background:#101318a0}@media(max-width:600px){.gallery-search-toolbar{display:grid;grid-template-columns:minmax(0,1fr)}.gallery-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.gallery-album-grid{grid-template-columns:minmax(0,1fr)}.gallery-viewer{padding:.65rem}}
.gallery-folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:.85rem;margin:1rem 0}.gallery-folder-tile,.gallery-album-tile{display:flex;min-width:0;flex-direction:column;gap:.65rem;padding:.75rem;border:1px solid var(--line,#dfe4eb);border-radius:16px;background:var(--surface,#fff);color:var(--text,#1d2939);text-align:left;cursor:pointer;transition:background-color .18s ease,transform .18s ease,box-shadow .18s ease}.gallery-folder-tile:hover,.gallery-album-tile:hover{background:var(--surface-2,#f5f6f8);transform:translateY(-2px);box-shadow:0 8px 22px #18283d16}.gallery-folder-tile small{color:var(--muted,#65748a)}.gallery-folder-mark,.gallery-album-cover{position:relative;display:grid;place-items:center;width:100%;height:118px;overflow:hidden;border-radius:12px;background:linear-gradient(145deg,#edf2fb,#e6ecf5);color:#687fa7}.gallery-folder-mark svg,.gallery-album-cover svg{width:48px;height:48px}.gallery-album-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}.gallery-album-tile{position:relative;padding:.55rem}.gallery-album-tile strong{overflow-wrap:anywhere}.gallery-album-cover{height:142px}.gallery-album-count{position:absolute;right:8px;bottom:8px;display:grid;min-width:28px;height:28px;place-items:center;padding:0 7px;border:1px solid #ffffffa8;border-radius:999px;background:#16233ccc;color:#fff;font-size:12px;font-weight:700;backdrop-filter:blur(8px)}.gallery-breadcrumbs{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin:0 0 .75rem;color:var(--muted,#65748a);font-size:13px}.gallery-breadcrumbs>*+*::before{content:'/';margin-right:.45rem;color:#a4adba}.gallery-crumb{padding:2px 3px;border:0;background:transparent;color:inherit;text-decoration:underline;text-decoration-color:#aeb8c7;text-underline-offset:3px}.gallery-folder-toolbar{justify-content:flex-start}.gallery-upload-zone{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem;margin:.75rem 0;padding:.85rem;border:1px dashed #aebbd0;border-radius:12px;background:var(--surface-2,#f5f6f8)}.gallery-upload-zone>span{color:var(--muted,#65748a)}.gallery-upload-zone input[type=file]{max-width:100%}.gallery-photo-details{opacity:.7}.gallery-pagination{justify-content:center}
.gallery-create-folder-tile{border-style:dashed;border-color:#b8c5d9}.gallery-create-folder-mark{background:linear-gradient(145deg,#eef4ff,#e4edff);color:var(--blue,#315cdd)}.gallery-create-folder-tile:hover{border-color:#8da7e8}.gallery-create-folder-dialog{width:min(420px,calc(100% - 24px));padding:22px;border:1px solid var(--line,#dfe4eb);border-radius:18px;background:var(--surface,#fff);color:var(--text,#1d2939)}.gallery-create-folder-dialog h2{margin:0 0 10px}.gallery-create-folder-dialog label{margin:0 0 18px}.gallery-create-folder-dialog .gallery-hidden-folder-choice{display:flex;align-items:flex-start;gap:9px;font-weight:500}.gallery-hidden-folder-choice input{width:18px;height:18px;flex:none;margin:2px 0 0}.gallery-create-folder-actions{display:flex;justify-content:flex-end;gap:.6rem}.gallery-create-folder-actions button{min-width:96px}@media(max-width:600px){.gallery-folder-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.gallery-folder-tile{padding:.55rem}.gallery-folder-mark{height:86px}.gallery-create-folder-dialog{padding:18px}}

/* Gallery visual pass: compact controls, covers, touch-safe actions and focused viewer. */
.global-gallery{min-width:0}.gallery-search-toolbar{display:grid;gap:.55rem}.gallery-search-line{display:flex;align-items:stretch;gap:.55rem;min-width:0}.gallery-search-line input{flex:1 1 auto;min-width:0}.gallery-search-line button{flex:0 0 auto;min-width:84px}.gallery-search-toolbar>input{width:100%;min-width:0}.gallery-breadcrumbs{min-height:36px;align-items:center}.gallery-breadcrumbs .gallery-count{margin:0 0 0 auto;padding-left:.5rem;white-space:nowrap}.gallery-content{transition:opacity .16s ease}.gallery-content.is-loading{opacity:.58;pointer-events:none}.gallery-folder-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1rem}.gallery-folder-tile,.gallery-album-tile{border-color:transparent;background:var(--surface,#fff);box-shadow:0 2px 10px #18283d0c}.gallery-folder-tile:hover,.gallery-album-tile:hover{border-color:transparent;box-shadow:0 10px 28px #18283d18}.gallery-folder-mark{height:144px;background:linear-gradient(180deg,#edf4ff,#e1ebfa);color:#3d6ab5}.gallery-folder-mark:before{content:"";position:absolute;left:13%;top:24%;width:34%;height:20%;border-radius:8px 8px 2px 2px;background:currentColor;opacity:.24}.gallery-folder-mark:after{content:"";position:absolute;inset:35% 10% 11%;border-radius:8px 10px 12px 12px;background:linear-gradient(150deg,#fff9,#ffffff20);clip-path:polygon(0 0,100% 0,100% 100%,0 100%);box-shadow:inset 0 0 0 1px #fff8}.gallery-folder-mark svg{position:relative;z-index:1;filter:drop-shadow(0 2px 4px #233a5b20)}.gallery-album-cover{height:160px;background:#e9edf3}.gallery-album-cover>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.gallery-album-cover:has(>img){background:#e9edf3}.gallery-album-tile>strong{padding:.2rem .25rem}.gallery-album-count{z-index:1}.gallery-photo-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.9rem}.gallery-photo-card{position:relative;padding:.45rem;background:transparent;border-radius:16px}.gallery-photo-tile{gap:.25rem}.gallery-photo-tile img{background:linear-gradient(100deg,#e9edf2 25%,#f7f8fa 38%,#e9edf2 62%);background-size:400% 100%;animation:gallery-shimmer 1.2s ease infinite}.gallery-photo-name{display:none}.gallery-photo-details{font-size:11px}.gallery-icon{display:inline-grid;place-items:center;width:40px;min-width:40px;height:40px;padding:0;border:1px solid var(--line,#dfe4eb);border-radius:12px;background:var(--surface,#fff);color:var(--text,#263449)}.gallery-icon svg{width:19px;height:19px}.gallery-icon:hover{background:var(--surface-2,#f5f6f8)}.gallery-photo-delete{position:absolute;right:8px;top:8px;opacity:.94;box-shadow:0 2px 8px #0002}.gallery-folder-toolbar .gallery-action-icon,.gallery-folder-toolbar .gallery-icon{flex:0 0 40px}.gallery-upload-zone{justify-content:flex-start;min-height:58px}.gallery-upload-zone>span{flex:1 1 auto}.gallery-upload-button{min-height:42px}.gallery-upload-progress{flex-basis:100%}.gallery-pagination{gap:.75rem}.gallery-pagination button{min-width:44px;min-height:44px}.gallery-viewer{width:min(96vw,1100px);max-width:96vw;max-height:94dvh;padding:12px;background:#101318;color:#f4f6f9}.gallery-viewer>header{min-height:42px}.gallery-viewer-position{margin-left:auto;margin-right:12px;color:#b9c1cc}.gallery-viewer-stage{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;min-height:48vh}.gallery-full-image{max-width:100%;max-height:78dvh;margin:.5rem auto}.gallery-viewer-arrow{display:grid;place-items:center;width:44px;height:52px;border:0;border-radius:14px;background:#ffffff14;color:#fff}.gallery-viewer-arrow svg{width:22px;height:22px}.gallery-viewer .photo-icon{border-color:#ffffff30;background:#ffffff12;color:#fff}.gallery-viewer .hint{color:#c5cbd4}.gallery-viewer::backdrop{background:#05070bd9}.gallery-viewer-stage img{touch-action:pan-y}.gallery-inline-form{width:100%}.gallery-upload-zone.is-dragging,.global-gallery.is-dragging{outline:2px solid #7295d4;outline-offset:2px;background-color:#eef4ff}
@keyframes gallery-shimmer{to{background-position:-400% 0}}
@media(max-width:600px){.gallery-search-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:.5rem}.gallery-search-line{display:grid;grid-template-columns:minmax(0,1fr) auto}.gallery-search-line button{min-width:78px;padding-inline:10px}.gallery-folder-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.gallery-folder-tile{gap:.45rem;padding:.55rem}.gallery-folder-mark{height:96px}.gallery-folder-tile strong,.gallery-album-tile strong{font-size:13px}.gallery-album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.gallery-album-cover{height:112px}.gallery-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}.gallery-photo-card{padding:.25rem}.gallery-photo-delete{right:5px;top:5px;width:40px;height:40px}.gallery-icon{width:44px;height:44px}.gallery-folder-toolbar{gap:.45rem}.gallery-viewer{padding:8px}.gallery-viewer-stage{grid-template-columns:38px minmax(0,1fr) 38px;gap:3px;min-height:55vh}.gallery-viewer-arrow{width:38px;height:46px}.gallery-full-image{max-height:75dvh}.gallery-upload-zone{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.45rem}.gallery-upload-zone>span{font-size:12px}.gallery-breadcrumbs .gallery-count{width:100%;margin:.15rem 0 0;padding:0}.gallery-photo-name{display:none}}
@media(prefers-reduced-motion:reduce){.gallery-content,.gallery-folder-tile,.gallery-album-tile,.gallery-photo-tile img{transition:none;animation:none}}
.pill{display:inline-flex;align-items:center;gap:.4rem;padding:4px 10px;border-radius:999px;background:var(--surface-2,#edf2fa);color:var(--muted,#566882);font-size:12.5px;font-weight:500}
.quick-filters button[aria-pressed=true]{background:#e5edff;border-color:#c3d2ff;color:#244abf;font-weight:600}
.badge{border-radius:999px}
.approval-suggestion small,.approval-object-name,.refresh-tools{color:#626f86}
.refresh-glyph{width:14px;height:14px;vertical-align:-2px}.refresh-glyph.spinning{animation:refresh-spin .9s linear infinite}
@keyframes refresh-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.refresh-glyph.spinning{animation:none}}
.directory-rows>.row{padding-right:52px}
.row-actions .row-open{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:40px;height:40px;min-width:0;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;color:#6b7d9f;font-size:0;line-height:0}
.row-open::before{content:"";position:absolute;left:50%;top:50%;width:9px;height:9px;margin:-5px 0 0 -7px;border-right:2px solid currentColor;border-top:2px solid currentColor;transform:rotate(45deg)}
.directory-rows>.row:hover .row-open,.row-open:hover{color:#315cdd;background:transparent}
.row-open:hover::before,.row-open:focus-visible::before{transform:translateX(2px) rotate(45deg)}
.row-actions .row-open:focus-visible{outline:none;color:#315cdd;background:#e5edff;box-shadow:0 0 0 3px #c3d2ff}
.directory-rows>.row:has(.row-open:focus-visible)::before{opacity:.42}
.gallery-upload-zone.file-drop-active,.global-gallery.file-drop-active{outline:2px solid #7295d4;outline-offset:2px;background-color:#eef4ff}

/* WC Engine visual system: the gallery establishes the component language for the rest of the panel. */
:root{--bg:#f3f6fb;--surface:#fff;--surface-2:#f6f8fc;--text:#1b2940;--muted:#5f6f87;--line:#e1e7f0;--blue:#3568d4;--accent:#3568d4;--nav-surface:#f3f6fb;--nav-ink:#34445d;color:var(--text);background:var(--bg)}
body{background:var(--bg);color:var(--text)}
#workspace{background:radial-gradient(ellipse at 78% -12%,#edf2fa 0,transparent 34%),var(--bg);min-height:100dvh}
aside#sidebar{background:var(--nav-surface);color:var(--nav-ink);border-right:1px solid #e1e7f0;box-shadow:3px 0 16px #10203b06}
#sidebar .muted{color:#6d7e96}
#sidebar #sidebar-toggle{color:#34445d}
#sidebar #sidebar-toggle:hover{background:#e8eef7;color:#244c99}
#nav{gap:5px}
#nav button{color:#45556e;border-radius:14px;min-height:46px;font-weight:500;transition:background-color .18s ease,color .18s ease,transform .18s ease}
#nav button:hover{background:#e8eef7;color:#263e60;transform:translateX(2px)}
#nav button.active{background:#e9effb;color:#244c99;box-shadow:0 3px 10px #09162920;font-weight:700}
#nav button.approval-neutral,#nav button.approval-neutral:hover{color:#788397}
#nav button.approval-neutral.active{background:#edf0f4;color:#536175}
#nav .nav-icon{opacity:.92}
#sidebar footer{color:#6d7e96}
#sidebar #bot-version{color:#52637c}
#main-content{max-width:none;padding:26px clamp(20px,3.3vw,54px) 34px}
#main-content>header{min-height:70px;margin-bottom:22px;padding-bottom:16px;border-bottom:1px solid #dfe6f0;align-items:center}
.page-title h1{font-size:clamp(25px,2vw,32px);letter-spacing:-.8px;font-weight:720;color:#17253b}
.page-title .eyebrow{color:#6d7e96;letter-spacing:1.45px}
.header-tools{gap:8px}
#identity{color:#33435c}
#main-content .card{border:1px solid #e4e9f1;border-radius:18px;background:var(--surface);box-shadow:0 5px 20px #233c5d08;padding:20px}
#content>.card,#content>.grid>.card{box-shadow:0 6px 22px #21385c0a}
#content .grid{gap:14px}
#workspace button{border-radius:12px;min-height:40px;border-color:#dce3ed;background:#fff;color:#293952;box-shadow:0 1px 2px #1a2c4510;transition:background-color .17s ease,border-color .17s ease,color .17s ease,box-shadow .17s ease,transform .17s ease}
#workspace button:hover{border-color:#c6d3e7;background:#f3f6fb;box-shadow:0 4px 12px #1a2c4510}
#workspace button:active{transform:translateY(1px)}
#workspace button.primary,.primary{border-color:#3568d4;background:#3568d4;color:#fff;box-shadow:0 4px 12px #3568d426}
#workspace button.primary:hover,.primary:hover{border-color:#2e5dbf;background:#2e5dbf;color:#fff;box-shadow:0 6px 16px #3568d43a}
#workspace button.quiet{background:transparent;box-shadow:none}
#workspace button.danger,#workspace button.danger:hover{color:#a73549}
/* The full-screen dismissal layer is a button for pointer access, not an action button. */
#workspace #sidebar-backdrop,#workspace #sidebar-backdrop:hover,#workspace #sidebar-backdrop:active{min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:rgba(20,34,61,.28);box-shadow:none;transform:none;appearance:none;-webkit-appearance:none;cursor:default;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
#workspace #sidebar-backdrop:focus{outline:none}
#workspace input,#workspace select,#workspace textarea{border-color:#d5deeb;border-radius:12px;background:#fff;box-shadow:inset 0 1px 2px #1b294006}
#workspace input:focus,#workspace select:focus,#workspace textarea:focus{outline:3px solid #3568d426;border-color:#7394d6;box-shadow:0 0 0 1px #7394d6}
#workspace label{color:#40516a;font-weight:620}
#workspace .hint,#workspace .muted{color:#5f6f87}
#workspace .badge,#workspace .pill{border:1px solid #e0e7f2}
.directory-list.card{padding:16px!important}
.directory-rows{display:grid;gap:4px}
.directory-rows>.row{margin:0;padding:14px 56px 14px 14px;border:1px solid transparent;border-radius:14px;background:#fff;box-shadow:0 2px 9px #20354f08;transition:background-color .2s ease,box-shadow .2s ease}
.directory-rows>.row::before{inset:3px;border-radius:14px;background:#dfe4eb;filter:blur(8px);opacity:0;transition:opacity .2s ease}
.directory-rows>.row:hover{background:#f6f7f9;box-shadow:0 3px 12px #20354f0d}
.directory-rows>.row:hover::before{opacity:.3}
.directory-rows>.row.record-opened{background:#eef3fb}
.record-summary{min-width:0}
.record-summary>strong,.record-summary strong{color:#1e2e47;letter-spacing:-.12px}
.record-summary p{color:#5f6f87}
.row-actions{align-items:center;gap:8px}
.row-open{color:#536985}
.visit-filters,.catalogue-tools,.report-tools{gap:10px}
.visit-filters label,.catalogue-tools label{color:#5b6b83}
.sort-menu,.sort-trigger{border-radius:12px}
.terminal{border:1px solid #263c5e;border-radius:18px;box-shadow:0 10px 28px #12213a12}
.approval-report,.roks-preview-dialog{border:1px solid #dfe6ef;box-shadow:0 22px 70px #10213b30}
#mobile-menu-toggle{background:#e6edf8;color:#244b88;box-shadow:none}
@media(min-width:901px){#main-content{padding-left:clamp(24px,3.3vw,54px);padding-right:clamp(24px,3.3vw,54px)}.directory-rows>.row{gap:12px}.directory-list.card{padding:18px!important}}
@media(max-width:900px){
 #main-content{padding:16px 16px 28px}
 #main-content>header{padding-bottom:12px;margin-bottom:16px;border-bottom-color:#e2e8f1}
 aside#sidebar{background:var(--nav-surface);border-right:1px solid #e1e7f0}
 #sidebar #sidebar-toggle{color:#34445d}
 #mobile-menu-toggle{background:#e5ecf7;color:#244b88}
 #content>.card{padding:16px}
 .directory-rows>.row{padding:13px 52px 13px 12px;border-radius:13px}
}
@media(max-width:600px){
 #main-content{padding:11px 12px 24px}
 #main-content>header{gap:8px;margin-bottom:12px}
 .page-title h1{font-size:23px}
 .header-tools{gap:5px}
 #identity{color:#33435c}
 #workspace .card{border-radius:15px}
 #workspace button{min-height:42px}
 .directory-list.card{padding:12px!important}
 .directory-rows>.row{padding:12px 48px 12px 10px}
}
@media(prefers-reduced-motion:reduce){#nav button,#workspace button,.directory-rows>.row,.directory-rows>.row::before{transition:none}}
#sidebar #nav button{color:#45556e;border:1px solid transparent;border-radius:14px;min-height:46px;background:transparent;box-shadow:none;font-weight:500}
#sidebar #nav button:hover{background:#e8eef7;color:#263e60;box-shadow:none}
#sidebar #nav button.active{background:#e4ecfb;border-color:#d5e2f8;color:#244c99;box-shadow:inset 3px 0 #5d82d6;font-weight:700}
#sidebar #nav button.approval-neutral,#sidebar #nav button.approval-neutral:hover{color:#788397}
#sidebar #nav button.approval-neutral.active{background:#edf0f4;border-color:#dce2ea;color:#536175;box-shadow:inset 3px 0 #aab2bf}
#identity .person-eye{min-height:0;width:1.4em;height:1.4em;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;color:inherit}
#identity .person-eye:hover{background:transparent;box-shadow:none}
#identity .person-eye:focus-visible{background:#e7edf7;box-shadow:none}
#workspace .person-eye{width:1.4em;height:1.4em;min-width:0;min-height:0;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none}
#workspace .person-eye:hover{border-color:transparent;background:transparent;box-shadow:none;color:var(--blue)}
#workspace .person-eye:focus-visible{background:#e7edf7}
.visit-id{display:inline-block;max-width:100%;margin:8px 0 16px;padding:4px 8px;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--muted);font-size:12px;line-height:1.45}
#workspace .drawer-title>.drawer-close{border:1px solid transparent;border-radius:12px;background:transparent;color:#66758b;box-shadow:none}
#workspace .drawer-title>.drawer-close:hover{border-color:#e1e7f0;background:#f3f6fb;color:#284e93;box-shadow:none}
.gallery-breadcrumbs>.gallery-count::before{content:none;margin:0}
.gallery-photo-delete{color:#6b7482}.gallery-photo-delete:hover{color:#a73549}
@media(max-width:900px){#sidebar #nav button{background:transparent}#sidebar #nav button.active{background:#e4ecfb}}
@media(hover:none),(max-width:900px){.row-actions .row-open{width:44px;height:44px}}
@media(prefers-reduced-motion:no-preference){.row-actions .row-open{transition:background .15s ease,box-shadow .15s ease,color .15s ease}.row-open::before{transition:transform .15s ease}}

/* Marked corrections 3–7: focused rows, compact visit details, and shared date fields. */
.directory-rows>.row.is-selected{background:#edf3ff;box-shadow:inset 3px 0 #8ba6d8,0 3px 12px #20354f0d}
.sensor-inventory{display:grid;gap:4px;min-width:0;margin:5px 0 9px;padding:11px 13px;border:1px solid #e0e7f0;border-radius:13px;background:#f7f9fc}
.sensor-inventory h3{margin:0 0 2px;font-size:13px;font-weight:700;color:#42536d}.sensor-inventory-line{margin:0;line-height:1.5;overflow-wrap:anywhere}.sensor-inventory-line strong{font-weight:700;color:#293b55}
.sensor-editor-fields{display:grid;gap:9px;min-width:0;margin:8px 0;padding:12px;border:1px solid #dfe6ef;border-radius:12px;background:#f8fafd}.sensor-editor-fields legend{padding:0 5px;color:#53627a;font-size:12px;font-weight:650}.sensor-editor-fields label{display:grid;gap:4px;font-size:12px;color:#53627a}.sensor-editor-fields .hint{margin:0}.sensor-editor-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.sensor-editor-actions button{min-height:38px}
.panel-account-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}.panel-account-summary h3,.panel-account-summary p{margin:0}.panel-account-summary>div{min-width:0}.panel-account-summary button{flex:none}
.visit-id{display:inline;max-width:100%;margin:0;padding:0;overflow-wrap:anywhere;border:0;border-radius:0;background:transparent;color:#8a96a7;font-size:10px;line-height:1.4}
.visit-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;min-width:0;color:#17253b;font-size:clamp(19px,1.65vw,23px);font-weight:720;line-height:1.24}.visit-kind-label{flex:none;color:#738198;font-size:12px;font-weight:650}.visit-title>.drawer-entity-link{min-width:0;max-width:100%;padding:0;border:0;background:transparent;color:#17253b;font-size:inherit;font-weight:720;line-height:inherit;text-align:left;overflow-wrap:anywhere}.visit-title>.drawer-entity-link:hover{border:0;background:transparent;color:#244c99;box-shadow:none;text-decoration:underline;text-decoration-color:#b9c9e3;text-underline-offset:3px}.visit-title>.drawer-entity-link:focus-visible{outline:2px solid #8aa8f2;outline-offset:3px}
.visit-creator{margin:-4px 0 8px;font-size:12px;line-height:1.35}
.visit-participants-panel{display:grid;gap:5px;min-width:0;margin:14px 0;padding:10px 12px;border:1px solid #e1e7ef;border-radius:12px;background:#f8f9fb}.visit-participants-panel>.section-heading{margin:0 0 2px}.visit-participants-panel>.section-heading h3{font-size:14px}.visit-participant{min-width:0;padding:7px 0;border-top:1px solid #e5e9ef;overflow-wrap:anywhere}.visit-participant>p.hint{margin:3px 0;font-size:11px}.visit-participant .visit-comment{margin:5px 0}.visit-participant blockquote{margin:3px 0}
.visit-date-field{display:grid;gap:5px;min-width:0}.visit-date-field>label{margin:0;font-size:12px;font-weight:600;color:#53627a}
.visit-filters{margin-top:12px;gap:9px}.visit-filter-field{display:grid;align-content:start;gap:4px;min-width:0}.visit-filter-field>label{margin:0;font-size:12px;color:#5b6b83}.visit-filter-field>select,.visit-filter-field>.df{width:100%;min-width:0;margin:0}.visit-filter-field input,.visit-filter-field select{margin:0}.visit-filter-field .df .df-box input{padding:8px 42px 8px 10px}
.profile-menu{gap:8px}.profile-identity{display:flex;align-items:center;gap:1px;min-width:0;max-width:100%;border:1px solid #e1e7f0;border-radius:999px;background:#fff;box-shadow:0 2px 9px #1b294009;transition:border-color .16s ease,box-shadow .16s ease}
.profile-identity:focus-within{border-color:#c4d2e7;box-shadow:0 3px 12px #1b294012}#identity.profile-trigger{border:0;background:transparent;box-shadow:none}#identity.profile-trigger:hover,#identity.profile-trigger[aria-expanded=true]{background:#f6f8fb;box-shadow:none}
.profile-name-toggle{margin-right:4px}.profile-name-toggle:hover{background:#eef2f8}.profile-identity:has(.profile-name-toggle[hidden]){padding-right:3px}
@media(max-width:600px){.panel-account-summary{align-items:flex-start;flex-direction:column}.panel-account-summary button{width:100%}.visit-participants-panel{margin:10px 0;padding:9px}.profile-menu{max-width:calc(100vw - 72px)}.profile-identity{max-width:100%}#identity.profile-trigger{gap:6px;padding-inline:4px}#workspace .profile-name-toggle{flex:0 0 28px;width:28px;height:28px;min-height:0;margin-right:3px}}

/* Compact object drawer actions without changing employee and visit surfaces. */
.drawer-shell .object-editor-form{gap:7px}
.drawer-shell .object-editor-form>.entity-action-bar{padding-bottom:4px}
.drawer-shell .object-editor-form .sensor-inventory{margin-block:4px 5px}

/* Keep the visit/approval query block visually separate from its results. */
.visit-catalogue>.directory-rows{margin-top:14px}

.history-filters{display:grid;grid-template-columns:minmax(190px,1.7fr) repeat(3,minmax(140px,1fr));align-items:end;gap:10px;margin:12px 0 16px}
.history-filter-field{display:grid;align-content:start;gap:4px;min-width:0;margin:0;color:#5b6b83;font-size:12px}
.history-filter-field>input,.history-filter-field>select,.history-filter-field>.df{width:100%;min-width:0;margin:0}
.history-filter-field input,.history-filter-field select{margin:0}
.history-page .section-heading{margin-bottom:0}
@media(max-width:900px){.history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.history-filters{grid-template-columns:minmax(0,1fr);gap:8px;margin:10px 0 14px}}

/* Final profile and visit-card density corrections. */
#identity.profile-trigger{flex:1 1 auto}
.profile-trigger-level{display:inline-flex;flex:0 0 auto;white-space:nowrap;margin-inline:2px 7px}
#workspace .profile-name-toggle{display:grid;flex:0 0 28px;place-items:center;width:28px;height:28px;min-height:28px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;color:#738198}
#workspace .profile-name-toggle:hover,#workspace .profile-name-toggle:active{border:0;background:transparent;box-shadow:none;color:#315cbd}
#workspace .profile-name-toggle:focus-visible{outline:2px solid #8aa8f2;outline-offset:2px}
@media(max-width:600px){.profile-trigger-name{max-width:clamp(28px,18vw,92px)}.profile-trigger-level{display:inline-flex;font-size:10px;margin-inline:1px 5px}}
.drawer-shell .object-editor-form{gap:5px}
.drawer-shell .object-editor-form>.entity-action-bar{margin:0;padding:0 0 3px;border-bottom:1px solid var(--line)}
#workspace .drawer-shell .object-editor-form>.entity-action-bar .icon-action{flex:0 0 34px;width:34px;min-width:34px;height:34px;min-height:34px;border-radius:10px}
.drawer-shell .visit-body>.visit-creator{margin:-4px 0 0}
.drawer-shell .visit-body>.visit-participants-panel{margin:4px 0;padding:7px 10px}
.drawer-shell .visit-body>.visit-participants-panel .visit-participant{padding:4px 0}
.drawer-shell .visit-body>.visit-comment{margin:2px 0}
.drawer-shell .visit-body>p{margin:2px 0}
/* Sticky header on every width; secondary title actions collapse into a ··· menu on phones. */
#main-content{--page-pad:clamp(20px,3.3vw,54px);padding-top:0;padding-inline:var(--page-pad)}
@media(min-width:901px){#main-content{--page-pad:clamp(24px,3.3vw,54px)}}
@media(max-width:900px){#main-content{--page-pad:16px}}
@media(max-width:600px){#main-content{--page-pad:12px}}
#main-content>header{position:sticky;top:0;z-index:38;min-height:0;margin:0 calc(-1 * var(--page-pad)) 16px;padding:18px var(--page-pad) 12px;background:rgba(243,246,251,.94);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
@media(max-width:900px){#main-content>header{padding-top:12px;padding-bottom:10px}}
.title-more,.title-more-list{display:contents}
.title-more-toggle{display:none}
@media(max-width:600px){
 #main-content>header{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;margin-bottom:10px;padding-top:8px;padding-bottom:7px;border-bottom-color:#dbe3ef}
 .page-title,.header-tools{display:contents}
 #mobile-menu-toggle{order:0;height:40px;min-height:40px}
 #title{order:1;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
 #title-actions{order:2;display:flex;flex:none;flex-wrap:nowrap;gap:6px;width:auto;margin:0 0 0 6px}
 #workspace #title-actions .primary{height:40px;min-height:40px}
 .profile-menu{order:3;flex:none;max-width:none;margin-left:auto}
 .refresh-tools{order:4;flex-direction:column-reverse;align-items:center;gap:0;margin:0}
 #workspace .refresh-tools button{width:34px;height:28px;min-height:28px;border:0;background:transparent;box-shadow:none}
 #refresh-countdown{flex:none;width:auto;max-width:none;overflow:visible;font-size:10px;line-height:11px;color:#667791}
 .profile-trigger-name,.profile-name-toggle,.profile-trigger-level{display:none!important}
 .profile-identity{border:0;box-shadow:none;background:transparent}
 #identity.profile-trigger{padding:0;width:40px;height:40px;justify-content:center;border-radius:50%}
 .profile-avatar{flex:0 0 36px;width:36px;height:36px;border:2px solid #3568d4;background:#fff;color:#2a56b8}
 .title-more{display:block;position:static;flex:none}
 #workspace .title-more-toggle{display:grid;place-items:center;width:40px;height:40px;min-height:40px;padding:0}
 .title-more-toggle svg{width:22px;height:22px}
 .title-more-list{display:none}
 .title-more[data-open] .title-more-list{display:block;position:absolute;left:var(--page-pad);top:calc(100% + 4px);z-index:40;width:min(300px,calc(100% - 2 * var(--page-pad)));padding:6px;background:#fff;border:1px solid #dfe6ef;border-radius:14px;box-shadow:0 16px 42px #10213b24}
 #workspace .title-more-list button{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:8px 10px;border:0;box-shadow:none;background:transparent;font-size:14px;text-align:left;white-space:normal}
 #workspace .title-more-list button:hover{background:#f1f4f9}
 .title-more-list button[aria-current=true]{font-weight:700;color:#244abf}
 .title-more-list button[aria-current=true]::after{content:'\2713';margin-left:auto}
}
@media(max-width:380px){#main-content>header{gap:4px}#title{font-size:22px}#title-actions{gap:4px;margin-left:8px}}
@media(max-width:360px){#title{font-size:20px}#workspace #title-actions .primary,#workspace .title-more-toggle{width:38px;height:38px;min-height:38px}}
@media(prefers-reduced-motion:no-preference){@media(max-width:600px){.title-more[data-open] .title-more-list{animation:enter-view .12s ease both}}}
/* At tablet widths the report selector still occupies a second row, so keep that header non-sticky. */
@media(min-width:601px) and (max-width:1150px){#main-content>header:has(.report-selector){position:static}}
/* Reports, round 2: the result sits on its own plate, export is in the plate heading, group and day headings stay under the page header, week arrows. */
@media(min-width:601px){#title-actions.report-selector button[aria-current="true"]{background:#e8f1ff;border-color:#8eb2ec;color:#245da8;font-weight:700}}
.workload-day>header{margin:0}
.report-tools label:has(>input[type="text"]){flex:0 1 240px}
.report-tools.employee-range-tools>.report-date-range-label{display:grid;align-content:end;gap:4px}
@media(max-width:600px){.report-tools.employee-range-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.report-tools.employee-range-tools>.report-date-range-label{grid-column:auto}.report-tools.employee-range-tools.employee-selectable-tools>.report-employee-select{grid-column:1;min-width:0;align-self:end}.report-tools.employee-range-tools.employee-selectable-tools>.sort-menu{grid-column:2;justify-self:end;align-self:end;width:auto}.report-tools.employee-range-tools>.sort-menu{grid-column:1/-1}.report-tools.employee-range-tools>button.primary{grid-column:1/-1}.report-employee-select select{width:100%;min-width:0;max-width:100%}}
.report-summary-compact span:not(:first-child)::before{content:"·";margin-right:14px;color:#a4afbf}
@media(min-width:1001px) and (max-width:1499px){.workload-week{grid-template-columns:repeat(4,minmax(0,1fr))}}
#main-content .weekly-report-output,#main-content .workload-scroll{background:var(--surface,#fff);border:1px solid #e4e9f1;border-radius:18px;box-shadow:0 6px 22px #21385c0a}
#main-content .weekly-report-output:empty{display:none}
.report-plate-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;padding:14px 20px;border-bottom:1px solid #e4e9f1}
.report-plate-head h2{margin:0;font-size:1.05rem}
.report-plate-head .hint{margin:0}
.report-plate-head .report-export-actions{margin:0 0 0 auto;gap:6px}
.report-plate-head .report-export-actions button{min-height:34px;padding:5px 10px;font-size:12px}
.weekly-report-output .report-summary-compact{padding:10px 20px}
.weekly-report-output .report-visit-groups{padding:12px}
.workload-scroll .workload-week{padding:12px}
.weekly-report-output .report-visit-groups>p{margin:4px 8px 6px;color:#77859c}
.report-visit-group h3{position:sticky;top:var(--sticky-top,0px);z-index:3;margin:0;padding:7px 0 6px;background:inherit}
.report-visit-group.report-group-today{border-color:var(--accent);background:var(--accent-soft)}
.report-visit-group.report-group-today h3{color:var(--accent)}
.report-visit-date{display:block;color:var(--ink-muted);margin:2px 0}
.report-object-name{margin:4px 0;color:var(--ink-muted)}
.report-object-notes{display:flex;flex-wrap:wrap;gap:5px;margin:5px 0 8px}
.report-object-note{display:inline-block;padding:3px 7px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);overflow-wrap:anywhere}
.workload-day{overflow:clip}
.workload-day>header{position:sticky;top:var(--sticky-top,0px);z-index:3}
.week-step{white-space:nowrap}
@media(max-width:600px){
  .report-plate-head{padding:12px 14px}
  .report-plate-head .report-export-actions{margin:2px 0 0;flex:1 1 100%}
  .report-plate-head .report-export-actions button{flex:1 1 0}
  .weekly-report-output .report-summary-compact{padding:10px 14px}
  .weekly-report-output .report-visit-groups,.workload-scroll .workload-week{padding:10px}
  .report-summary-compact span:not(:first-child)::before{display:none}
  .report-tools.week-tools{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;gap:8px;align-items:end}
  .week-tools .week-word{display:none}
  .week-tools>.week-step{width:100%;padding:0}
  .report-tools.week-tools>label{grid-column:2;margin:0}
  .report-tools.week-tools>label:has(>select){grid-column:1/-1}
  .week-tools>button.primary{grid-column:2/4;width:100%}
}
@media(max-width:650px){
  .workload-day:has(>.workload-day-content>.muted:only-child)>.workload-day-content{display:none}
  .workload-day:has(>.workload-day-content>.muted:only-child)>header{padding:7px 10px}
}

/* ===== 25.10 review (see audit/ui-review-2026-10-25) ===== */
/* B1. State rules written with classes lose to `#workspace button` (specificity 1-0-1): repeat them under #workspace. */
#workspace .row-actions .row-open:focus-visible{outline:none;color:#315cdd;background:#e5edff;border-color:#c3d2ff;box-shadow:0 0 0 3px #c3d2ff}
#workspace .quick-filters button[aria-pressed=true]{background:#e5edff;border-color:#c3d2ff;color:#244abf;font-weight:600}
#workspace .drawer-entity-link{background:transparent;border-color:transparent;box-shadow:none}
#workspace .drawer-entity-link:hover{border-color:#dce7fa;background:#edf3ff;box-shadow:0 2px 8px #315cdd12}
/* B2. Readable secondary text: --muted token (#5f6f87) instead of #77859c / #7a88a0. */
.row p,.hint{color:#5f6f87}
.eyebrow{font-size:11px;color:#5f6f87}
.page-title .eyebrow{color:#5f6f87}
#sidebar footer{color:#56667d}
.object-subtitle{color:#5f6f87}
.report-visit-people .person-text,.report-visit-details>summary{color:#4f5f77}
.profile-trigger-level{color:#4f5f77}
/* B3. Overview: tones, one-line text values, two columns on phones. */
.metric-ok{color:#1d7a46}.metric-warn{color:#9a5a06}.metric-bad{color:#b42318}
.metric-text{font-size:clamp(16px,1.3vw,20px)}
@media(max-width:600px){#content .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#content .metric-grid .card{padding:12px;margin-bottom:0}#content .metric-grid .metric{font-size:17px;line-height:1.25}}
/* B4. Skip link (visible only while focused). */
.skip-link{position:absolute;left:12px;top:-60px;z-index:100;padding:10px 14px;border-radius:12px;background:#fff;color:#1b2940;font-weight:600;text-decoration:none;box-shadow:0 4px 16px #1a2c4533}
.skip-link:focus{top:12px}
/* B5. Refresh button on phones: 44x44 hit area without growing the 58px header. */
@media(max-width:600px){#workspace .refresh-tools button{position:relative}#workspace .refresh-tools button::after{content:"";position:absolute;inset:-8px -5px}}
/* B6. Professions as toggle chips (max two). */
.profession-chips{display:flex;flex-wrap:wrap;gap:8px;min-width:0;margin:0;padding:0;border:0}
.profession-chips legend{flex:0 0 100%;margin:0 0 2px;padding:0;font-size:12px;font-weight:600;color:#53627a}
.profession-chip{position:relative;display:inline-flex;margin:0}
.profession-chip input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.profession-chip span{display:inline-flex;align-items:center;min-height:40px;padding:6px 14px;border:1px solid #dce3ed;border-radius:20px;background:#fff;color:#293952;font-size:14px}
.profession-chip:has(input:checked) span{background:#e5edff;border-color:#c3d2ff;color:#244abf;font-weight:650}
.profession-chip:has(input:focus-visible) span{outline:2px solid #315cdd;outline-offset:2px}
.profession-chip:has(input:disabled) span{opacity:.5}
.profession-chip:has(input:disabled) input{cursor:not-allowed}
.profession-count{margin:2px 0 8px}
/* B7. Gallery: labelled icon rows. */
.gallery-action-group{display:grid;gap:4px;margin:0 0 .6rem}
.gallery-action-group>.gallery-folder-toolbar{margin:0}
.gallery-action-label{font-size:12px;font-weight:650;color:#5f6f87;overflow-wrap:anywhere}
/* B8. Small layout fixes. */
.gallery-photo-grid>.hint{grid-column:1/-1}
@media(min-width:900px){.gallery-search-toolbar{grid-template-columns:minmax(0,1fr) minmax(220px,340px);align-items:stretch}}
@media(max-width:600px){.pager{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.pager>span{grid-column:1/-1;order:-1;text-align:center}}
@media(min-width:601px) and (max-width:900px){.visit-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* B9. Nothing readable below 12px (ids 11px, pills inside fixed circles and the calendar status pill stay as they are). */
.report-visit-people,.report-visit-people .person-text,.report-visit-details>summary,.report-visit-details strong,.report-visit-details blockquote{font-size:12px}
code.entity-id,code.visit-id{font-size:11px}
.visit-participant>p.hint{font-size:12px}
span.badge,.entity-status-chip,.profile-trigger-level{font-size:12px}
.pager-status{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 8px;min-width:0}.pager-status .pager-page{width:4.6em;min-width:0;padding:6px 8px;text-align:center;font-size:13px}.pager-status .pager-go{padding:6px 10px;font-size:12px}
.visit-catalogue>.quick-filters{gap:8px}.visit-catalogue>.quick-filters button{padding:4px 8px}
.gallery-pagination .pager-page{width:5em;min-height:44px}.gallery-page-size{display:flex;align-items:center;gap:.6rem;font-size:13px;color:#647086}.gallery-page-size select{flex:0 0 auto;width:auto;min-width:5rem}
@media(max-width:600px){.pager>.pager-status{grid-column:1/-1;order:-1}}
