body.in-workspace .topbar{padding:16px 30px;border-bottom:1px solid var(--line)}
body.in-workspace main{width:100%;min-width:0;align-self:stretch}
#workspace-panel{width:100%}
:root{--scroll-thumb:#8ca8cb80;--scroll-thumb-hover:#6c90bf}
:root[data-theme=dark]{--scroll-thumb:#708fb080;--scroll-thumb-hover:#9ab6d4}
#module-navigation::-webkit-scrollbar{width:6px}
#module-navigation::-webkit-scrollbar-track{background:transparent}
#module-navigation::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border-radius:10px}
#module-navigation::-webkit-scrollbar-thumb:hover{background:var(--scroll-thumb-hover)}
#module-navigation::-webkit-scrollbar-button{display:none;width:0;height:0}
.unit-switcher{flex-shrink:0;border:1px solid var(--line);background:var(--surface-field);border-radius:14px}
.unit-switcher summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 12px;min-height:56px;border-radius:13px}
.unit-switcher summary::-webkit-details-marker{display:none}
.unit-switcher summary:focus-visible{outline:2px solid var(--text-link);outline-offset:2px}
.unit-switcher summary span{min-width:0}
.unit-switcher summary small{display:block;color:var(--text-subtle);font-size:10px;margin-bottom:4px}
.unit-switcher summary strong{display:block;font-size:11px;font-weight:500;line-height:1.5;color:var(--text-primary);overflow-wrap:anywhere}
.unit-switcher summary>.icon{width:16px;height:16px;color:var(--text-subtle);transition:transform .2s}
.unit-switcher[open] summary>.icon{transform:rotate(180deg)}
.unit-options{padding:0 12px 12px;display:grid;gap:10px}
.unit-switcher .unit-status{display:block;max-width:none}
body.in-workspace .top-caption{display:none}
body.in-workspace main{display:block;padding:20px 24px;flex:1}
body.in-workspace>footer{display:none}
#workspace-panel{--workspace-panel-height:max(360px,calc(100dvh - 118px));display:grid;grid-template-columns:232px minmax(0,1fr);gap:28px;max-width:1500px;margin:auto;align-items:start}
.sidebar{border-radius:26px;padding:22px 14px 14px;position:sticky;top:20px}
.sidebar{height:var(--workspace-panel-height);min-height:360px;display:flex;flex-direction:column;overflow:hidden}
.company-badge{display:flex;align-items:center;gap:10px;padding:0 8px 14px;flex-shrink:0}
.company-badge>.icon{color:var(--blue);width:26px;height:26px}.company-badge strong{display:block;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.company-badge span,.account span{display:block;color:var(--text-subtle);font-size:11px;margin-top:3px}
#module-navigation{padding:8px 5px 8px 0;margin:10px 0;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) transparent}#module-navigation a{display:flex;align-items:center;gap:11px;padding:10px;border-radius:13px;color:var(--text-secondary);font-size:13px;text-decoration:none;transition:background .16s,color .16s}#module-navigation a:hover{background:var(--surface-field)}#module-navigation a[aria-current]{background:#2673ed15;color:var(--text-link);font-weight:600;box-shadow:inset 0 0 0 1px #458cf31f}#module-navigation .icon{width:20px;height:20px}.nav-group{font-size:9px;letter-spacing:1.6px;font-weight:700;color:var(--text-subtle);margin:16px 10px 6px}
.account{flex-shrink:0;display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);padding:17px 4px 1px}.account>div:nth-child(2){flex:1;min-width:0}.account strong{font-size:12px;display:block;overflow-wrap:anywhere}.avatar{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:#6c9bdc26;color:var(--text-link);font-size:13px;font-weight:600;flex-shrink:0}.account-exit{border:0;background:none;color:var(--text-subtle);width:36px;height:44px;padding:5px;display:grid;place-items:center}.mobile-menu{display:none}
.workspace-main{min-width:0}.unit-toolbar{border-radius:21px;padding:14px 18px;display:flex;align-items:center;gap:20px}.unit-label{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600;max-width:140px;line-height:1.5}.unit-label .icon{color:var(--text-link)}.unit-picker{flex:1;min-width:0}.unit-picker label{font-size:10px;margin:0 0 4px}.unit-picker select{width:100%;font:inherit;font-size:12px;color:var(--text-primary);border:1px solid var(--line);background:var(--surface-field);padding:9px;border-radius:10px;min-height:38px}.unit-picker option{background:var(--surface-page)}.unit-picker select:focus-visible{outline:2px solid var(--text-link)}.unit-status{font-size:10px;color:var(--text-subtle);max-width:130px;line-height:1.5}.workspace-heading{margin:10px 0 24px}.workspace-heading h1{font-size:30px;letter-spacing:-1px}.workspace-heading>p:last-child{color:var(--text-secondary);font-size:14px;margin:10px 0 0}.workspace-heading .eyebrow{color:var(--text-subtle);font-size:10px;letter-spacing:1.1px;line-height:1.5}
.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.module-card{border-radius:24px;padding:22px;text-decoration:none;color:var(--text-primary);transition:transform .18s,border-color .18s}.module-card:hover{transform:translateY(-3px);border-color:#7fa8e7}.module-icon{width:44px;height:44px;border-radius:15px;display:grid;place-items:center;background:#367cf21a;color:var(--text-link);margin-bottom:20px}.module-card h2{font-size:16px;letter-spacing:-.3px;margin:0 0 8px}.module-card p{font-size:12px;color:var(--text-secondary);line-height:1.6;max-width:330px;margin:0 0 20px}.card-link{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--text-link);font-weight:600}.card-link .icon{width:17px}.module-orcamentos .module-icon{color:#97712e;background:#d5a44920}.module-clientes .module-icon{color:#9169c7;background:#ad8dd524}.module-financeiro .module-icon{color:#298064;background:#4cb69120}:root[data-theme=dark] .module-orcamentos .module-icon{color:#e5be77}:root[data-theme=dark] .module-clientes .module-icon{color:#c5a5f1}:root[data-theme=dark] .module-financeiro .module-icon{color:#79d5b4}
.workspace-overview{margin-top:22px;border-radius:24px;padding:23px}.overview-title{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.overview-title>.icon{color:var(--text-subtle)}.overview-title h2{font-size:14px;margin:0}.stage-badge{font-size:10px;background:var(--surface-field);border:1px solid var(--line);color:var(--text-subtle);padding:5px 9px;border-radius:20px;display:inline-block}.overview-title .stage-badge{margin-left:auto}.workspace-overview>p{font-size:12px;color:var(--text-secondary);line-height:1.7;max-width:650px}.workflow{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:20px;font-size:11px;color:var(--text-secondary)}.workflow .icon{width:14px;color:var(--text-subtle)}.workflow span{background:var(--surface-field);padding:8px 12px;border-radius:9px}
.module-empty{border-radius:26px;padding:50px 24px;text-align:center}.module-empty .module-icon{margin:0 auto 18px;width:60px;height:60px}.module-empty h2{font-size:20px;margin:20px 0 10px}.module-empty p{font-size:13px;line-height:1.6;color:var(--text-secondary)}.module-empty a{margin-top:18px;text-decoration:none}#workspace-content{animation:arrive .3s ease both}#workspace-loading{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text-secondary);padding:12px 0}#workspace-loading .spinner{border-color:var(--line);border-top-color:var(--text-link)}#workspace-feedback{margin-top:14px}
@media(min-width:1400px){.module-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.module-card p{min-height:58px}.workspace-main{padding-top:0}}
@media(max-width:1000px){#workspace-panel{grid-template-columns:200px minmax(0,1fr);gap:18px}.unit-label{display:none}.unit-toolbar{gap:12px}.unit-status{display:none}.module-card{padding:18px}.sidebar{padding-inline:10px}}
@media(max-width:700px){body.in-workspace .topbar{padding:12px 18px}body.in-workspace main{padding:10px 14px 24px}#workspace-panel{display:block}.sidebar{position:static;padding:12px;border-radius:19px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;margin-bottom:12px}.company-badge{padding:0;border:0}.company-badge span{display:none}.company-badge strong{font-size:12px}.mobile-menu{display:flex;font-size:12px;padding:9px 12px}.mobile-menu .icon{width:18px}#module-navigation{display:none;grid-column:1/-1}.mobile-menu[aria-expanded=true]~#module-navigation{display:block}.account{grid-column:1/-1;padding-top:10px;margin-top:10px}.unit-toolbar{padding:12px;border-radius:18px}.workspace-heading{margin:24px 2px 18px}.workspace-heading h1{font-size:26px}.module-grid{gap:12px}.module-card{border-radius:20px;padding:16px}.module-card h2{font-size:14px}.module-card p{font-size:11px}.module-icon{margin-bottom:14px}.workspace-overview{padding:18px}.overview-title .stage-badge{margin-left:0}.workflow{gap:8px}.workflow span{padding:7px}.module-empty{padding:32px 20px}}
@media(max-width:380px){.module-grid{grid-template-columns:1fr}}
@supports selector(::-webkit-scrollbar){#module-navigation{scrollbar-width:auto;scrollbar-color:auto}}
@media(max-width:700px){
    .sidebar{height:auto;min-height:0;max-height:none;overflow:hidden}
    .company-badge{grid-column:1;grid-row:1}
    .mobile-menu{grid-column:2;grid-row:1}
    .unit-switcher{grid-column:1/-1;margin-top:12px}
    .unit-options{grid-template-columns:repeat(2,minmax(0,1fr))}
    .unit-options .unit-status{grid-column:1/-1}
    #module-navigation{max-height:45dvh;overflow-y:auto;margin-bottom:0}
}


/* Compact authenticated mobile shell; login and desktop retain their layout. */
@media(max-width:700px){
 body.in-workspace .topbar{display:grid;grid-template-columns:minmax(var(--control-target),1fr) repeat(5,var(--control-target));align-items:center;gap:var(--space-inline);padding:var(--space-inline)}
 body.in-workspace .topbar .wordmark{grid-column:1/-1;grid-row:1;justify-self:center;font-size:24px;gap:8px;min-height:44px}
 body.in-workspace .wordmark .brand-mark{width:34px;height:34px;flex-shrink:0}
 body.in-workspace .topbar .header-actions{display:contents}
 body.in-workspace .topbar .theme-control{width:44px;height:44px;min-height:44px;padding:10px;border-radius:10px;margin:0;box-shadow:none;grid-row:2}
 body.in-workspace .topbar .theme-control .icon{width:18px;height:18px}
 body.in-workspace #language-toggle .language-flag{width:24px;height:18px}
 body.in-workspace #palette-toggle{grid-column:2}body.in-workspace #theme-toggle{grid-column:3}body.in-workspace #language-toggle{grid-column:5}
 body.in-workspace #palette-toggle{background:var(--surface-button,#ffffff87);border-color:var(--border-surface);color:var(--text-secondary);box-shadow:none}
 body.in-workspace #palette-toggle:hover{background:color-mix(in srgb,var(--text-link) 9%,var(--surface-field));box-shadow:none}
 body.in-workspace #palette-toggle:active{background:linear-gradient(var(--surface-pressed),var(--surface-pressed)),var(--surface-field);box-shadow:none}
 body.in-workspace .topbar .unit-trigger{grid-column:1;grid-row:2;justify-content:flex-start;width:100%;max-width:none;min-width:0;height:44px;min-height:44px;padding:6px 8px;margin:0;gap:6px;border-radius:10px;box-shadow:none}
 body.in-workspace .topbar .unit-trigger-icon{display:grid;width:24px;height:24px;border-radius:7px}
 body.in-workspace .topbar .unit-trigger-icon .icon{width:17px;height:17px}
 body.in-workspace .topbar .unit-trigger-copy{display:block;flex:1;min-width:0;max-width:none;text-align:left}
 body.in-workspace .topbar .unit-trigger-copy small,body.in-workspace .topbar .unit-trigger-copy strong{display:block;white-space:nowrap;overflow-wrap:normal;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:1.25}
 body.in-workspace .topbar .unit-trigger-copy small{font-size:11px;color:var(--text-secondary);margin-bottom:2px}
 body.in-workspace .topbar .unit-trigger>.icon{width:14px;height:14px;flex-shrink:0}
 body.in-workspace main{padding:8px 12px 20px}
 body.in-workspace .sidebar{padding:8px 10px;border-radius:16px;gap:4px 8px;margin-bottom:10px}
 body.in-workspace .company-badge{gap:7px;min-width:0}
 body.in-workspace .company-badge>.icon{width:20px;height:20px;flex-shrink:0;color:var(--text-link)}
 body.in-workspace .company-badge strong{font-size:11px;line-height:1.35}
 body.in-workspace .mobile-menu{min-height:44px;padding:8px 10px;border-radius:11px;font-size:11px;box-shadow:none}
 body.in-workspace .account{margin-top:0;padding:6px 0 0;gap:8px;min-width:0}
 body.in-workspace .avatar{width:28px;height:28px;border-radius:9px;font-size:11px}
 body.in-workspace .account strong{font-size:11px;line-height:1.35}
 body.in-workspace .account span{font-size:10px;margin-top:2px}
 body.in-workspace .account-exit{width:44px;height:44px;flex-shrink:0}
 body.in-workspace #module-navigation{margin:2px 0;padding:4px 0;max-height:45dvh}
 body.in-workspace #module-navigation a{min-height:44px;padding:8px 10px;font-size:12px;border-radius:10px;gap:8px}
 body.in-workspace #module-navigation .nav-group{margin:10px 10px 4px}
 body.in-workspace .workspace-heading{margin-top:14px;margin-bottom:14px}
}

/* Two-column module menu, with full-width group headings. */
@media(max-width:700px){
 body.in-workspace .mobile-menu[aria-expanded=true]~#module-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 6px;align-content:start}
 body.in-workspace #module-navigation{padding:6px 4px 6px 0;border-top:1px solid var(--line)}
 body.in-workspace #module-navigation .nav-group{grid-column:1/-1;margin:8px 8px 2px;font-size:9px;letter-spacing:1.1px;line-height:1.4}
 body.in-workspace #module-navigation>a:first-child{grid-column:1/-1}
 body.in-workspace #module-navigation a{min-width:0;min-height:44px;padding:8px;gap:7px;font-size:12px;line-height:1.35;border-radius:10px}
 body.in-workspace #module-navigation a>span{min-width:0;overflow-wrap:anywhere}
 body.in-workspace #module-navigation a>.icon{width:18px;height:18px;flex-shrink:0}
 body.in-workspace #module-navigation a:focus-visible{outline:2px solid var(--text-link);outline-offset:-2px}
 body.in-workspace #module-navigation a[aria-current=page]{background:var(--accent-soft);color:var(--text-link);box-shadow:inset 0 0 0 1px var(--accent-ring)}
}
@media(max-width:359px){body.in-workspace #module-navigation a{font-size:11px;gap:6px}}
@media(max-width:700px){
 body.in-workspace .topbar{padding-top:max(8px,env(safe-area-inset-top));padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
 body.in-workspace main{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));padding-bottom:max(20px,env(safe-area-inset-bottom))}
 body.in-workspace .mobile-menu:focus-visible,body.in-workspace .account-exit:focus-visible{outline:2px solid var(--text-link);outline-offset:1px}
}
/* Give the selected store/branch the remaining phone width before decoration. */
@media(max-width:480px){
 body.in-workspace .topbar{gap:4px;padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}
 body.in-workspace .topbar .unit-trigger-icon{display:none}
 body.in-workspace .topbar .unit-trigger{gap:4px}
}
@media(max-width:380px){body.in-workspace .topbar .unit-trigger>.icon{display:none}}

/* Home shortcuts use the personal palette and compact mobile hierarchy. */
.workspace-home .module-card .module-icon{color:var(--text-link);background:var(--accent-soft)}
.workspace-home .module-card:hover{border-color:var(--accent-ring)}
.workspace-home .module-card:focus-visible{outline:2px solid var(--text-link);outline-offset:2px}
@media(max-width:700px){
 .workspace-home .workspace-heading{margin:12px 2px}
 .workspace-home .workspace-heading h1{font-size:24px;line-height:1.25;overflow-wrap:anywhere}
 .workspace-home .workspace-heading>p:last-child{font-size:12px;line-height:1.45;margin-top:6px}
 .workspace-home .module-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .workspace-home .module-card{display:flex;flex-direction:column;min-width:0;padding:12px;border-radius:16px;overflow-wrap:anywhere}
 .workspace-home .module-card:hover{transform:none}
 .workspace-home .module-icon{width:32px;height:32px;border-radius:10px;margin-bottom:10px;flex-shrink:0}
 .workspace-home .module-icon .icon{width:18px;height:18px}
 .workspace-home .module-card h2{font-size:14px;line-height:1.3;margin-bottom:6px}
 .workspace-home .module-card p{font-size:11px;line-height:1.45;margin-bottom:10px;min-height:0}
 .workspace-home .card-link{margin-top:auto;padding-top:6px;gap:6px;font-size:11px;line-height:1.35;border-top:1px solid var(--line)}
 .workspace-home .card-link .icon{width:16px;height:16px;flex-shrink:0}
 .workspace-home .workspace-overview{padding:14px;border-radius:16px;margin-top:12px}
 .workspace-home .overview-title{gap:6px 8px}.workspace-home .overview-title h2{font-size:13px;line-height:1.35}
 .workspace-home .overview-title>.icon{width:18px;height:18px;flex-shrink:0}
 .workspace-home .stage-badge{font-size:10px;padding:4px 8px;margin:0}
 .workspace-home .workspace-overview>p{font-size:11px;line-height:1.5;margin:10px 0}
 .workspace-home .workflow{display:grid;grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr);gap:6px;margin-top:10px;font-size:11px}
 .workspace-home .workflow span{padding:8px;border-radius:9px;line-height:1.35;min-width:0;overflow-wrap:anywhere}
 .workspace-home .workflow>.icon:nth-child(4){display:none}
}

/* Shared listing reset: compact, neutral and touch accessible. */
.workspace-list-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:center}
.workspace-list-heading>.eyebrow,.workspace-list-heading>p{grid-column:1/-1}
.workspace-list-heading>h1{grid-column:1;grid-row:1;min-width:0;overflow-wrap:anywhere}
.workspace-list-heading>.listing-reset{grid-column:2;grid-row:1;min-height:44px;max-width:140px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:transparent;box-shadow:none;color:var(--text-secondary);font:inherit;font-size:12px;line-height:1.35;cursor:pointer;white-space:normal}
.workspace-list-heading>.listing-reset:hover{background:var(--surface-hover);color:var(--text-link)}
.workspace-list-heading>.listing-reset:active{background:var(--surface-pressed)}
.workspace-list-heading>.listing-reset:focus-visible{outline:2px solid var(--text-link);outline-offset:2px}
@media(max-width:700px){.workspace-list-heading{column-gap:8px}.workspace-list-heading>.listing-reset{max-width:104px;padding:6px 8px;font-size:11px}}
.workspace-list-heading>p:not(.eyebrow){color:var(--text-secondary);font-size:14px;margin:10px 0 0}
.listing-reset[hidden],.listing-filter-summary[hidden]{display:none!important}
.listing-filter-summary{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;min-width:0}
.listing-filter-summary>span{max-width:100%;min-width:0;padding:4px 8px;border:1px solid var(--line);border-radius:8px;background:var(--surface-field);color:var(--text-secondary);font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.workspace-list-heading~section .applied-filter-bar{display:none!important}
@media(max-width:700px){.listing-filter-summary{gap:4px;margin-top:6px}.listing-filter-summary>span{padding:3px 6px}}
.listing-filter-summary>.listing-filter-chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-width:0;min-height:44px;padding:5px 8px;border:1px solid var(--line);border-radius:9px;background:var(--surface-field);color:var(--text-secondary);font:inherit;font-size:11px;line-height:1.45;text-align:left;box-shadow:none;cursor:pointer}
.listing-filter-chip>span:first-child{min-width:0;overflow-wrap:anywhere}
.listing-filter-chip>.listing-filter-remove{flex-shrink:0;font-size:18px;line-height:1;color:var(--text-link)}
.listing-filter-summary>.listing-filter-chip:hover{background:var(--surface-hover);color:var(--text-link)}
.listing-filter-summary>.listing-filter-chip:active{background:var(--surface-pressed)}
.listing-filter-summary>.listing-filter-chip:focus-visible{outline:2px solid var(--text-link);outline-offset:2px}
.listing-filter-chip[hidden],.listing-filter-toggle[hidden]{display:none!important}
.listing-filter-summary>.listing-filter-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:6px 10px;max-width:100%;border:1px dashed var(--line);border-radius:9px;background:transparent;box-shadow:none;color:var(--text-link);font:inherit;font-size:11px;line-height:1.4;cursor:pointer}
.listing-filter-summary>.listing-filter-toggle:hover{background:var(--surface-hover)}
.listing-filter-summary>.listing-filter-toggle:active{background:var(--surface-pressed)}
.listing-filter-summary>.listing-filter-toggle:focus-visible{outline:2px solid var(--text-link);outline-offset:2px}
/* Shared empty states keep filter recovery close to the result area. */
#workspace-content .listing-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px 16px;text-align:center;min-width:0;color:var(--text-secondary)}
#workspace-content .listing-empty .listing-empty-icon,#workspace-content .listing-empty>.module-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;margin:0;border-radius:11px;background:var(--accent-soft);color:var(--text-link);box-shadow:none}
#workspace-content .listing-empty .listing-empty-icon .icon{width:20px;height:20px}
#workspace-content .listing-empty h2,#workspace-content .listing-empty h3{margin:0;font-size:15px;line-height:1.4;color:var(--text-primary);overflow-wrap:anywhere}
#workspace-content .listing-empty p{margin:0;max-width:440px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
#workspace-content .listing-empty .listing-empty-clear{min-height:44px;max-width:100%;margin:4px 0 0;padding:8px 14px;border-radius:11px;box-shadow:none;white-space:normal;font-size:12px;color:var(--text-link)}
@media(max-width:700px){#workspace-content .listing-empty{padding:20px 12px;gap:6px}#workspace-content .listing-empty h2,#workspace-content .listing-empty h3{font-size:14px}#workspace-content .listing-empty p{font-size:11px}}

.listing-size-control{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:6px 0 0;color:var(--text-secondary);font-size:11px}
.listing-size-control select{width:auto;min-width:76px;min-height:44px;padding:7px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-field);color:var(--text-primary);font:inherit;font-size:14px}
.listing-size-control select:focus-visible{outline:2px solid var(--text-link);outline-offset:2px}
.workspace-list-heading>.listing-size-error{grid-column:1/-1;font-size:12px;line-height:1.4}
.listing-size-error[hidden]{display:none!important}
@media(max-width:700px){.listing-size-control select{font-size:16px}.listing-size-control{margin-top:4px}}

/* Shared hierarchy: title, description, then indicators and controls. */
.workspace-heading>.workspace-description{grid-column:1/-1;grid-row:2;min-width:0;margin:6px 0 0;color:var(--text-secondary);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.workspace-heading>h1{margin:0;grid-row:1}
.workspace-heading-summary>.module-summary{grid-column:1/-1;grid-row:3}
@media(max-width:700px){.workspace-heading>.workspace-description{font-size:12px;margin-top:5px}}

/* Keep every mobile header action on the same row, with full touch targets. */
@media(max-width:700px){
 :root body.in-workspace .topbar #notifications-header{grid-column:2;grid-row:2}
 :root body.in-workspace .topbar #chat-header{grid-column:3;grid-row:2}
 :root body.in-workspace .topbar #palette-toggle{grid-column:4;grid-row:2}
 :root body.in-workspace .topbar #theme-toggle{grid-column:5;grid-row:2}
 :root body.in-workspace .topbar #language-toggle{grid-column:6;grid-row:2}
}
@media(max-width:430px){
 :root body.in-workspace .topbar .unit-trigger-icon{display:none}
}
@media(max-width:340px){
 :root body.in-workspace .topbar .unit-trigger{justify-content:center;padding:var(--space-inline)}
 :root body.in-workspace .topbar .unit-trigger-icon{display:grid;flex-shrink:0}
 :root body.in-workspace .topbar .unit-trigger-copy,:root body.in-workspace .topbar .unit-trigger>.icon{display:none}
}

/* One account row in both workspaces: avatar action, flexible identity, exit. */
.account>button.avatar{min-width:44px;min-height:44px;border:1px solid var(--line);padding:0;cursor:pointer;overflow:hidden}
.account>button.avatar:focus-visible{outline:2px solid var(--text-link);outline-offset:3px}

.account-exit{min-width:var(--control-target,44px);min-height:var(--control-target,44px)}

/* Shared page origin; the master does not maintain a second shell spacing scale. */
:root body.in-workspace main.workspace-shell{padding:20px 24px}
@media(min-width:701px){:root body.in-workspace header.topbar{min-height:calc(var(--topbar-content-height,50px) + 2 * var(--space-section,16px) + 1px)}}
@media(max-width:700px){:root body.in-workspace main.workspace-shell{padding:8px max(12px,env(safe-area-inset-right)) calc(20px + var(--mobile-nav-height,0px)) max(12px,env(safe-area-inset-left))}:root body.in-workspace header.topbar{padding:max(8px,env(safe-area-inset-top)) max(var(--topbar-inline),env(safe-area-inset-right)) 8px max(var(--topbar-inline),env(safe-area-inset-left))}}
