@import url('./modern-normalize-9a4dde79.css');
@import url('./fonts/general_sans-18899928.css');

/* globals */
@import url('./globals/elements-60cd1d8d.css');
@import url('./globals/variables-4fe798b6.css');
@import url('./globals/layout-eed1eb63.css');
@import url('./globals/animations-18625ed6.css');

/* external components */
@import url('./components/progress-56aef4d7.css');

/* internal components */
@import url('./components/alerts-05596d48.css');
@import url('./components/buttons-65eae4d3.css');
@import url('./components/cards-104808b3.css');
@import url('./components/category-button-468c285c.css');
@import url('./components/citations-945631aa.css');
@import url('./components/chat-225967d2.css');
@import url('./components/prose-607c0609.css');
@import url('./components/typography-enhancements-c9382911.css');
@import url('./components/command-084ec286.css');
@import url('./components/dashboard-37d0e184.css');
@import url('./components/dialog-09afc329.css');
@import url('./components/documents-a5a8182f.css');
@import url('./components/editor-and-content-4055213b.css');
@import url('./components/error-block-804eaf18.css');
@import url('./components/exportDialog-b156c56f.css');
@import url('./components/files-4650074c.css');
@import url('./components/forms-e6e2ebce.css');
@import url('./components/letters-ebb06d99.css');
@import url('./components/loaders-afbc4435.css');
@import url('./components/option-item-79ddb0fe.css');
@import url('./components/prosemirror-fa56577d.css');
@import url('./components/pricing-8e5a36d1.css');
@import url('./components/settings-7523abf8.css');
@import url('./components/settings-sections-705b08b6.css');
@import url('./components/simplified-guide-container-9fcf66d1.css');
@import url('./components/memory-settings-96f0b925.css');
@import url('./components/sidebars-895ac77c.css');
@import url('./components/team-e11dbfb9.css');
@import url('./components/toast-bbfaa725.css');
@import url('./components/tooltips-12fd6c42.css');
@import url('./components/toolbar-459b6055.css');
@import url('./components/unifiedInput-7f32ef77.css');
@import url('./components/versionPanel-1a4b179d.css');
@import url('./components/welcome-3aeabcc1.css');

/* libraries */
@import url('./lib/hljs.min-81478541.css');

.payment__container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: var(--container-3);
  flex-direction: column;
  gap: var(--space-2);
}

.link--secondary {
  color: var(--secondary-11);
  text-decoration: none;
  &:hover {
    color: var(--secondary-11);
  }
  &:active {
    color: var(--secondary-12);
  }
  &:visited {
    color: var(--secondary-9);
  }
}

.link--tertiary {
  color: var(--secondary-6);
  text-decoration: none;
  &:hover {
    color: var(--secondary-7);
  }
  &:active {
    color: var(--secondary-8);
  }
  &:visited {
    color: var(--secondary-5);
  }
}

@media (min-width: 769px) {
  [data-command="ai"] {
    display: none;
  }

  [data-command="chat"] {
    display: none;
  }
}

.ai-editor-button {
  background-color: var(--secondary-1);
  border: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-3);
  fill: var(--secondary-1);
  color: var(--secondary-6);
  stroke: var(--secondary-6);
  transition: transform 0.2s;
  &:hover {
    background-color: var(--primary-1);
    transform: scale(1.1);
    color: var(--primary-9);
    fill: var(--primary-1);
    stroke: var(--primary-9);
    box-shadow: -2px 2px -4px var(--primary-6);
  }
}

.ai-editor-button svg {
  width: calc(24px * var(--scaling));
  height: calc(24px * var(--scaling));
}

@media (max-width: 768px) {
  .ai-editor-button {
    background-color: var(--primary-1);
    color: var(--primary-9);
    fill: var(--primary-1);
    stroke: var(--primary-9);
    border: none;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-3);
    transition: transform 0.2s;
    &:hover {
      background-color: var(--primary-1);
      color: var(--primary-12);
      fill: var(--primary-3);
      stroke: var(--primary-12);
      box-shadow: -2px 2px -4px var(--primary-6);
      transform: scale(1.1);
    }
  }

  .ai-editor-button svg {
    width: 28px;
    height: 28px;
    fill: var(--primary-1);
    color: var(--primary-9);
    stroke: var(--primary-1);
  }
}

