/* Classic Gemini dark workspace, from Google's 2025 personalization reference.
   This stylesheet describes presentation only; shared controls retain their actions. */
.wb.wb-gemini {
  --b-surface: #1b1c1d;
  --b-sidebar: #282a2d;
  --b-text: #e3e3e3;
  --b-muted: #c4c7c5;
  --b-line: #444746;
  --wb-muted: #b5b9b7;
  --wb-line: #444746;
  grid-template-columns: 72px minmax(0, 1fr);
  background: var(--b-surface);
  color: var(--b-text);
  color-scheme: dark;
  font-family: "Google Sans", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "PingFang SC", sans-serif;
}
.wb.wb-gemini button,
.wb.wb-gemini select,
.wb.wb-gemini textarea { font-family: inherit; }
.wb.wb-gemini .wb-button { color: #e3e3e3; font-size: 14px !important; }
.wb.wb-gemini .wb-button:hover:enabled { background: #35383b; }
.wb.wb-gemini button:focus-visible,
.wb.wb-gemini select:focus-visible { outline: 2px solid #a8c7fa; outline-offset: 3px; }
.wb.wb-gemini .b-icon { display: block; width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; filter: brightness(0) invert(.82); }
.wb.wb-gemini .b-icon-button { width: 40px; min-width: 40px; padding: 9px; font-size: 0 !important; border-radius: 50%; }

/* The compact desktop sidebar is a usable icon rail, including when the shared
   shell marks it collapsed. Opening it reveals conversation names and controls. */
.wb.wb-gemini.b-sidebar-expanded { grid-template-columns: 260px minmax(0, 1fr); }
.wb.wb-gemini .b-sidebar,
.wb.wb-brand.wb-gemini.b-sidebar-collapsed .b-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0 12px;
  border: 0;
  background: var(--b-sidebar);
  overflow: hidden;
}
.wb.wb-brand.wb-gemini.b-sidebar-collapsed { grid-template-columns: 72px minmax(0, 1fr); }
.wb.wb-gemini .b-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 76px;
  padding: 12px 0;
  flex-shrink: 0;
}
.wb.wb-gemini .b-sidebar-brand { display: none; }
.wb.wb-gemini .b-sidebar-brand img { width: 26px; height: 26px; object-fit: contain; }
.wb.wb-gemini .b-sidebar-brand .b-brand-name { display: none; }
.wb.wb-gemini .b-sidebar-top .wb-button,
.wb.wb-gemini .b-sidebar-toggle { width: 40px; min-width: 40px; min-height: 40px; padding: 10px; border-radius: 50%; color: #c4c7c5; font-size: 0 !important; }
.wb.wb-gemini .b-navigation { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0; flex-shrink: 0; }
.wb.wb-gemini .b-nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 10px;
  gap: 12px;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  background: transparent;
  color: #c4c7c5;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.5;
}
.wb.wb-gemini .b-nav-button img,
.wb.wb-gemini .b-nav-button svg { width: 20px; height: 20px; }
.wb.wb-gemini .b-nav-button.wb-button-new { background: #333537; }
.wb.wb-gemini .b-nav-button.is-active { background: #3c4043; }
.wb.wb-gemini .b-sidebar .b-nav-label,
.wb.wb-gemini .b-history-heading,
.wb.wb-gemini .wb-history,
.wb.wb-gemini .wb-delete-confirm { display: none; }
.wb.wb-gemini .b-sidebar-account {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 72px;
  margin: auto 0 12px;
  padding: 6px 0;
  border: 0;
  flex-shrink: 0;
  color: #c4c7c5;
  font-size: 13px;
}
.wb.wb-gemini .b-sidebar-account img { width: 28px; height: 28px; object-fit: cover; border-radius: 50%; }
.wb.wb-gemini .b-sidebar-account .wb-button { width: 40px; min-height: 40px; padding: 10px; font-size: 0 !important; border-radius: 50%; }
.wb.wb-gemini .b-account-name,
.wb.wb-gemini .b-sidebar-account > span { display: none; }
.wb.wb-gemini.b-sidebar-expanded .b-sidebar-top { justify-content: space-between; padding-inline: 8px; }
.wb.wb-gemini.b-sidebar-expanded .b-sidebar-brand { display: inline-flex; align-items: center; gap: 8px; }
.wb.wb-gemini.b-sidebar-expanded .b-navigation { align-items: stretch; }
.wb.wb-gemini.b-sidebar-expanded .b-nav-button { width: 100%; justify-content: flex-start; padding: 10px 14px; border-radius: 24px; }
.wb.wb-gemini.b-sidebar-expanded .b-sidebar .b-nav-label { display: inline; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb.wb-gemini.b-sidebar-expanded .b-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 22px 0 6px; padding: 0 12px; color: #c4c7c5; font-size: 13px; flex-shrink: 0; }
.wb.wb-gemini.b-sidebar-expanded .b-history-heading .wb-button { min-height: 28px; padding: 4px; }
.wb.wb-gemini.b-sidebar-expanded .wb-history { display: flex; flex-direction: column; flex: 1; min-height: 0; max-height: none; gap: 2px; padding-bottom: 8px; overflow: auto; scrollbar-width: thin; scrollbar-color: #5f6368 transparent; }
.wb.wb-gemini.b-sidebar-expanded .wb-delete-confirm { display: block; }
.wb.wb-gemini .wb-history-row { min-height: 36px; border-radius: 20px; }
.wb.wb-gemini .wb-history-row:hover { background: #35383b; }
.wb.wb-gemini .wb-history-row.is-active { background: #3a4658; }
.wb.wb-gemini .wb-history-select { max-width: none; padding: 8px 12px; color: #e3e3e3; font-size: 14px !important; }
.wb.wb-gemini .wb-history-delete { min-width: 28px; min-height: 30px; padding: 4px; color: #c4c7c5; }
.wb.wb-gemini.b-sidebar-expanded .b-sidebar-account { flex-direction: row; justify-content: space-between; margin: auto 0 10px; padding: 10px 8px; }
.wb.wb-gemini.b-sidebar-expanded .b-account-name,
.wb.wb-gemini.b-sidebar-expanded .b-sidebar-account > span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wb.wb-gemini .wb-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; background: var(--b-surface); }
.wb.wb-gemini .b-main-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding: 12px 24px; flex-shrink: 0; color: #e3e3e3; }
.wb.wb-gemini .b-header-start,
.wb.wb-gemini .b-header-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wb.wb-gemini .b-header-start { flex: 1; }
.wb.wb-gemini .b-header-actions { flex-shrink: 0; }
.wb.wb-gemini .b-main-header .wb-model-pickers { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 0; }
.wb.wb-gemini .b-main-header .wb-model-select { width: auto; min-height: 22px; border: 0; padding: 0 20px 0 0; background: transparent; color: #e3e3e3; line-height: 1.4; cursor: pointer; }
.wb.wb-gemini .b-main-header #wb-provider { max-width: 160px; flex: none; font-size: 20px !important; font-weight: 400 !important; }
.wb.wb-gemini .b-main-header #wb-model { max-width: min(240px, 100%); flex: none; color: #c4c7c5; font-size: 12px !important; font-weight: 400 !important; }
.wb.wb-gemini .b-header-actions .wb-button { min-height: 36px; padding: 7px 11px; border-radius: 20px; white-space: nowrap; font-size: 13px !important; }
.wb.wb-gemini .b-header-actions .b-icon-button { width: 36px; min-width: 36px; padding: 8px; font-size: 0 !important; }
.wb.wb-gemini .b-header-actions .b-account-button { width: 36px; height: 36px; padding: 3px; background: #333537; border-radius: 50%; }
.wb.wb-gemini .b-header-actions .b-account-button img { width: 30px; height: 30px; object-fit: cover; border-radius: 50%; }

.wb.wb-gemini .b-stage { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 0; min-height: 0; padding: 0 36px; overflow: hidden; }
.wb.wb-gemini .b-stage > .wb-messages { display: grid; place-items: center; width: min(100%, 768px); min-width: 0; min-height: 0; max-height: none; padding: 0; flex: 1; overflow: auto; scrollbar-width: thin; scrollbar-color: #5f6368 transparent; }
.wb.wb-gemini .b-welcome { width: 100%; padding: 24px 0; margin: 0; text-align: center; }
.wb.wb-gemini .b-welcome-title { display: inline-block; margin: 0; background: linear-gradient(90deg, #789fee 6%, #b4a1ce 58%, #ce8795 100%); color: #aab0d8; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 32px; line-height: 1.35; letter-spacing: -.55px; font-weight: 500; text-wrap: balance; }
.wb.wb-gemini .b-welcome-subtitle { display: none; }
.wb.wb-gemini .b-stage > .wb-composer-area { width: min(100%, 768px); min-width: 0; min-height: 0; max-height: calc(100% - 32px); padding: 0; margin: 0 0 36px; flex-shrink: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #5f6368 transparent; }
.wb.wb-gemini .wb-composer { width: 100%; min-width: 0; border: 1px solid #444746; border-radius: 28px; background: #1b1c1d; box-shadow: none; overflow: hidden; }
.wb.wb-gemini .wb-composer:focus-within { border-color: #7d8589; box-shadow: none; }
.wb.wb-gemini textarea.wb-draft { display: block; width: 100%; min-width: 0; min-height: 48px; max-height: min(36dvh, 260px); margin: 0; padding: 16px 20px 5px; border: 0; border-radius: 0; outline: none; resize: none; background: transparent; box-shadow: none; color: #e3e3e3; font-size: 16px !important; line-height: 24px; overflow-y: auto; overflow-wrap: anywhere; }
.wb.wb-gemini .wb-draft::placeholder { color: #aeb1b0; }
.wb.wb-gemini .wb-draft:disabled { color: #9aa09c; }
.wb.wb-gemini .b-composer-tools,
.wb.wb-gemini .wb-composer-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; min-width: 0; padding: 5px 10px 10px; }
.wb.wb-gemini .b-composer-left,
.wb.wb-gemini .wb-composer-left,
.wb.wb-gemini .b-composer-right { display: flex; align-items: center; min-width: 0; max-width: 100%; gap: 6px; flex-wrap: wrap; }
.wb.wb-gemini .b-composer-left,
.wb.wb-gemini .wb-composer-left { flex: 1 1 auto; }
.wb.wb-gemini .b-composer-right { justify-content: flex-end; margin-left: auto; flex: 0 1 auto; }
.wb.wb-gemini .b-composer-tools .wb-button,
.wb.wb-gemini .wb-composer-tools .wb-button { min-height: 34px; padding: 6px 8px; border-radius: 18px; color: #c4c7c5; font-size: 13px !important; }
.wb.wb-gemini .b-composer-tools .b-icon-button,
.wb.wb-gemini .wb-composer-tools .b-icon-button { width: 34px; min-width: 34px; padding: 7px; font-size: 0 !important; }
.wb.wb-gemini .wb-button-attach { width: 34px; min-width: 34px; padding: 7px !important; }
.wb.wb-gemini .wb-button-attach svg { width: 20px; height: 20px; }
.wb.wb-gemini .la-control { min-width: 0; max-width: 100%; }
.wb.wb-gemini .la-trigger { min-width: 0; max-width: 100%; min-height: 32px; padding: 5px 8px; border-radius: 18px; background: transparent; color: #c4c7c5; font-size: 12px; line-height: 1.4; }
.wb.wb-gemini .la-trigger:hover:enabled { background: #35383b; }
.wb.wb-gemini .la-trigger svg { width: 16px; height: 16px; }
.wb.wb-gemini .la-trigger.la-full { color: #ffb877; background: #423225; }
.wb.wb-gemini .wb-char-count { color: #aeb1b0; font-size: 11px !important; }
.wb.wb-gemini .wb-composer .wb-button-send,
.wb.wb-gemini .wb-composer .wb-button-stop { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; min-height: 36px; min-width: 36px; margin-left: auto; padding: 8px; border: 0; border-radius: 50%; background: #a8c7fa; color: #062e6f; font-size: 0 !important; }
.wb.wb-gemini .wb-composer .wb-button-send:hover:enabled,
.wb.wb-gemini .wb-composer .wb-button-stop:hover:enabled { background: #b9d1fa; }
.wb.wb-gemini .wb-composer .wb-button-send:disabled { opacity: 1; background: transparent; color: #9aa09c; }
.wb.wb-gemini .wb-button-send .b-icon,
.wb.wb-gemini .wb-button-stop .b-icon { width: 20px; height: 20px; filter: brightness(0); }
.wb.wb-gemini .wb-button-send:disabled .b-icon { filter: brightness(0) invert(.6); }
.wb.wb-gemini .wb-button-send svg { width: 19px; height: 19px; }
.wb.wb-gemini .wb-button-stop svg { width: 15px; height: 15px; }
.wb.wb-gemini .wb-attachments { min-width: 0; padding: 12px 12px 0; gap: 7px; }
.wb.wb-gemini .wb-attachments:empty { display: none; }
.wb.wb-gemini .wb-attachment { min-width: 0; border-radius: 12px; border-color: #444746; background: #282a2d; color: #e3e3e3; }
.wb.wb-gemini .wb-attachment summary { min-width: 0; padding: 9px 11px; font-size: 13px !important; }
.wb.wb-gemini .wb-attachment summary > span:first-child { min-width: 0; }
.wb.wb-gemini .wb-attachment pre { color: #c4c7c5; }
.wb.wb-gemini .wb-composer.b-composer-expanded,
.wb.wb-gemini .wb-composer:has(.wb-attachments:not(:empty)) { border-radius: 24px; }
.wb.wb-gemini .wb-composer.b-composer-expanded textarea.wb-draft { min-height: 80px; max-height: min(42dvh, 260px); }
/* The short draft keeps its controls in one row; expanded drafts and attachments
   return to normal flow so a wrapped toolbar cannot cover text. */
.wb.wb-gemini:not(.wb-is-review) .wb-composer:not(.b-composer-expanded):not(:has(.wb-attachments:not(:empty))):has(.b-composer-right) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0; min-height: 56px; padding: 8px 10px; }
.wb.wb-gemini:not(.wb-is-review) .wb-composer:not(.b-composer-expanded):not(:has(.wb-attachments:not(:empty))):has(.b-composer-right) textarea.wb-draft { grid-column: 2; grid-row: 1; height: 36px !important; min-height: 36px; padding: 6px 8px; }
.wb.wb-gemini:not(.wb-is-review) .wb-composer:not(.b-composer-expanded):not(:has(.wb-attachments:not(:empty))):has(.b-composer-right) .b-composer-tools,
.wb.wb-gemini:not(.wb-is-review) .wb-composer:not(.b-composer-expanded):not(:has(.wb-attachments:not(:empty))):has(.b-composer-right) .wb-composer-tools { display: contents; }
.wb.wb-gemini:not(.wb-is-review) .wb-composer:not(.b-composer-expanded):not(:has(.wb-attachments:not(:empty))):has(.b-composer-right) .b-composer-left,
.wb.wb-gemini:not(.wb-is-review) .wb-composer:not(.b-composer-expanded):not(:has(.wb-attachments:not(:empty))):has(.b-composer-right) .wb-composer-left { grid-column: 1; grid-row: 1; flex-wrap: nowrap; }
.wb.wb-gemini:not(.wb-is-review) .wb-composer:not(.b-composer-expanded):not(:has(.wb-attachments:not(:empty))):has(.b-composer-right) .b-composer-right { grid-column: 3; grid-row: 1; }
.wb.wb-gemini:not(.wb-is-review) .wb-composer:not(.b-composer-expanded):not(:has(.wb-attachments:not(:empty))):has(.b-composer-right) .wb-slash-commands { grid-column: 1 / -1; }
.wb.wb-gemini .b-session-notes { margin: 10px 0 0; color: #b5b9b7; font-size: 12px; line-height: 1.6; text-align: center; }
.wb.wb-gemini .b-session-notes > summary { cursor: pointer; font-size: 12px; }
.wb.wb-gemini .b-session-notes .wb-caption,
.wb.wb-gemini .b-session-notes .wb-cost-note,
.wb.wb-gemini .b-session-notes .wb-connection-note,
.wb.wb-gemini .b-session-notes .wb-send-note { color: #b5b9b7; font-size: 12px !important; }
.wb.wb-gemini .b-disclaimer { min-width: 0; margin: 0; padding: 0 24px; color: #b5b9b7; font-size: 11px; line-height: 1.5; text-align: center; flex-shrink: 0; }

.wb.wb-gemini .wb-message { margin: 22px 0 30px; font-size: 16px; }
.wb.wb-gemini .wb-message-heading { color: #c4c7c5; font-size: 13px; }
.wb.wb-gemini .wb-message-content { color: #e3e3e3; font-size: 16px; line-height: 1.75; }
.wb.wb-gemini .wb-message-user .wb-message-content { background: #282a2d; color: #e3e3e3; border-radius: 22px; padding: 14px 20px; }
.wb.wb-gemini .wb-avatar { background: #333537; border-color: #444746; color: #c4c7c5; border-radius: 50%; }
.wb.wb-gemini .wb-message-assistant .wb-avatar { background: transparent; border: 0; color: #a8c7fa; }
.wb.wb-gemini .wb-message-files span { background: #282a2d; border-color: #444746; color: #c4c7c5; }
.wb.wb-gemini .wb-caption,
.wb.wb-gemini .wb-pending,
.wb.wb-gemini .wb-pending p,
.wb.wb-gemini .wb-tool-traces { color: #b5b9b7; }
.wb.wb-gemini .wb-code { background: #282a2d; border-color: #444746; border-radius: 14px; }
.wb.wb-gemini .wb-code-head { color: #c4c7c5; border-bottom-color: #444746; }
.wb.wb-gemini .wb-code pre { color: #e3e3e3; font-size: 13px; }
.wb.wb-gemini .wb-spinner { border-color: #444746; border-top-color: #a8c7fa; }
.wb.wb-gemini .wb-review,
.wb.wb-gemini .wb-delete-confirm { background: #282a2d; border-color: #444746; color: #e3e3e3; border-radius: 18px; }
.wb.wb-gemini .wb-review-warning { background: #332b21; border-color: #8e744b; }
.wb.wb-gemini .wb-preview { background: #202124; border-color: #444746; }
.wb.wb-gemini .wb-preview summary { color: #c4c7c5; }
.wb.wb-gemini .wb-preview-message pre { color: #e3e3e3; }
.wb.wb-gemini .wb-error { background: #3c2525; border-color: #6f4343; color: #ffb4ab; }
.wb.wb-gemini .wb-button-soft { background: #35383b; color: #e3e3e3; }
.wb.wb-gemini .wb-button-dark { background: #a8c7fa; color: #062e6f; }
.wb.wb-gemini .wb-button-dark:hover:enabled { background: #b9d1fa; }
.wb.wb-gemini .wb-button-danger { background: #5c2928; color: #ffb4ab; }

.wb.wb-gemini.b-chat-state .b-stage > .wb-messages { display: block; flex: 1; min-height: 0; overflow: auto; padding: 12px 0 20px; }
.wb.wb-gemini.b-chat-state .b-stage > .wb-composer-area { max-height: 58%; margin-top: 8px; margin-bottom: 16px; overflow: auto; }
.wb.wb-gemini.wb-is-review .b-stage { padding-top: 16px; }
.wb.wb-gemini.wb-is-review .b-stage > .wb-messages,
.wb.wb-gemini.wb-is-review .wb-composer { display: none; }
.wb.wb-gemini.wb-is-review .b-stage > .wb-composer-area { display: flex; flex-direction: column; flex: 1; min-height: 0; max-height: none; margin-top: 0; margin-bottom: 16px; overflow: hidden; }
.wb.wb-gemini.wb-is-review .wb-review-host { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #5f6368 transparent; }

/* Local access and export dialogs are mounted on body, outside the workbench. */
body:has(.wb.wb-gemini) :is(.la-menu, .la-panel, .la-confirm, .wb-export-dialog) { background: #282a2d; border-color: #444746; color: #e3e3e3; color-scheme: dark; box-shadow: 0 20px 70px #0006; }
body:has(.wb.wb-gemini) :is(.la-panel, .la-confirm, .wb-export-dialog)::backdrop { background: #0008; }
body:has(.wb.wb-gemini) :is(.la-button, .la-input, .la-editor) { background: #202124; border-color: #444746; color: #e3e3e3; }
body:has(.wb.wb-gemini) :is(.la-button:hover, .la-mode.selected, .la-tabs, .la-close, .la-menu-open) { background: #35383b; color: #e3e3e3; }
body:has(.wb.wb-gemini) :is(.la-primary, .wb-export-actions .wb-button-dark) { background: #a8c7fa; border-color: #a8c7fa; color: #062e6f; }
body:has(.wb.wb-gemini) :is(.la-primary:hover, .wb-export-actions .wb-button-dark:hover) { background: #b9d1fa; }
body:has(.wb.wb-gemini) :is(.la-mode, .la-file-name) { background: transparent; color: #e3e3e3; }
body:has(.wb.wb-gemini) .la-tabs [aria-selected="true"] { background: #444746; }
body:has(.wb.wb-gemini) :is(.la-panel-heading, .la-ai-choice, .la-file-list, .la-file-row, .la-editor-panel) { border-color: #444746; }
body:has(.wb.wb-gemini) :is(.la-original, .la-output, .la-confirm-preview, .wb-export-preview) { background: #202124; border-color: #444746; color: #e3e3e3; }
body:has(.wb.wb-gemini) :is(.la-menu-summary, .la-mode small, .la-ai-choice small, .la-panel-status, .la-help, .la-panel-preferences small, .la-empty, .la-file-trail, .la-text, .la-file-row small, .la-editor-panel summary, .la-confirm p, .wb-export-filename, .wb-export-filename code, .wb-export-status, .wb-export-close) { color: #b5b9b7; }
body:has(.wb.wb-gemini) :is(.la-full, .la-full small, .la-full .la-mode-symbol) { color: #ffb877; }
body:has(.wb.wb-gemini) .wb-export-dialog textarea.wb-export-preview { background: #202124; border-color: #444746; color: #e3e3e3; }

@media (max-width: 1000px) {
  .wb.wb-gemini .b-stage { padding-inline: 24px; }
  .wb.wb-gemini .b-main-header { padding-inline: 20px; }
}
@media (max-width: 760px) {
  .wb.wb-gemini,
  .wb.wb-gemini.b-sidebar-expanded,
  .wb.wb-brand.wb-gemini.b-sidebar-collapsed { grid-template-columns: minmax(0, 1fr); }
  .wb.wb-gemini .b-sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; max-width: 84vw; height: 100dvh; z-index: 20; }
  .wb.wb-gemini:not(.b-mobile-sidebar-open) .b-sidebar,
  .wb.wb-brand.wb-gemini.b-sidebar-collapsed:not(.b-mobile-sidebar-open) .b-sidebar { display: none; }
  .wb.wb-gemini.b-mobile-sidebar-open .b-sidebar { display: flex; }
  .wb.wb-gemini.b-mobile-sidebar-open .b-sidebar-top { justify-content: space-between; padding-inline: 8px; }
  .wb.wb-gemini.b-mobile-sidebar-open .b-sidebar-brand { display: inline-flex; align-items: center; gap: 8px; }
  .wb.wb-gemini.b-mobile-sidebar-open .b-navigation { align-items: stretch; }
  .wb.wb-gemini.b-mobile-sidebar-open .b-nav-button { width: 100%; justify-content: flex-start; padding: 10px 14px; border-radius: 24px; }
  .wb.wb-gemini.b-mobile-sidebar-open .b-sidebar .b-nav-label { display: inline; }
  .wb.wb-gemini.b-mobile-sidebar-open .b-history-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 12px; margin: 22px 0 6px; color: #c4c7c5; font-size: 13px; }
  .wb.wb-gemini.b-mobile-sidebar-open .wb-history { display: flex; flex-direction: column; flex: 1; min-height: 0; max-height: none; overflow: auto; }
  .wb.wb-gemini.b-mobile-sidebar-open .wb-delete-confirm { display: block; }
  .wb.wb-gemini.b-mobile-sidebar-open .b-sidebar-account { flex-direction: row; justify-content: space-between; margin: auto 0 10px; padding: 10px 8px; }
  .wb.wb-gemini.b-mobile-sidebar-open .b-account-name,
  .wb.wb-gemini.b-mobile-sidebar-open .b-sidebar-account > span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wb.wb-gemini .b-main-header { min-height: 68px; padding: 8px 12px; gap: 8px; }
  .wb.wb-gemini .b-header-start { gap: 5px; }
  .wb.wb-gemini .b-main-header #wb-provider { max-width: 120px; font-size: 18px !important; }
  .wb.wb-gemini .b-main-header #wb-model { max-width: 180px; font-size: 11px !important; }
  .wb.wb-gemini .b-header-actions { gap: 3px; }
  .wb.wb-gemini .b-header-actions .wb-button { min-height: 32px; padding: 6px 8px; font-size: 12px !important; }
  .wb.wb-gemini .b-stage { padding-inline: 20px; }
  .wb.wb-gemini .b-stage > .wb-composer-area { margin-bottom: 24px; }
  .wb.wb-gemini .b-welcome-title { font-size: 30px; }
  .wb.wb-gemini .b-composer-tools,
  .wb.wb-gemini .wb-composer-tools { gap: 6px; }
  .wb.wb-gemini .wb-attachment summary { flex-wrap: wrap; gap: 3px 7px; }
  .wb.wb-gemini .wb-attachment summary > span:first-child { max-width: 100%; }
  .wb.wb-gemini .b-disclaimer { padding-inline: 16px; font-size: 10px; }
  .wb.wb-gemini.b-chat-state .b-stage > .wb-composer-area { max-height: 62%; margin-bottom: 12px; }
}
@media (max-width: 440px) {
  .wb.wb-gemini { margin: 0; }
  .wb.wb-gemini .b-main-header { padding-inline: 8px; }
  .wb.wb-gemini .b-header-actions .b-header-optional { display: none; }
  .wb.wb-gemini .b-main-header #wb-model { max-width: 150px; }
  .wb.wb-gemini .b-stage { padding-inline: 12px; }
  .wb.wb-gemini .b-welcome-title { font-size: 28px; }
  .wb.wb-gemini .wb-char-count { display: none; }
  .wb.wb-gemini .b-composer-left,
  .wb.wb-gemini .wb-composer-left { flex-basis: auto; gap: 4px; }
  .wb.wb-gemini .la-trigger { padding-inline: 5px; font-size: 11px; }
  .wb.wb-gemini:not(.wb-is-review) .wb-composer:not(.b-composer-expanded):not(:has(.wb-attachments:not(:empty))) .la-trigger { max-width: 110px; }
  .wb.wb-gemini:not(.wb-is-review) .wb-composer:not(.b-composer-expanded):not(:has(.wb-attachments:not(:empty))) .la-trigger span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wb.wb-gemini:not(.wb-is-review) .wb-composer:not(.b-composer-expanded):not(:has(.wb-attachments:not(:empty))):has(.b-composer-right) { padding-inline: 7px; }
  .wb.wb-gemini:not(.wb-is-review) .wb-composer:not(.b-composer-expanded):not(:has(.wb-attachments:not(:empty))):has(.b-composer-right) textarea.wb-draft { padding-inline: 6px; }
  .wb.wb-gemini .b-composer-right { flex-wrap: wrap; gap: 4px; }
  .wb.wb-gemini .b-session-notes { font-size: 11px; }
  .wb.wb-gemini .b-session-notes .wb-caption,
  .wb.wb-gemini .b-session-notes .wb-cost-note,
  .wb.wb-gemini .b-session-notes .wb-connection-note,
  .wb.wb-gemini .b-session-notes .wb-send-note { font-size: 11px !important; }
  .wb.wb-gemini .wb-message-content { font-size: 15px; }
}

.wb.wb-gemini .b-header-actions .rq-entry { background:#282a2d; color:#e3e3e3; border:1px solid #444746; }

.wb.wb-gemini .b-stage>.wb-composer-area { overflow-x:hidden; }

@media(max-width:760px) {
  .wb.wb-gemini .b-stage>.wb-composer-area { margin-bottom:44px; }
  .wb.wb-gemini.b-chat-state .b-stage>.wb-composer-area { margin-bottom:40px; }
}
