/* Approved compact header: keep visit identifiers and storage unchanged. */
.auth-locked .asset-identity-card{display:none}
.compact-header-preview .app-header{padding:10px 12px 8px;margin-top:0;border-radius:0;position:sticky;top:0;box-shadow:0 3px 12px #0003}
.compact-header-preview .brand-row{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;align-items:center}
.compact-header-preview .brand{gap:0}.compact-header-preview .brand>span:last-child{display:none}
.compact-header-preview .brand-logo-wrap,.compact-header-preview .brand-logo{width:30px!important;height:30px!important;border-radius:8px}
.compact-header-preview .header-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.compact-header-preview .header-actions button{font-size:12px;min-height:40px;padding:6px 3px;white-space:nowrap;border-radius:10px}
.compact-header-preview #quick-defect{position:static!important;transform:none!important;width:auto;bottom:auto!important;z-index:auto;display:flex;gap:4px;font-size:12px;min-height:40px;margin:0}
.compact-header-preview #quick-defect-count{min-width:21px;padding:2px 5px;font-size:11px;line-height:1.4}
.compact-header-preview #compact-asset-context{margin:9px 0 0;font-size:13px;font-weight:700;line-height:1.5;color:var(--text);overflow-wrap:anywhere}
.compact-header-preview #compact-asset-context{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center}
.compact-header-preview #compact-asset-context>span+span{border-inline-start:1px solid var(--muted);padding-inline-start:8px}
.compact-header-preview .compact-district{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.compact-header-preview .compact-property{white-space:nowrap}
.compact-header-preview #compact-asset-context.expanded .compact-district{white-space:normal}
.compact-header-preview .asset-identity-card>#screen-subtitle{display:none}
.compact-header-preview .asset-identity-card{width:min(390px,100%);margin:0 auto;padding:14px 18px 13px;background:var(--surface);border-bottom:1px solid var(--line)}
.compact-header-preview .asset-identity-card .client-line{margin-top:0;padding:2px 9px 2px 0}
.compact-header-preview .asset-identity-card .project-line{font-size:16px;line-height:1.5}
.compact-header-preview .asset-identity-card h1{font-size:19px;line-height:1.5;margin:8px 0 4px;font-weight:800}
.compact-header-preview .asset-identity-card>p{font-size:13px;line-height:1.6;color:var(--muted);margin:0}
.compact-header-preview main{padding-bottom:100px!important}
.compact-header-preview .sections-menu{top:calc(100% + 4px);left:12px;right:12px;max-height:65vh;overflow:auto}
.compact-header-preview .appearance-shortcut{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0;font-size:14px}
.compact-header-preview .header-context-row{display:grid;grid-template-columns:minmax(0,1fr) 34px;gap:8px;align-items:center;margin-top:8px}
.compact-header-preview .header-context-row #compact-asset-context{margin:0;min-width:0}
.compact-header-preview .header-context-row #theme-toggle{width:34px;min-height:34px;padding:4px;font-size:18px;border-radius:9px;line-height:1;color:#f7fcff;background:linear-gradient(150deg,#426473,#172a34);border:1px solid #668f9e;box-shadow:0 3px 0 #071820,inset 0 2px 0 #c9f5ff5c}
:root[data-theme=light] .compact-header-preview .header-actions button,
:root[data-theme=light] .compact-header-preview .header-actions #quick-defect,
:root[data-theme=light] .compact-header-preview .header-context-row #theme-toggle{color:#173c50!important;background:linear-gradient(155deg,#fff 0%,#edf5f8 55%,#d5e4eb 100%)!important;border:1px solid #7a9cab!important;box-shadow:0 4px 0 #7793a1,0 7px 12px #173c5024,inset 0 2px 0 #fff!important;text-shadow:none;font-weight:800}
:root[data-theme=light] .compact-header-preview #quick-defect-count,
:root[data-theme=light] .compact-header-preview #sync-change-count{background:#173c50!important;color:#fff!important;border:1px solid #173c50}
.compact-header-preview .header-actions button:active,.compact-header-preview #theme-toggle:active{transform:translateY(2px)!important;box-shadow:0 1px 0 #7793a1,inset 0 2px 5px #173c5030!important}
.compact-header-preview .header-actions button:focus-visible,.compact-header-preview #theme-toggle:focus-visible{outline:2px solid #197b93;outline-offset:3px}
@media(max-width:340px){.compact-header-preview .app-header{padding:8px}.compact-header-preview .brand-row{grid-template-columns:26px minmax(0,1fr);gap:5px}.compact-header-preview .brand-logo-wrap,.compact-header-preview .brand-logo{width:26px!important;height:26px!important}.compact-header-preview .header-actions{gap:4px}.compact-header-preview .header-actions button,.compact-header-preview #quick-defect{font-size:11px}.compact-header-preview #compact-asset-context{font-size:12px}}