.sidebar__main-menu {
  top: 0;
  width: 90vw;
  background-color: var(--secondary-2);
  color: var(--secondary-11);
  height: 100vh;
  height: 100svh;
  left: 80vw;
  border: 1px solid var(--secondary-4);
  box-shadow: var(--shadow-2);
  z-index: var(--z-index-9);
  font-weight: var(--font-weight-medium);
  transform: translateX(0);
  transition: transform 0.2s ease-out;
  will-change: transform;
  :where(.sidebar__logo) {
    margin-top: var(--space-4);
    margin-left: var(--space-3);
    margin-right: var(--space-4);
    margin-bottom: var(--space-4);
    border: none;
    cursor: pointer;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    :where(button) {
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      cursor: pointer;
      padding: 0;
      margin: 0;
      box-sizing: border-box;
      border-radius: var(--radius-3);
    }
  }
  :where(.sidebar__logo svg) {
    background-color: var(--primary-10);
    padding: 0;
    margin: 0;
    border: none;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
  }
  :where(.sidebar__button) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: transparent;
    border: none;
    color: inherit;
    text-align: left;
    width: 100%;
    cursor: var(--cursor-link);
    font-weight: var(--font-weight-regular);
    gap: calc(var(--space-2) * 0.4);
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: var(--radius-2);
    padding: calc(var(--space-2) * 0.4) calc(var(--space-8) * 0.45);
    &:hover {
      background-color: var(--secondary-3);
      color: var(--secondary-10);
    }
    &:active {
      background-color: var(--secondary-4);
    }
    &.sidebar__button--active {
      background-color: var(--primary-3);
      color: var(--primary-11);
      box-shadow: var(--shadow-2);
    }
  }

  :where(.sidebar__icon) {
    margin-top: calc(var(--space-4) * 0.4);
    margin-left: calc(var(--space-4) * 0.4);
    margin-right: calc(var(--space-6) * 0.4);
    margin-bottom: calc(var(--space-4) * 0.4);
    border: none;
    cursor: pointer;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    color: inherit;
    stroke: currentColor;
    height: 18px;
    width: 18px;
    :where(.sidebar__icon--logo path) {
      fill: var(--primary-1);
      fill-rule: evenodd;
    }
  }
  :where(.sidebar__text) {
    color: inherit;
    font-size: var(--font-size-3);
    font-weight: var(--font-weight-regular);
  }
  :where(.sidebar__header) {
    display: flex;
    align-items: center;
    padding: var(--space-2) var(--space-3);
  }
  :where(.sidebar__logo) {
    border-radius: var(--radius-3);
    padding-bottom: 5px;
    margin-top: var(--space-4);
    margin-left: var(--space-2);
    margin-right: var(--space-6);
    margin-bottom: var(--space-4);
  }

  

  
}

.sidebar__main-menu--open {
  transform: translateX(-80vw);
}

.content__header h1 {
  font-size: var(--font-size-8);
  margin-bottom: var(--space-2);
}

.content__header p {
  font-size: var(--font-size-4);
  color: var(--secondary-9);
  margin-bottom: var(--space-4);
}

.form-group {
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  :where(input) {
    padding: var(--space-3);
    border: 0.5px solid var(--secondary-7);
    border-radius: var(--radius-3);
    box-sizing: border-box;
    &:where(:focus) {
      outline: none;
      border-color: var(--primary-8);
    }
  }
}

.form-group--checkbox {
  display: flex;
  flex-direction: row;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-4);
}

.form-group--checkbox input[type="checkbox"] {
  accent-color: var(--primary-9);
}

.form-options {
  display: flex;
  margin-top: var(--space-4);
  justify-content: space-between;
  padding: 0 var(--space-9);
  text-align: center;
}

.form-options > *:only-child {
  margin-left: auto;
  margin-right: auto;
}

