/* Final index authority layer. Keep the product neutral, compact, and predictable. */
:root {
  --sidebar-w: 280px;
  --sidebar-mini: 66px;
  --header-h: 62px;
  --input-max-w: 820px;
  --profit-black: #111111;
  --profit-ink: #202124;
  --profit-muted: #73767b;
  --profit-line: #e6e3eb;
  --profit-sidebar: #f8f7fa;
  --profit-hover: #eeebf4;
  --profit-rose: #c68182;
  --profit-violet: #846fc1;
  --profit-blue: #5578cb;
  --profit-action: linear-gradient(118deg, var(--profit-rose) 0%, var(--profit-violet) 52%, var(--profit-blue) 100%);
  --profit-action-hover: linear-gradient(118deg, #b87477 0%, #7863b5 52%, #4c6fbe 100%);
  --profit-action-shadow: 0 6px 18px rgba(102, 86, 170, .20), 0 2px 5px rgba(198, 129, 130, .14);
}

html,
body.index-workspace {
  width: 100%;
  height: 100%;
  min-height: 100%;
  zoom: 1;
  background: #fff !important;
  color: var(--profit-ink);
  font-weight: 450;
  letter-spacing: 0;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.index-workspace,
body.index-workspace button,
body.index-workspace input,
body.index-workspace textarea,
body.index-workspace select {
  font-family: "Google Sans", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body.index-workspace button,
body.index-workspace a,
body.index-workspace [role="button"] { cursor: pointer; }

body.index-workspace .material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 510, "GRAD" 0, "opsz" 24 !important;
}

body.index-workspace .viewport {
  min-width: 0;
  min-height: 0;
  background: #fff !important;
}

body.index-workspace .header-bar {
  height: var(--header-h) !important;
  min-height: var(--header-h) !important;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: none !important;
}

/* Sidebar */
body.index-workspace #sidebar {
  width: var(--sidebar-w) !important;
  min-width: var(--sidebar-w) !important;
  height: 100vh !important;
  background: var(--profit-sidebar) !important;
  border: 0 !important;
  overflow: hidden !important;
  transition: width 240ms cubic-bezier(.2,.8,.2,1), min-width 240ms cubic-bezier(.2,.8,.2,1) !important;
}

body.index-workspace #sidebar.collapsed {
  width: var(--sidebar-mini) !important;
  min-width: var(--sidebar-mini) !important;
}

body.index-workspace #sidebar.motion-off,
body.index-workspace.motion-off #sidebar { transition: none !important; }

body.index-workspace .sidebar-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 36px 36px;
  align-items: center;
  gap: 2px;
  width: 100%;
  height: 64px !important;
  padding: 10px 12px 8px 14px !important;
}

body.index-workspace .sidebar-brand-btn {
  display: flex !important;
  min-width: 0;
  height: 40px !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--profit-black) !important;
}

body.index-workspace .sidebar-full-brand {
  display: flex !important;
  align-items: center;
  min-width: 0;
  gap: 8px;
  font-size: 18px !important;
  font-weight: 680 !important;
}

body.index-workspace .sidebar-full-favicon {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain;
  filter: grayscale(1) contrast(1.15);
}

body.index-workspace .sidebar-brand-plan {
  color: #85878b;
  font-size: 15px;
  font-weight: 480;
  margin-left: -4px;
}

body.index-workspace .sidebar-brand-btn .sidebar-toggle-icon { display: none !important; }

body.index-workspace .menu-toggle,
body.index-workspace .sidebar-header-search {
  display: grid !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  place-items: center;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #323438 !important;
}

body.index-workspace .menu-toggle:hover,
body.index-workspace .sidebar-header-search:hover,
body.index-workspace .sidebar-brand-btn:hover { background: #ededee !important; }

body.index-workspace .sidebar-header-search .nav-text { display: none !important; }
body.index-workspace .sidebar-header-search .material-symbols-rounded,
body.index-workspace .menu-toggle .material-symbols-rounded { font-size: 22px !important; }

body.index-workspace #sidebar.collapsed .sidebar-header {
  display: flex !important;
  flex-direction: column;
  height: 142px !important;
  padding: 10px 8px !important;
  gap: 5px;
}

body.index-workspace #sidebar.collapsed .sidebar-brand-btn,
body.index-workspace #sidebar.collapsed .menu-toggle,
body.index-workspace #sidebar.collapsed .sidebar-header-search { flex: 0 0 40px; width: 40px !important; }
body.index-workspace #sidebar.collapsed .sidebar-full-brand { display: none !important; }
body.index-workspace #sidebar.collapsed .sidebar-mini-brand { display: grid !important; place-items: center; }
body.index-workspace #sidebar.collapsed .sidebar-mini-favicon { width: 27px !important; height: 29px !important; }

body.index-workspace #sidebar-top-nav {
  padding: 4px 12px 6px !important;
  gap: 3px !important;
}

body.index-workspace #sidebar-top-nav #searchToggleBtn { display: none !important; }

body.index-workspace #sidebar .nav-link {
  display: flex !important;
  width: 100% !important;
  min-height: 41px !important;
  padding: 0 11px !important;
  border-radius: 10px !important;
  color: #282a2d !important;
  font-size: 15px !important;
  font-weight: 510 !important;
  gap: 12px !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

body.index-workspace #workspaceLockSidebarBtn[hidden] { display: none !important; }

body.index-workspace #sidebar .nav-link:hover,
body.index-workspace #sidebar .history-chat-btn.active { background: var(--profit-hover) !important; }
body.index-workspace #sidebar .nav-link .material-symbols-rounded { font-size: 21px !important; }

body.index-workspace .sidebar-main-content { padding-top: 4px; }

body.index-workspace .sidebar-history-section {
  flex: 0 0 auto;
  min-height: 0;
}

