[data-flux-page="workspace"] body {
  --desk-side: 260px;
  --header-height: 58px;
  --chat-entry: #222d40;
  --chat-entry-hover: #2b3950;
  --rail-selected: #233149;
}

[data-flux-page="workspace"][data-palette="light"] body {
  --chat-entry: #fff;
  --chat-entry-hover: #edf1f8;
}

[data-flux-page="workspace"][data-palette="oled"] body {
  --chat-entry: #242a34;
  --chat-entry-hover: #303744;
  --rail-selected: #29313e;
}

[data-flux-page="workspace"] body .app-sidebar {
  scrollbar-width: thin;
  border-right: 1px solid var(--work-line) !important;
}

[data-flux-page="workspace"] .app-sidebar .sidebar-header {
  gap: 8px;
  padding: 0 3px 12px !important;
}

[data-flux-page="workspace"] .app-sidebar .sidebar-brand {
  gap: 9px;
}

[data-flux-page="workspace"] .app-sidebar .brand-logo {
  width: 27px !important;
  height: 27px !important;
  border-radius: 6px !important;
  font-size: 15px !important;
}

[data-flux-page="workspace"] .app-sidebar .brand-name {
  font-size: 16px !important;
  letter-spacing: -.02em !important;
}

[data-flux-page="workspace"] .app-sidebar .sidebar-new-chat-box {
  margin: 0 0 3px !important;
  padding: 0 !important;
}

[data-flux-page="workspace"] .app-sidebar .new-chat-btn {
  justify-content: flex-start !important;
  gap: 8px;
  min-height: 39px !important;
  padding-inline: 9px !important;
  background: transparent !important;
  border-color: transparent !important;
  border-radius: 7px !important;
  color: var(--rail-text) !important;
}

[data-flux-page="workspace"] .app-sidebar .new-chat-btn:hover {
  background: var(--rail-selected) !important;
}

[data-flux-page="workspace"] .app-sidebar .studio-history-search {
  flex: 0 0 auto;
  order: 1;
  margin: 0 0 5px !important;
}

[data-flux-page="workspace"] body .app-sidebar .studio-history-search input {
  background: transparent !important;
  border-color: var(--rail-border) !important;
  border-radius: 7px !important;
}

[data-flux-page="workspace"] .app-sidebar .sidebar-nav {
  flex: 0 1 auto !important;
  min-height: 0;
  padding-block: 0 8px !important;
  max-height: 38vh;
}

[data-flux-page="workspace"] .app-sidebar .sidebar-nav-item {
  min-height: 36px !important;
  border-radius: 7px !important;
}

[data-flux-page="workspace"] .app-sidebar .sidebar-nav-item.active {
  box-shadow: none !important;
}

.rail-more > summary {
  min-height: 35px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--rail-text);
  cursor: pointer;
  font-size: 13px;
  list-style: none;
}

.rail-more > summary::-webkit-details-marker,
.rail-profile > summary::-webkit-details-marker {
  display: none;
}

.rail-more > summary::before {
  content: "›";
  font-size: 17px;
  line-height: 1;
}

.rail-more[open] > summary::before {
  transform: rotate(90deg);
}

.rail-more > summary:hover,
.rail-profile > summary:hover {
  background: var(--rail-selected);
}

.rail-more-items {
  padding-left: 12px;
}

[data-flux-page="workspace"] .app-sidebar .rail-history {
  min-height: 75px;
  padding-top: 9px;
}

[data-flux-page="workspace"] .app-sidebar .sidebar-section-title {
  font-weight: 650 !important;
}

[data-flux-page="workspace"] .app-sidebar .sidebar-footer {
  overflow: visible;
}

.rail-profile {
  position: relative;
}

.rail-profile > summary {
  list-style: none;
  cursor: pointer;
  border-radius: 8px;
}

[data-flux-page="workspace"] .rail-profile .sidebar-user-card {
  border: 0 !important;
  margin: 0 !important;
  padding: 7px 3px !important;
}