.form-options a {
  color: var(--primary-9);
  text-decoration: none;
  &:hover {
    text-decoration: underline;
  }
}

@media (max-width: 768px) {
  .form-options {
    justify-content: center;
    padding: 0;
  }
  
  .form-options p {
    text-align: center;
    width: 100%;
  }
}

.margin-h-4 {
  margin: 0 var(--space-4);
}

.min-height-10vh {
  min-height: 10vh;
}

.hr__divider {
  border: none;
  border-top: 1px solid var(--secondary-3);
}

.pagination-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pagination {
  display: flex;
  justify-content: flex-start;
  gap: var(--space-2);
  margin: var(--space-2);
}

.pagination-btn {
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-size: var(--font-size-2);
  font-weight: var(--font-weight-regular);
  color: var(--secondary-11);
  &:disabled {
    cursor: not-allowed;
    pointer-events: none;
    background-color: var(--secondary-2);
    color: var(--secondary-10);
  }
  &:hover {
    background-color: var(--primary-9);
    color: var(--primary-1);
  }
  &:active {
    background-color: var(--primary-10);
    color: var(--primary-1);
  }
}

.pagination-current {
  font-weight: var(--font-weight-light);
  color: var(--secondary-9);
  margin: var(--space-2) !important;
  border: 1px solid var(--secondary-6);
  padding: var(--space-1);
  border-radius: var(--radius-5);
}

.highlight--idle {
  background-color: var(--success-3);
  color: var(--success-12);
  border-radius: var(--radius-3);
  padding: var(--space-1) 0;
}

.highlight--typing {
  background-color: var(--warning-3);
  color: var(--warning-12);
  border-radius: var(--radius-3);
  padding: var(--space-1) 0;
}

.highlight--pricing {
  background-color: var(--warning-3);
  color: var(--warning-12);
  border-radius: var(--radius-3);
  padding: var(--space-1);
}

.highlight--footer {
  background-color: var(--warning-3);
  color: var(--warning-12);
  border-radius: var(--radius-3);
  padding: var(--space-1);
  padding-left: 0;
  padding-right: 0;
}

.highlight--recommended {
  background-color: var(--success-3);
  color: var(--success-12);
  border-radius: var(--radius-3);
  padding: var(--space-2);
}

.highlight--blue {
  background-color: var(--primary-5);
  color: var(--primary-12);
  border-radius: var(--radius-3);
  padding: 1px 0;
}

.form-field .search__input {
  padding: var(--space-1) var(--space-2);
  padding-left: var(--space-6);
  border: 0.5px solid var(--secondary-7);
  border-radius: var(--radius-3);
  max-width: var(--container-0);
  margin-right: 0;
  margin-left: var(--space-1);
  font-size: var(--font-size-2);
  &::placeholder {
    font-size: var(--font-size-2);
  }
}

.icon-general, .icon-speech, .icon-data, .icon-security {
  margin-right: var(--space-2);
}

/* Radio Button Component Styles */

.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.radio-input {
  display: none;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding-left: var(--space-5);
  line-height: var(--line-height-3);
  color: var(--secondary-9);
}

.radio-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-color: var(--secondary-1);
  border: 0.5px solid var(--secondary-7);
  border-radius: 50%;
  box-sizing: border-box;
  transition: background-color 0.2s, border-color 0.2s;
}

.radio-label::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 8px;
  height: 8px;
  background-color: var(--primary-9);
  border-radius: 50%;
  transition: transform 0.2s ease-in-out;
}

.radio-input:checked + .radio-label::before {
  border-color: var(--primary-9);
}

.radio-input:checked + .radio-label::after {
  transform: translateY(-50%) scale(1);
}

.radio-label:hover::before {
  background-color: var(--secondary-2);
}

.radio-input:focus + .radio-label::before {
  box-shadow: 0 0 0 2px var(--primary-8);
}

