/*
 * Index-only launch layer.
 * This file intentionally loads last so the chat workspace has one stable,
 * predictable layout after the older incremental style passes.
 */

:root {
  --index-sidebar-width: 256px;
  --index-sidebar-rail: 64px;
  --index-header-height: 56px;
  --index-content-width: 780px;
  --index-sidebar-bg: #f8f8fa;
  --index-hover-bg: #ececef;
  --index-text: #1d1d1f;
  --index-secondary: #6e6e73;
  --index-hairline: rgba(0, 0, 0, 0.08);
}

html {
  width: 100%;
  height: 100%;
  background: #fff;
}

body.index-workspace {
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh;
  zoom: 1 !important;
  display: flex;
  overflow: hidden;
  background: #fff !important;
  color: var(--index-text);
  font-family:
    "Google Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif !important;
  font-weight: 450;
}

body.index-workspace > .app-boot-overlay,
body.index-workspace > .zexirai-boot-overlay {
  display: none !important;
}

/*
 * Keep the 5.3 MB icon font off the critical path. These fixed-size fallbacks
 * prevent ligature names from appearing while the full icon font loads idle.
 */
html.index-icons-pending body.index-workspace .material-symbols-rounded {
  position: relative;
  display: inline-grid !important;
  place-items: center;
  color: transparent !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 0 !important;
  font-variation-settings: normal !important;
}

html.index-icons-pending body.index-workspace #sidebar .material-symbols-rounded,
html.index-icons-pending body.index-workspace .viewport .material-symbols-rounded {
  overflow: hidden !important;
  text-indent: -9999px !important;
}

html.index-icons-pending body.index-workspace .material-symbols-rounded::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #56565c;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-indent: 0;
}

html.index-icons-pending body.index-workspace .sidebar-toggle-icon::after,
html.index-icons-pending body.index-workspace .menu-toggle .material-symbols-rounded::after {
  content: "\25eb";
}

html.index-icons-pending body.index-workspace #newChatBtn > .material-symbols-rounded::after,
html.index-icons-pending body.index-workspace .btn-action-plus > .material-symbols-rounded::after {
  content: "+";
  font-size: 25px;
  font-weight: 300;
}

html.index-icons-pending body.index-workspace #searchToggleIcon::after {
  content: "\2315";
  font-size: 22px;
}

html.index-icons-pending
  body.index-workspace
  #fileWorkSidebarBtn
  > .material-symbols-rounded::after {
  content: "\25a1";
}

html.index-icons-pending
  body.index-workspace
  .sidebar-utility-link[href="/customai"]
  > .material-symbols-rounded::after {
  content: "\2726";
}

html.index-icons-pending
  body.index-workspace
  .sidebar-utility-link[href="/plugins"]
  > .material-symbols-rounded::after {
  content: "\25c7";
}

html.index-icons-pending body.index-workspace #historyToggleIcon::after,
html.index-icons-pending body.index-workspace .model-picker-arrow::after {
  content: "\2304";
  font-size: 17px;
}

html.index-icons-pending body.index-workspace #mobileSidebarBtn > .material-symbols-rounded::after {
  content: "\2630";
}

html.index-icons-pending body.index-workspace #micBtn > .material-symbols-rounded::after {
  content: "\25c9";
  font-size: 17px;
}

html.index-icons-pending body.index-workspace #sendBtn .material-symbols-rounded::after {
  content: "\224b";
  font-size: 20px;
}

html.index-icons-pending body.index-workspace #chatOptionsBtn .material-symbols-rounded::after {
  content: "\2022\2022\2022";
  font-size: 14px;
}

body.index-workspace #sidebar {
  position: relative !important;
  inset: auto !important;
  flex: 0 0 var(--index-sidebar-width);
  width: var(--index-sidebar-width) !important;
  min-width: var(--index-sidebar-width) !important;
  height: 100dvh !important;
  min-height: 0;
  overflow: hidden !important;
  border: 0 !important;
  border-right: 1px solid rgba(0, 0, 0, 0.035) !important;
  background: var(--index-sidebar-bg) !important;
  box-shadow: none !important;
}

