/* Workspace hierarchy, contrast and mobile safe area. */
body #overlay[data-panel="workspace"] {--ws-accent:#007f70;--ws-ink:#172b35;--ws-muted:#536675;--ws-surface:#fff;--ws-border:#dce5e8;}
:root[data-theme="dark"] body #overlay[data-panel="workspace"] {--ws-accent:#66dcc7;--ws-ink:#edf5f7;--ws-muted:#b4c6ce;--ws-surface:#18262e;--ws-border:#354650;}
body #overlay.navigation-view[data-panel="workspace"] .workspace-hero {display:flex!important;flex-wrap:wrap;align-items:center;gap:16px;padding:20px!important;background:var(--ws-surface)!important;border:1px solid var(--ws-border);border-radius:20px;color:var(--ws-ink)!important;box-shadow:none;}
body #overlay[data-panel="workspace"] .workspace-hero-brand {flex:1;min-width:180px;gap:12px;}
body #overlay[data-panel="workspace"] .workspace-hero-brand>i {width:48px;height:48px;min-width:48px;border-radius:14px;background:#007f70!important;color:#fff!important;font-size:22px;}
body #overlay[data-panel="workspace"] .workspace-hero-brand span {display:none;}
body #overlay[data-panel="workspace"] .workspace-hero-brand h3 {font-size:22px!important;line-height:1.2;margin:0 0 5px;color:var(--ws-ink)!important;}
body #overlay[data-panel="workspace"] .workspace-hero-brand p {font-size:13px!important;color:var(--ws-muted)!important;margin:0;}
body #overlay[data-panel="workspace"] .workspace-hero-metrics {display:flex!important;gap:20px;}
body #overlay[data-panel="workspace"] .workspace-hero-metrics>span {background:none!important;border:0!important;min-width:0;padding:0!important;font-size:12px;color:var(--ws-muted)!important;}
body #overlay[data-panel="workspace"] .workspace-hero-metrics strong {color:var(--ws-ink)!important;font-size:18px;}
body #overlay[data-panel="workspace"] #workspace-view-plans {color:var(--ws-accent)!important;background:none!important;border:0;font-size:13px;min-height:44px;}
body #overlay.navigation-view[data-panel="workspace"] .workspace-tabs {display:flex!important;gap:8px;padding:4px 0 10px;overflow-x:auto;scrollbar-width:none;}
body #overlay.navigation-view[data-panel="workspace"] .workspace-tabs button {flex:0 0 auto;padding:10px 16px!important;min-height:44px;border-radius:12px!important;border:1px solid var(--ws-border)!important;background:var(--ws-surface)!important;color:var(--ws-muted)!important;font-size:14px;}
body #overlay.navigation-view[data-panel="workspace"] .workspace-tabs button.active {background:#007f70!important;border-color:#007f70!important;color:#fff!important;}
body #overlay[data-panel="workspace"] .employee-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--ws-surface)!important;border:1px solid var(--ws-border)!important;border-left:4px solid #007f70!important;border-radius:16px;padding:20px;color:var(--ws-ink)!important;}
body #overlay[data-panel="workspace"] .employee-heading h3 {font-size:24px!important;line-height:1.2;color:var(--ws-ink)!important;margin:4px 0 8px;}
body #overlay[data-panel="workspace"] .employee-heading p {font-size:14px!important;line-height:1.5;color:var(--ws-muted)!important;max-width:40ch;}
body #overlay[data-panel="workspace"] .employee-eyebrow {color:var(--ws-accent)!important;font-size:11px;letter-spacing:.1em;}
body #overlay[data-panel="workspace"] .employee-heading-actions {display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--ws-ink)!important;}
body #overlay[data-panel="workspace"] .employee-heading-actions small {color:var(--ws-muted)!important;}
body #overlay[data-panel="workspace"] .employee-heading-actions button {background:transparent!important;border:1px solid var(--ws-border)!important;border-radius:10px;color:var(--ws-accent)!important;padding:10px 14px;min-height:44px;margin:0;}
body #overlay.navigation-view[data-panel="workspace"] .employee-invite-card {background:var(--ws-surface)!important;border-color:var(--ws-border)!important;border-radius:18px;padding:20px;gap:16px;}
body #overlay[data-panel="workspace"] .employee-invite-card h4 {color:var(--ws-ink)!important;font-size:19px;}
body #overlay[data-panel="workspace"] .employee-invite-card header p {color:var(--ws-muted)!important;font-size:13px!important;line-height:1.5;}
body #overlay[data-panel="workspace"] .employee-invite-card label {color:var(--ws-ink)!important;font-size:13px;}
body #overlay[data-panel="workspace"] .employee-invite-card header>span {background:#e3f4ef!important;color:#007f70!important;flex-shrink:0;}
body #overlay[data-panel="workspace"] .employee-invite-card :is(input,select) {box-sizing:border-box;width:100%;min-height:48px;border:1px solid var(--ws-border)!important;border-radius:12px;background:var(--ws-surface)!important;color:var(--ws-ink)!important;font-size:16px;padding:12px;}
body #overlay[data-panel="workspace"] .employee-invite-card>button[type="submit"] {background:#007f70!important;color:#fff!important;border:0;min-height:48px;border-radius:12px;font-weight:600;}
@media(max-width:760px){
body #overlay.navigation-view[data-panel="workspace"] #panel-body {overflow-y:auto!important;min-height:0;padding-bottom:calc(112px + env(safe-area-inset-bottom))!important;scroll-padding-bottom:calc(112px + env(safe-area-inset-bottom));}
body #overlay[data-panel="workspace"] .workspace-panel {padding:14px!important;}
body #overlay.navigation-view[data-panel="workspace"] .workspace-hero {gap:12px;padding:16px!important;}
body #overlay[data-panel="workspace"] .workspace-hero-brand {flex-basis:100%;}
body #overlay[data-panel="workspace"] .workspace-hero-metrics {flex:1;gap:24px;}
body #overlay[data-panel="workspace"] .workspace-hero-brand h3 {font-size:20px!important;}
body #overlay[data-panel="workspace"] .employee-heading {display:block;padding:18px;}
body #overlay[data-panel="workspace"] .employee-heading-actions {margin-top:14px;}
body #overlay[data-panel="workspace"] .employee-heading-actions button {margin-left:auto;}
body #overlay.navigation-view[data-panel="workspace"] .employee-invite-card {grid-template-columns:1fr!important;padding:18px;}
body #overlay[data-panel="workspace"] .employee-invite-card>header {align-items:flex-start;}
body #overlay[data-panel="workspace"] .employee-member-list>div {flex-wrap:wrap;}
}html.native-mobile body #overlay.navigation-view[data-panel="workspace"] .workspace-hero-metrics {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;flex-basis:100%;padding:12px 0!important;border:0!important;height:auto!important;}
html.native-mobile body #overlay.navigation-view[data-panel="workspace"] .workspace-hero-metrics>span {display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important;padding:0!important;border:0!important;line-height:1.3;color:var(--ws-muted)!important;}
html.native-mobile body #overlay.navigation-view[data-panel="workspace"] .workspace-hero-metrics strong {color:var(--ws-ink)!important;margin:0!important;}
html.native-mobile body #overlay.navigation-view[data-panel="workspace"] .workspace-tabs button.active {background:#007f70!important;color:white!important;border-color:#007f70!important;}
html.native-mobile body #overlay.navigation-view[data-panel="workspace"] #workspace-view-plans {border:0!important;padding:0!important;min-height:32px!important;margin:0!important;flex:0 0 auto;}
html.native-mobile body #overlay.navigation-view[data-panel="workspace"] .workspace-hero {padding:14px!important;gap:8px!important;}