.ai-copilot__btn {
  padding: var(--space-3);
  border: 0;
  border-radius: var(--radius-3);
  cursor: pointer;
  background-color: var(--primary-9);
  color: var(--secondary-1);
  box-sizing: border-box;
  margin-top: var(--space-1);
  transition: background-color 0.3s, color 0.3s;
}

.ai-copilot__header {
  display: flex;
  align-items: center;
  color: var(--secondary-11);
  gap: var(--space-1);
  font-size: var(--font-size-2);
}


.bounce {
  animation: bounce 0.1s;
}

.segmented-control {
  display: flex;
  overflow-x: auto;
  justify-content: space-around;
  background-color: var(--secondary-2-half);
  box-shadow: var(--shadow-1);
  border-radius: var(--radius-3);
  margin: var(--space-1);
  width: fit-content;
  padding: var(--space-1);
  border: 1px solid var(--secondary-4);
}

.segmented-control__options {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 0;
  margin: 0;
}

.segmented-control__option {
  flex-grow: 1;
  justify-content: center;
  text-align: center;
  padding: 0 var(--space-2);
  margin: 0;
  cursor: pointer;
  color: var(--secondary-11);
  font-size: var(--font-size-1-half);
  display: flex;
  align-items: center;
  border-radius: var(--radius-1);
  transition: all 0.2s ease;
}

.segmented-control__option:hover:not(.segmented-control__option--active) {
  background-color: var(--secondary-3);
}

.segmented-control__option:last-child {
  border-right: none;
}

.segmented-control__option--active {
  background-color: var(--primary-9);
  color: var(--primary-1);
  box-shadow: var(--shadow-1);
}

.segmented-control__option input[type="radio"] {
  display: none;
}

.segmented-control-wrapper {
  margin: var(--space-1);
}

/* === Chart Summary (Top 5 overlay) === */
.chart-summary {
  color: var(--secondary-12);
}
.chart-summary__row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.chart-summary__label {
  font-weight: var(--font-weight-bold);
  color: var(--primary-12);
  margin-right: 6px;
}
.chart-summary__item {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--secondary-12);
  border-radius: 0;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}
.chart-summary__item::before {
  content: '•';
  color: var(--dot-color, var(--secondary-9));
  margin: 0 6px;
}
.chart-summary__item:first-of-type::before { content: ''; margin: 0; }
.chart-summary__item strong { color: inherit; }

.text__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 1031;
  display: flex;
  justify-content: center;
  align-items: center;
}

files-confirmation-dialog {
  z-index: var(--z-index-9);
}

file-view-dialog {
  z-index: var(--z-index-9);
}


/* Add this CSS to your existing stylesheet or within a <style> tag in the HTML file */

#alpha-version-warning {
  position: fixed;
  bottom: var(--space-1);
  left: var(--space-1);
  background-color: var(--failure-2);
  color: var(--failure-12);
  padding: var(--space-1);
  z-index: 1000;
  border-bottom-right-radius: var(--radius-3);
  font-size: var(--font-size-2);
  box-shadow: var(--shadow-2);
}

.footer__text {
  color: var(--primary-4);
  font-size: var(--font-size-3);
  margin-top: var(--space-9);
}

.footer__link {
  color: var(--primary-4);
  text-decoration: none;
  font-weight: var(--font-weight-regular);
  &:hover {
    text-decoration: underline;
    color: var(--primary-5);
  }
  &:active {
    text-decoration: underline;
    color: var(--primary-6);
  }
}

@media (max-width: 768px) {
  .footer__preview {
    min-width: 80vw;
    margin-left: 10vw;
    margin-right: 10vw;
    text-align: center;
  }
  .footer__text {
    margin-top: var(--space-5);
  }
}

.hotkey__small {
  color: var(--secondary-9);
  font-weight: var(--font-weight-light);
}

/* Base styles for status pills */
.status__pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-3);
  font-size: var(--font-size-3);
  font-weight: var(--font-weight-medium);
}

/* Success state */
.status__pill--success {
  background-color: var(--success-3);
  color: var(--success-12);
}

/* Warning state */
.status__pill--warning {
  background-color: var(--warning-3);
  color: var(--warning-12);
}