[data-flux-page="workspace"] .rail-profile .sidebar-user-avatar {
  border-radius: 50% !important;
}

.rail-profile-panel {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 4;
  padding: 8px;
  border: 1px solid var(--rail-border);
  border-radius: 9px;
  background: var(--rail);
}

.rail-profile-panel > a {
  display: block;
  padding: 4px 8px;
  color: var(--rail-text) !important;
  text-decoration: none;
}

[data-flux-page="workspace"] .app-sidebar .rail-profile-panel .sidebar-action-btn {
  color: var(--rail-text) !important;
}

.rail-toggle {
  display: none;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: 22px/1 var(--font);
}

.rail-toggle:hover {
  background: var(--work-selected);
}

[data-flux-page="workspace"] body .app-header {
  background: var(--work-canvas) !important;
  border-bottom: 0 !important;
}

[data-flux-page="workspace"] .app-header .header-shell {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  gap: 12px !important;
  margin: 0 !important;
}

[data-flux-page="workspace"] .app-header .header-left {
  display: flex !important;
  align-items: center;
  flex: 0 1 auto;
  gap: 6px !important;
  min-width: 0;
}

[data-flux-page="workspace"] .app-header .header-center {
  justify-content: center !important;
}

[data-flux-page="workspace"] .app-header .header-section {
  display: none !important;
}

[data-flux-page="workspace"] body:has(#chatMessages[data-studio-empty="true"]) .header-chat-title-text {
  display: none !important;
}

[data-flux-page="workspace"] .app-header .header-account-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  color: var(--work-ink);
  background: var(--work-surface);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

[data-flux-page="workspace"] .app-header .header-account-link:hover {
  background: var(--chat-entry-hover);
}

[data-flux-page="workspace"] .app-header .chat-top-bar {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  gap: 3px;
  flex-wrap: nowrap;
  border: 0;
  border-radius: 0;
  background: transparent !important;
}

[data-flux-page="workspace"] body:not(.tab-chat-active) .app-header .chat-top-bar {
  display: none !important;
}

[data-flux-page="workspace"] .app-header .chat-model-selector-wrap {
  width: auto !important;
  max-width: none !important;
}

[data-flux-page="workspace"] .app-header #chatModelSelect {
  width: clamp(135px, 22vw, 285px) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 35px;
  background: transparent !important;
  border-color: transparent !important;
  border-radius: 8px !important;
  padding: 6px 19px 6px 8px !important;
  font-weight: 650;
  font-size: 14px !important;
}

[data-flux-page="workspace"] .app-header #chatModelSelect:hover {
  background: var(--chat-entry-hover) !important;
}

[data-flux-page="workspace"] .app-header .model-tools > summary {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: 22px/1 var(--font);
}

[data-flux-page="workspace"] .app-header .model-tools > summary::after {
  display: none;
}

[data-flux-page="workspace"] .app-header .model-tools[open] > summary,
[data-flux-page="workspace"] .app-header .model-tools > summary:hover {
  background: var(--chat-entry-hover);
}

[data-flux-page="workspace"] .app-header .model-tools-panel {
  inset: calc(100% + 2px) auto auto 0;
  width: min(520px, calc(100vw - var(--desk-side) - 50px));
  border-color: var(--line-strong);
  border-radius: 12px;
}

[data-flux-page="workspace"] .model-tools-panel .chat-actions-right {
  justify-content: flex-start;
  gap: 7px;
  flex-wrap: wrap;
  margin: 9px 0 0 !important;
}

[data-flux-page="workspace"] .model-tools-panel .chat-actions-right .btn {
  width: auto !important;
  height: auto !important;
  min-height: 32px !important;
  padding: 5px 9px !important;
  background: var(--work-surface) !important;
  border: 1px solid var(--work-line) !important;
}

[data-flux-page="workspace"] body #panel-chat .chat-window-card {
  --reading-width: 770px;
}