body.index-workspace .sidebar-history-section.recents-section {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

body.index-workspace .history-label,
body.index-workspace .sidebar-section-label {
  display: flex !important;
  align-items: center;
  width: auto !important;
  height: 34px !important;
  margin: 10px 12px 2px !important;
  padding: 0 8px !important;
  color: #777a7f !important;
  font-size: 14px !important;
  font-weight: 670 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

body.index-workspace .sidebar-section-actions {
  display: flex;
  margin-left: auto;
  gap: 1px;
  opacity: 0;
  transform: translateX(3px);
  transition: opacity 140ms ease, transform 140ms ease;
}

body.index-workspace .history-label:hover .sidebar-section-actions,
body.index-workspace .history-label:focus-within .sidebar-section-actions,
body.index-workspace .sidebar-section-label:hover .sidebar-section-actions,
body.index-workspace .sidebar-section-label:focus-within .sidebar-section-actions {
  opacity: 1;
  transform: none;
}

body.index-workspace .sidebar-section-action {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #51545a;
}
body.index-workspace .sidebar-section-action:hover { background: #e3e3e5; }
body.index-workspace .sidebar-section-action .material-symbols-rounded { font-size: 17px !important; }
body.index-workspace .history-toggle-arrow { opacity: 0 !important; width: 0 !important; pointer-events: none !important; }

body.index-workspace .sidebar-pinned-list,
body.index-workspace #sidebar-history {
  padding: 0 8px !important;
  gap: 2px !important;
}

body.index-workspace .sidebar-pinned-list:empty + .sidebar-pinned-empty { display: block; }
body.index-workspace .sidebar-pinned-empty { display: none; padding: 5px 20px 2px; color: #999; font-size: 12px; }

body.index-workspace .sidebar-history-scroll {
  min-height: 0 !important;
  flex: 1 1 auto !important;
}

body.index-workspace #sidebar-history .history-chat-btn,
body.index-workspace .sidebar-pinned-list .history-chat-btn {
  min-height: 38px !important;
  padding: 0 9px !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  font-weight: 480 !important;
}

body.index-workspace .history-chat-btn .chat-share-btn,
body.index-workspace .history-chat-btn .chat-more-btn,
body.index-workspace .history-chat-btn .chat-pin-indicator {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 120ms ease;
}

body.index-workspace .history-chat-btn:hover .chat-share-btn,
body.index-workspace .history-chat-btn:hover .chat-more-btn,
body.index-workspace .history-chat-btn:hover .chat-pin-indicator,
body.index-workspace .history-chat-btn:focus-within .chat-share-btn,
body.index-workspace .history-chat-btn:focus-within .chat-more-btn {
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.index-workspace .sidebar-bottom {
  flex: 0 0 auto !important;
  padding: 0 !important;
  background: #fafafa !important;
  border-top: 1px solid #e5e5e6 !important;
}

body.index-workspace .sidebar-profile-shell,
body.index-workspace .sidebar-profile-btn {
  width: 100% !important;
}

body.index-workspace .sidebar-profile-btn {
  min-height: 72px !important;
  padding: 10px 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
body.index-workspace .sidebar-profile-btn:hover { background: #eeeeef !important; }
body.index-workspace .sidebar-account-name { font-weight: 600 !important; }
body.index-workspace .sidebar-account-plan { color: #898b90 !important; font-size: 12px !important; }

/* Main composer */
body.index-workspace .input-region {
  width: min(var(--input-max-w), calc(100% - 38px)) !important;
  max-width: var(--input-max-w) !important;
  transition: width 260ms cubic-bezier(.2,.8,.2,1), max-width 260ms cubic-bezier(.2,.8,.2,1), transform 220ms ease, opacity 180ms ease !important;
}

body.index-workspace .input-region:has(#sendBtn.streaming) {
  width: min(880px, calc(100% - 38px)) !important;
  max-width: 880px !important;
}

body.index-workspace .composer {
  min-height: 60px !important;
  border: 1px solid #dedede !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.055), 0 1px 3px rgba(0,0,0,.05) !important;
  overflow: visible !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, min-height 180ms ease !important;
}

body.index-workspace .composer:focus-within {
  border-color: #d0d0d0 !important;
  outline: 0 !important;
  box-shadow: 0 9px 26px rgba(0,0,0,.065), 0 1px 3px rgba(0,0,0,.05) !important;
}

body.index-workspace .composer-body {
  min-height: 58px !important;
  padding: 0 8px 0 10px !important;
  display: flex !important;
  align-items: center !important;
}

body.index-workspace #userInput {
  min-height: 42px !important;
  max-height: 150px !important;
  padding: 10px 218px 10px 50px !important;
  color: #171717 !important;
  font-size: 16px !important;
  font-weight: 450 !important;
  line-height: 22px !important;
  outline: none !important;
  box-shadow: none !important;
}
body.index-workspace #userInput::placeholder { color: #8a8c90 !important; opacity: 1; }

body.index-workspace .idle-brand-favicon,
body.index-workspace .sidebar-mini-favicon,
body.index-workspace .workspace-lock-brand img { filter: grayscale(1) contrast(1.15); }

body.index-workspace .workspace-auth-actions .btn-primary,
body.index-workspace #auth-section .btn-primary {
  border-color: #111 !important;
  background: #111 !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.index-workspace .workspace-sheet-panel .input-wrapper,
body.index-workspace .workspace-sheet-panel .input-wrapper:focus,
body.index-workspace .workspace-sheet-panel .input-wrapper:focus-within {
  outline: 0 !important;
  border-color: #d8d8d8 !important;
  box-shadow: none !important;
}

body.index-workspace .workspace-sheet-panel .input-wrapper:focus-within {
  border-color: #bcbcbc !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .045) !important;
}

body.index-workspace .workspace-sheet-panel .input-wrapper input,
body.index-workspace .workspace-sheet-panel .input-wrapper input:focus,
body.index-workspace .workspace-sheet-panel .input-wrapper input:focus-visible {
  outline: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.index-workspace .composer-toolbar { align-items: center !important; }
body.index-workspace .btn-action-plus,
body.index-workspace .mic-btn,
body.index-workspace .model-picker-btn {
  min-height: 38px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #35373a !important;
  font-weight: 500 !important;
}
body.index-workspace .btn-action-plus,
body.index-workspace .mic-btn { width: 38px !important; min-width: 38px !important; border-radius: 50% !important; }
body.index-workspace .btn-action-plus:hover,
body.index-workspace .mic-btn:hover,
body.index-workspace .model-picker-btn:hover { background: #f1f1f1 !important; }

body.index-workspace .model-picker-btn {
  max-width: 148px !important;
  padding: 0 8px !important;
  border-radius: 9px !important;
  font-size: 14px !important;
}
body.index-workspace .model-picker-arrow { font-size: 17px !important; }

body.index-workspace #sendBtn,
body.index-workspace #sendBtn.record-idle,
body.index-workspace #sendBtn.ready {
  position: relative;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #111 !important;
  color: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: width 300ms cubic-bezier(.2,.8,.2,1), background 180ms ease !important;
}

body.index-workspace #sendBtn.record-idle { background: #efeff0 !important; color: #171717 !important; }
body.index-workspace #sendBtn.record-idle .voice-action-label { display: none !important; }
body.index-workspace #sendBtn .material-symbols-rounded { font-size: 22px !important; }

body.index-workspace #sendBtn.streaming {
  width: 154px !important;
  min-width: 154px !important;
  height: 42px !important;
  min-height: 42px !important;
  border: 0 !important;
  border-radius: 999px !important;
  justify-content: flex-end !important;
  overflow: hidden !important;
  box-shadow: none !important;
  background:
    linear-gradient(90deg, var(--profit-rose) 0 calc(var(--stream-progress, 0) * 1%), #111 calc(var(--stream-progress, 0) * 1%) 100%) !important;
}

body.index-workspace #sendBtn.streaming::before,
body.index-workspace #sendBtn.streaming::after {
  display: none !important;
  content: none !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

body.index-workspace #sendBtn.streaming .stream-progress-label {
  display: block !important;
  position: absolute;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  top: 50% !important;
  min-width: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  transform: translate(-50%, -50%) !important;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1 !important;
  pointer-events: none;
}

body.index-workspace #sendBtn.streaming #btnIcon {
  position: absolute;
  left: calc(10px + (var(--stream-progress, 0) * .98px));
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 0 !important;
  transform: rotate(90deg);
  transition: left 240ms linear, transform 180ms ease;
  z-index: 2;
  opacity: 1 !important;
}

body.index-workspace #sendBtn.streaming #btnIcon::after {
  position: absolute;
  left: 7px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: rotate(-45deg);
}

body.index-workspace #sendBtn.streaming[data-stream-progress="100"] #btnIcon { transform: rotate(0deg); }

body.index-workspace.progress-ring #sendBtn.streaming {
  width: 42px !important;
  min-width: 42px !important;
  background: conic-gradient(#fff calc(var(--stream-progress, 0) * 1%), #555 0) !important;
  box-shadow: inset 0 0 0 3px #111 !important;
}
body.index-workspace.progress-ring #sendBtn.streaming::before {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #111;
  content: "";
}
body.index-workspace.progress-ring #sendBtn.streaming #btnIcon {
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 2px;
  background: #fff;
  transform: none;
}
body.index-workspace.progress-ring #sendBtn.streaming #btnIcon::after,
body.index-workspace.progress-ring #sendBtn.streaming .stream-progress-label { display: none !important; }

/* Centered greeting */
body.index-workspace .idle-composer-brand {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  color: #161616 !important;
  font-size: 29px !important;
  font-weight: 610 !important;
}
body.index-workspace .idle-brand-favicon { width: 30px !important; height: 32px !important; }
body.index-workspace .idle-brand-text { transition: opacity 180ms ease, transform 180ms ease; }
body.index-workspace .idle-brand-text.greeting-swapping { opacity: 0; transform: translateY(4px); }
body.index-workspace.chat-has-user-turn .idle-composer-brand { display: none !important; }

/* Incognito */
body.index-workspace.temporary-chat-mode .composer {
  background: #202020 !important;
  border-color: #202020 !important;
}
body.index-workspace.temporary-chat-mode #userInput { color: #fff !important; }
body.index-workspace.temporary-chat-mode #userInput::placeholder { color: #aaa !important; }
body.index-workspace.temporary-chat-mode .btn-action-plus,
body.index-workspace.temporary-chat-mode .mic-btn,
body.index-workspace.temporary-chat-mode .model-picker-btn { color: #f4f4f4 !important; }
body.index-workspace.temporary-chat-mode .btn-action-plus:hover,
body.index-workspace.temporary-chat-mode .mic-btn:hover,
body.index-workspace.temporary-chat-mode .model-picker-btn:hover { background: #343434 !important; }

body.index-workspace .incognito-toggle-btn {
  border: 0 !important;
  background: transparent !important;
  border-radius: 10px !important;
}
body.index-workspace .incognito-toggle-btn .incognito-simple-icon { font-size: 0 !important; }
body.index-workspace .incognito-toggle-btn .incognito-simple-icon::before {
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid #171717;
  border-radius: 50%;
  content: "";
}
body.index-workspace .incognito-toggle-btn[aria-pressed="true"] .incognito-simple-icon::before {
  border-style: dashed;
  animation: incognitoRingIn 260ms ease both;
}
body.index-workspace .incognito-toggle-btn[aria-pressed="true"] .incognito-simple-icon::after {
  position: absolute;
  width: 7px;
  height: 4px;
  margin: 6px 0 0 -15px;
  border-bottom: 2px solid #171717;
  border-left: 2px solid #171717;
  content: "";
  transform: rotate(-45deg);
  animation: incognitoCheckIn 260ms 90ms ease both;
}

body.index-workspace.temporary-chat-mode .user-bubble {
  min-width: 52px;
  min-height: 52px;
  display: grid;
  place-items: center;
  border: 1px dashed #a8a8a8 !important;
  border-radius: 999px !important;
  background: #fafafa !important;
}

@keyframes incognitoRingIn { from { transform: scale(.72) rotate(-18deg); opacity: 0; } }
@keyframes incognitoCheckIn { from { transform: rotate(-45deg) scale(.3); opacity: 0; } }

/* Menus */
body.index-workspace .model-picker-menu,
body.index-workspace .chat-context-menu,
body.index-workspace .response-more-menu,
body.index-workspace .sidebar-section-menu,
body.index-workspace .sidebar-user-menu-panel,
body.index-workspace .sidebar-help-submenu {
  border: 1px solid #dedede !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 16px 44px rgba(0,0,0,.12) !important;
}

body.index-workspace .model-picker-menu {
  width: 380px !important;
  min-width: 380px !important;
  max-width: min(380px, calc(100vw - 24px)) !important;
  max-height: min(610px, calc(100vh - 110px)) !important;
  padding: 8px !important;
  overflow: auto !important;
}

body.index-workspace .model-picker-section-label {
  padding: 9px 10px 6px !important;
  color: #85878c !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

body.index-workspace .model-picker-list { gap: 2px !important; }
body.index-workspace .model-picker-item {
  min-height: 43px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  font-weight: 520 !important;
}
body.index-workspace .model-picker-item:hover:not(:disabled),
body.index-workspace .model-picker-item.active { background: #f0f0f1 !important; }
body.index-workspace .model-picker-badge { width: 27px !important; height: 27px !important; background: #171717 !important; color: #fff !important; }
body.index-workspace .intelligence-levels { padding: 4px 6px 7px !important; gap: 4px !important; }
body.index-workspace .intelligence-level-btn { border-radius: 8px !important; font-weight: 520 !important; }
body.index-workspace .intelligence-level-btn.active { background: #171717 !important; color: #fff !important; }

body.index-workspace #composerAddMenu.composer-add-menu {
  border: 1px solid #dedede !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 16px 44px rgba(0,0,0,.12) !important;
  overflow: visible !important;
}
body.index-workspace #composerAddMenu .composer-add-menu-item {
  min-height: 43px !important;
  height: 43px !important;
  padding: 0 14px !important;
  border-radius: 9px !important;
  color: #212225 !important;
  font-size: 14px !important;
  font-weight: 540 !important;
}
body.index-workspace #composerAddMenu .composer-add-menu-item .material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 680, "GRAD" 0, "opsz" 22 !important;
}
body.index-workspace #composerModelBtn .composer-menu-check {
  display: inline-flex !important;
  margin-left: auto !important;
  color: #111 !important;
  font-size: 19px !important;
}

/* Composer customization */
body.index-workspace.composer-editing .composer { outline: 1px dashed #777 !important; outline-offset: 5px; }
body.index-workspace.composer-editing .composer-edit-target {
  outline: 1px dashed #8a8a8a !important;
  outline-offset: 2px;
  touch-action: none;
  cursor: move !important;
}
body.index-workspace .composer-edit-toolbar {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 13px);
  z-index: 50;
  display: flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid #dedede;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
  transform: translateX(-50%);
}
body.index-workspace .composer-edit-toolbar button { height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: #f1f1f1; font-weight: 600; }
body.index-workspace .composer-edit-toolbar button.primary { background: #111; color: #fff; }

/* Lock */
body.index-workspace .workspace-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  background: #fff;
}
body.index-workspace .workspace-lock-panel { display: grid; justify-items: center; gap: 24px; }
body.index-workspace .workspace-lock-brand { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 650; }
body.index-workspace .workspace-lock-brand img { width: 25px; height: 27px; object-fit: contain; }
body.index-workspace .workspace-lock-keyboard-input {
  position: fixed;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
body.index-workspace .workspace-lock-digits { display: flex; align-items: center; justify-content: center; min-height: 70px; gap: 11px; }
body.index-workspace .workspace-lock-digit {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #bbb;
  border-radius: 50%;
  color: transparent;
  font-size: 0;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
body.index-workspace .workspace-lock-digit.filled { background: #111; border-color: #111; transform: translateY(var(--digit-shift, 0)); }
body.index-workspace .workspace-lock-submit {
  position: relative;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  transition: opacity 160ms ease, transform 160ms ease;
}
body.index-workspace .workspace-lock-submit.pending {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
body.index-workspace .workspace-lock-submit.ready {
  background: #111 !important;
  color: #fff !important;
  animation: lockSubmitIn 180ms ease both;
}
body.index-workspace .workspace-lock-overlay.lock-unlocking .workspace-lock-submit {
  animation: lockArrowSwipe 560ms cubic-bezier(.44, .02, .18, 1) both;
  pointer-events: none;
}
body.index-workspace .workspace-lock-overlay.lock-unlocking .workspace-lock-digit {
  animation: lockDigitFade 210ms ease both;
}
body.index-workspace .workspace-lock-overlay.lock-unlocking .workspace-lock-digit:nth-child(2) { animation-delay: 70ms; }
body.index-workspace .workspace-lock-overlay.lock-unlocking .workspace-lock-digit:nth-child(3) { animation-delay: 155ms; }
body.index-workspace .workspace-lock-overlay.lock-unlocking .workspace-lock-digit:nth-child(4) { animation-delay: 240ms; }
body.index-workspace .workspace-lock-overlay.lock-unlocking .workspace-lock-digit:nth-child(5) { animation-delay: 325ms; }
body.index-workspace .workspace-lock-copy { color: #707277; font-size: 13px; }
body.index-workspace .workspace-lock-reset { border: 0; background: transparent; color: #383a3e; text-decoration: underline; }
body.index-workspace .workspace-unlocked-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 2147483647;
  height: 38px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 620;
  transform: translateX(-50%);
  animation: unlockedToast 2.5s ease forwards;
}
@keyframes lockSubmitIn { from { transform: translateX(-8px); opacity: 0; } }
@keyframes lockArrowSwipe {
  0% { transform: translateX(0) rotate(0); }
  86% { transform: translateX(228px) rotate(0); opacity: 1; }
  100% { transform: translateX(236px) rotate(0); opacity: 0; }
}
@keyframes lockDigitFade {
  from { opacity: 1; transform: translateY(var(--digit-shift, 0)) scale(1); }
  to { opacity: 0; transform: translateY(var(--digit-shift, 0)) scale(.78); }
}
@keyframes unlockedToast { 0% { opacity:0; transform:translate(-50%,-8px) scale(.95) } 12%,65% { opacity:1; transform:translate(-50%,0) scale(1) } 82% { width:38px; padding:0; border-radius:50%; color:transparent } 100% { width:0; opacity:0; padding:0 } }

/* Incognito drag rail */
body.index-workspace .incognito-exit-rail {
  position: fixed;
  z-index: 2100;
  display: flex;
  width: 46px;
  height: 102px;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 7px;
  border: 1px solid #dedede;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0,0,0,.1);
  opacity: 0;
  transform: scaleY(.45);
  transform-origin: top;
  pointer-events: none;
  transition: opacity 150ms ease, transform 180ms ease, width 180ms ease;
}
body.index-workspace .incognito-exit-rail.show { opacity: 1; transform: none; pointer-events: auto; }
body.index-workspace .incognito-exit-label { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #eee; color: #333; font-size: 0; }
body.index-workspace .incognito-exit-label::before { content: "+"; font-size: 20px; }
body.index-workspace .incognito-exit-rail.armed { width: 116px; }
body.index-workspace .incognito-exit-rail.armed .incognito-exit-label { width: 92px; border-radius: 16px; font-size: 12px; font-weight: 600; }
body.index-workspace .incognito-exit-rail.armed .incognito-exit-label::before { display:none; }

/* Conversation map */
body.index-workspace .conversation-map {
  position: fixed;
  right: 6px;
  top: 50%;
  z-index: 80;
  display: flex;
  max-height: 111px;
  flex-direction: column;
  gap: .75px;
  transform: translateY(-50%);
  overflow-x: visible;
  overflow-y: auto;
  padding-top: 9px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 100%);
}
body.index-workspace .conversation-map::-webkit-scrollbar { display:none; }
body.index-workspace .conversation-map-line {
  position: relative;
  width: 3.5px;
  height: 15px;
  border: 0;
  border-radius: 2px;
  background: #c6c7c9;
  transition: width 140ms ease, background 140ms ease, transform 140ms ease;
}
body.index-workspace .conversation-map-line:hover,
body.index-workspace .conversation-map-line.active { width: 9px; background: #111; transform: translateX(-5.5px); }
body.index-workspace .conversation-map-preview {
  position: fixed;
  z-index: 120;
  width: 260px;
  padding: 11px 12px;
  border: 1px solid #dedede;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(0,0,0,.12);
  pointer-events: none;
}
body.index-workspace .conversation-map-preview strong { display:block; margin-bottom:4px; font-size:12px; }
body.index-workspace .conversation-map-preview span { display:block; color:#6c6f74; font-size:11px; line-height:1.35; }

/* Chat loading composer frame */
body.index-workspace .chat-load-composer-frame {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  width: min(var(--input-max-w), calc(100% - 38px));
  height: 60px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  transform: translateX(-50%);
}
body.index-workspace .chat-load-composer-progress {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  transition: left 120ms linear;
}

/* Down button becomes the composer only when the blank composer is hidden. */
body.index-workspace.composer-scroll-hidden .input-region { opacity: 0; transform: translateY(18px) scale(.96); pointer-events: none; }
body.index-workspace.composer-scroll-hidden #scrollChatToBottomBtn { width: 42px !important; height: 42px !important; border-radius: 50% !important; }
body.index-workspace.composer-scroll-hidden.composer-returning #scrollChatToBottomBtn { width: min(420px, calc(100vw - 80px)) !important; border-radius: 999px !important; transition: width 220ms cubic-bezier(.2,.8,.2,1) !important; }

/* Tooltip shown only after the JavaScript delay. */
body.index-workspace .profit-tooltip {
  position: fixed;
  z-index: 2147483647;
  max-width: 230px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #171717;
  color: #fff;
  font-size: 11px;
  font-weight: 520;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(-3px) scale(.97);
  transition: opacity 120ms ease, transform 120ms ease;
  pointer-events: none;
}
body.index-workspace .profit-tooltip.show { opacity: 1; transform: none; }
body.index-workspace .profit-tooltip kbd { margin-left: 7px; color:#bbb; font:inherit; }

/* Settings and MFA */
body.index-workspace .settings-security-control { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:14px; }
body.index-workspace #workspaceMfaStatus { color:#6d7075; font-size:13px; }
body.index-workspace .settings-switch input:checked + span { background:#111 !important; }
body.index-workspace .settings-select { border-radius:9px !important; border-color:#ddd !important; background:#fff !important; }

body.index-workspace .message.user-message { align-items:flex-end !important; }
body.index-workspace .user-bubble {
  display:flex;
  min-height:42px;
  align-items:center;
  padding:10px 14px !important;
  border-radius:18px !important;
  background:#f1f1f1 !important;
  color:#202124 !important;
  font-size:15px !important;
  font-weight:470 !important;
  line-height:1.45 !important;
}
body.index-workspace .ai-bubble { color:#202124 !important; font-size:15px !important; font-weight:440 !important; line-height:1.62 !important; }
body.index-workspace .response-action-btn,
body.index-workspace .user-response-actions button { color:#55585c !important; }
body.index-workspace .response-action-btn .material-symbols-rounded,
body.index-workspace .user-response-actions .material-symbols-rounded { font-variation-settings:"FILL" 0,"wght" 580,"GRAD" 0,"opsz" 22 !important; }

/* Section menu */
body.index-workspace .sidebar-section-menu { position:fixed; z-index:2400; width:190px; padding:6px; }
body.index-workspace .sidebar-section-menu button { display:flex; width:100%; min-height:38px; align-items:center; gap:9px; padding:0 10px; border:0; border-radius:8px; background:transparent; color:#25262a; font-size:13px; font-weight:520; }
body.index-workspace .sidebar-section-menu button:hover { background:#f0f0f1; }
body.index-workspace .sidebar-section-menu .material-symbols-rounded { font-size:18px !important; }

body.index-workspace .profit-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(5px);
}
body.index-workspace .profit-dialog {
  width: min(440px, 100%);
  padding: 22px;
  border: 1px solid #dcdcdc;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
  animation: profitDialogIn 180ms cubic-bezier(.2,.8,.2,1) both;
}
body.index-workspace .profit-dialog h2 { margin:0 0 7px; color:#171717; font-size:19px; font-weight:680; }
body.index-workspace .profit-dialog > p { margin:0 0 18px; color:#6d7075; font-size:13px; line-height:1.45; }
body.index-workspace .profit-dialog-body { display:grid; gap:10px; }
body.index-workspace .profit-dialog-body input {
  width:100%;
  height:44px;
  padding:0 12px;
  border:1px solid #d6d6d6;
  border-radius:10px;
  outline:0;
  font-size:15px;
}
body.index-workspace .profit-dialog-body input:focus { border-color:#8f8f8f; box-shadow:0 0 0 3px rgba(0,0,0,.06); }
body.index-workspace .profit-dialog-actions { display:flex; justify-content:flex-end; gap:7px; margin-top:20px; }
body.index-workspace .profit-dialog-actions button,
body.index-workspace .mfa-setup-fields button {
  min-height:38px;
  padding:0 14px;
  border:1px solid #ddd;
  border-radius:9px;
  background:#fff;
  color:#252629;
  font-weight:600;
}
body.index-workspace .profit-dialog-actions button.primary { border-color:#111; background:#111; color:#fff; }
body.index-workspace .profit-dialog-actions button.danger { border-color:#bd2f2f; background:#bd2f2f; color:#fff; }
body.index-workspace .mfa-setup-fields { display:grid; gap:10px; }
body.index-workspace .mfa-setup-fields code { padding:12px; border-radius:9px; background:#f2f2f2; color:#1f2023; font:600 13px/1.4 "JetBrains Mono", monospace; overflow-wrap:anywhere; user-select:text; }
body.index-workspace .shortcut-list { display:grid; gap:1px; }
body.index-workspace .shortcut-list > div { display:flex; align-items:center; justify-content:space-between; min-height:38px; border-bottom:1px solid #eee; font-size:13px; }
body.index-workspace .shortcut-list kbd { padding:4px 7px; border:1px solid #d6d6d6; border-radius:6px; background:#f7f7f7; font:500 11px/1 "Google Sans", sans-serif; }
body.index-workspace .workspace-lock-overlay.lock-error .workspace-lock-panel { animation:lockError 240ms ease; }
@keyframes profitDialogIn { from { opacity:0; transform:translateY(8px) scale(.98); } }
@keyframes lockError { 25% { transform:translateX(-8px) } 50% { transform:translateX(7px) } 75% { transform:translateX(-4px) } }

@media (max-width: 768px) {
  :root { --sidebar-w: min(88vw, 310px); --input-max-w: 100%; }
  body.index-workspace #sidebar { position: fixed !important; }
  body.index-workspace .input-region,
  body.index-workspace .input-region:has(#sendBtn.streaming) { width: calc(100% - 22px) !important; max-width: calc(100% - 22px) !important; }
  body.index-workspace .composer { min-height: 56px !important; }
  body.index-workspace .composer-body { min-height: 54px !important; padding-left: 6px !important; }
  body.index-workspace #userInput { font-size: 16px !important; }
  body.index-workspace #sendBtn.streaming { width: 118px !important; min-width: 118px !important; }
  body.index-workspace #sendBtn.streaming #btnIcon { left: calc(9px + (var(--stream-progress, 0) * .62px)); }
  body.index-workspace .model-picker-menu { width: calc(100vw - 20px) !important; min-width: 0 !important; }
  body.index-workspace .conversation-map { display:none; }
  body.index-workspace .idle-composer-brand { font-size:23px !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.index-workspace *, body.index-workspace *::before, body.index-workspace *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; transition-duration:.01ms !important; }
}

body.index-workspace.motion-off *,
body.index-workspace.motion-off *::before,
body.index-workspace.motion-off *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }

/* Color, alignment, and interaction authority. */
body.index-workspace #sidebar {
  background: var(--profit-sidebar) !important;
}

body.index-workspace .sidebar-header {
  grid-template-columns: minmax(0, 1fr) 38px 38px !important;
  column-gap: 3px !important;
}

body.index-workspace .sidebar-brand-btn {
  min-width: 0 !important;
  overflow: hidden !important;
}

body.index-workspace .sidebar-full-brand {
  max-width: 100% !important;
  overflow: hidden !important;
}

body.index-workspace .sidebar-brand-name,
body.index-workspace .sidebar-brand-plan {
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.index-workspace .sidebar-full-favicon,
body.index-workspace .sidebar-mini-favicon,
body.index-workspace .idle-brand-favicon,
body.index-workspace .workspace-lock-brand img {
  filter: none !important;
  image-rendering: auto;
}

body.index-workspace .sidebar-header-search,
body.index-workspace .menu-toggle {
  position: static !important;
  flex: 0 0 38px !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  margin: 0 !important;
  overflow: hidden !important;
}

body.index-workspace .sidebar-header-search:hover,
body.index-workspace .menu-toggle:hover,
body.index-workspace .sidebar-brand-btn:hover,
body.index-workspace #sidebar .nav-link:hover,
body.index-workspace #sidebar .history-chat-btn.active {
  background: var(--profit-hover) !important;
}

body.index-workspace #workspaceLockSidebarBtn {
  display: flex !important;
}

body.index-workspace #workspaceLockSidebarBtn .material-symbols-rounded {
  color: var(--profit-violet) !important;
}

body.index-workspace .sidebar-bottom {
  background: rgba(255, 255, 255, .68) !important;
  border-top-color: #e5e1eb !important;
}

body.index-workspace .sidebar-login-box {
  background: transparent !important;
  padding: 15px 17px 17px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.index-workspace .sidebar-login-copy {
  display: grid !important;
  gap: 3px !important;
  color: #77727d !important;
  font-size: 12.5px !important;
  line-height: 1.38 !important;
}

body.index-workspace .sidebar-login-copy .emphasis {
  color: #25212d !important;
  font-size: 14px !important;
  font-weight: 620 !important;
}

body.index-workspace .sidebar-login-btn {
  border-color: #d8d3df !important;
  background: rgba(255, 255, 255, .86) !important;
}

body.index-workspace .sidebar-login-btn:hover {
  border-color: #c8bfd8 !important;
  background: #fff !important;
}

body.index-workspace .input-region,
body.index-workspace .input-region:has(#sendBtn.streaming) {
  left: 50% !important;
  right: auto !important;
  box-sizing: border-box !important;
  transform: translateX(-50%) !important;
}

body.index-workspace.composer-centered:not(.chat-has-user-turn) .input-region {
  left: 50% !important;
  right: auto !important;
  transform: translate(-50%, -46%) !important;
}

body.index-workspace.composer-centered.chat-has-user-turn .input-region {
  transform: translateX(-50%) !important;
}

body.index-workspace.composer-scroll-hidden .input-region {
  transform: translate(-50%, 18px) scale(.96) !important;
}

body.index-workspace .composer,
body.index-workspace .composer:hover,
body.index-workspace .composer:focus,
body.index-workspace .composer:focus-within {
  border-color: #dedbe3 !important;
  outline: 0 !important;
  box-shadow: 0 7px 22px rgba(44, 36, 65, .055), 0 1px 3px rgba(40, 31, 59, .045) !important;
}

body.index-workspace #userInput,
body.index-workspace #userInput:focus,
body.index-workspace #userInput:focus-visible {
  outline: 0 !important;
  box-shadow: none !important;
}

body.index-workspace .btn-action-plus:hover,
body.index-workspace .mic-btn:hover,
body.index-workspace .model-picker-btn:hover {
  background: rgba(116, 92, 169, .08) !important;
}

body.index-workspace #sendBtn.ready {
  background: var(--profit-action) !important;
  color: #fff !important;
  box-shadow: var(--profit-action-shadow) !important;
}

body.index-workspace #sendBtn.ready:hover {
  background: var(--profit-action-hover) !important;
}

body.index-workspace #sendBtn.streaming {
  background: linear-gradient(
    90deg,
    var(--profit-rose) 0%,
    var(--profit-violet) calc(var(--stream-progress, 0) * .52%),
    #272231 calc(var(--stream-progress, 0) * 1%),
    #17151b calc(var(--stream-progress, 0) * 1%) 100%
  ) !important;
  box-shadow: 0 7px 22px rgba(93, 73, 150, .18) !important;
}

body.index-workspace .workspace-auth-actions .btn-primary,
body.index-workspace #auth-section .btn-primary,
body.index-workspace .profit-dialog-actions button.primary {
  border-color: transparent !important;
  background: var(--profit-action) !important;
  color: #fff !important;
  box-shadow: var(--profit-action-shadow) !important;
}

body.index-workspace .user-bubble {
  background: #f3f1f6 !important;
}

body.index-workspace .model-picker-menu,
body.index-workspace .model-picker-subpanel,
body.index-workspace .chat-context-menu,
body.index-workspace .response-more-menu,
body.index-workspace .sidebar-section-menu,
body.index-workspace .sidebar-user-menu-panel,
body.index-workspace .sidebar-help-submenu,
body.index-workspace .composer-add-submenu,
body.index-workspace .composer-context-menu,
body.index-workspace .request-map-menu,
body.index-workspace .admin-user-context-menu,
body.index-workspace [role="menu"],
body.index-workspace #composerAddMenu.composer-add-menu {
  border-color: #ddd8e4 !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, .985) !important;
  box-shadow: 0 18px 48px rgba(42, 32, 67, .13), 0 2px 8px rgba(42, 32, 67, .05) !important;
  backdrop-filter: blur(18px);
}

body.index-workspace #composerAddMenu .composer-add-menu-item {
  border-radius: 14px !important;
}

body.index-workspace #composerAddMenu .composer-add-menu-item:hover {
  background: #f0edf5 !important;
}

body.index-workspace .workspace-google-loading,
body.index-workspace .workspace-google-retry {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
}

body.index-workspace .workspace-google-loading {
  color: #77727d;
  background: #f7f6f8;
}

body.index-workspace .workspace-google-retry {
  border: 1px solid #d8d3df;
  background: #fff;
  color: #29252f;
  cursor: pointer;
}

body.index-workspace .workspace-google-retry:hover { background: #f5f2f8; }

/* Model picker based on the supplied quick-control and nested Advanced reference. */
body.index-workspace .model-picker-menu {
  width: 258px !important;
  min-width: 258px !important;
  max-width: min(258px, calc(100vw - 20px)) !important;
  max-height: min(520px, calc(100vh - 24px)) !important;
  padding: 7px !important;
  overflow: visible !important;
  transform-origin: right bottom;
}

body.index-workspace .model-picker-menu.show {
  display: block !important;
  animation: modelPickerOpen 190ms cubic-bezier(.2, .82, .2, 1) both !important;
}

body.index-workspace .model-picker-stage {
  position: relative;
  width: 100%;
  height: 108px;
  overflow: hidden;
  transition: height 210ms cubic-bezier(.2, .82, .2, 1);
}

body.index-workspace .model-picker-menu.model-picker-advanced-open .model-picker-stage {
  height: 150px;
}

body.index-workspace .model-picker-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: opacity 170ms ease, transform 210ms cubic-bezier(.2, .82, .2, 1);
}

body.index-workspace .model-picker-quick-view {
  opacity: 1;
  transform: translateX(0);
}

body.index-workspace .model-picker-advanced-view {
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
}

body.index-workspace .model-picker-menu.model-picker-advanced-open .model-picker-quick-view {
  opacity: 0;
  transform: translateX(-24px);
  pointer-events: none;
}

body.index-workspace .model-picker-menu.model-picker-advanced-open .model-picker-advanced-view {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

body.index-workspace .model-effort-slider-shell {
  display: grid;
  min-height: 55px;
  padding: 8px 12px 4px;
  align-content: center;
}

body.index-workspace .model-effort-slider {
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

body.index-workspace .model-effort-slider::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle, #89828f 0 1.5px, transparent 1.7px) 0 50% / 20% 10px repeat-x,
    linear-gradient(90deg, #c8becf 0 var(--effort-progress, 0%), #e7e3e9 var(--effort-progress, 0%) 100%);
}

body.index-workspace .model-effort-slider::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -7px;
  appearance: none;
  border: 1px solid #c9c2ce;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(42, 32, 67, .15);
}

body.index-workspace .model-effort-slider::-moz-range-track {
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #e7e3e9;
}

body.index-workspace .model-effort-slider::-moz-range-progress {
  height: 10px;
  border-radius: 999px;
  background: #c8becf;
}

body.index-workspace .model-effort-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 1px solid #c9c2ce;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(42, 32, 67, .15);
}

body.index-workspace .model-picker-nav-row,
body.index-workspace .model-picker-advanced-back {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  width: 100%;
  min-height: 43px;
  padding: 0 11px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #29252f;
  gap: 7px;
  text-align: left;
  font-size: 14px;
  font-weight: 570;
}

body.index-workspace .model-picker-advanced-back {
  grid-template-columns: auto minmax(0, 1fr);
}

body.index-workspace .model-picker-nav-row:hover,
body.index-workspace .model-picker-advanced-back:hover {
  background: #f0edf5;
}

body.index-workspace .model-picker-row-value {
  max-width: 118px;
  overflow: hidden;
  color: #77717d;
  font-size: 13px;
  font-weight: 480;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.index-workspace .model-picker-nav-row .material-symbols-rounded,
body.index-workspace .model-picker-advanced-back .material-symbols-rounded {
  font-size: 18px !important;
}

body.index-workspace .model-picker-subpanel {
  position: absolute;
  right: calc(100% + 8px);
  bottom: 0;
  z-index: 3;
  display: none;
  width: 320px;
  max-height: min(470px, calc(100vh - 28px));
  padding: 7px;
  overflow: auto;
}

body.index-workspace .model-picker-subpanel.open {
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: modelSubpanelOpen 190ms cubic-bezier(.2, .82, .2, 1) both;
}

body.index-workspace .model-picker-subpanel-title {
  padding: 8px 10px 7px;
  color: #77717d;
  font-size: 12px;
  font-weight: 650;
}

body.index-workspace .model-picker-subpanel .model-picker-item,
body.index-workspace .model-picker-subpanel .intelligence-level-btn {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 43px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #29252f !important;
  gap: 9px;
  text-align: left;
}

body.index-workspace .model-picker-subpanel .intelligence-level-btn {
  grid-template-columns: minmax(0, 1fr) auto;
}

body.index-workspace .model-picker-subpanel .model-picker-item:hover:not(:disabled),
body.index-workspace .model-picker-subpanel .intelligence-level-btn:hover,
body.index-workspace .model-picker-subpanel .model-picker-item.active,
body.index-workspace .model-picker-subpanel .intelligence-level-btn.active {
  background: #f0edf5 !important;
  color: #29252f !important;
}

body.index-workspace .model-picker-subpanel .model-picker-item:disabled {
  opacity: .47;
  cursor: not-allowed;
}

body.index-workspace .model-picker-subpanel .model-picker-badge {
  background: var(--profit-action) !important;
}

body.index-workspace .model-picker-selected-check {
  color: var(--profit-violet) !important;
  animation: modelCheckIn 220ms cubic-bezier(.2, .82, .2, 1) both;
}

body.index-workspace .model-picker-btn.model-switching .model-picker-current {
  animation: modelLabelSwitch 280ms cubic-bezier(.2, .82, .2, 1) both;
}

body.index-workspace .model-picker-item.model-selection-pending,
body.index-workspace .intelligence-level-btn.model-selection-pending {
  background: #ebe6f3 !important;
  transform: scale(.985);
}

@keyframes modelPickerOpen {
  from { opacity: 0; transform: translateY(7px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modelSubpanelOpen {
  from { opacity: 0; transform: translateX(10px) scale(.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes modelCheckIn {
  from { opacity: 0; transform: scale(.45) rotate(-18deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes modelLabelSwitch {
  0% { opacity: 1; transform: translateY(0); }
  45% { opacity: 0; transform: translateY(-4px); }
  55% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

body.index-workspace #sidebar.collapsed #sidebar-main-content {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Keep the narrow rail deterministic even when legacy sidebar styles are cached. */
body.index-workspace #sidebar.collapsed .sidebar-header {
  display: grid !important;
  grid-template-columns: 42px !important;
  width: 100% !important;
  height: 62px !important;
  padding: 10px 0 !important;
  place-content: start center !important;
  gap: 0 !important;
}

body.index-workspace #sidebar.collapsed .sidebar-header-search,
body.index-workspace #sidebar.collapsed #menuBtn {
  display: none !important;
}

body.index-workspace #sidebar.collapsed #sidebarBrandBtn {
  display: grid !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  place-items: center !important;
  overflow: hidden !important;
}

body.index-workspace #sidebar.collapsed #sidebarBrandBtn .sidebar-toggle-icon,
body.index-workspace #sidebar.collapsed #sidebarBrandBtn:hover .sidebar-toggle-icon {
  display: none !important;
}

body.index-workspace #sidebar.collapsed .sidebar-mini-brand {
  display: grid !important;
  place-items: center !important;
}

body.index-workspace #sidebar.collapsed .sidebar-mini-favicon {
  width: 29px !important;
  height: 31px !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  body.index-workspace .input-region,
  body.index-workspace .input-region:has(#sendBtn.streaming) {
    left: 50% !important;
    right: auto !important;
  }

  body.index-workspace .model-picker-menu {
    width: min(280px, calc(100vw - 20px)) !important;
    min-width: min(280px, calc(100vw - 20px)) !important;
    max-width: min(280px, calc(100vw - 20px)) !important;
  }

  body.index-workspace .model-picker-subpanel {
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: min(440px, calc(100vh - 28px));
  }

  body.index-workspace .model-picker-menu.model-picker-nested-open .model-picker-stage {
    opacity: 0;
    pointer-events: none;
  }
}