/* Error state */
.status__pill--error {
  background-color: var(--failure-3);
  color: var(--failure-12);
}

/* Owner state */
.status__pill--owner {
  background-color: var(--primary-3);
  color: var(--primary-12);
}

/* Hover and active states for better UX */
.status__pill--success:hover,
.status__pill--warning:hover,
.status__pill--error:hover {
  opacity: 0.8;
}

.status__pill--success:active,
.status__pill--warning:active,
.status__pill--error:active {
  opacity: 0.6;
}

/* ai editor status text */
article .command__model-options--no-straights .setting-model-status {
  margin: var(--space-4) var(--space-2);
  font-size: var(--font-size-2);
}

article .command__model-options--no-straights .setting-model-status .setting-model-description {
  font-size: var(--font-size-2);
}

/* chat status text */
.input-wrapper .command__model-options--no-straights .setting-model-status {
  margin: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--font-size-2);
}

.input-wrapper .command__model-options--no-straights .setting-model-status .setting-model-description {
  font-size: var(--font-size-2);
}

/* settings */
.setting-model .form-field .setting-model-status {
  margin: var(--space-4) 0;
  font-size: var(--font-size-3);
}

.setting-model .form-field .setting-model-status .setting-model-description {
  font-size: var(--font-size-3);
}


.input-wrapper {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  background-color: var(--secondary-1);
  padding: var(--space-3) var(--space-3);
  margin: 0;
  width: 100%;
  border: 1px solid var(--secondary-5);
  border-radius: var(--radius-5);
  transition: all 0.2s var(--ease-out-cubic);
}

.input-wrapper:focus-within {
  border-color: var(--primary-9);
  box-shadow: 0 0 0 2px rgba(var(--primary-9-rgb), 0.1);
}

/* Gentle emboss effect for focused state - creates a subtle "sunk" appearance */
.input-wrapper.focused {
  background-color: var(--secondary-1);
  border-color: var(--secondary-6);
  /* Gentle inset shadows for soft embossed effect */
  box-shadow: 
    /* Inner shadow for depth */
    inset 0 1px 2px 0 rgba(0, 0, 0, 0.08),
    /* Subtle inner highlight at bottom */
    inset 0 -0.5px 1px 0 rgba(255, 255, 255, 0.15);
  /* Minimal transform for tactile feedback */
  transform: translateY(0.5px);
}

/* Enhanced focus-within state when also has focused class */
.input-wrapper.focused:focus-within {
  border-color: var(--primary-9);
  box-shadow: 
    /* Maintain the gentle emboss effect */
    inset 0 1px 2px 0 rgba(0, 0, 0, 0.08),
    inset 0 -0.5px 1px 0 rgba(255, 255, 255, 0.15),
    /* Add primary color glow */
    0 0 0 2px rgba(var(--primary-9-rgb), 0.1);
}

.input-wrapper textarea {
  font-size: var(--font-size-3);
  background-color: transparent;
  border: none;
  box-shadow: none;
  resize: none;
  height: auto;
  min-height: var(--space-8);
  padding: var(--space-2) var(--space-1);
  margin: var(--space-1) 0;
}

.input-wrapper textarea:focus {
  border: none;
  box-shadow: none;
}

.input-wrapper textarea::placeholder {
  color: var(--secondary-11);
}

.chat-buttons-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.chat-buttons--left {
 display: flex;
 align-items: center;
 gap: var(--space-2);
 max-width: 80vw;
 max-width: 80svw;
 overflow-x: auto;
 overflow-y: visible;
 scrollbar-width: thin;
 -ms-overflow-style: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.chat-buttons--left::-webkit-scrollbar {
 height: 4px;
}

.chat-buttons--left::-webkit-scrollbar-thumb {
 background: var(--secondary-6);
 border-radius: 4px;
}

/* Ensure the chat buttons wrapper maintains proper layout */
.chat-buttons-wrapper {
 display: flex;
 justify-content: space-between;
 align-items: center;
 width: 100%;
 position: relative;
}

.chat-buttons-wrapper .icon-button.chat-depth-toggle {
  align-self: center;
}

/* Ensure the right buttons stay in view */
.chat-buttons--right {
 display: flex;
 align-items: center;
 gap: var(--space-2);
 position: sticky;
 right: 0;
 background-color: transparent;
 padding-left: var(--space-2);
 /* Optional subtle fade effect for better UI */
 box-shadow: none;
}

.icon-button svg {
  fill: var(--secondary-11);
  stroke: currentColor;
  stroke-width: 0;
}



.icon-button.depth-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-half) var(--space-2-half);
  background-color: transparent;
  border-radius: var(--radius-3);
  color: var(--primary-11);
  transition: background-color 0.2s var(--ease-out-cubic), color 0.2s var(--ease-out-cubic);
}