body.index-workspace #sidebar.collapsed,
body.index-workspace #sidebar.sidebar-closing {
  flex-basis: var(--index-sidebar-rail);
  width: var(--index-sidebar-rail) !important;
  min-width: var(--index-sidebar-rail) !important;
}

body.index-workspace #sidebar.sidebar-opening {
  flex-basis: var(--index-sidebar-width);
  width: var(--index-sidebar-width) !important;
  min-width: var(--index-sidebar-width) !important;
}

body.index-workspace #sidebar,
body.index-workspace .viewport {
  transition:
    width 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    min-width 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    flex-basis 220ms cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

body.index-workspace .sidebar-header {
  flex: 0 0 var(--index-header-height);
  height: var(--index-header-height) !important;
  min-height: var(--index-header-height) !important;
  padding: 0 10px 0 12px !important;
}

body.index-workspace .sidebar-brand-btn {
  min-width: 0;
  height: 38px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
}

body.index-workspace .sidebar-brand-btn:hover,
body.index-workspace .menu-toggle:hover {
  background: var(--index-hover-bg) !important;
}

body.index-workspace .sidebar-full-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

body.index-workspace .sidebar-full-favicon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

body.index-workspace .sidebar-mini-favicon {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain;
}

body.index-workspace #sidebar.collapsed .sidebar-header {
  padding-inline: 12px !important;
}

body.index-workspace #sidebar.collapsed .sidebar-brand-btn {
  width: 40px !important;
  min-width: 40px !important;
  padding: 0 6px !important;
  margin: 0 !important;
}

body.index-workspace .sidebar-top-nav {
  padding: 5px 9px 4px !important;
}

body.index-workspace #sidebar .nav-link,
body.index-workspace #sidebar .sidebar-search-link,
body.index-workspace #sidebar-history .history-chat-btn {
  width: 100%;
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 10px !important;
  gap: 11px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent;
  color: #343438 !important;
  font-size: 14.5px !important;
  font-weight: 560 !important;
}

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

body.index-workspace #sidebar .material-symbols-rounded {
  flex: 0 0 20px;
  width: 20px;
  font-size: 20px !important;
  font-variation-settings:
    "FILL" 0,
    "wght" 520,
    "GRAD" 0,
    "opsz" 20 !important;
}

body.index-workspace .history-label {
  height: 32px !important;
  margin: 13px 7px 4px !important;
  padding: 0 5px !important;
  color: #55555b !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

body.index-workspace .sidebar-history-scroll {
  min-height: 0;
  overflow: hidden auto !important;
  scrollbar-width: thin;
}

body.index-workspace #sidebar-history {
  padding: 0 7px 10px !important;
}

body.index-workspace .sidebar-bottom {
  position: relative !important;
  inset: auto !important;
  flex: 0 0 auto;
  width: 100%;
  padding: 0 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.055) !important;
  background: rgba(255, 255, 255, 0.38) !important;
}

body.index-workspace .sidebar-auth-slot,
body.index-workspace .sidebar-auth-slot.guest-auth-slot {
  width: 100%;
  padding: 0 !important;
  background: transparent !important;
}

body.index-workspace .sidebar-login-box,
body.index-workspace .sidebar-profile-btn,
body.index-workspace .sidebar-user-menu-wrap {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.index-workspace .sidebar-login-box {
  padding: 14px 16px 16px !important;
}

body.index-workspace .viewport {
  position: relative !important;
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  height: 100dvh !important;
  min-height: 0;
  overflow: hidden;
  background: #fff !important;
}

body.index-workspace .header-bar {
  position: absolute !important;
  z-index: 50;
  inset: 0 0 auto 0 !important;
  width: 100%;
  height: var(--index-header-height) !important;
  min-height: var(--index-header-height) !important;
  padding: 0 18px !important;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: none !important;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

body.index-workspace .header-model-picker .model-picker-btn {
  min-width: 0;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 7px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #303034 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
}

body.index-workspace .header-model-picker .model-picker-btn:hover {
  background: rgba(0, 0, 0, 0.045) !important;
}

body.index-workspace #selectedModelLabel,
body.index-workspace #selectedProviderLabel {
  font-size: 15px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

body.index-workspace .model-picker-arrow {
  font-size: 18px !important;
}

body.index-workspace #auth-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.index-workspace #auth-section .btn {
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 15px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  font-weight: 550 !important;
}

body.index-workspace #chat-scroller {
  position: absolute !important;
  inset: var(--index-header-height) 0 0 !important;
  width: 100%;
  height: auto !important;
  padding: 28px 0 142px !important;
  overflow: hidden auto !important;
  background: #fff !important;
  scrollbar-width: thin;
}

