/* ==========================================================================
   HUMUS AI WORKSPACE — Design System & Styles
   Bio-Tech Light Minimalist | Forest Green & Ivory Palette
   ========================================================================== */

:root {
  --hw-forest-deep: #022C22;
  --hw-forest-dark: #064E3B;
  --hw-forest-mid: #047857;
  --hw-forest-light: #059669;
  --hw-mint: #D1FAE5;
  --hw-mint-subtle: #ECFDF5;
  --hw-ivory: #FAF9F6;
  --hw-sand: #F5F3EF;
  --hw-white: #FFFFFF;
  --hw-border: #E8E5DF;
  --hw-border-subtle: rgba(6, 78, 59, 0.08);
  --hw-border-focus: #047857;
  --hw-earth: #92400E;
  --hw-earth-light: #FEF3C7;
  --hw-amber: #D97706;
  --hw-olive: #4D7C0F;
  --hw-olive-light: #ECFCCB;
  --hw-text-main: #1C1917;
  --hw-text-muted: #78716C;
  --hw-text-subtle: #A8A29E;
  --hw-shadow-sm: 0 1px 3px rgba(6, 78, 59, 0.03);
  --hw-shadow-md: 0 4px 14px -2px rgba(6, 78, 59, 0.07);
  --hw-shadow-lg: 0 12px 28px -4px rgba(6, 78, 59, 0.10);
  --hw-radius-sm: 8px;
  --hw-radius-md: 12px;
  --hw-radius-lg: 16px;
  --hw-radius-pill: 9999px;
  --hw-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Contenedor Principal del Workspace */
.hw-workspace-wrapper {
  background: var(--hw-ivory);
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius-lg);
  box-shadow: var(--hw-shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--topbar-height, 64px) - var(--demo-banner-height, 0px) - 48px);
  min-height: 580px;
  max-height: 940px;
  margin-bottom: 20px;
}

/* Header Superior del Workspace */
.hw-workspace-topbar {
  background: var(--hw-white);
  border-bottom: 1px solid var(--hw-border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.hw-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hw-topbar-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid var(--hw-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(6, 78, 59, 0.08);
  overflow: hidden;
  padding: 3px;
  flex-shrink: 0;
}

.hw-topbar-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hw-sidebar-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hw-border);
  margin-bottom: 8px;
}

.hw-sidebar-mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--hw-forest-deep);
  font-size: 13.5px;
}

.hw-sidebar-brand-box {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid var(--hw-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.hw-sidebar-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hw-sidebar-close-btn {
  background: var(--hw-sand);
  border: 1px solid var(--hw-border);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--hw-forest-dark);
}

.hw-topbar-title h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--hw-forest-deep);
  letter-spacing: -0.01em;
}

.hw-topbar-title p {
  font-size: 12px;
  color: var(--hw-text-muted);
  font-weight: 500;
}

.hw-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hw-badge-mode {
  background: var(--hw-mint-subtle);
  border: 1px solid rgba(4, 120, 87, 0.25);
  color: var(--hw-forest-dark);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--hw-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hw-badge-mode .hw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hw-forest-mid);
  box-shadow: 0 0 0 2px rgba(4, 120, 87, 0.2);
}

/* Layout de 3 Columnas */
.hw-workspace-body {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  background: var(--hw-ivory);
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.hw-workspace-body.no-context-panel {
  grid-template-columns: 280px minmax(0, 1fr) 0px !important;
}

.hw-workspace-body.no-context-panel .hw-context-sidebar {
  background: var(--hw-sand);
  border-left: 1px solid var(--hw-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 14px 12px;
  gap: 14px;
  min-width: 0;
  height: 100%;
}

.hw-context-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hw-border);
  margin-bottom: 4px;
}

.hw-context-header-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hw-text-muted);
}

.hw-context-close-btn {
  background: var(--hw-sand);
  border: 1px solid var(--hw-border);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: var(--hw-forest-dark);
  transition: var(--hw-transition);
}

.hw-context-close-btn:hover {
  background: var(--hw-white);
  border-color: var(--hw-forest-light);
}

