/* Shared workspace frame: full-height navigation and one independent content viewport. */
:root{--shell-sidebar-width:220px;--shell-surface:#fff;--shell-ink:#202020;--shell-line:#e8e8e8}
:root[data-theme=dark]{--shell-surface:#1b211d;--shell-ink:#edf3eb;--shell-line:#39423b}
:root[data-sidebar-compact]{--shell-sidebar-width:68px}
body:has(#workspace:not([hidden])){overflow:hidden;background:#0c0c0c}
#workspace .topbar{display:none}
#workspace .sidebar{inset:0 auto 0 0;width:var(--shell-sidebar-width);max-height:100dvh;padding:14px 12px 12px;background:#0c0c0c;color:#dedede;border:0;z-index:40;transform:none;transition:none}
.sidebar-header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px;margin:0 4px 14px}
.sidebar-header .brand{gap:8px;color:#f5f5f5;font-size:15px;letter-spacing:-.45px;min-width:0}
.sidebar-header .brand-icon{width:24px;height:24px;flex-basis:24px}
#workspace .sidebar-collapse{margin:0;width:26px;min-width:26px;height:26px;min-height:26px;padding:0;justify-content:center;gap:0;color:#aaa}
#workspace .sidebar-collapse>.nav-label{display:none}
#workspace .sidebar-collapse:hover{background:#292929;color:#fff}
#workspace .sidebar .global-search{display:flex;width:100%;height:30px;min-height:30px;flex-shrink:0;margin:0 0 13px;padding:0 9px;gap:7px;border:1px solid #ffffff14;border-radius:10px;background:#303030;color:#bcbcbc;font-size:12px;box-shadow:inset 0 1px 0 #ffffff09}
#workspace .global-search>span:nth-child(2){font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#workspace .global-search>span:first-child{font-size:19px;line-height:1}
#workspace .global-search kbd{padding:0;border:0;color:#bbb;white-space:nowrap;font-size:11px}
#workspace .sidebar nav{padding:2px;gap:2px;scrollbar-color:#525252 transparent}
#workspace .sidebar nav a,#workspace .sidebar-bottom>a{min-height:28px;padding:5px 8px;gap:9px;border-radius:10px;color:#cfcfcf;font-size:12px;font-weight:450;line-height:18px}
#workspace .sidebar nav a>svg,#workspace .sidebar-bottom>a>svg{width:16px;height:16px;color:#929292}
#workspace .sidebar nav a:hover,#workspace .sidebar-bottom>a:hover{background:#242424;color:#fff}
#workspace .sidebar nav a[aria-current=page],#workspace .sidebar nav a[data-active=true]:not(.nav-parent-open),#workspace .sidebar-bottom>a[aria-current=page]{background:linear-gradient(#363636,#272727);color:#fff;box-shadow:inset 0 0 0 1px #ffffff0c,inset 0 1px 0 #ffffff0a}
#workspace .sidebar nav a[aria-current=page]>svg,#workspace .sidebar nav .nav-parent-open>svg{color:#eee}
#workspace .sidebar nav .nav-parent-open{color:#fff}
#workspace .sidebar nav a.nav-sub{margin:0;padding-left:32px;color:#aaa;min-height:28px;font-size:12px}
#workspace .sidebar nav a.nav-sub .sub-line{display:none}
#workspace .sidebar nav a.nav-sub[aria-current=page]{color:#fff}
.sidebar-section-label{padding:20px 8px 8px;font-size:11px;color:#8e8e8e}
#workspace .sidebar-bottom{margin-top:auto;padding-top:12px;flex-shrink:0}
#workspace .store-switch{margin:4px 0 8px;padding:0}
#workspace .store-toggle{padding:7px 8px;border-radius:9px;gap:7px;color:#ddd}
#workspace .store-toggle:hover{background:#242424;border-color:transparent}
#workspace .store-toggle-copy{gap:2px}
#workspace .store-toggle-copy small{display:none}
#workspace .store-toggle-copy strong{font-size:12px;font-weight:450}
#workspace .store-picker-emblem{background:#e4f268;color:#252821;border:0;border-radius:5px;flex-basis:22px;height:22px;font-size:10px}
#workspace .sidebar .top-right{display:flex;align-items:center;gap:10px;border-top:1px solid #ffffff14;padding:10px 8px 0}
#workspace .account-avatar{height:26px;width:26px;font-size:10px;border-color:#ffffff14;background:#e4f268;color:#252821}
#workspace .account-open{min-height:28px;min-width:28px;padding:0}
#workspace .pending-shortcut{margin-left:auto;min-height:28px;min-width:26px;color:#aaa}
#workspace .notice-wide{display:none}#workspace .notice-compact{display:inline}
#workspace .environment{display:flex;font-size:10px;color:#909090;gap:5px}
#workspace .environment i{width:5px;height:5px;background:#c6d75b}
#workspace .sidebar-note{display:none}
#workspace #main{position:fixed;inset:3px 3px 3px var(--shell-sidebar-width);height:calc(100dvh - 6px);min-height:0;max-width:none;margin:0;padding:16px 16px 28px;border-radius:17px 17px 0 0;background:var(--shell-surface);color:var(--shell-ink);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:auto}
#main>.breadcrumb{display:none}
#main>.page-heading{min-height:28px;margin:0 2px 8px;align-items:center}
#main>.page-heading h1{font-size:14px;font-weight:550;letter-spacing:-.15px;line-height:1.4}
#main>.page-heading p{display:none}
#main>.page-heading .secondary,#main>.page-heading .primary{min-height:28px;padding:5px 12px;font-size:11px;border-radius:18px}
#main>.page-heading .secondary{background:var(--shell-surface);border-color:var(--shell-line)}
#main>#status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
#main[data-view=summary]>.page-heading{display:none}
#main>.workspace-footer{margin-top:32px}
#main .panel{box-shadow:0 1px 3px #00000005,0 3px 16px #00000004;border:1px solid var(--shell-line);border-radius:17px}
#main .table-toolbar{padding:10px 13px}
#main .table-scroll thead{background:#f7f7f7}
#main .table-scroll th{font-size:11px;font-weight:450;padding:9px 13px;color:#666}
#main .table-scroll td{padding:12px 13px}
#main .primary{background:linear-gradient(#363636,#1d1d1d);color:#fff;border-color:#282828;border-radius:9px;box-shadow:inset 0 1px 0 #ffffff25,0 1px 2px #0002}
#main .primary:hover{background:linear-gradient(#444,#272727)}
#main .settings-sidebar{top:18px}
#main .email-design-preview{top:18px}
.account-menu{inset:auto;margin:0}
#workspace .scrim{inset:54px 0 0;z-index:35}
:root[data-sidebar-compact] #workspace .sidebar{padding:14px 8px 10px}
:root[data-sidebar-compact] .sidebar-header{position:relative;justify-content:center;width:32px;height:32px;min-height:32px;margin:0 auto 12px;gap:0}
:root[data-sidebar-compact] .sidebar-header .brand{justify-content:center;width:32px;height:32px}
:root[data-sidebar-compact] #workspace .sidebar-header .sidebar-collapse{position:absolute;inset:0;width:32px;height:32px;opacity:0;pointer-events:none;border-radius:8px;background:#292929}
:root[data-sidebar-compact]:not([data-settings-mode]) .sidebar-header:hover .brand-icon,:root[data-sidebar-compact]:not([data-settings-mode]) .sidebar-header:has(.sidebar-collapse:focus-visible) .brand-icon{opacity:0}
:root[data-sidebar-compact]:not([data-settings-mode]) #workspace .sidebar-header:hover .sidebar-collapse,:root[data-sidebar-compact]:not([data-settings-mode]) #workspace .sidebar-header .sidebar-collapse:focus-visible{opacity:1;pointer-events:auto}
@media(hover:none) and (min-width:801px){:root[data-sidebar-compact]:not([data-settings-mode]) #workspace .sidebar-header .sidebar-collapse{opacity:1;pointer-events:auto}:root[data-sidebar-compact]:not([data-settings-mode]) .sidebar-header .brand-icon{opacity:0}}
:root[data-sidebar-compact] .sidebar .global-search{justify-content:center;padding:0}
:root[data-sidebar-compact] .sidebar .global-search>span:nth-child(2),:root[data-sidebar-compact] .sidebar .global-search kbd,:root[data-sidebar-compact] .sidebar-section-label{display:none}
:root[data-sidebar-compact] #workspace .sidebar nav{display:grid;grid-template-columns:1fr;grid-template-rows:repeat(var(--sidebar-items,8),minmax(28px,32px));gap:3px;align-content:start}
:root[data-sidebar-compact] #workspace .sidebar nav a{justify-content:center;padding:0;min-height:28px}
:root[data-sidebar-compact] #workspace .sidebar nav a.nav-sub{display:none}
:root[data-sidebar-compact] #workspace .sidebar nav a[data-active=true]{background:linear-gradient(#363636,#272727);color:#fff}
:root[data-sidebar-compact] #workspace .sidebar-bottom>a{justify-content:center;padding:6px 0}
:root[data-sidebar-compact] #workspace .store-toggle{justify-content:center;padding:7px 0}
:root[data-sidebar-compact] #workspace .sidebar .top-right{flex-direction:column;gap:6px;padding:8px 0 0}
:root[data-sidebar-compact] #workspace .pending-shortcut{margin:0}
:root[data-sidebar-compact] #workspace .environment{display:none}
:root[data-theme=dark] #main .table-scroll thead{background:#29312b}
:root[data-theme=dark] #main .table-scroll th{color:var(--muted)}
:root[data-theme=dark] #main .primary{background:linear-gradient(#e5efaa,#d1df86);color:#222;border-color:#bdcb71}
@media(max-width:800px){
 :root,:root[data-sidebar-compact]{--shell-sidebar-width:220px}
 #workspace .topbar{display:flex;inset:0 0 auto;height:54px;padding:0 14px;gap:12px;background:#0c0c0c;box-shadow:none;z-index:45}
 #workspace .topbar .brand{font-size:16px}.mobile-search{margin-left:auto;font-size:25px;color:#c8c8c8;width:34px;height:34px}
 #workspace .sidebar{inset:54px auto 0 0;max-height:calc(100dvh - 54px);transform:translateX(-100%);transition:transform .2s ease}
 #workspace .sidebar.open{transform:none}
 #workspace .sidebar-header{display:none}
 #workspace .sidebar .global-search{margin-top:3px}
 #workspace #main{inset:54px 0 0;height:calc(100dvh - 54px);padding:17px 14px 24px;border-radius:14px 14px 0 0}
 #main>.page-heading{flex-wrap:wrap;gap:10px;margin-bottom:14px}
 #main>.page-heading>div:first-child{flex:1;min-width:0}
 #main>.page-heading .page-actions{flex-wrap:wrap}
 #main .email-design-preview,#main .settings-sidebar{position:static}
}
@media(prefers-reduced-motion:reduce){#workspace .sidebar{transition:none}}

/* Welcome and action cards. */
.home-context{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:12px;padding:9px 12px;color:var(--shell-ink)}
.home-context>span{display:flex;align-items:center;gap:9px}.home-context i{width:7px;height:7px;border-radius:50%;background:#a6a6a6}.home-context>a{font-size:11px;color:var(--muted)}
.home-welcome{text-align:center;margin:80px auto 70px;max-width:760px;padding:0 16px}
.home-welcome h1{font-size:29px;font-weight:550;letter-spacing:-.9px;line-height:1.2;color:var(--shell-ink);overflow-wrap:anywhere}
.home-welcome h1 strong{font-weight:550;text-decoration:underline dotted #aaa;text-underline-offset:4px}
.home-command{display:flex;flex-direction:column;text-align:left;width:100%;max-width:624px;min-height:108px;margin:28px auto 0;padding:18px 17px 15px;border:1px solid var(--shell-line);border-radius:23px;background:var(--shell-surface);box-shadow:0 3px 15px #00000006,0 8px 35px #00000003}
.home-command:hover{border-color:#c5c5c5;box-shadow:0 4px 20px #00000009}
.home-command-placeholder{color:var(--muted);font-size:13px}
.home-command-bottom{display:flex;align-items:center;gap:9px;width:100%;margin-top:31px;font-size:11px;color:var(--muted)}
.home-command-bottom>span{margin-left:auto}.home-command kbd{font:10px inherit;border:1px solid var(--line);border-radius:4px;padding:2px 4px}
.home-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:940px;margin:0 auto}
.home-action-card{min-width:0;display:flex;flex-direction:column;padding:7px;border:1px solid var(--shell-line);border-radius:20px;background:var(--shell-surface);box-shadow:0 2px 5px #00000004,0 5px 25px #00000003}
.home-card-art{height:146px;flex-shrink:0;border-radius:13px;background:linear-gradient(135deg,#fafafa,#f1f2ef);overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center;gap:12px}
.home-card-copy{display:flex;flex-direction:column;align-items:flex-start;flex:1;min-height:189px;padding:14px 12px 12px}
.home-card-copy h2{font-size:15px;font-weight:550;letter-spacing:-.2px;line-height:1.35;margin-bottom:7px}
.home-card-copy p{font-size:12px;line-height:1.5;color:var(--muted);margin-bottom:24px}
.home-card-action{margin-top:auto;display:inline-flex;padding:7px 12px;border-radius:20px;background:#ededed;color:#242424;font-size:11px;line-height:1.25}
.home-card-action:hover{background:#e0e0e0}
.home-operations{max-width:940px;margin:28px auto 0;border:1px solid var(--shell-line);border-radius:16px;background:var(--shell-surface)}
.home-operations>summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer;padding:19px 20px;list-style:none}.home-operations>summary::-webkit-details-marker{display:none}
.home-operations summary strong{display:block;font-size:13px;font-weight:550}.home-operations summary small{display:block;margin-top:5px}
.home-operations>.business-view{padding:20px;border-top:1px solid var(--shell-line)}
.home-operations .welcome-banner{display:none}.home-operations .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.home-product-object{display:block;position:relative;width:47px;height:92px;border-radius:11px 11px 14px 14px;box-shadow:inset -9px 0 12px #0002,inset 6px 0 9px #fff5,7px 10px 16px #0001;transform:rotate(-14deg);background:linear-gradient(100deg,#e2bd6d,#c78e3b)}
.home-product-object>i{position:absolute;inset:-7px 5px auto;height:12px;border-radius:4px;background:#333}.home-product-object>b{position:absolute;inset:31px 0 auto;color:#fff9;font:22px Georgia,serif;text-align:center}
.home-product-object.sage{height:112px;width:55px;background:linear-gradient(100deg,#c8d5c1,#7e9681);transform:rotate(9deg)}
.home-product-object.lavender{width:39px;height:74px;transform:rotate(18deg);background:linear-gradient(100deg,#cabde3,#8e7cae)}
.home-collection-sheet{width:148px;height:110px;display:grid;grid-template-columns:1fr 1fr;gap:5px;background:#fff;padding:9px;border-radius:9px;box-shadow:0 8px 22px #0001;transform:rotate(-7deg)}
.home-collection-sheet i{background:linear-gradient(135deg,#dfe4db,#b8c7b6);border-radius:4px}.home-collection-sheet i:nth-child(2){background:linear-gradient(135deg,#f0ddcb,#d1ad8b)}.home-collection-sheet i:nth-child(3){background:linear-gradient(135deg,#e5deed,#b6a4c7)}
.home-collection-label{position:absolute;bottom:22px;right:24px;background:#fff;border-radius:7px;padding:9px 12px;box-shadow:0 4px 12px #0001;font-size:11px;transform:rotate(5deg)}
.home-web-window{display:block;width:185px;height:108px;background:#fff;border:1px solid #dededb;border-radius:9px;box-shadow:0 9px 20px #0001;transform:rotate(-5deg);padding:21px 14px 8px}
.home-web-window>i{display:block;position:absolute;inset:0 0 auto;height:13px;border-bottom:1px solid #eee;background:#f5f5f5;border-radius:9px 9px 0 0}
.home-web-window>b{font:16px Georgia,serif;color:#716453}.home-web-window>span{display:block;margin-top:9px;height:38px;border-radius:3px;background:linear-gradient(110deg,#ece8df 40%,#e0e8d8)}
.home-type-tile{position:absolute;right:29px;bottom:23px;background:#202020;color:#fff;font-size:25px;border-radius:10px;padding:10px 12px;box-shadow:0 5px 12px #0002}
.home-envelope{position:relative;width:145px;height:88px;border:1px solid #cccdbd;border-radius:6px;background:linear-gradient(140deg,#e4efbe,#c5d294);transform:rotate(-8deg);box-shadow:0 6px 15px #0001}
.home-envelope:after{content:'';position:absolute;inset:0;clip-path:polygon(0 0,50% 61%,100% 0);background:#edf4d7}
.home-mail-note{position:absolute;right:26px;bottom:24px;transform:rotate(6deg);background:white;padding:20px 18px;border-radius:5px;font-family:Georgia,serif;color:#516543;box-shadow:0 5px 14px #0001}
.home-discount-ticket{display:flex;align-items:center;gap:13px;background:linear-gradient(110deg,#d8cec5,#f3ebe5);border-radius:10px;padding:17px 20px;transform:rotate(-10deg);box-shadow:0 7px 18px #0001;position:relative}
.home-discount-ticket:before,.home-discount-ticket:after{content:'';position:absolute;width:14px;height:14px;border-radius:50%;background:#f4f4f2;top:calc(50% - 7px)}.home-discount-ticket:before{left:-7px}.home-discount-ticket:after{right:-7px}
.home-discount-ticket b{font-size:43px;font-weight:450;color:#766052}.home-discount-ticket small{max-width:66px;font-size:9px;color:#766052;letter-spacing:1px;line-height:1.5}
.home-parcel{width:118px;height:94px;background:linear-gradient(110deg,#ceab7c,#b68b59);transform:rotate(-8deg);border-radius:3px;box-shadow:0 8px 17px #0002;position:relative}
.home-parcel>i{position:absolute;inset:0 44px 0;background:#e0c79f99}.home-parcel>span{position:absolute;bottom:12px;left:11px;width:40px;height:25px;background:repeating-linear-gradient(90deg,#fff 0 3px,#ccc 3px 4px);border:5px solid #fff}
.home-parcel-check{position:absolute;bottom:24px;right:49px;width:39px;height:39px;border-radius:50%;background:#437d67;border:4px solid #f3f3f0;color:#fff;display:grid;place-items:center;font-size:21px}
:root[data-theme=dark] .home-card-art{background:linear-gradient(135deg,#353c34,#292f29)}
:root[data-theme=dark] .home-card-action{background:#384235;color:#e1e8d8}
@media(min-width:1600px){.home-welcome{margin-top:82px}}
@media(max-width:1100px){.home-welcome{margin-top:54px;margin-bottom:48px}.home-welcome h1{font-size:25px}.home-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:640px}.home-card-copy{min-height:170px}}
@media(max-width:600px){.home-context{padding:6px 2px;font-size:10px}.home-context>a{font-size:10px}.home-welcome{margin:42px auto 35px;padding:0 4px}.home-welcome h1{font-size:23px;letter-spacing:-.65px}.home-command{padding:16px;min-height:104px;margin-top:24px;border-radius:18px}.home-command-placeholder{font-size:12px}.home-command-bottom{font-size:10px}.home-action-grid{grid-template-columns:1fr;max-width:380px;gap:14px}.home-card-copy{min-height:156px}.home-card-art{height:155px}.home-operations>.business-view{padding:12px}.home-operations .metric-grid{grid-template-columns:1fr}.home-operations>summary{padding:16px}}
#main>.page-heading h1{display:flex;align-items:center;gap:9px}
#main>.page-heading h1>svg{width:16px;height:16px;flex-shrink:0}

#workspace .sidebar nav a.nav-parent-open{background:transparent;box-shadow:none;color:#fff}
:root[data-sidebar-compact] #workspace .sidebar nav a.nav-parent-open[data-active=true]{background:linear-gradient(#363636,#272727)}
#workspace .sidebar nav a.nav-parent-open[aria-current=page]{background:linear-gradient(#363636,#272727);box-shadow:inset 0 0 0 1px #ffffff0c,inset 0 1px 0 #ffffff0a}
/* Store selection and alerts stay together; personal account has its own row. */
#workspace .store-switch{display:flex;align-items:center;gap:4px;margin:5px 0 0;min-width:0}
#workspace .store-switch .store-toggle{flex:1;min-width:0;width:auto}
#workspace .store-switch .store-toggle-copy{min-width:0;flex:1}
#workspace .store-switch .store-toggle-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
#workspace .store-switch .pending-shortcut{display:flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:30px;min-height:30px;margin:0;padding:4px;border-radius:8px}
#workspace .store-switch .pending-shortcut:hover{background:#242424;color:#fff}
:root[data-sidebar-compact] #workspace .store-switch{flex-direction:column;gap:4px;align-items:center}
:root[data-sidebar-compact] #workspace .store-switch .store-toggle{flex:0 0 32px;width:32px;min-width:32px;height:32px;padding:5px 0}
:root[data-sidebar-compact] #workspace .store-switch .store-toggle-copy,:root[data-sidebar-compact] #workspace .store-switch .store-toggle>span:last-child{display:none}
:root[data-sidebar-compact] #workspace .store-switch .store-picker-emblem{flex:0 0 22px;width:22px}
:root[data-sidebar-compact] #workspace .store-switch .pending-shortcut{flex:0 0 32px;width:32px;min-width:32px;height:32px;padding:3px}

#workspace .sidebar-account{margin-top:8px;padding-top:8px;border-top:1px solid #ffffff14}
#workspace .sidebar-account .account-open{display:flex;align-items:center;gap:9px;width:100%;min-height:42px;padding:6px 8px;border:0;border-radius:9px;background:transparent;box-shadow:none;color:#dedede;text-align:left}
#workspace .sidebar-account .account-open:hover,#workspace .sidebar-account .account-open[aria-expanded=true],#workspace #store-toggle[aria-expanded=true]{background:#242424}
#workspace .sidebar-account .account-avatar{flex:0 0 26px;white-space:nowrap}
#workspace .account-toggle-copy{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
#workspace .account-toggle-copy strong{font-size:12px;font-weight:450}
#workspace .account-toggle-copy small{font-size:10px;color:#929292;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#workspace .account-toggle-chevron{font-size:12px;color:#929292}
:root[data-sidebar-compact] #workspace .sidebar-account .account-open{justify-content:center;padding:6px 0}
:root[data-sidebar-compact] #workspace .account-toggle-copy,:root[data-sidebar-compact] #workspace .account-toggle-chevron{display:none}

/* Installation context stays visible independently of the selected store environment. */
.hub-installation-context{display:inline-flex;align-items:center;font-size:10px;font-weight:600;color:var(--muted);border:1px solid var(--line);border-radius:5px;padding:4px 8px;margin-bottom:12px;line-height:1.4}
