/* Phase 45.47.13 — compact role header + mobile interaction stability */
body.lfp454713-compact-workspace{
  --lfp713-green:#214f3d;
  --lfp713-ink:#17382d;
  --lfp713-gold:#c6a64b;
  --lfp713-line:rgba(25,71,53,.14);
}
/* The public launch/fallback header belongs to public browsing, not logged-in workspaces. */
body.lfp454713-compact-workspace .lfp-phase403-fallback-nav{display:none!important}
/* Hide common theme public mastheads on logged-in role pages. The Phase 45.47.13 rolebar remains visible. */
body.lfp454713-compact-workspace #masthead,
body.lfp454713-compact-workspace .site-header,
body.lfp454713-compact-workspace header.site-header,
body.lfp454713-compact-workspace .wp-site-blocks>header,
body.lfp454713-compact-workspace .wp-block-template-part>header{display:none!important}
/* Remove duplicate WordPress/page title chrome above the actual workspace shell. */
body.lfp454713-compact-workspace main>.entry-header,
body.lfp454713-compact-workspace .site-main>.entry-header,
body.lfp454713-compact-workspace .entry-content>.wp-block-post-title,
body.lfp454713-compact-workspace h1.entry-title{display:none!important}

.lfp454713-rolebar{position:sticky;top:0;z-index:99990;width:100%;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid var(--lfp713-line);box-shadow:0 8px 24px rgba(18,52,40,.07)}
body.admin-bar .lfp454713-rolebar{top:32px}
.lfp454713-rolebar-inner{max-width:1240px;min-height:62px;margin:0 auto;padding:7px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.lfp454713-brand{display:flex;align-items:center;gap:10px;min-width:0;color:var(--lfp713-ink)!important;text-decoration:none!important}
.lfp454713-brand img{width:38px;height:38px;object-fit:contain;border:1px solid rgba(198,166,75,.5);border-radius:12px;background:#fff}
.lfp454713-brand>span{display:grid;min-width:0;line-height:1.1}.lfp454713-brand small{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#6a7d74}.lfp454713-brand strong{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lfp454713-role-actions{display:flex;align-items:center;gap:8px}.lfp454713-home,.lfp454713-role-menu>summary{display:flex;align-items:center;justify-content:center;min-height:42px;border:1px solid var(--lfp713-line);border-radius:13px;background:#fff;color:var(--lfp713-ink)!important;text-decoration:none!important;font-weight:850;cursor:pointer}
.lfp454713-home{width:42px}.lfp454713-role-menu{position:relative;margin:0}.lfp454713-role-menu>summary{gap:8px;padding:8px 13px;list-style:none}.lfp454713-role-menu>summary::-webkit-details-marker{display:none}.lfp454713-role-menu>summary span{font-size:19px}.lfp454713-role-menu[open]>summary{border-color:rgba(198,166,75,.65);background:#fffaf0}
.lfp454713-menu-panel{position:absolute;right:0;top:calc(100% + 9px);width:min(360px,92vw);max-height:min(72vh,650px);overflow:auto;padding:12px;border:1px solid var(--lfp713-line);border-radius:18px;background:#fff;box-shadow:0 22px 58px rgba(14,42,32,.2)}
.lfp454713-menu-user{display:grid;gap:2px;padding:8px 9px 12px;border-bottom:1px solid var(--lfp713-line)}.lfp454713-menu-user strong{font-size:14px;color:var(--lfp713-ink)}.lfp454713-menu-user small{font-size:11px;color:#6a7d74;overflow-wrap:anywhere}
.lfp454713-menu-panel nav{display:grid;gap:5px;padding:10px 0}.lfp454713-menu-panel nav a{display:grid;grid-template-columns:34px 1fr;align-items:center;gap:9px;min-height:44px;padding:7px 9px;border-radius:11px;color:var(--lfp713-ink)!important;text-decoration:none!important}.lfp454713-menu-panel nav a:hover,.lfp454713-menu-panel nav a:focus{background:#f5f9f6}.lfp454713-menu-panel nav a span{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:rgba(33,79,61,.08);font-weight:900}.lfp454713-menu-panel nav a strong{font-size:13px}
.lfp454713-menu-foot{display:flex;justify-content:space-between;gap:8px;padding-top:10px;border-top:1px solid var(--lfp713-line)}.lfp454713-menu-foot a{font-size:12px;font-weight:800;color:var(--lfp713-green)!important;text-decoration:none!important}

/* Dashboard subheader stays close to content; no need to scroll through a public header first. */
body.lfp454713-compact-workspace .lfp454711-topbar{position:sticky;top:70px;z-index:9990;margin-top:8px!important}
body.admin-bar.lfp454713-compact-workspace .lfp454711-topbar{top:102px}
/* Prevent focus/selection chrome from moving the page; browser may only scroll enough to keep the focused control visible. */
body.lfp454713-compact-workspace input,
body.lfp454713-compact-workspace select,
body.lfp454713-compact-workspace textarea,
body.lfp454713-compact-workspace button{scroll-margin-top:150px}

@media(max-width:782px){
  body.admin-bar .lfp454713-rolebar{top:46px}
  body.admin-bar.lfp454713-compact-workspace .lfp454711-topbar{top:116px}
  .lfp454713-rolebar-inner{min-height:58px;padding:6px 10px}.lfp454713-brand img{width:34px;height:34px}.lfp454713-brand small{display:none}.lfp454713-brand strong{font-size:15px}.lfp454713-home{display:none}.lfp454713-role-menu>summary{min-height:40px;padding:7px 10px}.lfp454713-role-menu>summary b{font-size:13px}.lfp454713-menu-panel{position:fixed;top:calc(58px + env(safe-area-inset-top));right:8px;left:8px;width:auto;max-height:calc(100dvh - 76px);border-radius:17px}
  body.admin-bar .lfp454713-menu-panel{top:calc(104px + env(safe-area-inset-top));max-height:calc(100dvh - 120px)}
  body.lfp454713-compact-workspace .lfp454711-topbar{top:66px}
}
@media(max-width:480px){
  body.lfp454713-compact-workspace .lfp454710-dashboard-shell{margin-top:6px!important}
  body.lfp454713-compact-workspace .lfp454710-hero{padding-top:10px!important;padding-bottom:10px!important}
  .lfp454713-menu-panel nav{grid-template-columns:1fr 1fr;gap:6px}.lfp454713-menu-panel nav a{grid-template-columns:30px 1fr;min-height:48px;padding:7px}.lfp454713-menu-panel nav a span{width:28px;height:28px}.lfp454713-menu-panel nav a strong{font-size:12px}
}
