/* Shared workstation chrome; measured in JS so translated text never covers content. */
:root{--app-footer-height:34px;--app-bottom-nav-height:0px}
body.orbit-app .app-header.app-header{display:flex!important;align-items:center;gap:12px;padding:10px 24px;min-height:68px;height:auto!important;flex-wrap:nowrap}
body.orbit-app .app-header.app-header .app-search{position:relative;display:flex;flex:1 1 360px!important;width:auto!important;min-width:160px!important;max-width:720px!important;height:44px;margin:0;padding:0 13px;gap:9px}
body.orbit-app .app-header.app-header .app-search input{flex:1;width:100%;min-width:0;font-size:15px}
body.orbit-app .app-header.app-header .app-search input::placeholder{color:var(--ui-muted);opacity:1}
body.orbit-app .app-header.app-header .app-search:focus-within{position:relative;left:auto;right:auto;top:auto;transform:none;z-index:62}
body.orbit-app .app-header.app-header #app-search-results{left:0;right:0;min-width:0;max-height:min(60dvh,480px);overflow:auto}
.orbit-app .app-header-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto;margin-left:auto;min-width:0}
.orbit-app .app-header-actions :is(.app-header-action,.app-signout,.app-preferences button){position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:44px;width:auto;margin:0;padding:8px 10px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-surface);color:var(--ui-ink);text-decoration:none;font:inherit;font-size:13px;line-height:1.25;white-space:nowrap;cursor:pointer}
.orbit-app .app-header-actions :is(.app-header-action,.app-signout,.app-preferences button):hover{background:var(--ui-soft);border-color:var(--ui-link)}
.orbit-app .app-header-actions :is(a,button):focus-visible{outline:2px solid var(--ui-link);outline-offset:2px}
.orbit-app .app-header-actions .app-preferences{display:flex;align-items:center;gap:6px;margin:0}
body.orbit-app .app-header.app-header .app-header-actions .app-preferences button{height:44px!important;min-height:44px!important}
.orbit-app .app-header-actions form{margin:0;padding:0;flex:0 0 auto}
.orbit-app .app-header-actions svg{width:19px;height:19px;flex:none}
.orbit-app .app-header-actions .app-header-action:first-child .app-header-action-label{display:none}
.orbit-app .app-header-actions b{position:absolute;top:-5px;right:-4px;min-width:17px;padding:2px 4px;border-radius:12px;background:#c52139;color:#fff;font-size:10px;line-height:1.2;border:2px solid var(--ui-surface)}
.orbit-app .app-header-actions b[hidden]{display:none}
body.orbit-app .app-header.app-header .app-current-scope[hidden]{display:none!important}
body.orbit-app .app-header.app-header .app-scope-trigger{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;margin:0;padding:9px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-surface);color:var(--ui-muted)}
body.orbit-app .app-header.app-header .app-scope-trigger svg{width:20px;height:20px}
body.orbit-app .app-header.app-header .app-scope-trigger span{display:none}
.orbit-app .app-scope-sheet #app-scope-sheet-body{display:grid;gap:18px}
.orbit-app .app-scope-sheet .app-scope-controls{display:grid;grid-template-columns:1fr;max-width:none;width:100%}
.orbit-app .app-scope-sheet .app-header-refresh{margin:0;width:100%}
.orbit-app .app-scope-sheet .app-header-refresh button{min-height:44px;width:100%}
.orbit-app .app-main{padding-bottom:calc(var(--app-footer-height) + var(--app-bottom-nav-height) + 16px)}
body.orbit-app .app-footer.app-footer{position:fixed;left:236px;right:0;bottom:0;z-index:64;display:grid!important;grid-template-columns:auto 1fr auto;align-items:center;gap:8px 20px!important;min-height:0!important;height:auto;margin:0!important;padding:6px 24px!important;background:var(--ui-surface);border-top:1px solid var(--ui-line);color:var(--ui-muted);font-size:11px;line-height:1.35}
.orbit-app .app-footer :is(small,span,a){font-size:11px;line-height:1.35;margin:0}
.orbit-app .app-footer-brand{display:flex;align-items:center;gap:10px;min-width:0}
body.orbit-app .app-footer .app-footer-brand{padding:0;margin:0;border:0;background:transparent;box-shadow:none}
.orbit-app .app-footer .app-footer-credit{color:var(--ui-link);font-size:13px;font-weight:750;white-space:nowrap;text-decoration:none}
.orbit-app .app-footer .app-footer-feedback{text-align:center;white-space:normal;min-width:0;max-width:100%;overflow-wrap:anywhere}
.orbit-app .app-footer-version{white-space:nowrap;text-align:right}
:root[lang] .orbit-app .app-footer :is(small,span){font-size:11px}
.orbit-app .store-entry-shortcuts{bottom:calc(var(--app-footer-height) + var(--app-bottom-nav-height) + 12px)}
.orbit-app #orbit-agent #agent-launcher{bottom:calc(var(--app-footer-height) + var(--app-bottom-nav-height) + 12px)}
.orbit-app #orbit-agent:not([data-keyboard=true]) #agent-panel{bottom:calc(var(--app-footer-height) + var(--app-bottom-nav-height) + 68px);height:min(500px,calc(var(--agent-visible-height,100dvh) - var(--app-footer-height) - var(--app-bottom-nav-height) - 100px))}
@media(min-width:901px) and (max-width:1240px){body.orbit-app .app-header.app-header{gap:8px;padding:10px 16px}.orbit-app .app-header-actions .app-header-action-label,.orbit-app .app-header-actions .app-signout span,.orbit-app .app-header-actions [data-ui-theme-label]{display:none}.orbit-app .app-header-actions{gap:5px}.orbit-app .app-header-actions :is(.app-header-action,.app-signout,.app-preferences button){padding:8px}.orbit-app .app-footer-tagline{display:none}}
@media(max-width:900px){
 :root{--app-footer-height:50px;--app-bottom-nav-height:64px}
 body.orbit-app .app-header.app-header{left:0;right:0;top:56px;display:grid!important;grid-template-columns:minmax(0,1fr) 44px;gap:7px 8px;padding:8px 14px;min-height:0}
 body.orbit-app .app-header.app-header .app-search{width:100%!important;max-width:none!important;min-width:0!important;height:44px;grid-column:1;grid-row:1;flex:auto}
 body.orbit-app .app-header.app-header .app-scope-trigger{grid-column:2;grid-row:1}
 .orbit-app .app-header-actions{grid-column:1/-1;grid-row:2;width:100%;justify-content:flex-end;gap:8px}
 .orbit-app .app-header-actions :is(.app-header-action,.app-signout,.app-preferences button){padding:8px 10px;font-size:13px;min-height:44px}
 .orbit-app .app-header-actions .app-header-action-label,.orbit-app .app-header-actions .app-signout span,.orbit-app .app-header-actions [data-ui-theme-label]{display:none}
 .orbit-app .app-header-actions .app-preferences{gap:8px}
 body.orbit-app .app-main.app-main{margin:56px 0 0!important;padding-bottom:calc(var(--app-footer-height) + var(--app-bottom-nav-height) + 16px)}
 body.orbit-app .app-footer.app-footer{left:0;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px!important;padding:5px 14px calc(5px + env(safe-area-inset-bottom))!important;font-size:10px;line-height:1.3}
 .orbit-app .app-footer :is(small,span,a){font-size:10px;line-height:1.3}
 .orbit-app .app-footer .app-footer-credit{font-size:12px}
 .orbit-app .app-footer-brand{grid-column:1;grid-row:1;gap:8px}
 .orbit-app .app-footer .app-footer-version{grid-column:2;grid-row:1;font-size:9px}
 .orbit-app .app-footer .app-footer-feedback{grid-column:1/-1;grid-row:2;text-align:center;font-size:10px}
 :root[lang] .orbit-app .app-footer :is(small,span){font-size:10px!important}
 :root[lang] .orbit-app .app-footer .app-footer-version{font-size:9px}
 .orbit-app .app-bottom-nav{bottom:var(--app-footer-height);display:flex;flex-wrap:wrap;align-items:stretch;gap:4px;min-height:64px;height:auto;padding:7px 14px;box-sizing:border-box}
 .orbit-app .app-bottom-nav>a{flex:1 1 max-content;min-width:44px;min-height:44px;max-width:100%;box-sizing:border-box}
 .orbit-app .app-bottom-nav>a>span{min-width:0;max-width:100%;flex-shrink:0;white-space:normal;overflow-wrap:anywhere;line-height:1.3;text-align:center}
 .orbit-app .app-bottom-nav>a>svg{flex-shrink:0}
 .orbit-app .personal-save-bar{bottom:calc(var(--app-footer-height) + var(--app-bottom-nav-height) + 8px)}
}
@media(max-width:900px) and (max-height:640px){.orbit-app .personal-save-bar{position:static;bottom:auto}}
@media(max-width:360px){body.orbit-app .app-header.app-header{padding:8px 10px}.orbit-app .app-header-actions{gap:6px}.orbit-app .app-header-actions .app-preferences{gap:6px}.orbit-app .app-footer{padding-left:10px;padding-right:10px}.orbit-app .app-footer-tagline{display:none}}
@media print{body.orbit-app .app-header.app-header,body.orbit-app .app-footer.app-footer,.orbit-app .app-bottom-nav{display:none!important}.orbit-app .app-main{padding-top:0!important;padding-bottom:0!important;margin:0!important}}

body.orbit-app{font-family:"Segoe UI","Nirmala UI",Arial,sans-serif}
body.orbit-app .app-footer .app-footer-credit{background:transparent;border:0;box-shadow:none;padding:0}
body.orbit-app .app-footer .app-footer-tagline{display:inline;font-size:10px!important;white-space:normal}
@media(max-width:360px){body.orbit-app .app-footer .app-footer-tagline{display:none}}