body.index-workspace #chat-container {
  width: min(100%, 820px) !important;
  max-width: 820px !important;
  min-height: 100%;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

body.index-workspace .input-region {
  position: absolute !important;
  z-index: 40;
  inset: auto 0 0 !important;
  width: 100% !important;
  padding: 24px 20px 13px !important;
  transform: none !important;
  background: linear-gradient(to top, #fff 72%, rgba(255, 255, 255, 0)) !important;
}

body.index-workspace.composer-centered:not(.chat-has-user-turn) .input-region {
  top: 50% !important;
  bottom: auto !important;
  padding-top: 0 !important;
  transform: translateY(-46%) !important;
  background: transparent !important;
}

body.index-workspace .idle-composer-brand {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(100% + 26px) !important;
  width: min(100%, var(--index-content-width)) !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 11px;
  text-align: center;
}

body.index-workspace:not(.composer-centered) .idle-composer-brand,
body.index-workspace.chat-has-user-turn .idle-composer-brand {
  display: none !important;
}

body.index-workspace .idle-brand-favicon {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  object-fit: contain;
}

body.index-workspace .idle-brand-text,
body.index-workspace .idle-brand-greeting {
  display: inline-block;
  width: auto;
  color: #202124 !important;
  font-size: 28px !important;
  font-weight: 620 !important;
  line-height: 1.2;
  letter-spacing: 0 !important;
}

body.index-workspace .composer {
  width: min(100%, var(--index-content-width)) !important;
  max-width: var(--index-content-width) !important;
  min-height: 56px !important;
  margin: 0 auto !important;
  border: 1px solid rgba(0, 0, 0, 0.11) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07) !important;
  overflow: visible !important;
}

body.index-workspace .composer:hover,
body.index-workspace .composer:focus,
body.index-workspace .composer:focus-within {
  border-color: rgba(0, 0, 0, 0.13) !important;
  outline: 0 !important;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.045),
    0 8px 28px rgba(0, 0, 0, 0.06) !important;
}

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

body.index-workspace #userInput {
  display: block;
  min-height: 38px !important;
  height: 38px;
  margin: auto 0;
  padding: 8px 126px 8px 46px !important;
  border: 0 !important;
  outline: 0 !important;
  color: #1d1d1f !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 22px;
  box-shadow: none !important;
}

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

body.index-workspace .composer-toolbar {
  min-height: 40px !important;
}

body.index-workspace .btn-action-plus,
body.index-workspace .mic-btn,
body.index-workspace #sendBtn {
  flex: 0 0 auto;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 50% !important;
}

body.index-workspace.guest-auth-shell #sendBtn.record-idle {
  width: auto !important;
  min-width: 85px !important;
  padding: 0 13px 0 11px !important;
  border-radius: 18px !important;
}

body.index-workspace .legal-foot {
  min-height: 14px;
  margin: 7px auto 0 !important;
  color: #8e8e93 !important;
  font-size: 11px !important;
  line-height: 1.25;
  text-align: center;
}

body.index-workspace .model-picker-menu,
body.index-workspace .composer-add-menu,
body.index-workspace .response-more-menu,
body.index-workspace .chat-menu,
body.index-workspace .sidebar-user-menu-panel,
body.index-workspace .sidebar-help-submenu {
  max-width: min(320px, calc(100vw - 24px)) !important;
  max-height: min(520px, calc(100dvh - 84px)) !important;
  border: 1px solid var(--index-hairline) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden auto !important;
}

body.index-workspace .model-picker-menu {
  left: 0 !important;
  right: auto !important;
}

body.index-workspace .model-picker-item,
body.index-workspace .composer-add-menu-item,
body.index-workspace .response-more-menu button,
body.index-workspace .chat-menu-item {
  min-height: 38px !important;
  border-radius: 12px !important;
  font-size: 14.5px !important;
  font-weight: 560 !important;
}

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