[data-flux-page="workspace"] body #panel-chat .chat-window-card:has(#chatMessages[data-studio-empty="true"]) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(18px, 1fr) auto auto auto minmax(14px, 1.35fr);
  justify-items: center;
  align-items: start;
  gap: 16px !important;
  overflow-y: auto !important;
}

[data-flux-page="workspace"] #panel-chat .chat-window-card #chatMessages[data-studio-empty="true"] {
  grid-row: 2;
  width: min(100%, var(--reading-width));
  padding: 0 8px !important;
  overflow: visible !important;
}

[data-flux-page="workspace"] #panel-chat .studio-welcome {
  text-align: center !important;
}

[data-flux-page="workspace"] #panel-chat .studio-welcome h1 {
  font-size: clamp(26px, 3.5vw, 37px) !important;
  letter-spacing: -.042em !important;
  font-weight: 620 !important;
}

[data-flux-page="workspace"] #panel-chat .chat-window-card:has(#chatMessages[data-studio-empty="true"]) .composer-block {
  grid-row: 3;
  margin: 0;
  padding: 0;
}

[data-flux-page="workspace"] #panel-chat .chat-window-card:has(#chatMessages[data-studio-empty="true"]) .chat-footer-note {
  display: none !important;
}

[data-flux-page="workspace"] #panel-chat .chat-window-card #chatChipsCarousel {
  grid-row: 4;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px !important;
  overflow: visible !important;
}

[data-flux-page="workspace"] #panel-chat .chat-window-card #chatChipsCarousel .chat-chip {
  display: inline-flex !important;
  flex: 0 0 auto;
  min-height: 34px !important;
  gap: 6px !important;
  padding: 6px 10px !important;
  border: 1px solid var(--work-line) !important;
  border-radius: 17px !important;
  color: var(--work-ink) !important;
  background: transparent !important;
  white-space: nowrap !important;
}

[data-flux-page="workspace"] #panel-chat .chat-window-card #chatChipsCarousel .chat-chip:hover {
  background: var(--chat-entry-hover) !important;
}

[data-flux-page="workspace"] #panel-chat .chat-chip strong {
  font-size: 12px !important;
  font-weight: 550;
}

[data-flux-page="workspace"] #panel-chat .chat-chip .studio-task-icon {
  color: var(--work-secondary) !important;
}

[data-flux-page="workspace"] #panel-chat .chat-window-card:not(.show-examples):has(#chatMessages[data-studio-empty="false"]) #chatChipsCarousel {
  display: none !important;
}

[data-flux-page="workspace"] #panel-chat .chat-window-card.show-examples:has(#chatMessages[data-studio-empty="false"]) #chatChipsCarousel {
  justify-content: flex-start;
  padding: 5px 0 !important;
}

[data-flux-page="workspace"] #panel-chat .chat-window-card:has(#chatMessages[data-studio-empty="true"]) #composerExamples {
  display: none !important;
}

[data-flux-page="workspace"] #panel-chat .chat-window-card #chatForm {
  position: static !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 9px 11px 8px !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 25px !important;
  background: var(--chat-entry) !important;
  box-shadow: none !important;
}

[data-flux-page="workspace"] #panel-chat .chat-window-card #chatForm:focus-within {
  border-color: var(--blue) !important;
}

[data-flux-page="workspace"] #panel-chat .chat-window-card #chatInput {
  min-height: 36px !important;
  padding: 4px 8px 5px !important;
}

[data-flux-page="workspace"] #panel-chat .composer-actions {
  gap: 4px;
  margin-top: 1px;
}

[data-flux-page="workspace"] #panel-chat .composer-actions :is(.icon-btn, #chatSendBtn) {
  min-width: 34px !important;
  width: 34px !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
}

[data-flux-page="workspace"] #panel-chat .composer-actions :is(#attachFileBtn, #voiceInputBtn) {
  background: transparent !important;
  color: var(--work-ink) !important;
}

