/* R70 isolated signed-in shell - one source of truth, no inherited R5 overrides. */
#appView.app:not(.hidden){display:flex!important;flex-direction:column!important;min-height:100vh!important;width:100%!important;max-width:none!important;overflow-x:hidden!important;background:#071a3a!important;color:#edf6ff!important;font-family:"Segoe UI",Arial,sans-serif!important}
#appView.app:not(.hidden) .topbar{display:flex!important;box-sizing:border-box!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:64px!important;padding:14px clamp(18px,4vw,44px)!important;background:#09152f!important;color:#eef7ff!important;border-bottom:1px solid rgba(126,219,255,.35)!important;box-shadow:0 8px 24px rgba(0,0,0,.24)!important}
#appView.app:not(.hidden) .logo-name{color:#f4f9ff!important}.topbar .logo-tag,.topbar .whoami{color:#b7c8e2!important}.topbar .btn-ghost{background:#102c55!important;color:#edf6ff!important;border:1px solid #3d719f!important}.topbar .role-chip{background:#2a315a!important;color:#ffe2a0!important;border:1px solid #8a7a53!important}.topbar .spacer{flex:1!important}
#appView.app:not(.hidden) .intro-band{box-sizing:border-box!important;display:block!important;width:100%!important;max-width:1400px!important;margin:0 auto!important;padding:20px clamp(18px,4vw,44px) 0!important}
#appView.app:not(.hidden) .intro-band p{box-sizing:border-box!important;display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:16px 19px!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;line-height:1.55!important;background:linear-gradient(120deg,#103567,#192c61)!important;color:#d7e6f6!important;border:1px solid #58bbdf!important;border-left:4px solid #8eefff!important;border-radius:16px!important}
#appView.app:not(.hidden) .module-nav{box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;width:100%!important;max-width:1400px!important;margin:18px auto 0!important;padding:0 clamp(18px,4vw,44px)!important;background:transparent!important;border:0!important}
#appView.app:not(.hidden) .module-nav button{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;width:100%!important;min-width:0!important;min-height:72px!important;padding:14px 18px!important;overflow:hidden!important;background:#102b54!important;color:#eef7ff!important;border:1px solid #4c88b6!important;border-radius:16px!important;box-shadow:none!important}.module-nav button .mn-name{display:block!important;max-width:100%!important;color:#f2f8ff!important;white-space:normal!important;overflow-wrap:anywhere!important}.module-nav button .mn-idx{color:#8deeff!important}.module-nav button.active{background:#1d4f83!important;border-color:#8beaff!important}
#appView.app:not(.hidden) .main{box-sizing:border-box!important;display:block!important;width:100%!important;max-width:1400px!important;margin:0 auto!important;padding:30px clamp(18px,4vw,44px) 120px!important;overflow-x:hidden!important}
#appView.app:not(.hidden) .saas-command-center{box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin:0!important;padding:34px!important;overflow:hidden!important;background:linear-gradient(135deg,#08234a,#124d8a 50%,#392b7c)!important;border:1px solid #68c8f0!important;border-radius:24px!important}.saas-command-center .saas-copy{max-width:650px!important;overflow-wrap:anywhere!important;word-break:break-word!important}.saas-command-center .stats{max-width:100%!important}
#appView.app:not(.hidden) .tabs{position:relative!important;inset:auto!important;max-width:100%!important;overflow-x:auto!important;white-space:nowrap!important}
#appView.app:not(.hidden)::after{content:'R70';position:fixed;right:12px;top:12px;z-index:999;color:#8eefff;font:700 10px/1 Arial;letter-spacing:.13em;pointer-events:none}
/* Phone, tablet and zoomed desktop all share the compact truth. */
@media(max-width:1100px){#appView.app:not(.hidden) .topbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:'brand role' 'manage profile logout'!important;padding:14px!important;gap:8px!important}.topbar .logo{grid-area:brand!important;min-width:0!important}.topbar .role-chip{grid-area:role!important}.topbar #managementLink{grid-area:manage!important}.topbar #profileBtn{grid-area:profile!important}.topbar #logoutBtn{grid-area:logout!important}.topbar .whoami,.topbar .spacer{display:none!important}.topbar #managementLink,.topbar #profileBtn,.topbar #logoutBtn{width:100%!important;padding:9px 6px!important;font-size:10px!important}
#appView.app:not(.hidden) .intro-band,#appView.app:not(.hidden) .module-nav,#appView.app:not(.hidden) .main{box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin:0!important;padding-left:16px!important;padding-right:16px!important}.intro-band{padding-top:16px!important}.intro-band p{max-height:118px!important;overflow:hidden!important}.module-nav{grid-template-columns:1fr!important;margin-top:14px!important;gap:8px!important}.module-nav button{min-height:60px!important}.main{padding-top:22px!important;padding-bottom:190px!important}.saas-command-center{padding:24px 18px!important}.saas-command-center .saas-copy{max-height:3.1em!important;overflow:hidden!important}.tabs{margin-bottom:96px!important}#mfLangPill{display:none!important}#appView.app:not(.hidden)::after{top:auto;bottom:12px;right:12px}}

/* R72 portrait actual-device gate. This covers mobile browsers that expose a desktop-width layout viewport while the screen is portrait. */
@media screen and (orientation:portrait){
 html,body{max-width:100vw!important;overflow-x:hidden!important;background:#071a3a!important}
 #appView.app:not(.hidden){display:block!important;width:100vw!important;max-width:100vw!important;min-width:0!important;overflow-x:hidden!important}
 #appView.app:not(.hidden) .topbar{box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:'brand role' 'manage profile logout'!important;width:100vw!important;max-width:100vw!important;padding:14px!important;gap:8px!important}.topbar .logo{grid-area:brand!important}.topbar .role-chip{grid-area:role!important}.topbar #managementLink{grid-area:manage!important}.topbar #profileBtn{grid-area:profile!important}.topbar #logoutBtn{grid-area:logout!important}.topbar .whoami,.topbar .spacer{display:none!important}.topbar #managementLink,.topbar #profileBtn,.topbar #logoutBtn{width:100%!important;padding:9px 6px!important;font-size:10px!important}
 #appView.app:not(.hidden) .intro-band,#appView.app:not(.hidden) .module-nav,#appView.app:not(.hidden) .main{box-sizing:border-box!important;width:100vw!important;max-width:100vw!important;margin:0!important;padding-left:16px!important;padding-right:16px!important}.intro-band{padding-top:16px!important}.intro-band p{box-sizing:border-box!important;width:100%!important;max-width:100%!important;max-height:118px!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;line-height:1.44!important}
 #appView.app:not(.hidden) .module-nav{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin-top:14px!important}.module-nav button{box-sizing:border-box!important;width:100%!important;min-height:60px!important}
 #appView.app:not(.hidden) .main{padding-top:22px!important;padding-bottom:200px!important}.saas-command-center{box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin:0!important;overflow:hidden!important}.saas-command-center .saas-copy{box-sizing:border-box!important;width:100%!important;max-width:100%!important;max-height:3.1em!important;overflow:hidden!important;word-break:break-word!important;overflow-wrap:anywhere!important}.tabs{position:relative!important;inset:auto!important;width:100%!important;max-width:100%!important;margin-bottom:108px!important;overflow-x:auto!important}#mfLangPill{display:none!important}
}

/* R72.1 registration beacon */
#loginView #registerHeaderBtn span{font-size:10px;letter-spacing:.14em;margin-right:10px;opacity:.72}

/* R73 resolves the actual screenshot defect: long source text never dies at a hard right crop. */
#appView.app:not(.hidden) .platform-note-toggle{display:none}
@media(max-width:1100px){#appView.app:not(.hidden) .intro-band p#platformNoteText{max-height:none!important;overflow:visible!important}#appView.app:not(.hidden) .intro-band.note-collapsed p#platformNoteText{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:4!important;overflow:hidden!important}#appView.app:not(.hidden) .platform-note-toggle{display:inline-flex!important;align-items:center;margin:8px 0 0;padding:7px 10px;background:#113260;color:#a9edff;border:1px solid #5bc8ee;border-radius:8px;font:700 12px/1.2 system-ui;cursor:pointer}#appView.app:not(.hidden) .intro-band{padding-bottom:0!important}.platform-note-toggle:focus-visible{outline:2px solid #fff;outline-offset:2px}}

/* R73.1 current-production identity and visible registration affordance. */
#releaseR73{position:fixed;right:12px;top:12px;z-index:9999;color:#8eefff;font:700 10px/1 Arial;letter-spacing:.14em;pointer-events:none}
#loginView #registerHeaderBtn{display:flex!important;align-items:center!important;visibility:visible!important;opacity:1!important;width:100%!important;margin:14px 0 12px!important;padding:12px 14px!important;border:2px solid #6366e9!important;border-radius:10px!important;background:#eef0ff!important;color:#4547bd!important;font-size:14px!important;font-weight:800!important;text-align:left!important;box-shadow:none!important}
#loginView #registerHeaderBtn span{font-size:10px!important;letter-spacing:.14em!important;margin-right:10px!important;opacity:.75!important}
@media(max-width:1100px){#releaseR73{top:auto;bottom:12px;right:12px}#loginView #registerHeaderBtn{font-size:13px!important;margin:12px 0!important}}

/* R73.2 Touch fallback: Safari can report a desktop layout viewport even when the user agent is a phone. */
html.r73-touch-compact,html.r73-touch-compact body{width:100vw!important;max-width:100vw!important;overflow-x:hidden!important}html.r73-touch-compact #appView.app:not(.hidden){width:100vw!important;max-width:100vw!important;overflow-x:hidden!important}html.r73-touch-compact #appView .intro-band,html.r73-touch-compact #appView .module-nav,html.r73-touch-compact #appView .main{box-sizing:border-box!important;width:100vw!important;max-width:100vw!important;margin:0!important;padding-left:16px!important;padding-right:16px!important}html.r73-touch-compact #appView .module-nav{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin-top:14px!important}html.r73-touch-compact #appView .module-nav button{width:100%!important;min-height:64px!important}html.r73-touch-compact #appView .intro-band p{width:100%!important;max-width:100%!important;box-sizing:border-box!important;max-height:118px!important;overflow:hidden!important;word-break:break-word!important;overflow-wrap:anywhere!important}html.r73-touch-compact #appView .main{padding-top:22px!important;padding-bottom:190px!important}html.r73-touch-compact #appView .saas-command-center{width:100%!important;max-width:100%!important;margin:0!important;overflow:hidden!important}html.r73-touch-compact #appView .saas-command-center .saas-copy{max-height:3.1em!important;overflow:hidden!important;word-break:break-word!important}html.r73-touch-compact #appView .tabs{position:relative!important;inset:auto!important;width:100%!important;max-width:100%!important;margin-bottom:108px!important;overflow-x:auto!important}html.r73-touch-compact #mfLangPill{display:none!important}

/* Emergency live-shell patch: applies to legacy R72/R73 documents still held open by a browser. */
@media (max-width:1200px){
  html,body{max-width:100vw!important;overflow-x:hidden!important}
  #appView.app:not(.hidden){display:block!important;width:100vw!important;max-width:100vw!important;overflow-x:hidden!important}
  #appView.app:not(.hidden) .intro-band,#appView.app:not(.hidden) .module-nav,#appView.app:not(.hidden) .main{box-sizing:border-box!important;width:100vw!important;max-width:100vw!important;margin:0!important;padding-left:16px!important;padding-right:16px!important}
  #appView.app:not(.hidden) .intro-band p{box-sizing:border-box!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:118px!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important}
  #appView.app:not(.hidden) .module-nav{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin-top:14px!important}
  #appView.app:not(.hidden) .module-nav button{box-sizing:border-box!important;width:100%!important;min-height:64px!important;margin:0!important}
  #appView.app:not(.hidden) .main{padding-top:22px!important;padding-bottom:210px!important}
  #appView.app:not(.hidden) .saas-command-center{box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin:0!important;overflow:hidden!important}
  #appView.app:not(.hidden) .saas-command-center .saas-copy{max-height:3.1em!important;overflow:hidden!important;word-break:break-word!important;overflow-wrap:anywhere!important}
  #appView.app:not(.hidden) .tabs{position:relative!important;inset:auto!important;width:100%!important;max-width:100%!important;margin-bottom:112px!important;overflow-x:auto!important}
  #mfLangPill{display:none!important}
  #loginView #registerHeaderBtn{display:flex!important;visibility:visible!important;opacity:1!important;width:100%!important;margin:14px 0 12px!important;padding:12px 14px!important;border:2px solid #6366e9!important;border-radius:10px!important;background:#eef0ff!important;color:#4547bd!important;font-size:14px!important;font-weight:800!important;text-align:left!important}
}
/* R73.4 hard visual viewport fallback. */
@media screen and (max-width:1100px){html,body{width:100vw!important;max-width:100vw!important;overflow-x:hidden!important}#appView.app:not(.hidden){display:block!important;width:100vw!important;max-width:100vw!important;overflow-x:hidden!important}#appView.app:not(.hidden) .intro-band,#appView.app:not(.hidden) .module-nav,#appView.app:not(.hidden) .main{box-sizing:border-box!important;width:100vw!important;max-width:100vw!important;margin:0!important;padding-left:16px!important;padding-right:16px!important}#appView.app:not(.hidden) .intro-band p{box-sizing:border-box!important;width:100%!important;max-width:100%!important;max-height:118px!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important}#appView.app:not(.hidden) .module-nav{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin-top:14px!important}#appView.app:not(.hidden) .module-nav button{width:100%!important;min-height:64px!important}#appView.app:not(.hidden) .main{padding-bottom:210px!important}#mfLangPill{display:none!important}}
/* Final portrait screenshot containment. */
@media (orientation:portrait){html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}#appView.app:not(.hidden){display:block!important;width:100%!important;max-width:100%!important;overflow-x:hidden!important}.intro-band,#appView.app:not(.hidden) .intro-band,.module-nav,#appView.app:not(.hidden) .module-nav,.main,#appView.app:not(.hidden) .main{box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin:0!important;padding-left:16px!important;padding-right:16px!important}.intro-band p,#appView.app:not(.hidden) .intro-band p{box-sizing:border-box!important;width:100%!important;max-width:100%!important;max-height:140px!important;overflow:hidden!important;white-space:normal!important;word-break:break-word!important;overflow-wrap:anywhere!important;line-height:1.48!important}.module-nav,#appView.app:not(.hidden) .module-nav{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}.module-nav button{width:100%!important;min-height:64px!important}.main{padding-bottom:220px!important}.tabs{position:relative!important;inset:auto!important;margin-bottom:120px!important;overflow-x:auto!important}#mfLangPill{display:none!important}}