body.index-workspace .ai-bubble,
body.index-workspace .user-bubble {
  font-size: 16px !important;
  font-weight: 460 !important;
}

body.index-workspace .response-action-btn,
body.index-workspace .user-copy-btn {
  width: 30px !important;
  height: 30px !important;
  color: #68686d !important;
}

body.index-workspace #sendBtn.streaming {
  --stream-progress: 3;
  position: relative;
  overflow: visible;
  border: 0 !important;
  background: #171719 !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18) !important;
}

body.index-workspace #sendBtn.streaming #btnIcon,
body.index-workspace #sendBtn.streaming .voice-action-label {
  opacity: 0 !important;
}

body.index-workspace #sendBtn.streaming::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: conic-gradient(
    #fff calc(var(--stream-progress) * 1%),
    #66666b 0
  );
  box-shadow: inset 0 0 0 5px #171719;
}

body.index-workspace #sendBtn.streaming::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
}

body.index-workspace .stream-progress-label {
  position: absolute;
  right: 0;
  bottom: calc(100% + 7px);
  min-width: 38px;
  padding: 4px 7px;
  border-radius: 9px;
  background: #171719;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}

@media (max-width: 768px) {
  body.index-workspace #sidebar {
    position: fixed !important;
    z-index: 1200;
    inset: 0 auto 0 0 !important;
    width: min(86vw, 292px) !important;
    min-width: min(86vw, 292px) !important;
    transform: translateX(-102%);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }

  body.index-workspace #sidebar.mobile-active {
    transform: translateX(0);
  }

  body.index-workspace .viewport {
    width: 100% !important;
  }

  body.index-workspace .header-bar {
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 10px !important;
  }

  body.index-workspace #chat-scroller {
    inset: 52px 0 0 !important;
    padding: 18px 0 126px !important;
  }

  body.index-workspace #chat-container {
    padding: 0 14px !important;
  }

  body.index-workspace .input-region {
    padding: 18px 10px 8px !important;
  }

  body.index-workspace.composer-centered:not(.chat-has-user-turn) .input-region {
    top: 48% !important;
    padding-inline: 10px !important;
  }

  body.index-workspace .idle-composer-brand {
    bottom: calc(100% + 22px) !important;
  }

  body.index-workspace .idle-brand-text,
  body.index-workspace .idle-brand-greeting {
    font-size: 23px !important;
  }

  body.index-workspace .composer {
    width: 100% !important;
    max-width: none !important;
    min-height: 54px !important;
    border-radius: 27px !important;
  }

  body.index-workspace .composer-body {
    min-height: 54px !important;
  }

  body.index-workspace #userInput {
    padding-right: 122px !important;
    font-size: 16px !important;
  }

  body.index-workspace #auth-section .btn {
    height: 34px !important;
    min-height: 34px !important;
    padding-inline: 12px !important;
  }
}

@media (max-width: 430px) {
  body.index-workspace #auth-section {
    gap: 6px;
  }

  body.index-workspace #auth-section .btn {
    padding-inline: 10px !important;
    font-size: 12px !important;
  }

  body.index-workspace .header-model-picker .model-picker-btn,
  body.index-workspace #selectedModelLabel,
  body.index-workspace #selectedProviderLabel {
    font-size: 14px !important;
  }

  body.index-workspace.guest-auth-shell #sendBtn.record-idle {
    min-width: 82px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.index-workspace #sidebar,
  body.index-workspace .viewport {
    transition-duration: 0.01ms !important;
  }
}

/*
 * Index interaction pass: stronger Grok-like weight without turning the
 * workspace into a heavy dashboard. This remains the final index authority.
 */
:root {
  --index-sidebar-width: 272px;
  --index-content-width: 830px;
  --index-sidebar-bg: #f7f7f8;
  --index-hover-bg: #e9e9ec;
  --index-menu-radius: 16px;
}

body.index-workspace {
  font-weight: 500;
}

body.index-workspace .sidebar-header {
  padding-inline: 13px 10px !important;
}

body.index-workspace .sidebar-brand-btn {
  height: 42px !important;
  padding-inline: 8px 10px !important;
  border-radius: 11px !important;
}

body.index-workspace .sidebar-full-brand {
  gap: 10px !important;
  color: #18181a !important;
  font-size: 17px !important;
  font-weight: 720 !important;
}