[data-flux-page="workspace"] #panel-chat .composer-actions :is(#attachFileBtn, #voiceInputBtn):hover {
  background: var(--chat-entry-hover) !important;
}

[data-flux-page="workspace"] #panel-chat .composer-actions #chatSendBtn .send-icon {
  display: inline;
  font-size: 20px !important;
  line-height: 1;
  color: inherit !important;
}

[data-flux-page="workspace"] #panel-chat .composer-actions #chatSendBtn:disabled {
  color: var(--disabled-ink) !important;
  background: var(--disabled-fill) !important;
  border: 1px solid var(--line-strong) !important;
}

[data-flux-page="workspace"] #panel-chat .composer-actions #composerExamples {
  min-height: 30px;
  padding: 4px 8px;
  border: 0 !important;
  border-radius: 15px !important;
  background: transparent !important;
  color: var(--work-secondary) !important;
  font-size: 12px;
}

[data-flux-page="workspace"] #panel-chat .composer-actions #composerExamples:hover {
  background: var(--chat-entry-hover) !important;
}

[data-flux-page="workspace"] #panel-chat #chatMessages .user-bubble {
  border-radius: 19px !important;
  padding: 9px 16px !important;
}

[data-flux-page="workspace"] #panel-chat #chatMessages .ai-bubble {
  max-width: 100% !important;
  align-self: stretch;
}

[data-flux-page="workspace"] #panel-chat #chatMessages .ai-bubble .bubble-avatar {
  background: transparent !important;
  color: var(--work-secondary) !important;
  border: 1px solid var(--work-line) !important;
  border-radius: 50% !important;
  box-shadow: none !important;
}

@media (min-width: 960px) {
  [data-flux-page="workspace"] body .app-header {
    padding-inline: 19px !important;
  }

  [data-flux-page="workspace"] #desktopRailClose {
    display: inline-flex;
    margin-left: auto;
    color: var(--rail-muted);
  }

  [data-flux-page="workspace"] .app-sidebar .rail-toggle:hover {
    background: var(--rail-selected);
  }

  [data-flux-page="workspace"].rail-collapsed body {
    --desk-side: 0px;
  }

  [data-flux-page="workspace"].rail-collapsed .app-sidebar {
    display: none !important;
  }

  [data-flux-page="workspace"].rail-collapsed #desktopRailOpen {
    display: inline-flex;
  }
}

@media (max-width: 959px) {
  [data-flux-page="workspace"] body .app-header .header-shell {
    gap: 6px !important;
  }

  [data-flux-page="workspace"] .app-header .header-left {
    gap: 4px !important;
  }

  [data-flux-page="workspace"] body.tab-chat-active .app-header .header-center {
    display: none !important;
  }

  [data-flux-page="workspace"] .app-header .header-actions {
    margin-left: auto;
    gap: 4px !important;
  }

  [data-flux-page="workspace"] .app-header #chatModelSelect {
    width: clamp(98px, 39vw, 250px) !important;
    font-size: 13px !important;
  }

  [data-flux-page="workspace"] .app-header .model-tools-panel {
    position: fixed;
    top: var(--header-height);
    left: 9px;
    right: 9px;
    width: auto;
  }

  [data-flux-page="workspace"] body #panel-chat .chat-window-card:has(#chatMessages[data-studio-empty="true"]) {
    grid-template-rows: minmax(14px, .83fr) auto auto auto minmax(12px, 1.22fr);
    gap: 10px !important;
  }

  [data-flux-page="workspace"] #panel-chat .chat-window-card #chatChipsCarousel {
    gap: 5px !important;
  }

  [data-flux-page="workspace"] #panel-chat .chat-window-card #chatChipsCarousel .chat-chip {
    padding: 4px 8px !important;
    min-height: 30px !important;
  }
}

