/* One shared navigation for every customer workspace. */
.workspace > aside.portal-sidebar{padding:22px 12px;background:#fff;border-right:1px solid var(--ss-line)}


.workspace > aside.portal-sidebar .eyebrow{font-size:10px;letter-spacing:1.8px;margin:0 12px 12px;color:#827d85}



.workspace > aside.portal-sidebar nav{display:grid;gap:5px;margin:26px 0}
.workspace > aside.portal-sidebar nav a{display:flex;align-items:center;gap:13px;padding:11px 12px;margin:0;border-radius:11px;text-decoration:none;font-size:13px;color:var(--ss-text)}
.workspace > aside.portal-sidebar nav a:hover{background:var(--ss-purple-tint)}
.workspace > aside.portal-sidebar nav a[aria-current="page"]{background:var(--ss-purple-soft);color:var(--ss-purple);font-weight:700}
.workspace > aside.portal-sidebar svg{width:21px;height:21px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

@media(max-width:760px){
 .workspace > aside.portal-sidebar{padding:16px;border-right:0;border-bottom:1px solid var(--ss-line)}
 
 .workspace > aside.portal-sidebar .eyebrow{display:none}
 .workspace > aside.portal-sidebar nav{display:flex;overflow-x:auto;gap:6px;margin:0}
 .workspace > aside.portal-sidebar nav a{flex-shrink:0;padding:10px 12px;font-size:12px;gap:8px}
 .workspace > aside.portal-sidebar svg{width:19px;height:19px}
 
}
/* Keep one logo: standalone studio screens use the sidebar brand. */

/* Shared panel shell: the header and sidebar keep the same geometry on every page. */

body:has(.portal-sidebar)>.site-header{display:flex;height:72px;min-height:72px;padding:12px 4%;box-sizing:border-box;border-bottom:1px solid var(--ss-line)}
body:has(.portal-sidebar)>.site-header .brand-logo{width:166px;height:40px}
body:has(.portal-sidebar)>.site-header .brand-logo img{width:212px;left:-23px;top:-24px}
body:has(.portal-sidebar) .workspace{grid-template-columns:260px minmax(0,1fr);min-height:calc(100dvh - 72px)}
body:has(.portal-sidebar) .workspace>aside.portal-sidebar{padding:22px 12px}
@media(max-width:760px){
 body:has(.portal-sidebar)>.site-header{height:auto;min-height:64px;padding:12px 16px}
 body:has(.portal-sidebar) .workspace{display:block;min-height:calc(100dvh - 64px)}
 body:has(.portal-sidebar) .workspace>aside.portal-sidebar{display:block;padding:12px 16px}
 body.builder-page .workspace{display:flex;flex-direction:column;min-height:0}
 body.builder-page .workspace>aside.portal-sidebar{flex-shrink:0}
 
 body.builder-page.studio-test-page .workspace{display:block;min-height:calc(100dvh - 64px)}
}
body.builder-page.studio-test-page:has(.portal-sidebar) .workspace{grid-template-columns:210px minmax(0,1fr);min-height:calc(100dvh - 72px)}
@media(max-width:760px){
 body:has(.portal-sidebar)>.site-header{position:relative}
 body.builder-page:has(.portal-sidebar) .site-header nav{top:100%}
 body.builder-page.studio-test-page:has(.portal-sidebar) .workspace{display:block;min-height:calc(100dvh - 64px)}
}
.site-header .wallet-header{padding:8px 12px;background:var(--ss-purple-soft);border-radius:10px;color:var(--ss-purple);font-size:13px}

@media (min-width:761px) and (max-width:1100px){body:has(.portal-sidebar) .workspace{grid-template-columns:220px minmax(0,1fr)}}

/* One customer workspace sidebar shared by overview, CRM, calls and outbound pages. */
body.workspace-shell .workspace{grid-template-columns:260px minmax(0,1fr)}
body.workspace-shell .workspace>aside.portal-sidebar{position:relative;display:flex;min-width:0;flex-direction:column;padding:30px 14px 18px;background:var(--ss-navy);border:0;color:#fff}
body.workspace-shell .outbound-brand{display:flex;align-items:center;gap:12px;margin:2px 12px 32px;color:#fff;text-decoration:none}
body.workspace-shell .outbound-brand strong{font-size:25px;font-weight:800;letter-spacing:-1px}
body.workspace-shell .outbound-mark{display:flex;align-items:flex-end;gap:3px;height:23px}
body.workspace-shell .outbound-mark i{display:block;width:4px;height:10px;border-radius:4px;background:var(--ss-lime)}
body.workspace-shell .outbound-mark i:nth-child(2){height:23px}
body.workspace-shell .outbound-mark i:nth-child(3){height:17px}
body.workspace-shell .outbound-mark i:nth-child(4){height:7px}
body.workspace-shell .outbound-tenant{display:flex;align-items:center;gap:12px;min-height:68px;padding:12px;border:1px solid #363d50;border-radius:17px;background:#202638;color:#fff}
body.workspace-shell .outbound-tenant-avatar{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:13px;background:var(--ss-purple);color:#fff;font-size:16px;font-weight:750}
body.workspace-shell .outbound-tenant-copy{display:grid;min-width:0;gap:2px}
body.workspace-shell .outbound-tenant-copy strong{overflow-wrap:anywhere;font-size:15px}
body.workspace-shell .outbound-tenant-copy small{color:#969eaf;font-size:12px}
body.workspace-shell .outbound-tenant-chevron{margin-left:auto;color:#858da0;font-size:20px}
body.workspace-shell .workspace-tenant-switch{display:grid;gap:7px;margin:14px 0 0}
body.workspace-shell .workspace-tenant-switch label{color:#929aad;font-size:10px;font-weight:700;letter-spacing:.08em}
body.workspace-shell .workspace-tenant-switch select{min-height:40px;padding:8px 10px;border:1px solid #3a4154;border-radius:10px;background:#202638;color:#fff;font-size:12px}
body.workspace-shell .workspace-tenant-switch button{min-height:34px;padding:6px 10px;border:0;border-radius:9px;background:var(--ss-purple);color:#fff;font-size:12px}
body.workspace-shell .outbound-nav-label{margin:30px 12px 12px;color:#707b8d;font-size:10px;font-weight:700;letter-spacing:1.5px}
body.workspace-shell .workspace>aside.portal-sidebar nav{display:grid;gap:5px;margin:0 0 20px;padding:0;border:0;background:none}
body.workspace-shell .workspace>aside.portal-sidebar nav a{display:flex;align-items:center;gap:13px;min-height:48px;padding:11px 13px;border:0;border-radius:13px;background:transparent;color:#9ba1af;font-size:14px;font-weight:600;text-decoration:none;box-shadow:none;transition:background .15s,color .15s}
body.workspace-shell .workspace>aside.portal-sidebar nav a:hover{background:#202638;color:#fff}
body.workspace-shell .workspace>aside.portal-sidebar nav a[aria-current=page]{background:var(--ss-purple);color:#fff;box-shadow:0 8px 24px #7954ff30}
body.workspace-shell .workspace>aside.portal-sidebar nav svg{width:21px;height:21px;flex:0 0 21px;color:currentColor;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.workspace-shell .outbound-minutes{position:relative;display:grid;gap:10px;margin:auto 0 18px;padding:18px 17px 16px;border-radius:18px;background:#bdff3e;color:var(--ss-navy);text-decoration:none}
body.workspace-shell .outbound-minutes>span:first-child{color:#546b24;font-size:11px;font-weight:750;letter-spacing:1px}
body.workspace-shell .outbound-minutes strong{font-size:27px;line-height:1.2;letter-spacing:-.7px;font-variant-numeric:tabular-nums}
body.workspace-shell .outbound-minutes u{font-size:13px;font-weight:700;text-underline-offset:3px}
body.workspace-shell .outbound-clock{position:absolute;top:17px;right:17px;font-size:20px}
body.workspace-shell .outbound-sidebar-footer{display:grid;gap:4px;margin:0 -16px;padding:16px 22px 0;border-top:1px solid #30374a}
body.workspace-shell .outbound-sidebar-footer a,body.workspace-shell .outbound-sidebar-footer button{display:flex;align-items:center;gap:13px;padding:8px 0;border:0;background:none;color:#9ba1af;font-size:14px;font-weight:600;text-decoration:none}
body.workspace-shell .outbound-sidebar-footer svg{width:20px;height:20px}
@media(min-width:761px) and (max-width:1100px){body.workspace-shell .workspace{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:760px){body.workspace-shell .workspace{display:block}body.workspace-shell .workspace>aside.portal-sidebar{display:flex;padding:14px;border-right:0;border-bottom:1px solid #30374a}body.workspace-shell .outbound-brand{margin:0 0 13px 2px;font-size:20px}body.workspace-shell .outbound-brand strong{font-size:21px}body.workspace-shell .outbound-tenant,body.workspace-shell .workspace-tenant-switch,body.workspace-shell .outbound-nav-label,body.workspace-shell .outbound-minutes,body.workspace-shell .outbound-sidebar-footer{display:none!important}body.workspace-shell .workspace>aside.portal-sidebar nav{display:flex;overflow-x:auto;gap:5px;margin:0}body.workspace-shell .workspace>aside.portal-sidebar nav a{flex:0 0 auto;min-height:42px;padding:9px 11px;font-size:12px;white-space:nowrap}body.workspace-shell .workspace>aside.portal-sidebar nav svg{width:18px;height:18px;flex-basis:18px}}

/* Business menu: switch between the user's businesses or add one. */
.tenant-menu{position:relative}
.tenant-menu>summary{list-style:none;cursor:pointer}
.tenant-menu>summary::-webkit-details-marker{display:none}
.tenant-menu>summary:focus-visible{outline:2px solid #c8f169;outline-offset:2px}
.tenant-menu[open] .outbound-tenant-chevron{transform:rotate(180deg)}
.tenant-menu-list{margin-top:8px;padding:8px;border:1px solid #363d50;border-radius:14px;background:#202638;display:flex;flex-direction:column;gap:2px}
.tenant-menu-list>p{margin:4px 8px 6px;color:#969eaf;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.tenant-menu-list form{margin:0}
.tenant-menu-item{all:unset;box-sizing:border-box;width:100%;display:flex;align-items:center;gap:10px;padding:9px 8px;border-radius:10px;color:#fff;font-size:14px;cursor:pointer;overflow-wrap:anywhere}
button.tenant-menu-item:hover{background:#2c3349}
button.tenant-menu-item:focus-visible{outline:2px solid #c8f169}
.tenant-menu-item.is-current{cursor:default;font-weight:700}
.tenant-menu-item.is-current span[aria-hidden]{margin-left:auto;color:#c8f169}
.tenant-menu-avatar{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:8px;background:#6c5ce7;color:#fff;font-size:12px;font-weight:750}
.tenant-menu-add{display:block;margin-top:4px;padding:10px 8px;border-top:1px solid #363d50;color:#c8f169!important;font-weight:700;font-size:14px;text-decoration:none}
.tenant-menu-add:hover{text-decoration:underline}
.business-new{max-width:620px;margin:40px auto;padding:0 16px}
.business-new h1{margin:6px 0 12px}
.business-new form p{display:flex;flex-direction:column;gap:8px}
.business-new input{border:1px solid var(--ss-line);border-radius:12px;padding:12px 14px;font:inherit;font-size:16px}
.business-error{color:#b42318;font-weight:600}
.business-actions{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:8px}
.business-actions button{background:var(--ss-purple);color:#fff;border:1px solid var(--ss-purple);border-radius:12px;padding:12px 20px;font:inherit;font-weight:700;cursor:pointer}
body .portal-sidebar .tenant-menu button.tenant-menu-item,body .tenant-menu button.tenant-menu-item{background:none;border:0;box-shadow:none;justify-content:flex-start;text-align:left;width:100%;min-height:0;padding:9px 8px;margin:0;color:#fff;font-weight:500;font-size:14px;border-radius:10px}
body .portal-sidebar .tenant-menu button.tenant-menu-item:hover,body .tenant-menu button.tenant-menu-item:hover{background:#2c3349}
