/* One width for the signed-in workspace, including its fixed navigation. */
#app:has(>.shell){--workspace-max-width:2560px;width:100%;max-width:var(--workspace-max-width);margin-inline:auto}
#app>.sidebar{left:max(0px,calc((100% - var(--workspace-max-width,2560px))/2))}
#app>.shell>.page,#app>.shell>#extension-update-notice{max-width:none}
.shell>.page .settings-workspace{max-width:none}
.shell .world-footer-scene>.world-footer,.shell .workspace-meta{max-width:none}
.shell .world-footer-scene .world-projects{left:var(--footer-gutter);max-width:calc(100% - 2 * var(--footer-gutter) - 156px)}
.shell .world-footer-scene .forest-zoom{right:var(--footer-gutter)}
.shell>.page :is(.cards-grid,.achievement-grid,.settings-grid)>*{min-width:0}

/* Extra space adds useful columns while individual controls stay readable. */
@media(min-width:1600px){
 .shell>.page .cards-grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}
 .shell>.page .achievement-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
 .shell>.page .integration-card p{max-width:65ch}
}
@media(min-width:1800px){
 .shell>.page .overview-workspace{grid-template-columns:minmax(0,1fr) 320px;gap:28px}
 .shell>.page .overview-summary .stat-label{font-size:11px}
 .shell>.page .overview-summary .stat-number{font-size:26px}
 .shell>.page .overview-summary .stat-icon{width:33px;height:33px}
 .shell>.page .overview-summary>.dashboard-bottom{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start;gap:24px}
 .shell .settings-preferences{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px 40px;align-items:start}
 .shell .settings-preferences>.settings-general-scope{grid-column:1/-1;margin:0}
 .shell .settings-preferences>.settings-appearance{border-top:0;border-left:1px solid var(--line);padding:0 0 0 40px;margin:0}
 .shell #settings-panel-world>.settings-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:start}
 .shell #settings-panel-world .settings-world-defaults{border:0;margin:0;padding:0}
 .shell #settings-panel-world .settings-weather{border-top:0;border-left:1px solid var(--line);padding:0 0 0 40px;margin:0}
 .shell .settings-account-card>.profile-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:start}
 .shell .settings-account-card .profile-security-fields{border-top:0;border-left:1px solid var(--line);margin-top:0;padding:0 0 0 32px}
}
@media(min-width:2561px){body:has(#app>.shell) .task-filter-drawer{right:calc((100% - 2560px)/2)}}
@media(max-width:760px){#app>.sidebar{left:0}}