@media (max-width: 959px) and (max-height: 500px) {
  [data-flux-page="workspace"] body.keyboard-open #panel-chat .chat-window-card:has(#chatMessages[data-studio-empty="true"]) {
    display: flex !important;
    justify-content: flex-end;
  }

  [data-flux-page="workspace"] body.keyboard-open #panel-chat #chatMessages[data-studio-empty="true"] {
    display: none !important;
  }
}

[data-flux-page="workspace"] body.tab-chat-active #appSidebar .sidebar-nav-item[data-tab="chat"] {
  display: none !important;
}

[data-flux-page="workspace"] body #appSidebar .new-chat-btn {
  color: var(--rail-text) !important;
  background: transparent !important;
  border-color: transparent !important;
}

[data-flux-page="workspace"] body #appSidebar .new-chat-btn:hover {
  background: var(--rail-selected) !important;
}

.rail-toggle > span {
  position: relative;
  display: block;
  width: 17px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.rail-toggle > span::after {
  position: absolute;
  content: "";
  inset: 0 auto 0 4px;
  border-left: 1.5px solid currentColor;
}

[data-flux-page="workspace"] .app-header .chat-top-bar {
  padding: 0 !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
}

[data-flux-page="workspace"] #panel-chat .chat-window-card:has(#chatMessages[data-studio-empty="true"]) #chatChipsCarousel {
  width: min(100% - 8px, 500px);
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

[data-flux-page="workspace"] #panel-chat .chat-window-card:has(#chatMessages[data-studio-empty="true"]) #chatChipsCarousel .chat-chip {
  justify-content: center;
  width: 100%;
}

[data-flux-page="workspace"] #panel-chat .composer-actions .mic-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 18px;
  color: currentColor;
}

[data-flux-page="workspace"] #panel-chat .composer-actions .mic-icon::before {
  content: "";
  position: absolute;
  inset: 0 5px 7px;
  border: 1.5px solid currentColor;
  border-radius: 5px;
}

[data-flux-page="workspace"] #panel-chat .composer-actions .mic-icon::after {
  content: "";
  position: absolute;
  inset: 6px 2px 4px;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

[data-flux-page="workspace"] #panel-chat .composer-actions .mic-icon i {
  position: absolute;
  inset: 13px auto 1px 7px;
  border-left: 1.5px solid currentColor;
}

@media (max-width: 959px) {
  [data-flux-page="workspace"] body.tab-chat-active .app-header .header-left {
    flex: 1 1 0 !important;
  }

  [data-flux-page="workspace"] body.tab-chat-active .app-header .header-actions {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  [data-flux-page="workspace"] body .app-header .chat-top-bar {
    flex: 1 1 0;
    width: auto !important;
  }

  [data-flux-page="workspace"] .app-header .chat-top-bar .chat-model-selector-wrap {
    flex: 1 1 0 !important;
  }

  [data-flux-page="workspace"] .app-header .chat-top-bar #chatModelSelect {
    width: 100% !important;
  }

  [data-flux-page="workspace"] .app-header .chat-top-bar .model-tools {
    flex: 0 0 34px;
  }

  [data-flux-page="workspace"] #panel-chat .chat-window-card:has(#chatMessages[data-studio-empty="true"]) #chatChipsCarousel {
    width: min(100% - 8px, 325px);
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  [data-flux-page="workspace"] #panel-chat .chat-window-card:has(#chatMessages[data-studio-empty="true"]) #chatChipsCarousel .chat-chip {
    white-space: normal !important;
  }
}

[data-flux-page="workspace"] #panel-chat #chatMessages .chat-bubble {
  box-shadow: none !important;
}

[data-flux-page="workspace"] #panel-chat #chatMessages .chat-bubble .bubble-body {
  min-width: 0;
  background: transparent !important;
  color: var(--work-ink) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

[data-flux-page="workspace"] #panel-chat #chatMessages .user-bubble .bubble-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

[data-flux-page="workspace"] #panel-chat #chatMessages .ai-bubble {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