body.index-workspace .sidebar-full-favicon {
  width: 27px !important;
  height: 27px !important;
}

body.index-workspace #sidebar .nav-link,
body.index-workspace #sidebar .sidebar-search-link,
body.index-workspace #sidebar-history .history-chat-btn {
  min-height: 40px !important;
  height: 40px !important;
  border-radius: 11px !important;
  color: #29292c !important;
  font-size: 15px !important;
  font-weight: 620 !important;
}

body.index-workspace #sidebar .material-symbols-rounded {
  font-size: 21px !important;
  font-variation-settings:
    "FILL" 0,
    "wght" 620,
    "GRAD" 0,
    "opsz" 21 !important;
}

html.index-icons-pending body.index-workspace .material-symbols-rounded::after {
  color: #343438;
  font-weight: 650;
}

body.index-workspace .history-label {
  justify-content: flex-start !important;
  height: 37px !important;
  margin: 16px 7px 4px !important;
  padding: 0 5px 0 6px !important;
  color: #36363a !important;
  font-size: 15px !important;
  font-weight: 730 !important;
}

body.index-workspace .history-label > span:first-child {
  flex: 0 0 auto;
}

body.index-workspace .history-toggle-arrow {
  margin-left: auto !important;
}

body.index-workspace #sidebar-history {
  padding-inline: 7px !important;
}

body.index-workspace #sidebar-history .history-chat-btn .nav-text {
  font-size: 14.5px !important;
  font-weight: 580 !important;
}

body.index-workspace .header-model-picker .model-picker-btn {
  height: 38px !important;
  min-height: 38px !important;
  padding-inline: 9px !important;
  border-radius: 11px !important;
  font-size: 15.5px !important;
  font-weight: 620 !important;
}

body.index-workspace #selectedModelLabel,
body.index-workspace #selectedProviderLabel {
  font-size: 15.5px !important;
  font-weight: 620 !important;
}

body.index-workspace .idle-composer-brand {
  bottom: calc(100% + 30px) !important;
  gap: 12px !important;
}

body.index-workspace .idle-brand-favicon {
  width: 34px !important;
  height: 34px !important;
}

body.index-workspace .idle-brand-text,
body.index-workspace .idle-brand-greeting {
  color: #1b1b1d !important;
  font-size: 30px !important;
  font-weight: 680 !important;
  line-height: 1.18 !important;
}

body.index-workspace .composer {
  min-height: 62px !important;
  border-color: rgba(0, 0, 0, 0.14) !important;
  border-radius: 24px !important;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.035),
    0 8px 26px rgba(0, 0, 0, 0.075) !important;
}

body.index-workspace .composer:hover,
body.index-workspace .composer:focus-within {
  border-color: rgba(0, 0, 0, 0.18) !important;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 11px 32px rgba(0, 0, 0, 0.085) !important;
}

body.index-workspace .composer-body {
  min-height: 62px !important;
  padding: 0 11px 0 14px !important;
}

body.index-workspace #userInput {
  min-height: 42px !important;
  height: 42px;
  margin: auto 0 !important;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
  color: #1b1b1d !important;
  font-size: 16px !important;
  font-weight: 540 !important;
  line-height: 24px !important;
}

body.index-workspace #userInput::placeholder {
  color: #818187 !important;
  font-weight: 500 !important;
}

body.index-workspace .btn-action-plus,
body.index-workspace .mic-btn,
body.index-workspace #sendBtn {
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
}

body.index-workspace .btn-action-plus .material-symbols-rounded,
body.index-workspace .mic-btn .material-symbols-rounded,
body.index-workspace #sendBtn .material-symbols-rounded {
  font-size: 22px !important;
  font-variation-settings:
    "FILL" 0,
    "wght" 650,
    "GRAD" 0,
    "opsz" 22 !important;
}

body.index-workspace.guest-auth-shell #sendBtn.record-idle {
  min-width: 91px !important;
  padding-inline: 13px !important;
  border-radius: 20px !important;
  font-weight: 650 !important;
}

body.index-workspace .model-picker-menu {
  width: min(360px, calc(100vw - 24px)) !important;
  padding: 8px !important;
}

