.rhw-chatgpt-shell .rhw-chatgpt-main{padding:0!important;margin:0!important;max-width:none!important;width:auto!important;height:100vh!important;display:flex!important;flex-direction:column!important}.rhw-chatgpt-shell .rhw-chatgpt-top{margin:0!important;padding:0 14px!important;height:56px!important;min-height:56px!important;align-items:center!important;border-bottom:1px solid var(--chat-line)!important}.rhw-chatgpt-shell .rhw-chatgpt-sidebar,.rhw-chatgpt-shell .rhw-chatgpt-workspace{padding:0!important;margin:0!important;height:100vh!important}.command-mode .rhw-chatgpt-main{padding:0!important;margin:0!important;max-width:none!important;height:100vh!important}.command-mode .rhw-chatgpt-top{display:flex!important;margin:0!important;padding:0 14px!important;height:56px!important;min-height:56px!important}.command-mode .rhw-chatgpt-chat{height:auto!important}.rhw-chatgpt-workspace-body main,.rhw-chatgpt-workspace-body header,.rhw-chatgpt-workspace-body aside{height:auto}.rhw-chatgpt-workspace-body #view{display:block!important;flex:none!important}.rhw-chatgpt-workspace-body .card,.rhw-chatgpt-workspace-body .project,.rhw-chatgpt-workspace-body button,.rhw-chatgpt-workspace-body a{pointer-events:auto!important}.rhw-chatgpt-shell button,.rhw-chatgpt-shell select,.rhw-chatgpt-shell textarea,.rhw-chatgpt-shell input{font-family:inherit}

/* Desktop split-pane behavior: side panels resize chat instead of covering it. */
@media(min-width:901px){
  .rhw-chatgpt-shell{display:flex!important;align-items:stretch!important}
  .rhw-chatgpt-main{flex:1 1 auto!important;min-width:360px!important;width:auto!important;transition:flex-basis .22s ease,width .22s ease!important}
  .rhw-chatgpt-sidebar{position:relative!important;left:auto!important;top:auto!important;bottom:auto!important;z-index:1!important;width:0!important;flex:0 0 0!important;min-width:0!important;transform:none!important;overflow:hidden!important;box-shadow:none!important;border-right:0!important;transition:flex-basis .22s ease,width .22s ease!important}
  .rhw-chatgpt-sidebar.open{width:310px!important;flex-basis:310px!important;border-right:1px solid var(--chat-line)!important}
  .rhw-chatgpt-workspace{position:relative!important;right:auto!important;top:auto!important;bottom:auto!important;z-index:1!important;width:0!important;flex:0 0 0!important;min-width:0!important;transform:none!important;overflow:hidden!important;box-shadow:none!important;border-left:0!important;transition:flex-basis .24s ease,width .24s ease!important}
  .rhw-chatgpt-workspace.open{width:clamp(420px,42vw,760px)!important;flex-basis:clamp(420px,42vw,760px)!important;border-left:1px solid var(--chat-line)!important}
  .rhw-chatgpt-scrim{display:none!important}
  .rhw-chatgpt-messages{padding-left:clamp(18px,5vw,64px)!important;padding-right:clamp(18px,5vw,64px)!important}
  .rhw-chatgpt-compose-wrap{padding-left:16px!important;padding-right:16px!important}
  .rhw-chatgpt-workspace-body{width:100%!important;min-width:0!important;overflow:auto!important}
  .rhw-chatgpt-workspace-body #view{width:100%!important;min-width:0!important;min-height:100%!important;visibility:visible!important;opacity:1!important}
}

/* Mobile keeps drawer behavior because there is not enough width for two usable panes. */
@media(max-width:900px){
  .rhw-chatgpt-main{min-width:0!important}
  .rhw-chatgpt-workspace{width:100vw!important}
}

.rhw-workspace-loading{padding:24px;color:var(--chat-muted);font-size:13px}
