/* Odeen App Shell 2: shared frame and tokens. Screen adapters own their content only. */
:root{--os2-green:#15803d;--os2-mint:#dff3e6;--os2-ink:#0f2d4d;--os2-bg:#f7faf8;--os2-line:#dce7e2;--os2-muted:#5c716b;--os2-radius:18px;--os2-safe:env(safe-area-inset-bottom,0px)}
body.os2{-webkit-tap-highlight-color:transparent;}
.os2-skip{position:fixed;inset:8px auto auto 8px;z-index:20000;transform:translateY(-200%);border:2px solid #15803d;border-radius:12px;background:white;color:#0f2d4d;padding:12px 18px;font:inherit;min-height:44px;}
.os2-skip:focus{transform:none;}
body.os2 :focus-visible{outline:3px solid #16a34a;outline-offset:3px;}
body.os2[data-shell-surface=spa],body.os2[data-shell-surface=client],body.os2[data-shell-surface=lawyer],body.os2[data-shell-surface=admin],body.os2.ns-access{height:var(--os2-height,100dvh)!important;min-height:0!important;max-height:var(--os2-height,100dvh)!important;overflow:hidden!important;}
body.os2.os2-visual:not(.os2-zoom):is([data-shell-surface=spa],[data-shell-surface=client],[data-shell-surface=lawyer],[data-shell-surface=admin],.ns-access){position:fixed!important;inset:var(--os2-offset,0px) 0 auto!important;width:100%!important;height:var(--os2-height)!important;}
body.os2[data-shell-surface=spa] #app-content{flex:1 1 0!important;min-height:0!important;}
body.os2[data-shell-surface=spa][data-shell-mode=task] #bottom-nav,body.os2[data-shell-surface=spa][data-shell-mode=step] #bottom-nav,body.os2[data-shell-surface=spa][data-shell-mode=payment] #bottom-nav,body.os2[data-shell-surface=spa][data-shell-mode=media] #bottom-nav{display:none!important;}
body.os2[data-shell-surface=spa].os2-keyboard:not([data-shell-mode=media]) #app-header .row.sub{display:none!important;}
body.os2.os2-keyboard[data-shell-surface=spa] #app-header .row.top{min-height:44px!important;height:44px!important;}
body.os2.os2-keyboard[data-shell-surface=spa] #app-header .odeen-brand-emblem{width:30px!important;height:30px!important;flex-basis:30px!important;}
body.os2.os2-keyboard[data-shell-surface=spa] #app-header .odeen-brand-wordmark{width:87px!important;flex-basis:87px!important;}
body.os2[data-shell-surface=spa].os2-keyboard #bottom-nav{display:none!important;}
body.os2.ns-portal .cj-shell{height:var(--os2-height)!important;min-height:0!important;}
/* Professional workspace: persistent native frame without taking away its destinations. */
body.os2[data-shell-surface=lawyer]{--lc-accent:#15803d;--lc-bg:#f7faf8;--lc-line:#dce7e2;--lc-text:#0f2d4d;background:#f7faf8!important;}
body.os2[data-shell-surface=lawyer] .lc-shell{height:100%!important;min-height:0!important;overflow:hidden;}
body.os2[data-shell-surface=lawyer] .lc-sidebar{height:var(--os2-height)!important;min-height:0!important;}
body.os2[data-shell-surface=lawyer] .lc-main{height:100%!important;min-height:0!important;display:flex;flex-direction:column;overflow:hidden;}
body.os2[data-shell-surface=lawyer] .lc-content{order:1;flex:1 1 0!important;min-height:0!important;overflow:auto;overscroll-behavior:contain;padding-bottom:24px!important;scroll-padding-block:20px;}
body.os2[data-shell-surface=lawyer] .lc-topbar{position:relative!important;flex:none;background:#fff!important;backdrop-filter:none;border-color:var(--os2-line);}
body.os2[data-shell-surface=lawyer] .lc-bottom-nav{order:2;position:relative!important;inset:auto!important;flex:none!important;transform:none!important;background:#fff!important;border-color:var(--os2-line)!important;height:auto!important;min-height:68px;padding-bottom:calc(7px + var(--os2-safe))!important;}
body.os2[data-shell-surface=lawyer] .lc-bottom-nav a{min-height:48px;font-size:11px;}
body.os2[data-shell-surface=lawyer] .lc-bottom-nav a.is-active{color:#15803d;background:#edf7f1;}
body.os2[data-shell-surface=lawyer].os2-keyboard .lc-bottom-nav{display:none!important;}
body.os2[data-shell-surface=lawyer] .lc-brand-mark{width:38px!important;height:38px!important;min-width:38px!important;color:transparent!important;background:url('/assets/branding/odeen-green-v1/emblem.svg') center/contain no-repeat!important;box-shadow:none!important;}
body.os2[data-shell-surface=admin]{background:#f7faf8!important;}
body.os2[data-shell-surface=admin] .admin-layout{height:100%!important;min-height:0!important;overflow:hidden;}
body.os2[data-shell-surface=admin] .admin-main{height:100%!important;min-height:0!important;overflow:auto;overscroll-behavior:contain;scroll-padding-top:90px;}
body.os2[data-shell-surface=admin] .admin-globalbar{position:sticky!important;top:0!important;z-index:60;background:#fff!important;}
body.os2[data-shell-surface=admin] .admin-sidebar{height:var(--os2-height)!important;min-height:0!important;}
body.os2[data-shell-surface=admin] .admin-sidebar__brand-link::before{content:'';display:block;width:36px;height:36px;flex:none;background:url('/assets/branding/odeen-green-v1/emblem.svg') center/contain no-repeat;}
/* Safe focused access screen: keep original forms, validation and MFA handlers. */
body.os2[data-shell-surface=access]:not(.ns-access){height:var(--os2-height);min-height:0!important;padding:0!important;overflow:hidden;background:#f7faf8!important;}
body.os2[data-shell-surface=access]:not(.ns-access)>:is(main,.shell,.app,.wrap,.card,.auth-container,.container){box-sizing:border-box;min-height:0!important;max-height:var(--os2-height);overflow-y:auto;overscroll-behavior:contain;scroll-padding:24px;}
body.os2[data-shell-surface=access] input:not([type=checkbox]):not([type=hidden]){font-size:16px!important;scroll-margin-block:24px;}
body.os2[data-shell-surface=access] :is(.mark,.brand>.dot){background:url('/assets/branding/odeen-green-v1/emblem.svg') center/contain no-repeat!important;color:transparent!important;box-shadow:none!important;min-width:36px;min-height:36px;}
/* Consultation templates use the same frame; their forms remain authoritative. */
body.os2[data-shell-surface=consultation]{height:var(--os2-height);min-height:0!important;margin:0;overflow:hidden;background:#f7faf8;}
body.os2[data-shell-surface=consultation] .app-shell{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;}
body.os2[data-shell-surface=consultation] .app-header{flex:none;position:relative!important;}
body.os2[data-shell-surface=consultation] .app-main{flex:1 1 0!important;min-height:0!important;overflow:auto;overscroll-behavior:contain;}
body.os2[data-shell-surface=consultation] .app-bottom-nav{display:none!important;}
body.os2[data-shell-surface=consultation] .consult-page{height:100%!important;min-height:0!important;overflow:hidden;}
body.os2[data-shell-surface=consultation] .consult-container{height:100%!important;min-height:0!important;max-width:600px!important;margin:0 auto!important;overflow:auto;}
body.os2[data-shell-surface=consultation] .consult-container .app-header{position:sticky!important;top:0;z-index:20;background:white;}
/* Media / document studio: tokens only. Never change canvas, video or iframe coordinates. */
body.os2[data-shell-surface=studio] .ocr65-topbar,body.os2[data-shell-surface=video] :is(.v6836-topbar,.v6836-client-head){border-color:#dce7e2;}
body.os2[data-shell-surface=studio] .ocr65-brand::before,body.os2[data-shell-surface=video] :is(.v6836-topbar,.v6836-client-head)::before{content:'';display:inline-block;vertical-align:middle;width:28px;height:28px;flex:none;background:url('/assets/branding/odeen-green-v1/emblem.svg') center/contain no-repeat;}
body.os2[data-shell-surface=studio] .ocr65-primary,body.os2[data-shell-surface=video] .v6836-primary{background:#15803d!important;}
@media(max-width:600px){body.os2[data-shell-surface=lawyer] .lc-topbar{min-height:56px!important;padding:8px 12px!important;}body.os2[data-shell-surface=lawyer] .lc-topbar-leading strong{white-space:normal;font-size:16px;}body.os2[data-shell-surface=lawyer] .lc-search{display:none;}body.os2[data-shell-surface=admin] .admin-globalbar{flex-wrap:wrap;gap:6px;}}
@media(prefers-reduced-motion:reduce){body.os2 *,body.os2 *::before,body.os2 *::after{scroll-behavior:auto!important;transition:none!important;}}
@media print{body.os2{height:auto!important;max-height:none!important;overflow:visible!important;position:static!important;}body.os2 .os2-skip,body.os2 [data-shell-region=header],body.os2 [data-shell-region=navigation]{display:none!important;}body.os2 [data-shell-region=content]{overflow:visible!important;height:auto!important;max-height:none!important;}}

/* Access wrappers must shrink with the keyboard, including legacy recovery cards. */
body.os2[data-shell-surface=access]:not(.ns-access)>.shell{height:var(--os2-height)!important;align-items:safe center;}
body.os2[data-shell-surface=access]:not(.ns-access)>.card{margin-block:0!important;max-width:100%;}
body.os2[data-shell-surface=access]:not(.ns-access).os2-keyboard>.shell{align-items:start;}