.icon-button.chat-depth-toggle {
  margin-top: var(--space-1);
  margin-bottom: 0;
  min-width: fit-content;
  overflow: visible;
  padding: var(--space-2) var(--space-3);
  gap: var(--space-1-half);
}

.icon-button.depth-toggle .depth-toggle__icon {
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: var(--radius-9);
  color: var(--primary-10);
}

.depth-toggle__caret {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1;
  flex-shrink: 0;
}

.icon-button.chat-depth-toggle .depth-toggle__caret {
  margin-left: var(--space-1);
}

.chat-buttons--left.has-model-menu-active .icon-button.depth-toggle,
.chat-buttons--left.has-file-menu-active .icon-button.depth-toggle {
  color: var(--secondary-11);
}

.chat-buttons--left.has-model-menu-active .icon-button.depth-toggle:not(.active) svg,
.chat-buttons--left.has-file-menu-active .icon-button.depth-toggle:not(.active) svg {
  fill: var(--secondary-11);
  stroke: var(--secondary-11);
}

.icon-button.depth-toggle .depth-meter {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  width: 20px;
  height: 14px;
}

.icon-button.depth-toggle .depth-meter__block {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  background-color: var(--primary-4);
  transition: background-color 0.2s var(--ease-out-cubic);
}

.icon-button.depth-toggle .depth-meter__block--filled {
  background-color: var(--primary-9);
}

.icon-button.depth-toggle .depth-toggle__label {
  margin-left: var(--space-1);
  margin-right: var(--space-1);
  font-size: var(--font-size-2);
  line-height: 1;
  color: var(--secondary-11);
  white-space: nowrap;
}

.command__model-options--no-straights.depth-menu {
  margin-top: -4px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.depth-models-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.depth-models-grid .model-card-dropdown-label {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.depth-models-grid--chat {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.model-header .depth-meter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 18px;
  padding: 0 var(--space-1);
  border-radius: var(--radius-2);
  background-color: var(--primary-3);
  color: var(--primary-10);
}

.model-header .depth-meter-badge .depth-meter {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  height: 100%;
}

.model-header .depth-meter-badge .depth-meter__block {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  background-color: var(--primary-4);
  transition: background-color 0.2s var(--ease-out-cubic);
}

.model-header .depth-meter-badge .depth-meter__block--filled {
  background-color: var(--primary-9);
}

.icon-button,
.add-chunk-menu-button,
.run-button,
.fork-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2) var(--space-1-half);
  border-radius: var(--radius-3);
  transition: background-color 0.2s ease; /* Add smooth transition */
  gap: 0;
  font-size: var(--font-size-2);
  color: var(--secondary-11);
  font-weight: var(--font-weight-regular);
  margin-top: var(--space-1);
  margin-left: var(--space-1);
  margin-right: var(--space-1);
}

.icon-button:focus,
.icon-button:focus-visible,
.option-button:focus,
.option-button:focus-visible {
  outline: none;
  box-shadow: none;
}

.icon-button.chat-depth-toggle.active {
  background-color: var(--secondary-2-half);
  color: var(--secondary-11);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: -1px;
}

.chat-buttons--left.has-model-menu-active .icon-button.depth-toggle:not(.active),
.chat-buttons--left.has-file-menu-active .icon-button.depth-toggle:not(.active) {
  background-color: transparent;
  color: var(--secondary-11);
}

