/* Team App shell has one breakpoint and one scroll owner at every viewport size. */
body.bu-app *,body.bu-app *::before,body.bu-app *::after{box-sizing:border-box}
body.bu-app:has(.ws-shell){height:100dvh;overflow:hidden}
.bu-app .ws-root:has(.ws-shell){height:100dvh;min-height:0}
.bu-app .ws-shell{height:100dvh;min-height:0;width:100%;grid-template-columns:240px minmax(0,1fr);grid-template-rows:minmax(0,1fr);padding:0;background:var(--bg);overflow:hidden}
.bu-app .ws-sidebar{position:relative;inset:auto;display:flex;flex-direction:column;width:240px;height:100%;min-height:0;padding:24px 16px 16px;background:var(--surface-deep);overflow:hidden}
.bu-app .ws-sidebar .ws-org-label,.bu-app .ws-sidebar .ws-org-select,.bu-app .ws-sidebar .ws-role{display:block}
.bu-app .ws-sidebar .ws-org-select{width:100%;min-width:0;color:var(--ink-on-deep);background:color-mix(in srgb,var(--surface-deep),white 12%);border-color:var(--line-strong)}
.bu-app .ws-sidebar .ws-org-select option{color:var(--ink);background:var(--surface)}
.bu-app .ws-app-brand{display:flex;align-items:center;gap:10px;margin-bottom:20px;min-width:0}
.bu-app .ws-app-brand img{width:82px;height:32px;object-fit:contain}
.bu-app .ws-app-brand strong{font-size:15px;white-space:nowrap;color:var(--ink-on-deep)}
.bu-app .ws-nav{display:flex;flex-direction:column;height:auto;min-height:0;flex:1;overflow:auto;gap:4px;padding:0 0 16px}
.bu-app .ws-nav :is(button,a){width:100%;min-width:0;flex:none;flex-direction:row;justify-content:flex-start;white-space:normal;line-height:1.5;font-size:14px!important}
.bu-app .ws-sidebar .ws-nav button>span{display:inline;font-size:14px}
.bu-app .ws-nav button::before,.bu-app .ws-nav button>span::after{display:none!important}
.bu-app .ws-nav a{color:var(--ink-on-deep-muted)}
.bu-app .ws-nav :is(button,a):hover{background:color-mix(in srgb,var(--surface-deep),white 12%);color:var(--ink-on-deep)}
.bu-app .ws-nav button[aria-current=page],.bu-app .ws-nav button[aria-current=page]:hover{color:var(--on-lime);background:var(--lime-soft)}
.bu-app .ws-content{height:100%;min-height:0;min-width:0;padding:0 32px 96px;overflow:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable}
.bu-app #workspaceView{display:grid;grid-template-columns:minmax(0,1fr);justify-items:stretch;align-content:start;width:100%;max-width:1280px;margin-inline:auto;gap:24px}
.bu-app #workspaceView>*{width:100%;min-width:0;max-width:100%}
.bu-app .bu-page-head{width:100%;max-width:1280px;margin:0 auto 24px;padding:28px 0 0;align-items:center;gap:16px}
.bu-app .bu-page-head__text{flex:1 1 240px;min-width:0;padding:0!important}
.bu-app .bu-page-head__title{font-size:28px;line-height:1.4;letter-spacing:-.025em;overflow-wrap:anywhere}
.bu-app .bu-page-head__desc{line-height:1.7}
.bu-app .bu-page-head__actions{flex:0 1 auto;min-width:0;max-width:100%;width:auto;justify-content:flex-end;gap:8px}
.bu-app .bu-page-head__actions:empty{display:none}
.bu-app .bu-topbar{position:sticky;top:0;z-index:var(--z-sticky);min-height:72px;height:auto;margin-inline:-32px;padding:12px 24px;gap:16px;background:var(--surface-deep)}
.bu-app .bu-topbar__brand{min-width:0;flex:1;gap:12px}
.bu-app .bu-topbar__team{font-size:15px;line-height:1.5}
.bu-app .bu-topbar__actions{flex:none;gap:10px;min-width:98px}
.bu-app .bu-topbar .ws-account{display:block;flex:none;width:44px;margin:0;padding:0;border:0}
.bu-app .bu-topbar :is(.ta-bell,.ws-account-trigger){display:grid;place-items:center;position:relative;inset:auto;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;margin:0;padding:0;border:1px solid var(--line-strong);border-radius:50%;background:transparent;color:var(--ink-on-deep)}
.bu-app .bu-topbar :is(.ta-bell,.ws-account-trigger):hover{background:color-mix(in srgb,var(--surface-deep),white 14%)}
.bu-app .bu-topbar .ta-bell svg{width:22px;height:22px}
.bu-app .bu-topbar .ta-bell b{display:grid;place-items:center;top:0;right:0;min-width:18px;height:18px;padding:0 4px;font-size:12px;line-height:18px}
.bu-app .bu-topbar :is(.ws-account-identity,.ws-account-chevron){display:none}
.bu-app :is(.ws-account-avatar,.bu-team-avatar){position:relative;display:grid;place-items:center;flex:none;isolation:isolate;width:36px;height:36px;min-width:36px;border-radius:50%;background:var(--lime-soft);color:var(--on-lime);font-size:15px;font-weight:700;overflow:hidden}
.bu-app :is(.ws-account-avatar,.bu-team-avatar) img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;padding:3px;background:#fff;border-radius:inherit}
.bu-app .bu-team-avatar--hero{width:64px;height:64px;font-size:26px;border:1px solid var(--line);border-radius:16px}
.bu-app .bu-team-avatar--hero img{padding:5px}
.bu-app .ws-sidebar-bottom{min-width:0;flex:none}
.bu-app .ws-account-identity{min-width:0}
.bu-app .ws-account--desktop .ws-account-trigger{width:100%;min-width:0;padding-inline:6px}
.bu-app .ws-account-dialog{position:fixed;inset:auto;top:var(--account-top,12px);left:var(--account-left,12px);width:320px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);margin:0;padding:20px;border:1px solid var(--line-strong);border-radius:20px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-lg);overflow:auto;overscroll-behavior:contain}
.bu-app .ws-account-dialog header{align-items:flex-start;gap:12px}
.bu-app .ws-account-dialog :is(h2,p){margin:0;line-height:1.6}
.bu-app .ws-account-dialog header p{color:var(--ink-secondary)}
.bu-app .ws-account-dialog button{font-family:var(--font-sans);line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.bu-app .ws-account-dialog button:hover{background:var(--surface-muted)}
.bu-app .ws-account-dialog .ws-account-person,.bu-app .ws-account-dialog .ws-account-usage-details,.bu-app .ws-account-dialog [data-signout]{border-color:var(--line)}
.bu-app .ws-account-dialog :is(.ws-account-person span,.ws-account-meter small,.ws-account-usage-note,.ws-account-count-help,.ws-account-retry){color:var(--ink-secondary)}
.bu-app .ws-account-dialog .ws-account-count-help strong{color:var(--ink)}
.bu-app .ws-account-dialog nav{gap:4px}
.bu-app .ws-account-dialog nav button{padding:12px}
.bu-app .ws-account-dialog [data-account-close]{min-width:44px;width:44px;margin:-8px -8px 0 0}
.bu-app [data-home-news]{display:grid;gap:0;min-width:0}
.bu-app .bu-btn.bu-home-news-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 20px;width:100%;padding:16px 8px;min-height:56px;border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:left;background:transparent;font-weight:400}
.bu-app .bu-home-news-row:last-child{border-bottom:0}
.bu-app .bu-home-news-row:hover{background:var(--surface-muted)}
.bu-app .bu-home-news-row strong{font-size:14px;line-height:1.7;min-width:0;white-space:normal;overflow-wrap:anywhere;font-weight:600}
.bu-app .bu-home-news-row>span{font-size:12px;line-height:1.6;color:var(--ink-secondary);white-space:nowrap}
.bu-app .bu-card__head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;flex-wrap:wrap}
.bu-app .bu-card__head h2{min-width:0;overflow-wrap:anywhere}
.bu-app .bu-task-grid .bu-btn{min-width:0;width:100%;padding:12px 16px;line-height:1.5}
.bu-app .bu-home-plan{line-height:1.8;align-items:center}
.bu-app .bu-home-plan>span{flex:1 1 280px;min-width:0;overflow-wrap:anywhere}
.bu-app #workspaceView>.kc-root,.bu-app #communityRoot,.bu-app #loungeRoot{width:100%;max-width:none;margin:0;min-width:0}
.bu-app .kc-tabs{flex-wrap:wrap;align-items:center}
.bu-app :is(.kc-list-head,.kc-detail-head){width:100%;flex-wrap:wrap;gap:12px}
.bu-app .kc-list-head>div{min-width:0;flex:1}
.bu-app .kc-detail-head>div{flex-wrap:wrap}
.bu-app :is(.kc-article,.kc-comments,.kc-editor,.kc-post-card){width:100%;max-width:100%;min-width:0}
.bu-app .kc-article .kc-prose{max-width:85ch}
.bu-app .kc-author{min-width:0;gap:8px}
.bu-app .kc-author>span{min-width:0;overflow-wrap:anywhere}
.bu-app .kc-search{width:100%;min-width:0}
.bu-app .kc-search input{min-width:0}
.bu-app .bu-dues-filters{display:grid;grid-template-columns:1fr 1fr 1.4fr;align-items:end;gap:16px}
.bu-app .bu-dues-filters label{display:grid;gap:8px;min-width:0;line-height:1.5;font-size:14px}
.bu-app .bu-dues-filters :is(input,select){width:100%;max-width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit}
.bu-app .bu-chips{gap:8px;margin-block:16px}
.bu-app .bu-chips .bu-chip{white-space:normal;line-height:1.5;padding:10px 16px}
.bu-app .bu-preferences{padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.bu-app .bu-preferences h2{font-size:20px;margin:0 0 8px}
.bu-app .bu-preferences p{color:var(--ink-secondary);font-size:14px;line-height:1.7;margin:0 0 20px}
.bu-app .bu-preferences__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.bu-app .bu-preferences label{display:grid;gap:8px;min-width:0;font-weight:600;font-size:14px}
.bu-app .bu-preferences output{display:block;margin-top:12px;font-size:12px;color:var(--success);min-height:20px}
.bu-app #workspaceView[data-workspace-page=settings]>.pg-logo-control{justify-content:flex-start;gap:12px;padding:20px;border:1px solid var(--line);border-radius:16px}
.bu-app .ws-group-form{grid-template-columns:minmax(0,1fr) 68px auto 44px}
.bu-app .ws-group-presets .ws-field{min-width:0}
.bu-app .ws-group-presets .ws-icon-button{flex:0 0 44px}
@media(max-width:900px){.bu-app .ws-group-form{grid-template-columns:minmax(0,1fr) 64px}.bu-app .ws-group-form>.ws-button{width:100%}}
@media(max-width:1023px){
 .bu-app .ws-shell{display:block;grid-template-columns:1fr}
 .bu-app .ws-sidebar{display:none}
 .bu-app .ws-content{width:100%;height:100%;padding:0 20px calc(100px + env(safe-area-inset-bottom));scrollbar-gutter:auto}
 .bu-app .bu-topbar{margin-inline:-20px;padding-inline:20px}
 .bu-app .bu-page-head{padding-top:24px}
 .bu-app .bu-tabbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:calc(72px + env(safe-area-inset-bottom));padding:6px 8px calc(6px + env(safe-area-inset-bottom));border-radius:16px 16px 0 0;gap:4px}
 .bu-app .bu-tabbar button{min-width:0;min-height:52px;line-height:1.35}
 .bu-app .bu-tabbar button span{max-width:100%;overflow-wrap:anywhere}
 .bu-app .bta-launcher{bottom:calc(88px + env(safe-area-inset-bottom))!important}
 .bu-app .bu-menu-sheet{max-height:calc(100dvh - 24px);overflow:auto}
 .bu-app .bu-menu-sheet nav :is(button,a){flex-direction:row;min-width:0;width:100%}
}
@media(max-width:599px){
 .bu-app .ws-content{padding-inline:16px}
 .bu-app .bu-topbar{margin-inline:-16px;padding:10px 16px;min-height:64px;gap:12px}
 .bu-app .bu-page-head{gap:12px;margin-bottom:20px}
 .bu-app .bu-page-head__text{flex:1 1 180px}
 .bu-app .bu-page-head__title{font-size:25px}
 .bu-app .bu-page-head__actions{flex-basis:100%;justify-content:flex-start}
 .bu-app .bu-team-avatar--hero{width:52px;height:52px;font-size:22px;border-radius:12px}
 .bu-app .bu-btn.bu-home-news-row{grid-template-columns:minmax(0,1fr);gap:4px;padding:14px 4px}
 .bu-app .bu-home-news-row>span{white-space:normal}
 .bu-app .bu-dues-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .bu-app .bu-dues-filters label:last-child{grid-column:1/-1}
 .bu-app .bu-preferences{padding:20px 16px}
 .bu-app .bu-preferences__grid{grid-template-columns:1fr;gap:16px}
 .bu-app .ws-account-dialog{inset:auto 0 0;width:100%;max-width:100%;max-height:calc(100dvh - 24px);padding:20px 20px calc(20px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0}
 .bu-app :is(.kc-article,.kc-comments,.kc-editor){padding:20px 16px}
 .bu-app .kc-author time{padding-left:0}
}
@media(prefers-reduced-motion:reduce){.bu-app *{scroll-behavior:auto!important}}
