
/* Application workspace: use the display width, keep scroll inside dense tables. */
.clean-core-body main,.clean-core-body section,.clean-core-body article{min-width:0}.clean-core-body .clean-shell{width:calc(100% - 32px);max-width:none}.people-shell{width:100%;max-width:none;box-sizing:border-box}.clean-page-head h1,.clean-hero h1{font-size:clamp(25px,2.4vw,40px);line-height:1.15}.clean-page-head{margin-bottom:16px}.clean-hero{min-height:120px;padding:22px}.clean-card-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px}.clean-feature-card{min-height:150px;padding:20px}.vault-card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:14px}.vault-card-grid>.clean-empty{grid-column:1/-1;min-height:150px}.clean-file-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr))}.clean-file-grid article{min-width:0}.clean-file-grid article b{overflow-wrap:anywhere}.people-toolbar{gap:8px}.people-table-wrap{max-width:100%}.release-strip{align-items:stretch}.release-card{flex:1;max-width:380px}.deploy-center{max-width:none;width:100%}.deployment-device-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}.deploy-upload-panel{gap:20px}.panel-title-row{flex-wrap:wrap}.inline-upload{max-width:100%;flex-wrap:wrap}.inline-upload input[type=file]{max-width:100%;min-width:0}.channel-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:981px){
.clean-core-body .clean-shell{margin:0 16px;padding-top:20px}.clean-core-body .clean-appbar{padding-left:20px;padding-right:20px}.clean-core-body .compact-profile{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:12px;width:calc(100% - 32px);max-width:none}.compact-profile>.clean-page-head,.compact-profile>.profile-facts,.compact-profile>.flash{grid-column:1/-1}.compact-profile>.profile-sections{display:contents}.compact-profile .profile-section{margin:0}.compact-profile .profile-facts{margin-bottom:4px}.communication-shell{width:100%;max-width:none;margin:0;grid-template-columns:clamp(260px,24vw,400px) minmax(0,1fr);height:calc(100dvh - 80px);min-height:0}.conversation-list,.thread-panel{min-width:0;min-height:0}.conversation-list{overflow:auto}.message-stream{min-height:0;overflow:auto}.thread-panel>.clean-empty{min-height:0}.people-shell{padding:20px 16px}.deploy-health-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(min-width:1600px){.clean-card-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.clean-feature-card{align-items:flex-start}.clean-feature-card>span{width:46px;height:46px;flex-shrink:0}.clean-feature-card h2{font-size:20px}}
@media(max-width:760px){.clean-core-body .clean-shell{width:calc(100% - 24px)}.clean-card-grid,.vault-card-grid,.clean-file-grid,.channel-choice-grid{grid-template-columns:1fr}.release-card{max-width:none}.panel-title-row,.inline-upload{align-items:stretch}.inline-upload{width:100%}.inline-upload button{max-width:100%;white-space:normal}.clean-file-grid article{grid-template-columns:30px minmax(0,1fr) auto}.clean-page-head{gap:10px;flex-wrap:wrap}.clean-page-head p{font-size:13px}.clean-hero{padding:18px}.people-shell{padding:12px}}

@media(max-width:760px){.message-composer{grid-template-columns:36px minmax(0,1fr) auto;align-items:end;padding:10px;gap:7px}.message-composer textarea{min-height:42px;height:42px;max-height:120px;padding:10px;font-size:13px}.message-composer button{grid-column:auto;min-height:42px;padding:8px;font-size:11px}.attach-button{min-height:42px}}

/* Environment choice is a standalone page, not a sidebar workspace. */
body.environment-body .environment-shell{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:calc(100dvh - var(--beta-header,var(--energy-header-height,64px)));width:auto;max-width:none;margin:0;padding:24px 16px;}
.environment-card{width:100%;max-width:760px;min-width:0;}
.environment-default{display:grid;gap:8px;margin-bottom:20px;}
.environment-default select{width:100%;min-height:44px;}
.environment-default small{line-height:1.5;}
@media(max-width:640px){body.environment-body .environment-shell{padding:16px 12px;}.environment-card .clean-page-head h1{font-size:24px;}.environment-card .channel-choice{padding:18px;}}
