/* One logo header across pages. Reserve its measured height exactly once. */
body.lm-header-unified,
body.lm-header-unified.lm-menu-page {
 display:block!important;box-sizing:border-box;min-width:0;
 padding:var(--lm-help-header-height,112px) 12px 24px!important;
}
body.lm-header-unified #lm-help-header {
 position:fixed!important;inset:0 0 auto!important;z-index:900;
 box-sizing:border-box;background:#fff;
 padding:12px 16px!important;box-shadow:0 3px 12px #00361520;
}
#lm-help-header .lm-header-inner {width:100%;max-width:1200px;min-width:0;margin:auto;}
#lm-help-header .lm-logo {display:block;margin-left:auto!important;margin-right:auto!important;}
body.lm-header-unified>.container,
body.lm-header-unified>main,
body.lm-header-unified>.dashboard-card,
body.lm-header-unified>.billing-card {box-sizing:border-box;min-width:0;max-width:100%;}
body.lm-header-unified>.login-card {box-sizing:border-box;width:100%;max-width:440px;min-width:0;margin:12px auto 0;}
body.lm-header-unified.lm-menu-page>.dashboard-card {margin:12px auto 0!important;}
#lm-help-header #lmAccount {box-sizing:border-box;min-width:0;max-width:100%;margin:10px 0 0!important;}
#lmAccount nav {min-width:0;flex-wrap:wrap!important;}
html:has(body.lm-header-unified) {scroll-padding-top:calc(var(--lm-help-header-height,112px) + 16px);}
body.lm-header-unified input,body.lm-header-unified select,body.lm-header-unified textarea {scroll-margin-top:calc(var(--lm-help-header-height,112px) + 16px);}
/* Compact help links; only the start and login pages receive this class. */
.lm-help-links {
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 20px;
 width:100%;max-width:760px;box-sizing:border-box;margin:24px auto 0;
 padding:14px 0 0!important;border:0!important;border-top:1px solid #c6dccb!important;
 border-radius:0!important;background:none!important;
}
.lm-help-links a,.lm-help-links a:visited {
 display:flex!important;align-items:center;justify-content:flex-start;gap:9px;
 box-sizing:border-box;min-width:0;min-height:44px;padding:6px 0!important;
 border:0!important;border-radius:0!important;background:none!important;
 color:#07ac2b!important;font:500 14px/1.4 'Segoe UI',sans-serif;
 text-decoration:none!important;text-align:left;white-space:normal!important;overflow-wrap:anywhere;
}
.lm-help-links a:hover span {text-decoration:underline;}
.lm-link-icon {display:block;flex:0 0 19px;width:19px;height:19px;color:currentColor;}
.lm-help-links a:focus-visible,.lm-first-trustee:focus-visible {outline:3px solid #07ac2b;outline-offset:3px;}
.sub-links .lm-first-trustee {display:flex;align-items:center;gap:9px;text-align:left;font:500 14px/1.4 'Segoe UI',sans-serif;min-height:44px;color:#07ac2b;background:none;border:0;padding:6px 0;cursor:pointer;}
/* Top-layer document viewers need their own header; the page header stays behind. */
.preview-dialog.lm-document-viewer {
 position:fixed;inset:0;margin:0;box-sizing:border-box;width:100vw;max-width:100vw;
 height:100dvh;max-height:100dvh;padding:12px 16px;border:0;border-radius:0;
}
.preview-dialog.lm-document-viewer[open] {display:flex;flex-direction:column;gap:12px;}
.preview-dialog.lm-document-viewer .lm-document-logo {flex:0 0 auto;background:#fff;}
.preview-dialog.lm-document-viewer .lm-logo>img {object-fit:initial!important;}
.preview-dialog.lm-document-viewer header {flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;}
.preview-dialog.lm-document-viewer header strong {min-width:0;overflow-wrap:anywhere;}
.preview-dialog.lm-document-viewer header button {flex:0 0 auto;min-height:44px;}
.preview-dialog.lm-document-viewer .preview-content {flex:1 1 0;min-height:0;width:100%;height:auto;overflow:auto;}
.preview-dialog.lm-document-viewer>p {flex:0 0 auto;margin:0;}
.lm-dialog-logo {position:sticky;top:0;z-index:2;background:#fff;padding:6px 0 12px;margin-bottom:12px;}
@media(max-width:640px){
 body.lm-header-unified #lm-help-header {padding:10px 12px!important;}
 body.lm-header-unified>.login-card {padding:20px 16px;border-radius:18px;}
 .lm-help-links {gap:2px 14px;}
 #lmAccount>span {flex-basis:100%;margin-left:0!important;text-align:left!important;}
 .preview-dialog.lm-document-viewer {padding:10px 12px;}
 .preview-dialog.lm-document-viewer header {flex-wrap:wrap;}
}
@media(max-width:340px){.lm-help-links {grid-template-columns:minmax(0,1fr);}}
@media print {
 body.lm-header-unified #lm-help-header {position:static!important;transform:none!important;box-shadow:none!important;padding:0 0 12px!important;}
 body.lm-header-unified,body.lm-header-unified.lm-menu-page {padding:0!important;}
 #lm-help-header #lmAccount,.lm-help-links {display:none!important;}
}

/* Keep the public logo visible while private page content awaits validation. */
html.lm-session-pending body>#lm-help-header {visibility:visible;}

/* File actions stay inside the vault, including installed iPhone web apps. */
.preview-dialog.lm-document-viewer .lm-attachment-footer{flex:0 0 auto;max-height:40dvh;overflow:auto;padding-bottom:env(safe-area-inset-bottom,0px)}
.preview-dialog.lm-document-viewer .lm-attachment-actions{display:flex;flex-wrap:wrap;gap:8px}
.preview-dialog.lm-document-viewer .lm-attachment-actions button,.preview-dialog.lm-document-viewer header button{box-sizing:border-box;min-height:44px;padding:10px 14px;border:1px solid #c6dccb;border-radius:8px;background:#fff;color:#07ac2b;font:500 14px/1.4 "Segoe UI",-apple-system,BlinkMacSystemFont,sans-serif;text-align:left;cursor:pointer}
.preview-dialog.lm-document-viewer .lm-attachment-actions button:disabled{opacity:.6;cursor:default}
.preview-dialog.lm-document-viewer .lm-attachment-status{font:400 14px/1.4 "Segoe UI",-apple-system,BlinkMacSystemFont,sans-serif;margin:8px 0 0;overflow-wrap:anywhere}
.preview-dialog.lm-document-viewer header{justify-content:flex-start}
.preview-dialog.lm-document-viewer .lm-attachment-footer .actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.preview-dialog.lm-document-viewer .lm-attachment-footer>p{font-size:14px;margin:6px 0}

body .updates-page .install-status[data-state=success]{color:#07ac2b!important;background:#c6dccb!important;border-color:#c6dccb!important;}
