html[data-workspace-stale="1"] body{visibility:hidden}
.workspace-selector{display:grid;gap:4px;max-width:100%;min-width:0}
.workspace-selector label{font-size:12px;font-weight:700;color:#587084}
.workspace-selector select{width:100%;max-width:440px;min-width:0;min-height:44px;border:1px solid #ccd9e4;border-radius:10px;padding:8px;background:#fff;color:#123651}
.workspace-selector button{min-height:44px}
.workspace-current{display:block;max-width:440px;overflow-wrap:anywhere;font-size:12px;color:#34546b}
@media(max-width:820px){.global-toolbar{flex-wrap:wrap}.global-toolbar-actions{width:100%;max-width:100%;flex-wrap:wrap}.workspace-selector{flex:1 1 100%;width:100%}.workspace-selector select{max-width:100%}.workspace-current{max-width:100%}.mobile-tenant-switcher{display:none!important}}

@media(max-width:820px){body .global-toolbar:has(.workspace-selector){display:flex!important}.global-toolbar:has(.workspace-selector) .global-search{display:none}body .global-toolbar .global-toolbar-actions:has(.workspace-selector){display:flex!important}}

.workspace-form{min-width:0;max-width:100%;margin:0}
.workspace-selector label{display:block}
@media(max-width:820px){
  .global-toolbar-actions{min-width:0;max-width:min(100%,100vw)}
  .global-toolbar-actions .workspace-selector .workspace-current{display:block!important}
  body .global-toolbar:has(.workspace-selector){margin:0 0 10px!important;width:100%;max-width:100%;box-sizing:border-box;padding:12px!important}
}

/* Authorized client shortcuts use the canonical workspace POST flow. */
.workspace-shortcuts{display:flex;flex-wrap:wrap;gap:8px;max-width:440px}
.workspace-shortcut-form{margin:0;min-width:0}
.workspace-selector .workspace-shortcut{display:flex;align-items:center;gap:7px;min-height:44px;max-width:100%;padding:6px 10px;border:1px solid #ccd9e4;border-radius:10px;background:#fff;color:#123651;cursor:pointer}
.workspace-selector .workspace-shortcut:hover,.workspace-selector .workspace-shortcut.is-active{border-color:#18a7c9;background:#e8f5f9}
.workspace-shortcut-icon{position:relative;display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:6px;background:#e8f5f9;font-weight:700;overflow:hidden}
.workspace-shortcut-icon img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff}
.workspace-shortcut-name{font-size:12px;overflow-wrap:anywhere;max-width:160px}
@media(max-width:820px){.workspace-shortcuts{max-width:100%}.workspace-shortcut-form{max-width:100%}}

/* Keep client shortcuts on their own row, independent of search and account actions. */
.global-toolbar:has(.workspace-shortcuts){display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px 14px}
.global-toolbar:has(.workspace-shortcuts) .global-toolbar-actions,
.global-toolbar:has(.workspace-shortcuts) .workspace-selector{display:contents!important}
.global-toolbar:has(.workspace-shortcuts) .workspace-shortcuts{grid-column:1/-1;grid-row:1;display:flex;flex-wrap:nowrap;gap:10px;width:100%;max-width:none;min-width:0;overflow-x:auto;padding:2px 0 8px;scrollbar-width:thin}
.global-toolbar:has(.workspace-shortcuts) .workspace-shortcut-form{flex:0 0 auto}
.global-toolbar:has(.workspace-shortcuts) .workspace-shortcut{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:168px;height:52px;min-height:52px;padding:8px 12px;border-radius:12px;background:#fff;font-weight:650;transition:background .15s,border-color .15s}
.global-toolbar:has(.workspace-shortcuts) .workspace-shortcut-form:first-child .workspace-shortcut{width:226px}
.global-toolbar:has(.workspace-shortcuts) .workspace-shortcut:hover{background:#f4f9fc;border-color:#88b4c8}
.global-toolbar:has(.workspace-shortcuts) .workspace-shortcut.is-active{background:#e8f5f9;border:2px solid #18a7c9;box-shadow:0 2px 8px rgba(18,54,81,.08)}
.global-toolbar:has(.workspace-shortcuts) .workspace-shortcut:focus-visible{outline:3px solid #18a7c9;outline-offset:2px}
.global-toolbar:has(.workspace-shortcuts) .workspace-shortcut-icon{display:grid;flex:0 0 34px;width:34px;height:34px;border-radius:8px}
.global-toolbar:has(.workspace-shortcuts) .workspace-shortcut-icon img{padding:3px}
.global-toolbar:has(.workspace-shortcuts) .workspace-shortcut-icon>span{display:block}
.global-toolbar:has(.workspace-shortcuts) .workspace-shortcut-name{display:block;min-width:0;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;text-align:left}
.global-toolbar:has(.workspace-shortcuts) .global-search{grid-column:1;grid-row:2;width:100%;max-width:none;min-width:0;margin:0}
.global-toolbar:has(.workspace-shortcuts) .global-toolbar-actions>.toolbar-link{grid-column:2;grid-row:2}
.global-toolbar:has(.workspace-shortcuts) .toolbar-logout{grid-column:3;grid-row:2;margin:0}
.global-toolbar:has(.workspace-shortcuts) .workspace-current{grid-column:1;grid-row:3;max-width:none}
.global-toolbar:has(.workspace-shortcuts) .workspace-form{grid-column:2/4;grid-row:3;width:440px;max-width:100%;justify-self:end}
.global-toolbar:has(.workspace-shortcuts) .workspace-form label{display:grid;gap:4px}
@media(max-width:820px){
  body .global-toolbar:has(.workspace-shortcuts){display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}
  .global-toolbar:has(.workspace-shortcuts) .workspace-shortcut{width:152px;height:48px;min-height:48px}
  .global-toolbar:has(.workspace-shortcuts) .workspace-shortcut-form:first-child .workspace-shortcut{width:210px}
  .global-toolbar:has(.workspace-shortcuts) .global-toolbar-actions>.toolbar-link{grid-column:2;grid-row:2}
  .global-toolbar:has(.workspace-shortcuts) .toolbar-logout{grid-column:3;grid-row:2}
  .global-toolbar:has(.workspace-shortcuts) .workspace-current{grid-column:1;grid-row:2;font-size:11px}
  .global-toolbar:has(.workspace-shortcuts) .workspace-form{grid-column:1/-1;grid-row:3;width:100%;justify-self:stretch}
}

@media(min-width:821px){
  .global-toolbar:has(.workspace-shortcuts){grid-template-columns:minmax(220px,1fr) minmax(220px,360px) auto auto}
  .global-toolbar:has(.workspace-shortcuts) .workspace-current{display:block!important;grid-column:1/-1;font-size:11px}
  .global-toolbar:has(.workspace-shortcuts) .workspace-form{grid-column:2;grid-row:2;width:100%;align-self:center}
  .global-toolbar:has(.workspace-shortcuts) .global-toolbar-actions>.toolbar-link{grid-column:3;justify-self:end}
  .global-toolbar:has(.workspace-shortcuts) .toolbar-logout{grid-column:4;justify-self:end}
}