body.index-workspace .model-picker-menu,
body.index-workspace .composer-add-menu,
body.index-workspace .response-more-menu,
body.index-workspace .chat-menu,
body.index-workspace .sidebar-user-menu-panel,
body.index-workspace .sidebar-help-submenu {
  border-radius: var(--index-menu-radius) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.14),
    0 3px 12px rgba(0, 0, 0, 0.055) !important;
}

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

body.index-workspace .model-picker-list {
  display: grid !important;
  gap: 3px !important;
}

body.index-workspace .model-picker-item {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) auto !important;
  align-items: center !important;
  min-height: 44px !important;
  padding: 0 10px !important;
  border-radius: 11px !important;
  font-size: 14.5px !important;
  font-weight: 610 !important;
  text-align: left !important;
}

body.index-workspace .model-picker-item.active {
  background: #ececef !important;
}

body.index-workspace .model-picker-item-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.index-workspace .model-picker-selected-check,
body.index-workspace .model-picker-selected-check-spacer {
  justify-self: end;
  width: 20px;
  height: 20px;
}

body.index-workspace .model-picker-selected-check {
  color: #171719 !important;
  font-size: 20px !important;
  font-variation-settings:
    "FILL" 0,
    "wght" 750,
    "GRAD" 0,
    "opsz" 20 !important;
}

body.index-workspace .intelligence-levels {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px !important;
  padding: 2px !important;
}

body.index-workspace .intelligence-level-btn {
  min-height: 38px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 610 !important;
}

body.index-workspace .intelligence-level-btn.active {
  background: #e7e7ea !important;
  color: #171719 !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
}

body.index-workspace #sendBtn.streaming {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 50% !important;
  background: #171719 !important;
}

body.index-workspace #sendBtn.streaming::before {
  inset: 4px !important;
  border-radius: 50% !important;
  background: conic-gradient(
    #ffffff calc(var(--stream-progress) * 1%),
    #69696f 0
  ) !important;
  box-shadow: inset 0 0 0 4px #171719 !important;
}

body.index-workspace #sendBtn.streaming::after {
  width: 10px !important;
  height: 10px !important;
  border-radius: 3px !important;
  background: #fff !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.95),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18) !important;
}

body.index-workspace .stream-progress-label {
  right: 50% !important;
  bottom: calc(100% + 8px) !important;
  transform: translateX(50%) !important;
  min-width: 43px !important;
  padding: 5px 7px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  font-weight: 750 !important;
}

body.index-workspace .user-bubble,
body.index-workspace .ai-bubble {
  font-weight: 500 !important;
  line-height: 1.55 !important;
}

@media (max-width: 768px) {
  body.index-workspace .idle-brand-text,
  body.index-workspace .idle-brand-greeting {
    font-size: 23px !important;
  }

  body.index-workspace .idle-brand-favicon {
    width: 29px !important;
    height: 29px !important;
  }

  body.index-workspace .idle-composer-brand {
    max-width: calc(100vw - 18px) !important;
    gap: 8px !important;
  }

  body.index-workspace .composer,
  body.index-workspace .composer-body {
    min-height: 58px !important;
  }

  body.index-workspace .composer {
    border-radius: 22px !important;
  }

  body.index-workspace #userInput {
    padding-right: 176px !important;
    font-size: 15px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  body.index-workspace .composer.composer-multiline #userInput {
    white-space: pre-wrap !important;
    overflow-y: auto !important;
  }

  body.index-workspace .composer-right-actions {
    right: 8px !important;
    width: auto !important;
    max-width: none !important;
    gap: 5px !important;
  }

  body.index-workspace.guest-auth-shell #sendBtn.record-idle {
    width: 76px !important;
    min-width: 76px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding-inline: 9px !important;
    border-radius: 18px !important;
  }

  body.index-workspace .btn-action-plus {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  body.index-workspace .mic-btn {
    width: 32px !important;
    min-width: 32px !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  body.index-workspace .composer-right-actions .model-picker-btn {
    max-width: 58px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding-inline: 6px !important;
    font-size: 14px !important;
  }

  body.index-workspace .composer-right-actions #selectedModelLabel {
    font-size: 14px !important;
  }

  body.index-workspace #sendBtn.ready,
  body.index-workspace #sendBtn.streaming {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }
}
