:root {
  --shell-purple:var(--purple);
  --shell-ink:#352a42;
  --shell-line:#ccb7dd;
  --shell-wash:#f3edf9;
}
body.business-workspace {
  --bar:58px;
  display:grid;
  grid-template-columns:84px minmax(0,1fr);
  grid-template-rows:var(--bar) 1fr;
  align-items:start;
  min-height:100dvh;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  color:var(--shell-ink);
  background:linear-gradient(#e2d5ed,#f3edf8 60%,#fcfafd) fixed;
  transition:grid-template-columns 220ms cubic-bezier(.2,.8,.2,1);
}
.business-workspace #header {
  grid-column:1/-1; position:sticky; top:0; z-index:10;
  height:var(--bar); min-height:0; padding:0 20px;
  align-items:center; background:#fff; border-bottom:1px solid #d8c9e4;
}
.business-workspace .fordwell-brand, .workspace-sheet .fordwell-brand {font-size:20px;line-height:1.1;color:#53357f}
.business-workspace .fordwell-brand img, .workspace-sheet .fordwell-brand img {width:38px;height:38px}
.business-workspace .account-tools {flex-wrap:nowrap;min-width:0;gap:6px}
#business-account {display:grid;place-items:center;padding:0}
#business-account img {display:block;width:28px;height:28px;object-fit:contain}
#account-panel {position:fixed;inset:calc(var(--bar,58px) + 4px) 8px auto auto;margin:0;width:min(280px,calc(100vw - 16px));padding:16px;border:1px solid var(--shell-line);border-radius:10px;background:white;color:var(--shell-ink);box-shadow:0 8px 24px #352a4226;overflow-wrap:anywhere}
#account-panel:popover-open {display:grid;gap:12px}
#account-panel span {color:var(--muted);font-size:13px}
#account-panel label {max-width:none}

.header-icon,.menu-toggle,.workspace-sheet header button {
  width:44px;height:44px;min-height:44px;padding:10px;border:0;background:transparent;color:var(--shell-ink)
}
.header-icon:hover,.menu-toggle:hover,.header-icon:focus-visible {background:var(--shell-wash)}
.header-icon svg,.menu-toggle svg,#web-install svg {width:20px;height:20px}
#web-install {color:var(--shell-purple);background:var(--shell-wash);border-color:#d9c8e8}
.menu-toggle,.section-name {display:none}
.business-workspace #content {width:100%;max-width:1850px;min-width:0;grid-column:2;padding:clamp(14px,2vw,32px);margin:auto auto 0;align-self:start;margin-top:0}
.business-workspace .ew-shell {--ew-purple:var(--shell-purple);--ew-border:var(--shell-line);--ew-ink:var(--shell-ink);--ew-soft:var(--shell-wash)}
.business-workspace :is(.ew-device-panel,.ew-fleet,.ew-action-card) {box-shadow:0 2px 7px #53357f10}
.business-workspace .ew-masthead {border:0;margin:0;padding:0 0 18px}
.workspace-eyebrow {font-size:11px;letter-spacing:.1em;font-weight:700;color:var(--shell-purple)}
.business-workspace .ew-masthead h1 {font-family:inherit;font-weight:700;font-size:clamp(22px,2.1vw,32px);line-height:1.18;letter-spacing:-.025em;margin:4px 0 0;color:var(--shell-ink)}
.business-workspace .sr-label {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.business-workspace .ew-launch {background:#f7f3fb}
.business-workspace .ew-action-card strong {color:var(--shell-ink)}
.business-workspace :is(.ew-launch,.ew-fleet,#ew-library-downloads,#ew-pair,#ew-workspace) {scroll-margin-top:calc(var(--bar) + 12px)}
.workspace-rail {position:sticky;top:var(--bar);height:calc(100dvh - var(--bar));overflow:auto;background:#faf7fc;border-right:1px solid #d8c9e4;padding:16px 7px}
.workspace-links {display:grid;gap:8px}
.workspace-links button {min-width:0;min-height:70px;flex-direction:column;padding:6px 2px;gap:4px;background:transparent;color:var(--shell-ink);border-color:transparent;font-size:11px}
.workspace-links svg {width:24px;height:24px;flex:none}
.workspace-links small {display:none}
.workspace-links button:is(:hover,:focus-visible,[aria-current]) {border-color:#8158a6;background:var(--shell-wash)}
.workspace-rail.pinned {background:#eee6f5;box-shadow:inset -4px 0 #d8c9e4}
@media(min-width:801px) {
  .business-workspace:has(.workspace-rail:is(:hover,:focus-within,.pinned)) {grid-template-columns:286px minmax(0,1fr)}
  .workspace-rail:is(:hover,:focus-within,.pinned) button {min-height:64px;flex-direction:row;justify-content:flex-start;gap:14px;padding:8px 12px;text-align:left;font-size:15px}
  .workspace-rail:is(:hover,:focus-within,.pinned) small {display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:2px}
}
.workspace-sheet {
  position:fixed;inset:0 auto 0 0;margin:0;width:min(280px,calc(100vw - 40px));height:100dvh;max-height:none;max-width:none;
  padding:env(safe-area-inset-top) 12px env(safe-area-inset-bottom);border:0;background:white;color:var(--shell-ink)
}
.workspace-sheet[open] {display:flex;flex-direction:column;animation:slide-in 200ms ease-out}
.workspace-sheet::backdrop {background:#352a4270}
body:has(.workspace-sheet[open]) {overflow:hidden}
.workspace-sheet header {display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #e6ddec}
.workspace-sheet header button {font-size:24px}
.workspace-sheet nav {margin:12px 0;overflow:auto}
.workspace-sheet nav button {min-height:44px;flex-direction:row;justify-content:flex-start;padding:8px 12px;gap:12px;font-size:15px}
.workspace-sheet footer {margin-top:auto;padding:12px 0}
.workspace-sheet #web-install {width:100%}
@keyframes slide-in {from{transform:translateX(-100%)}}
.workspace-shortcuts {position:fixed;z-index:5;bottom:calc(18px + env(safe-area-inset-bottom));right:18px}
.quick-toggle {width:52px;height:52px;border:0;border-radius:50%;background:var(--shell-purple);color:#fff;font:400 32px/1 system-ui;box-shadow:0 4px 12px #53357f40}
.quick-toggle:hover {background:#553277}
#quick-actions {inset:auto 18px calc(78px + env(safe-area-inset-bottom)) auto;margin:0;padding:12px;border:1px solid var(--shell-line);border-radius:12px}
#quick-actions:popover-open {display:grid;gap:6px}
#quick-actions strong {padding:2px 5px;color:var(--shell-ink)}
#install-help {max-width:min(380px,90vw);border:1px solid var(--shell-line);border-radius:12px}
@media(max-width:800px) {
  body.business-workspace {--bar:calc(48px + env(safe-area-inset-top));display:block}
  .business-workspace #header {gap:4px;padding:env(safe-area-inset-top) 6px 0}
  .menu-toggle {display:inline-flex}
  .section-name {display:block;margin-right:auto;font-size:16px}
  .business-workspace #header .fordwell-brand,.workspace-rail,.business-workspace .user-email {display:none}
  .business-workspace .account-tools {gap:2px}
  .business-workspace #content {padding:12px 8px 78px}
}
@media(prefers-reduced-motion:reduce) {
  body.business-workspace,.workspace-sheet[open] {animation:none;transition:none}
}