/* ==========================================================================
   COLUMNA A: BARRA LATERAL IZQUIERDA (Agentes & Sesiones)
   ========================================================================== */
.hw-sidebar {
  background: var(--hw-sand);
  border-right: 1px solid var(--hw-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 14px 12px;
  gap: 14px;
  min-width: 0;
  height: 100%;
}

.hw-sidebar-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hw-text-muted);
  margin-bottom: 8px;
  padding-left: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Tarjeta Destacada: Coordinador Humus */
.hw-coordinator-card {
  background: linear-gradient(135deg, #064E3B 0%, #047857 100%);
  color: #fff;
  border-radius: var(--hw-radius-md);
  padding: 14px 14px;
  cursor: pointer;
  transition: var(--hw-transition);
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.hw-coordinator-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(6, 78, 59, 0.3);
}

.hw-coordinator-card.active {
  box-shadow: 0 0 0 2px #fff, 0 6px 20px rgba(6, 78, 59, 0.4);
}

.hw-coordinator-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.hw-coord-avatar {
  font-size: 20px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hw-coord-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hw-coord-badge {
  font-size: 10px;
  background: var(--hw-mint);
  color: var(--hw-forest-dark);
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--hw-radius-pill);
  display: inline-block;
  margin-left: auto;
}

.hw-coord-desc {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
}

/* Lista de Especialistas */
.hw-specialists-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hw-agent-card {
  background: var(--hw-white);
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius-md);
  padding: 10px 12px;
  cursor: pointer;
  transition: var(--hw-transition);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hw-agent-card:hover {
  background: #FFF;
  border-color: var(--hw-forest-light);
  transform: translateX(2px);
  box-shadow: var(--hw-shadow-sm);
}

.hw-agent-card.active {
  background: var(--hw-mint-subtle);
  border-color: var(--hw-forest-mid);
  box-shadow: 0 0 0 1px var(--hw-forest-mid), var(--hw-shadow-sm);
}

.hw-agent-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--hw-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid var(--hw-border);
}

.hw-agent-card.active .hw-agent-icon-box {
  background: #fff;
  border-color: var(--hw-forest-light);
}

.hw-agent-info {
  flex: 1;
  min-width: 0;
}

.hw-agent-info-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.hw-agent-info-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-bottom: 3px;
}

.hw-agent-info-title h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--hw-text-main);
  white-space: normal;
  line-height: 1.3;
  overflow: visible;
  text-overflow: clip;
}

.hw-agent-card.active .hw-agent-info-title h4 {
  color: var(--hw-forest-dark);
}

.hw-agent-role-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--hw-radius-pill);
  background: var(--hw-sand);
  color: var(--hw-text-muted);
}