/* Specific styling for model chooser button */
.icon-button.model-chooser-button {
  padding: var(--space-2) var(--space-3);
  gap: var(--space-1-half);
  overflow: visible;
  min-width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-button.model-chooser-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

/* Ensure the last SVG (arrow) has enough space */
.icon-button.model-chooser-button svg:last-of-type {
  margin-left: var(--space-1);
}

/* Default size for other cowriter button SVGs */
.icon-button:not(.model-chooser-button) svg {
  width: 22px;
  height: 22px;
}

.icon-button.active,
.add-chunk-menu-button.active {
  background-color: var(--secondary-2-half);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  color: var(--secondary-11);

}

.icon-button.active:hover,
.add-chunk-menu-button.active:hover {
  background-color: var(--secondary-2-half);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.stop-button {
  background-color: var(--secondary-5);
  color: var(--secondary-12);
  padding: var(--space-1);
  border: 1px solid var(--secondary-5);
  border-radius: var(--radius-3);
}

.stop-button:hover {
  background-color: var(--primary-5);
  border: 1px solid var(--primary-5);
  color: var(--primary-12);
}

.stop-button:active {
  background-color: var(--primary-7);
  border: 1px solid var(--primary-7);
  color: var(--primary-12);
}

.stop-button .inner {
  font-size: var(--font-size-3);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-1);
}

.run-button {
  background-color: var(--primary-9);
  color: var(--primary-1);
  padding: var(--space-2);
}

.run-button:hover {
  background-color: var(--primary-10);
}

.run-button:disabled {
  background-color: var(--secondary-4);
  color: var(--secondary-11);
  cursor: not-allowed;
}

.run-button .inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.run-button .sparkle {
  fill: currentColor;
}

.run-button svg {
  stroke-width: 0.2;
  fill: var(--secondary-1);
}

.run-button:disabled svg {
  stroke-width: 0.2;
  fill: var(--secondary-11);
}

.fork-button {
  background-color: var(--secondary-3);
  color: var(--secondary-11);
  padding: var(--space-2);
}

.fork-button:hover {
  background-color: var(--secondary-4);
}

.fork-button:disabled {
  background-color: var(--secondary-2);
  color: var(--secondary-8);
  cursor: not-allowed;
}

.fork-button .inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.fork-button svg {
  fill: currentColor;
}

.domain-menu,
.ai-model-menu,
.suggestions-menu {
  position: absolute;
  background: var(--secondary-4); /* Match the active button background */
  border: 1px solid var(--secondary-5);
  border-radius: var(--radius-3);
  padding: var(--space-2);
  z-index: 100;
  margin-top: var(--space-1); /* Add a small gap between button and menu */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Optional: add a subtle shadow */
}

.button-wrapper {
  display: flex;
  align-items: center;
}

.text-wrapper {
  padding: 0;
  margin: 0;
}

.link-panel__content {
  font-size: var(--font-size-2);
}

.icon-button svg text {
  font-size: var(--font-size-0);
}

.dropzone-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-3);
  border: 2px dashed var(--primary-6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: var(--z-index-6);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.dropzone-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drop-error {
  color: var(--failure-11);
  font-weight: var(--font-weight-medium);
  padding: var(--space-2);
}

.dropzone-overlay p {
  color: var(--primary-12);
  font-size: var(--font-size-3);
  line-height: 1.4;
  max-width: 80%;
  margin: 0 auto;
}
.files-confirmation-list {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary-5) var(--secondary-2);
}

/* WebKit scrollbars */
.files-confirmation-list::-webkit-scrollbar {
  width: 8px;
}

.files-confirmation-list::-webkit-scrollbar-track {
  background: var(--secondary-2);
  border-radius: 4px;
}

.files-confirmation-list::-webkit-scrollbar-thumb {
  background: var(--secondary-5);
  border-radius: 4px;
}

.files-confirmation-list::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-6);
}

@media (min-width: 768px) {
  .files-confirmation-list {
    max-height: 35vh;
  }
}
