.workspace-shell { display: grid; grid-template-columns: 64px minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; }
.workspace-shell[data-expanded="true"] { grid-template-columns: var(--drawer-w) minmax(0, 1fr); }
.workspace-content { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.workspace-frames, #tools-content { height: 100%; min-width: 0; overflow: auto; }
.workspace-notice:empty { display: none; }
.workspace-notice { position: absolute; bottom: 8px; left: 8px; margin: 0; background: var(--surface); }
.workspace-shell .drawer { width: 100%; }
.workspace-shell .drawer-inner { width: 100%; min-height: 0; }
.app-list { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; overflow: auto; padding: 8px; gap: 4px; scrollbar-width: thin; }
.workspace-button { display: flex; align-items: center; gap: 8px; flex: none; width: 100%; height: 44px; padding: 0 8px; border: 0; border-radius: 10px; background: none; }
.workspace-button:hover, .workspace-button[aria-current="true"] { background: var(--surface-2); }
.nav-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; font-weight: 650; border: 1px solid var(--line); border-radius: 9px; }
.nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.workspace-shell[data-expanded="false"] .drawer-persona,
.workspace-shell[data-expanded="false"] .context-capacity,
.workspace-shell[data-expanded="false"] .context-toggle,
.workspace-shell[data-expanded="false"] .nav-label,
.workspace-shell[data-expanded="false"] .settings-label { display: none; }
@media (max-width: 759px) {
  .workspace-shell[data-expanded="true"] { grid-template-columns: 64px minmax(0, 1fr); }
  .workspace-shell[data-expanded="true"] .drawer { position: absolute; z-index: 10; inset: 0 auto 0 0; width: min(240px, calc(100vw - 48px)); box-shadow: 12px 0 40px #0008; }
}
@media (max-height: 560px) { :root { --empty-scale: .32; } .context-capacity { padding-top: 2px; padding-bottom: 4px; } }