.hw-agent-desc {
  font-size: 11px;
  color: var(--hw-text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sesiones Anteriores */
.hw-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hw-session-item {
  padding: 7px 10px;
  border-radius: var(--hw-radius-sm);
  font-size: 12px;
  color: var(--hw-text-muted);
  cursor: pointer;
  transition: var(--hw-transition);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hw-session-item:hover {
  background: var(--hw-white);
  color: var(--hw-forest-dark);
}

.hw-session-item.active {
  background: var(--hw-white);
  color: var(--hw-forest-dark);
  font-weight: 600;
  box-shadow: var(--hw-shadow-sm);
}

/* ==========================================================================
   COLUMNA B: ÁREA CENTRAL (Conversación & Prompting)
   ========================================================================== */
.hw-chat-main {
  background: var(--hw-white);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

/* Header del Agente Activo en Chat */
.hw-chat-header {
  padding: 12px 20px;
  border-bottom: 1px solid var(--hw-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFF;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
  z-index: 5;
}

.hw-active-agent-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hw-active-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--hw-sand);
  border: 1px solid var(--hw-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.hw-active-texts h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--hw-forest-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hw-active-texts p {
  font-size: 12px;
  color: var(--hw-text-muted);
}

.hw-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hw-btn-tool {
  background: var(--hw-sand);
  border: 1px solid var(--hw-border);
  color: var(--hw-text-main);
  border-radius: var(--hw-radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--hw-transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hw-btn-tool:hover {
  background: var(--hw-mint-subtle);
  border-color: var(--hw-forest-light);
  color: var(--hw-forest-dark);
}

.hw-btn-tool.primary {
  background: var(--hw-forest-dark);
  color: #fff;
  border-color: var(--hw-forest-dark);
}

.hw-btn-tool.primary:hover {
  background: var(--hw-forest-mid);
}

/* Mensajes y Conversación */
.hw-messages-stream {
  flex: 1;
  min-height: 0;
  padding: 20px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--hw-ivory) 100%);
}

.hw-msg-row {
  display: flex;
  gap: 12px;
  max-width: 92%;
  animation: hwFadeIn 0.25s ease-out;
}

.hw-msg-row.user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.hw-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--hw-sand);
  border: 1px solid var(--hw-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.hw-msg-row.user .hw-msg-avatar {
  background: var(--hw-forest-deep);
  color: #fff;
  border: none;
}

.hw-msg-bubble {
  border-radius: var(--hw-radius-md);
  padding: 14px 18px;
  font-size: 13.5px;
  line-height: 1.55;
  box-shadow: var(--hw-shadow-sm);
}

.hw-msg-row.agent .hw-msg-bubble {
  background: var(--hw-white);
  border: 1px solid var(--hw-border);
  color: var(--hw-text-main);
  border-top-left-radius: 4px;
}

.hw-msg-row.user .hw-msg-bubble {
  background: var(--hw-forest-dark);
  color: #FFFFFF;
  border-top-right-radius: 4px;
}

/* Tarjetas Estructuradas dentro de Respuestas del Agente */
.hw-structured-card {
  margin-top: 12px;
  background: var(--hw-sand);
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius-sm);
  padding: 12px 14px;
  font-size: 12.5px;
}

.hw-structured-card-title {
  font-weight: 700;
  color: var(--hw-forest-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hw-kpi-pill-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hw-kpi-pill {
  background: #fff;
  border: 1px solid var(--hw-border);
  padding: 4px 10px;
  border-radius: var(--hw-radius-sm);
  font-size: 11.5px;
}

.hw-kpi-pill strong {
  color: var(--hw-forest-dark);
}

/* Barra de Sugerencias Contextuales */
.hw-suggestions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 20px;
  background: var(--hw-white);
  border-top: 1px solid var(--hw-border);
  flex-shrink: 0;
}

.hw-chip-suggestion {
  background: var(--hw-sand);
  border: 1px solid var(--hw-border);
  color: var(--hw-text-main);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--hw-radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--hw-transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hw-chip-suggestion:hover {
  background: var(--hw-mint-subtle);
  border-color: var(--hw-forest-mid);
  color: var(--hw-forest-dark);
  transform: translateY(-1px);
}

/* Área de Input y Envío */
.hw-input-section {
  padding: 12px 20px 14px;
  background: var(--hw-white);
  border-top: 1px solid var(--hw-border);
  flex-shrink: 0;
  z-index: 5;
}

.hw-input-box {
  background: var(--hw-sand);
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--hw-transition);
}

.hw-input-box:focus-within {
  background: #fff;
  border-color: var(--hw-forest-mid);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.12);
}

.hw-input-field {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--hw-text-main);
}

.hw-btn-send {
  background: var(--hw-forest-dark);
  color: #fff;
  border: none;
  border-radius: var(--hw-radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--hw-transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hw-btn-send:hover {
  background: var(--hw-forest-mid);
  box-shadow: 0 2px 8px rgba(6, 78, 59, 0.25);
}

.hw-input-footer-note {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--hw-text-subtle);
  padding: 0 4px;
}

/* ==========================================================================
   COLUMNA C: PANEL CONTEXTUAL DERECHO (Actividad & Aprobaciones)
   ========================================================================== */
.hw-context-sidebar {
  background: var(--hw-sand);
  border-left: 1px solid var(--hw-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 14px 12px;
  gap: 14px;
  min-width: 0;
  height: 100%;
}

.hw-context-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hw-border);
  margin-bottom: 4px;
}

.hw-context-header-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hw-text-muted);
}

.hw-context-close-btn {
  background: var(--hw-sand);
  border: 1px solid var(--hw-border);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: var(--hw-forest-dark);
  transition: var(--hw-transition);
}

.hw-context-close-btn:hover {
  background: var(--hw-white);
  border-color: var(--hw-forest-light);
}

.hw-panel-card {
  background: var(--hw-white);
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius-md);
  padding: 12px 14px;
  box-shadow: var(--hw-shadow-sm);
}