[data-flux-page="workspace"] #panel-chat #chatMessages .ai-bubble .bubble-body > .micro-btn {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin-top: 8px;
}

[data-flux-page="workspace"] #panel-chat #chatMessages .quick-answer-hint {
  color: var(--work-secondary) !important;
  opacity: 1;
}

[data-flux-page="workspace"] body .app-header .header-actions #chatCodingMode {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 45px !important;
  min-height: 36px !important;
  padding-inline: 9px !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 8px !important;
  color: var(--work-ink) !important;
  font: 650 13px/1 var(--font);
}

[data-flux-page="workspace"] body .app-header .header-actions #chatCodingMode[aria-pressed="true"] {
  background: var(--work-selected) !important;
  border-color: var(--work-accent) !important;
  color: var(--work-accent) !important;
}

[data-flux-page="workspace"] body:not(.tab-chat-active) .app-header #chatCodingMode {
  display: none;
}

[data-flux-page="workspace"] .flux-prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

[data-flux-page="workspace"] .flux-prose:empty {
  display: none;
}

[data-flux-page="workspace"] .code-block-wrapper {
  max-width: 100%;
  min-width: 0;
  margin: 8px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--work-canvas);
  box-shadow: none;
}

[data-flux-page="workspace"] .code-block-header {
  gap: 6px;
  padding: 6px 10px;
  border-color: var(--line-strong);
  background: var(--work-surface);
}

[data-flux-page="workspace"] .code-block-lang {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--work-secondary);
}

[data-flux-page="workspace"] body .code-block-header .copy-code-btn {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 4px 8px;
  border-color: var(--line-strong);
  border-radius: 5px;
  background: var(--work-surface);
  color: var(--work-ink);
  font-size: 12px;
}

[data-flux-page="workspace"] body .code-block-header .copy-code-btn:is(:hover, .copied) {
  background: var(--work-selected);
  border-color: var(--work-accent);
  color: var(--work-accent);
}

[data-flux-page="workspace"] #panel-chat #chatMessages .code-block-body,
[data-flux-page="workspace"] .code-block-body {
  max-height: min(65vh, 560px);
  margin: 0 !important;
  padding: 10px !important;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 0 !important;
  color: var(--work-ink) !important;
  background: var(--work-canvas) !important;
  white-space: pre;
}

[data-flux-page="workspace"] body .code-block-body code {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: none;
  font: inherit;
  white-space: inherit;
}

[data-flux-page="workspace"] :is(.code-block-preview, .prose-preview) > summary {
  padding: 8px 10px;
  cursor: pointer;
  color: var(--work-accent);
  font-size: 13px;
}

[data-flux-page="workspace"] .prose-preview[open] > summary {
  margin-bottom: 7px;
}

[data-flux-page="workspace"] #chatMessages .chat-older {
  flex: 0 0 auto;
  align-self: center;
}

[data-flux-page="workspace"] #chatMessages .chat-older button {
  min-height: 36px;
}

[data-flux-page="workspace"] #panel-chat .ai-bubble .bubble-body {
  flex: 1 1 auto;
  max-width: 100%;
}

@media (max-width: 450px) {
  [data-flux-page="workspace"] body.tab-chat-active .app-header .header-actions button[onclick="createNewChat()"] {
    display: none;
  }
}

[data-flux-page="workspace"] #panel-chat .chat-input-count {
  margin-left: auto;
  color: var(--work-secondary);
  font-size: 12px;
}

[data-flux-page="workspace"] #panel-chat .chat-input-count:not([hidden]) + #chatSendBtn {
  margin-left: 4px;
}

@media (max-width: 450px) {
  [data-flux-page="workspace"] body.tab-chat-active .app-header .header-shell {
    padding-inline: 0 !important;
  }

  [data-flux-page="workspace"] body.tab-chat-active .app-header #sidebarToggleBtn {
    width: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }
}