.hw-panel-header {
  font-size: 12px;
  font-weight: 800;
  color: var(--hw-forest-deep);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Feed de Actividad Simulada */
.hw-activity-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hw-activity-item {
  display: flex;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--hw-text-main);
  border-left: 2px solid var(--hw-border);
  padding-left: 8px;
  transition: var(--hw-transition);
}

.hw-activity-item:hover {
  border-left-color: var(--hw-forest-mid);
}

.hw-activity-time {
  font-size: 10px;
  color: var(--hw-text-subtle);
  display: block;
}

/* Tareas Simuladas */
.hw-task-item {
  background: var(--hw-ivory);
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius-sm);
  padding: 8px 10px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hw-task-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hw-task-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--hw-text-main);
}

.hw-status-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--hw-radius-pill);
}

.hw-status-pill.done {
  background: var(--hw-mint);
  color: var(--hw-forest-dark);
}

.hw-status-pill.queued {
  background: var(--hw-earth-light);
  color: var(--hw-earth);
}

.hw-status-pill.running {
  background: #E0E7FF;
  color: #3730A3;
}

/* Aprobaciones Pendientes (Tarjetas con Acciones Demo) */
.hw-approval-card {
  background: var(--hw-ivory);
  border: 1px dashed var(--hw-amber);
  border-radius: var(--hw-radius-sm);
  padding: 10px;
  margin-bottom: 8px;
}

.hw-approval-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--hw-forest-deep);
  margin-bottom: 4px;
}

.hw-approval-desc {
  font-size: 11px;
  color: var(--hw-text-muted);
  margin-bottom: 8px;
}

.hw-approval-buttons {
  display: flex;
  gap: 6px;
}

.hw-btn-approve {
  flex: 1;
  background: var(--hw-forest-dark);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--hw-transition);
}

.hw-btn-approve:hover {
  background: var(--hw-forest-mid);
}

.hw-btn-reject {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--hw-transition);
}

.hw-btn-reject:hover {
  background: #FCA5A5;
}

/* Animaciones */
@keyframes hwFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Breakpoints Adaptables y Drawer Móvil)
   ========================================================================== */
@media (max-width: 1280px) and (min-width: 1025px) {
  .hw-workspace-body {
    grid-template-columns: 250px minmax(0, 1fr) 270px;
  }
}

@media (max-width: 1024px) {
  #hw-btn-mobile-sidebar {
    display: inline-flex !important;
  }
  .hw-workspace-wrapper {
    height: calc(100vh - var(--topbar-height, 64px) - var(--demo-banner-height, 0px) - 32px);
  }
  .hw-workspace-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .hw-sidebar {
    display: none;
  }
  .hw-sidebar.mobile-open {
    display: flex;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    z-index: 50;
    box-shadow: var(--hw-shadow-lg);
  }
  .hw-sidebar.mobile-open .hw-sidebar-mobile-header {
    display: flex;
  }
  .hw-context-sidebar {
    display: none;
  }
  .hw-context-sidebar.mobile-open {
    display: flex;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    z-index: 50;
    box-shadow: var(--hw-shadow-lg);
  }
}

@media (max-width: 640px) {
  .hw-workspace-wrapper {
    height: calc(100vh - 120px);
    margin-bottom: 12px;
  }
  .hw-topbar-title h2 {
    font-size: 14px;
  }
  .hw-topbar-title p {
    display: none;
  }
  .hw-input-section {
    padding: 8px 12px 10px;
  }
  .hw-messages-stream {
    padding: 14px 12px;
  }
}
