
/* /src/components/LoginScreen.module.css */
._page_1o2z8_1 {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--background);
}

._card_1o2z8_9 {
  width: min(100%, 390px);
  padding: 36px 32px 32px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--background);
  box-shadow: 0 18px 50px rgb(0 0 0 / 8%);
}

._logo_1o2z8_18 {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 13px;
  background: var(--foreground);
  color: var(--background);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.08em;
}

._title_1o2z8_32 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

._subtitle_1o2z8_39 {
  margin: 10px 0 28px;
  color: var(--muted-foreground);
  line-height: 1.5;
}

._form_1o2z8_45 {
  display: grid;
  gap: 16px;
}

._label_1o2z8_50 {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

._input_1o2z8_57 {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  outline: none;
}

._input_1o2z8_57:focus {
  border-color: var(--foreground);
  box-shadow: 0 0 0 3px rgb(0 0 0 / 6%);
}

._button_1o2z8_74 {
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--foreground);
  color: var(--background);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

._button_1o2z8_74:disabled {
  opacity: 0.55;
  cursor: wait;
}

._error_1o2z8_91 {
  margin: 0;
  color: #b42318;
  font-size: 14px;
}


/* /src/routes/settings.module.css */
._page_16l97_1 {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: clip;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
}

._header_16l97_13 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  border-bottom: 1px solid var(--border);
}

._back_16l97_22,
._menuButton_16l97_23,
._spacer_16l97_24 {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

._back_16l97_22 {
  border-radius: 10px;
  color: var(--text-muted);
}

._back_16l97_22:hover {
  background: var(--bg-inset);
  color: var(--text);
}

/* Sidebar drawer access on mobile; hidden on desktop with a sidebar. */
._menuButton_16l97_23 {
  border-radius: 10px;
  color: var(--text-muted);
  touch-action: manipulation;
}

._menuButton_16l97_23:hover {
  background: var(--bg-inset);
  color: var(--text);
}

@media (min-width: 1024px) {
  ._menuButton_16l97_23 {
    display: none;
  }

  body[data-sidebar-collapsed='true'] ._menuButton_16l97_23 {
    display: grid;
  }
}

._heading_16l97_64 {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

._body_16l97_73 {
  width: min(100% - 32px, 640px);
  margin: 0 auto;
  padding: 24px 0 calc(32px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 28px;
}

._section_16l97_82 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

._sectionTitle_16l97_89 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

._sectionDesc_16l97_97 {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---- Option rows (radio-style) ---- */

._options_16l97_105 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

._option_16l97_105,
._optionSelected_16l97_112 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-raised);
  text-align: left;
}

._option_16l97_105:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

._optionSelected_16l97_112 {
  border-color: var(--accent);
  background: var(--bg-raised);
}

._optionText_16l97_135 {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

._optionLabel_16l97_143 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}

._optionDesc_16l97_149 {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

._radio_16l97_155 {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
}

._radio_16l97_155[data-checked] {
  border-color: var(--accent);
  background: radial-gradient(
    circle at center,
    var(--accent) 0 5px,
    transparent 6px
  );
}

/* ---- Segmented controls ---- */

._segmented_16l97_175 {
  display: flex;
  gap: 8px;
}

._segment_16l97_175,
._segmentSelected_16l97_181 {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 550;
  color: var(--text-muted);
  background: var(--bg-raised);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

._segment_16l97_175:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--bg-hover);
}

._segmentSelected_16l97_181 {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 650;
}

/* ---- Shortcuts ---- */

._shortcutList_16l97_212 {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-raised);
  overflow: hidden;
}

._shortcutRow_16l97_222 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}

._shortcutRow_16l97_222:last-child {
  border-bottom: none;
}

._shortcutText_16l97_234 {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

._shortcutLabel_16l97_242 {
  font-size: 14px;
  font-weight: 550;
  color: var(--text);
}

._shortcutDesc_16l97_248 {
  font-size: 12.5px;
  color: var(--text-muted);
}

._keys_16l97_253 {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

._key_16l97_253 {
  min-width: 28px;
  padding: 4px 8px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg-inset);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
}

/* ---- Model / agent defaults ---- */

._field_16l97_274 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

._label_16l97_280 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

._select_16l97_286 {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg-raised);
  color: var(--text);
  font-size: 16px;
}

._select_16l97_286:disabled {
  opacity: 0.6;
}

._fieldNote_16l97_301 {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---- Account ---- */

._signOut_16l97_309 {
  align-self: flex-start;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--border));
  border-radius: 10px;
  background: transparent;
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
}

._signOut_16l97_309:hover:not(:disabled) {
  background: var(--danger-bg);
}

._signOut_16l97_309:disabled {
  opacity: 0.6;
}

/* ---- Focus visibility ---- */

._back_16l97_22:focus-visible,
._option_16l97_105:focus-visible,
._optionSelected_16l97_112:focus-visible,
._segment_16l97_175:focus-visible,
._segmentSelected_16l97_181:focus-visible,
._select_16l97_286:focus-visible,
._signOut_16l97_309:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Compact density: tighter spacing on wide screens only ---- */

:root[data-density='compact'] ._body_16l97_73 {
  gap: 20px;
  padding-top: 18px;
}

:root[data-density='compact'] ._option_16l97_105,
:root[data-density='compact'] ._optionSelected_16l97_112 {
  min-height: 48px;
  padding: 9px 12px;
}

:root[data-density='compact'] ._shortcutRow_16l97_222 {
  padding: 8px 14px;
}

/* ---- Mobile ---- */

@media (max-width: 600px) {
  ._body_16l97_73 {
    width: calc(100% - 24px);
    padding-top: 20px;
  }

  ._segmented_16l97_175 {
    flex-direction: column;
  }

  ._shortcutRow_16l97_222 {
    align-items: flex-start;
  }

  ._keys_16l97_253 {
    margin-top: 2px;
  }
}


/* /src/components/boundary.module.css */
._wrap_1bgy2_1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 20px;
  min-height: 50dvh;
}

._muted_1bgy2_11 {
  color: var(--text-muted);
}

._actions_1bgy2_15 {
  display: flex;
  gap: 10px;
}

._button_1bgy2_20 {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-inset);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

._button_1bgy2_20:hover {
  background: var(--bg-hover);
}


/* /src/components/shell.module.css */
._shell_hnx8l_1 {
  display: flex;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

._sidebar_hnx8l_8 {
  display: none;
}

@media (min-width: 1024px) {
  ._sidebar_hnx8l_8 {
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    background: var(--bg-sidebar, var(--bg));
  }

  /* Collapsed via Ctrl/Cmd+B: the sidebar is hidden and the menu button
   * in page headers becomes visible again (see page CSS overrides). */
  ._shellCollapsed_hnx8l_24 ._sidebar_hnx8l_8 {
    display: none;
  }
}

._main_hnx8l_29 {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg);
}

._drawerOverlay_hnx8l_38 {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 40;
  backdrop-filter: blur(2px);
}

._drawerContent_hnx8l_46 {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  width: min(88vw, 340px);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  outline: none;
  box-shadow: var(--shadow-pop);
}

@media (min-width: 1024px) {
  ._drawerContent_hnx8l_46,
  ._drawerOverlay_hnx8l_38 {
    display: none;
  }
}

._srOnly_hnx8l_67 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Final mobile shell tuning ---- */

@media (max-width: 1023px) {
  ._drawerContent_hnx8l_46 {
    width: min(86vw, 330px);
    border-right: 1px solid var(--border);
  }

  ._drawerOverlay_hnx8l_38 {
    touch-action: none;
  }
}

@media (max-width: 600px) {
  ._drawerContent_hnx8l_46 {
    width: min(88vw, 320px);
  }
}


/* /src/components/SessionList.module.css */
._panel_kz0m2_1 {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding-top: env(safe-area-inset-top);
}

._header_kz0m2_9 {
  padding: 20px 20px 18px;
}

._wordmark_kz0m2_13 {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--text);
}

._newSession_kz0m2_23 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 12px 5px;
  padding: 9px 12px;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-weight: 550;
  font-size: 14px;
  text-decoration: none;
}

._newSession_kz0m2_23:hover {
  background: var(--bg-inset);
}

._openProject_kz0m2_41 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 12px 12px;
  padding: 9px 12px;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
}

._openProject_kz0m2_41:hover {
  background: var(--bg-inset);
  color: var(--text);
}

._search_kz0m2_59 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 14px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--bg-inset);
  color: var(--text-muted);
  transition:
    border-color 120ms ease,
    background 120ms ease;
}

._search_kz0m2_59:focus-within {
  border-color: var(--border);
  background: var(--bg);
}

._search_kz0m2_59 input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: var(--text);
}

._search_kz0m2_59 input::placeholder {
  color: var(--text-faint);
}

._searchClear_kz0m2_93 {
  flex-shrink: 0;
  color: var(--text-faint);
  font-size: 12px;
  padding: 2px 4px;
}

._searchClear_kz0m2_93:hover {
  color: var(--text);
}

._list_kz0m2_104 {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 12px;
  min-height: 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

._hint_kz0m2_114 {
  padding: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

._hint_kz0m2_114 a {
  color: var(--accent);
}

._group_kz0m2_124 {
  margin-bottom: 6px;
}

._groupHeader_kz0m2_128 {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 650;
  text-transform: none;
}

._groupHeader_kz0m2_128:hover {
  background: var(--bg-inset);
  color: var(--text);
}

._groupName_kz0m2_146 {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 12px;
}

._groupCount_kz0m2_156 {
  font-weight: 400;
  color: var(--text-faint);
  font-size: 11px;
}

._sessions_kz0m2_162 {
  list-style: none;
  padding: 2px 0 0;
  margin: 0;
}

._session_kz0m2_162 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 9px 8px 25px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-muted);
  transition:
    background 100ms ease,
    color 100ms ease;
}

._session_kz0m2_162:hover {
  background: var(--bg-inset);
  color: var(--text);
}

._sessionActive_kz0m2_189 {
  background: var(--accent-bg);
  color: var(--text);
}

._sessionActive_kz0m2_189:hover {
  background: var(--accent-bg);
}

._sessionTitle_kz0m2_198 {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

._sessionTime_kz0m2_206 {
  flex-shrink: 0;
  font-size: 10.5px;
  color: var(--text-faint);
}

._busyDot_kz0m2_212 {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: _pulse_kz0m2_1 1.4s ease-in-out infinite;
}

@keyframes _pulse_kz0m2_1 {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

._showAll_kz0m2_232 {
  width: 100%;
  text-align: left;
  padding: 7px 9px 7px 25px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--accent);
}

._showAll_kz0m2_232:hover {
  background: var(--bg-inset);
}

._loadingMore_kz0m2_245 {
  padding: 7px 9px 7px 25px;
  font-size: 12px;
  color: var(--text-faint);
}

._footer_kz0m2_251 {
  border-top: 1px solid var(--border);
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
}

._settingsLink_kz0m2_256 {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 9px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
}

._settingsLink_kz0m2_256:hover {
  background: var(--bg-inset);
  color: var(--text);
}


/* /src/components/OpenProjectSheet.module.css */
._browser_1iuet_1 {
  display: flex;
  flex-direction: column;
  height: min(68dvh, 620px);
  min-height: 360px;
}

._pathForm_1iuet_8 {
  display: flex;
  gap: 8px;
}

._pathInput_1iuet_13 {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  outline: none;
  padding: 10px 12px;
  background: var(--bg-inset);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
}

._pathInput_1iuet_13:focus {
  border-color: var(--accent);
}

._goButton_1iuet_30,
._navButton_1iuet_31 {
  border-radius: var(--radius-m);
  background: var(--bg-inset);
  color: var(--text-muted);
  font-weight: 500;
}

._goButton_1iuet_30 {
  padding: 0 16px;
}

._goButton_1iuet_30:hover,
._navButton_1iuet_31:hover {
  background: var(--bg-hover);
  color: var(--text);
}

._navigation_1iuet_48 {
  display: flex;
  gap: 6px;
  padding: 10px 0;
}

._navButton_1iuet_31 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
  padding: 0 11px;
  font-size: 12.5px;
}

._error_1iuet_64 {
  margin-bottom: 8px;
  padding: 9px 11px;
  border-radius: var(--radius-s);
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 12.5px;
}

._list_1iuet_73 {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--bg-raised);
}

._folder_1iuet_82 {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

._folder_1iuet_82:last-child {
  border-bottom: 0;
}

._folder_1iuet_82:hover {
  background: var(--bg-hover);
}

._folder_1iuet_82 span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

._folderIcon_1iuet_110 {
  flex-shrink: 0;
  color: var(--accent);
}

._chevron_1iuet_115 {
  flex-shrink: 0;
  color: var(--text-faint);
}

._state_1iuet_120 {
  padding: 28px 20px;
  color: var(--text-muted);
  text-align: center;
  font-size: 13.5px;
}

._footer_1iuet_127 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
}

._current_1iuet_134 {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

._openButton_1iuet_145 {
  flex-shrink: 0;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-m);
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 13.5px;
  font-weight: 600;
}

._openButton_1iuet_145:disabled {
  cursor: default;
  opacity: 0.45;
}

@media (max-width: 380px) {
  ._navButton_1iuet_31 {
    flex: 1;
    padding-inline: 7px;
  }

  ._current_1iuet_134 {
    display: none;
  }

  ._openButton_1iuet_145 {
    width: 100%;
  }
}


/* /src/components/WorkspaceNav.module.css */
._section_9ejqp_1 {
  padding: 8px 10px 12px;
  border-bottom: 1px solid var(--border);
}

._label_9ejqp_6 {
  padding: 6px 10px 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

._nav_9ejqp_15 {
  display: grid;
  gap: 2px;
}

._item_9ejqp_20,
._settings_9ejqp_21 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}

._item_9ejqp_20:hover,
._settings_9ejqp_21:hover {
  background: var(--surface-hover);
}

._itemActive_9ejqp_40 {
  background: var(--surface-active);
  color: var(--text-strong);
  font-weight: 650;
}

._icon_9ejqp_46 {
  width: 18px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

._itemActive_9ejqp_40 ._icon_9ejqp_46 {
  color: var(--text-strong);
}

._textIcon_9ejqp_57 {
  width: 17px;
  text-align: center;
  font-size: 16px;
  line-height: 17px;
}

._chevron_9ejqp_64 {
  margin-left: auto;
  color: var(--muted);
  opacity: .45;
}

._footer_9ejqp_70 {
  margin-top: auto;
  padding: 10px;
}

._settings_9ejqp_21 {
  width: 100%;
}


/* /src/components/Sheet.module.css */
._overlay_30nm6_1 {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 40;
}

._content_30nm6_8 {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  max-height: 85dvh;
  background: var(--bg);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  box-shadow: var(--shadow-sheet);
  outline: none;
}

@media (min-width: 640px) {
  ._content_30nm6_8 {
    margin-inline: auto;
    width: 480px;
  }
}

._handle_30nm6_30 {
  flex-shrink: 0;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-strong);
  margin: 10px auto 0;
}

._header_30nm6_39 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 8px;
  flex-shrink: 0;
}

._title_30nm6_47 {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

._close_30nm6_54,
._spacer_30nm6_55 {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

._close_30nm6_54 {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-inset);
  color: var(--text-muted);
}

._close_30nm6_54:hover {
  background: var(--bg-hover);
  color: var(--text);
}

._body_30nm6_74 {
  overflow-y: auto;
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
}


/* /src/routes/workspace.module.css */
._page_6s8se_1 {
  height: 100%;
  overflow: auto;
  background: var(--background);
}

._container_6s8se_7 {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

._header_6s8se_13 {
  margin-bottom: 30px;
}

._eyebrow_6s8se_17 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

._title_6s8se_26 {
  margin: 0;
  color: var(--text-strong);
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

._description_6s8se_34 {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

._grid_6s8se_42 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

._card_6s8se_48 {
  display: block;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

._card_6s8se_48:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

._cardTitle_6s8se_66 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 650;
}

._cardIcon_6s8se_75 {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: var(--background);
}

._cardDescription_6s8se_86 {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

._back_6s8se_93 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

._back_6s8se_93:hover {
  color: var(--text-strong);
}

/* Mobile top bar: hamburger opens the sidebar drawer everywhere. */
._topbar_6s8se_108 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
}

._topbar_6s8se_108 ._back_6s8se_93 {
  margin-bottom: 0;
}

._menuButton_6s8se_119 {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  border-radius: 9px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  touch-action: manipulation;
}

._menuButton_6s8se_119:hover {
  background: var(--bg-inset);
  border-color: var(--border);
}

@media (min-width: 1024px) {
  ._menuButton_6s8se_119 {
    display: none;
  }

  body[data-sidebar-collapsed='true'] ._menuButton_6s8se_119 {
    display: grid;
  }
}

._list_6s8se_146 {
  display: grid;
  gap: 8px;
}

._row_6s8se_151 {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

._rowMain_6s8se_161 {
  min-width: 0;
  flex: 1;
}

._rowTitle_6s8se_166 {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 600;
}

._rowSubtitle_6s8se_172 {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

._badge_6s8se_180 {
  flex: none;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}

._search_6s8se_189 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 0 12px;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
}

._search_6s8se_189 input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

._empty_6s8se_211 {
  padding: 40px 20px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 700px) {
  ._container_6s8se_7 {
    width: min(100% - 28px, 1080px);
    padding: 32px 0 56px;
  }

  ._title_6s8se_26 {
    font-size: 25px;
  }

  ._grid_6s8se_42 {
    grid-template-columns: 1fr;
  }
}

._modelToolbar_6s8se_235 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

._filter_6s8se_243,
._filterActive_6s8se_244 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

._filter_6s8se_243:hover,
._filterActive_6s8se_244 {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

._modelCount_6s8se_265 {
  color: var(--muted);
  font-size: 12px;
}

._providerList_6s8se_270 {
  display: grid;
  gap: 12px;
}

._providerCard_6s8se_275 {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}

._providerHeader_6s8se_282 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 17px;
  border-bottom: 1px solid var(--border);
}

._providerName_6s8se_291 {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 650;
}

._providerId_6s8se_297 {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

._modelList_6s8se_304 {
  display: grid;
}

._modelRow_6s8se_308 {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 17px;
  border-bottom: 1px solid var(--border);
}

._modelRow_6s8se_308:last-child {
  border-bottom: 0;
}

._modelMain_6s8se_321 {
  min-width: 0;
  flex: 1;
}

._modelName_6s8se_326 {
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 550;
  overflow-wrap: anywhere;
}

._modelId_6s8se_333 {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
}

._freeBadge_6s8se_341 {
  flex: none;
  padding: 3px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-strong);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .06em;
}

._modelFootnote_6s8se_352 {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 700px) {
  ._modelToolbar_6s8se_235 {
    align-items: flex-start;
    flex-direction: column;
  }

  ._providerHeader_6s8se_282 {
    align-items: flex-start;
  }

  ._modelRow_6s8se_308 {
    align-items: flex-start;
  }
}


/* /src/routes/index.module.css */
._page_shaj8_1 {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

._header_shaj8_8 {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
}

._menuButton_shaj8_17 {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  /* No double-tap delay and no gesture interference on touch. */
  touch-action: manipulation;
}

@media (max-width: 1023px) {
  ._menuButton_shaj8_17 {
    min-width: 40px;
    min-height: 40px;
  }
}

._menuButton_shaj8_17:hover {
  background: var(--bg-inset);
  border-color: var(--border);
}

@media (min-width: 1024px) {
  ._menuButton_shaj8_17 {
    display: none;
  }

  /* The sidebar can be collapsed with Ctrl/Cmd+B; reveal the menu button
   * so it can be reopened. */
  body[data-sidebar-collapsed='true'] ._menuButton_shaj8_17 {
    display: grid;
  }
}

._hero_shaj8_54 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  transform: translateY(-4%);
}

._logo_shaj8_65 {
  display: none;
}

._greeting_shaj8_69 {
  max-width: 760px;
  margin: 0;
  text-align: center;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--text);
}

._connectError_shaj8_80 {
  max-width: 520px;
  margin: 2px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

._connectError_shaj8_80 a {
  color: var(--accent);
}

._composerWrap_shaj8_93 {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
  padding: 0 0 calc(20px + env(safe-area-inset-bottom));
}

._sendError_shaj8_99 {
  margin: 0;
  padding: 0 4px 8px;
  color: var(--danger);
  font-size: 13px;
}

@media (max-width: 640px) {
  ._hero_shaj8_54 {
    padding: 20px 18px;
    transform: translateY(-7%);
  }

  ._greeting_shaj8_69 {
    font-size: 28px;
  }

  ._composerWrap_shaj8_93 {
    width: calc(100% - 20px);
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}


/* /src/routes/session.module.css */
._sessionLayout_aqz6q_1 {
  display: flex;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
}

._page_aqz6q_9 {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  height: 100%;
  min-height: 0;
  background: var(--bg);
}

._header_aqz6q_19 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: calc(7px + env(safe-area-inset-top)) 16px 7px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
  flex-shrink: 0;
  z-index: 20;
}

._iconButton_aqz6q_33 {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text-muted);
  text-decoration: none;
  flex-shrink: 0;
  transition:
    background-color 120ms ease,
    color 120ms ease,
    border-color 120ms ease;
}

._iconButton_aqz6q_33:hover {
  background: var(--bg-inset);
  border-color: var(--border);
  color: var(--text);
}

/* Sidebar menu button: immediate touch response, no double-tap delay. */
._menuButton_aqz6q_57 {
  touch-action: manipulation;
}

@media (max-width: 1023px) {
  ._menuButton_aqz6q_57 {
    min-width: 40px;
    min-height: 40px;
  }
}

._iconButtonActive_aqz6q_68 {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 18%, var(--border));
}

@media (min-width: 1024px) {
  ._menuButton_aqz6q_57 {
    visibility: hidden;
  }

  /* The sidebar can be collapsed with Ctrl/Cmd+B; reveal the menu button
   * so it can be reopened. */
  body[data-sidebar-collapsed='true'] ._menuButton_aqz6q_57 {
    visibility: visible;
  }
}

._headerText_aqz6q_86 {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

._titleRow_aqz6q_95 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: min(100%, 620px);
}

._title_aqz6q_95 {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

._titleMenu_aqz6q_115 {
  position: relative;
  flex-shrink: 0;
  margin-left: 2px;
}

._titleMenu_aqz6q_115 summary {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  color: var(--text-faint);
  cursor: pointer;
  list-style: none;
}

._titleMenu_aqz6q_115 summary::-webkit-details-marker {
  display: none;
}

._titleMenu_aqz6q_115 summary:hover,
._titleMenu_aqz6q_115[open] summary {
  background: var(--bg-inset);
  color: var(--text);
}

._titleMenuPanel_aqz6q_142 {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 30;
  width: 180px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-raised);
  box-shadow: var(--shadow-pop);
}

._titleMenuPanel_aqz6q_142 button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 9px;
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: left;
}

._titleMenuPanel_aqz6q_142 button:hover,
._titleMenuPanel_aqz6q_142 button:focus-visible {
  background: var(--bg-hover);
  color: var(--text);
  outline: none;
}

._titleMenuPanel_aqz6q_142 ._titleMenuDanger_aqz6q_174 {
  color: var(--danger);
}

._subtitle_aqz6q_178 {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
  font-size: 11px;
  color: var(--text-faint);
}

._headerActions_aqz6q_188 {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

._headerSpacer_aqz6q_195 {
  width: 36px;
  flex-shrink: 0;
}

._diffSidebar_aqz6q_200 {
  width: clamp(360px, 38vw, 620px);
  flex-shrink: 0;
  min-width: 0;
  border-left: 1px solid var(--border);
  background: var(--bg);
}

._diffDrawerOverlay_aqz6q_208 {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg-overlay);
}

._diffDrawer_aqz6q_208 {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 50;
  width: min(94vw, 620px);
  background: var(--bg);
  outline: none;
  box-shadow: var(--shadow-pop);
}

._diffLoading_aqz6q_225 {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 13px;
}

._srOnly_aqz6q_233 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

._scroll_aqz6q_245 {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

._messages_aqz6q_254 {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: var(--msg-py, 34px) 28px 42px;
}

._typing_aqz6q_260 {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 4px;
}

._typing_aqz6q_260 span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: _typing_aqz6q_260 1.2s ease-in-out infinite;
}

._typing_aqz6q_260 span:nth-child(2) {
  animation-delay: 0.15s;
}

._typing_aqz6q_260 span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes _typing_aqz6q_260 {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

._composerWrap_aqz6q_297 {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(100% - 40px, 820px);
  margin: 0 auto;
  padding: 8px 0 calc(16px + env(safe-area-inset-bottom));
}

._noticeBanner_aqz6q_307 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border));
  border-radius: 9px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 13px;
  overflow-wrap: anywhere;
}

._noticeBanner_aqz6q_307 button {
  flex-shrink: 0;
  color: inherit;
  font-size: 13px;
}

._revertNotice_aqz6q_327 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px 0;
  padding: 8px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 12.5px;
}

._revertNotice_aqz6q_327 button {
  color: var(--accent);
  font-weight: 600;
  font-size: 12.5px;
}

._revertNotice_aqz6q_327 button:hover {
  text-decoration: underline;
}

._errorBanner_aqz6q_350 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--danger) 18%, var(--border));
  border-radius: 9px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 13px;
  overflow-wrap: anywhere;
}

._errorBanner_aqz6q_350 button {
  flex-shrink: 0;
  color: inherit;
  font-size: 13px;
}

._missing_aqz6q_370 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
}

._missing_aqz6q_370 a {
  color: var(--accent);
}

@media (max-width: 700px) {
  ._header_aqz6q_19 {
    min-height: 54px;
    padding-inline: 10px;
  }

  ._title_aqz6q_95 {
    font-size: 13.5px;
  }

  ._subtitle_aqz6q_178 {
    font-size: 10.5px;
  }

  ._messages_aqz6q_254 {
    width: 100%;
    padding: 24px 16px 30px;
  }

  ._composerWrap_aqz6q_297 {
    width: calc(100% - 20px);
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

/* Claude-inspired session header polish */

._header_aqz6q_19 {
  min-height: 60px;
  padding: 10px 18px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
}

._headerText_aqz6q_86 {
  min-width: 0;
}

._titleRow_aqz6q_95 {
  min-width: 0;
  gap: 5px;
}

._title_aqz6q_95 {
  max-width: min(62vw, 620px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

._subtitle_aqz6q_178 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
}

._liveStatus_aqz6q_445 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-weight: 500;
  color: var(--text-muted);
}

._liveDot_aqz6q_454 {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: _livePulse_aqz6q_1 1.4s ease-in-out infinite;
}

@keyframes _livePulse_aqz6q_1 {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

._headerActions_aqz6q_188 {
  gap: 4px;
}

._iconButton_aqz6q_33 {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  transition:
    background 120ms ease,
    color 120ms ease;
}

._iconButton_aqz6q_33:hover {
  background: var(--bg-hover);
}

._iconButtonActive_aqz6q_68 {
  background: var(--accent-bg);
  color: var(--accent);
}

._titleMenu_aqz6q_115 summary {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  transition:
    background 120ms ease,
    color 120ms ease;
}

._titleMenu_aqz6q_115 summary:hover {
  background: var(--bg-hover);
  color: var(--text);
}

@media (max-width: 600px) {
  ._header_aqz6q_19 {
    min-height: 56px;
    padding: 8px 12px;
  }

  ._title_aqz6q_95 {
    max-width: 55vw;
    font-size: 14px;
  }

  ._subtitle_aqz6q_178 {
    font-size: 11.5px;
  }

  ._liveStatus_aqz6q_445 {
    display: none;
  }

  ._iconButton_aqz6q_33 {
    width: 32px;
    height: 32px;
  }
}

/* ---- Final mobile session tuning ---- */

@media (max-width: 700px) {
  ._header_aqz6q_19 {
    min-height: 56px;
    padding: 7px 10px;
  }

  ._headerText_aqz6q_86 {
    min-width: 0;
    overflow: hidden;
  }

  ._titleRow_aqz6q_95 {
    max-width: 62vw;
  }

  ._title_aqz6q_95 {
    max-width: 100%;
    font-size: 14px;
  }

  ._subtitle_aqz6q_178 {
    max-width: 62vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  ._messages_aqz6q_254 {
    padding: 20px 14px 28px;
  }

  ._composerWrap_aqz6q_297 {
    width: calc(100% - 16px);
    max-width: none;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }

  ._headerActions_aqz6q_188 {
    flex-shrink: 0;
  }
}

@media (max-width: 420px) {
  ._header_aqz6q_19 {
    padding-inline: 8px;
  }

  ._titleRow_aqz6q_95,
  ._subtitle_aqz6q_178 {
    max-width: 58vw;
  }

  ._messages_aqz6q_254 {
    padding-inline: 12px;
  }

  ._composerWrap_aqz6q_297 {
    width: calc(100% - 12px);
  }
}


/* /src/components/Composer.module.css */
._composer_x7xe8_1 {
  position: relative;
  padding: 13px 13px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--bg-raised);
  box-shadow:
    0 1px 3px rgb(0 0 0 / 0.04),
    0 6px 20px rgb(0 0 0 / 0.035);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease;
}

._composer_x7xe8_1:focus-within {
  border-color: color-mix(in srgb, var(--border-strong) 70%, var(--accent));
  box-shadow:
    0 1px 3px rgb(0 0 0 / 0.04),
    0 8px 24px rgb(0 0 0 / 0.05);
}

._commandPopover_x7xe8_22 {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 30;
  max-height: min(288px, 38dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-raised);
  box-shadow: var(--shadow-pop);
}

._commandRow_x7xe8_38 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 7px;
  text-align: left;
}

._commandRow_x7xe8_38[data-active='true'] {
  background: var(--bg-hover);
}

._commandName_x7xe8_53 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

._commandDescription_x7xe8_59 {
  max-width: 100%;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

._attachments_x7xe8_68 {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 1px 3px 8px;
  scrollbar-width: none;
}

._attachments_x7xe8_68::-webkit-scrollbar {
  display: none;
}

._attachment_x7xe8_68 {
  position: relative;
  flex-shrink: 0;
}

._attachmentImage_x7xe8_85,
._attachmentFile_x7xe8_86 {
  width: 62px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-inset);
}

._attachmentImage_x7xe8_85 {
  object-fit: cover;
}

._attachmentFile_x7xe8_86 {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 132px;
  padding: 0 9px;
  color: var(--text-muted);
}

._attachmentFile_x7xe8_86 span {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

._removeAttachment_x7xe8_115 {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--text-muted);
  color: var(--bg-raised);
}

._attachmentError_x7xe8_129 {
  margin: 0 3px 7px;
  color: var(--danger);
  font-size: 12px;
}

._input_x7xe8_135 {
  width: 100%;
  max-height: 220px;
  padding: 3px 3px;
  border: none;
  outline: none;
  background: transparent;
  resize: none;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

._input_x7xe8_135::placeholder {
  color: var(--text-faint);
}

._controls_x7xe8_152 {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-top: 9px;
  max-width: 100%;
  flex-wrap: nowrap;
  overflow: hidden;
}

._attach_x7xe8_68 {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  flex-shrink: 0;
}

._attach_x7xe8_68:hover {
  background: var(--bg-inset);
  color: var(--text);
}

._pill_x7xe8_179 {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex-shrink: 1;
  padding: 6px 9px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

._pill_x7xe8_179:hover:not(:disabled) {
  background: var(--bg-inset);
  color: var(--text);
}

._pill_x7xe8_179:disabled {
  cursor: default;
  opacity: 0.65;
}

._pillLabel_x7xe8_203 {
  min-width: 0;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

._spacer_x7xe8_211 {
  flex: 1;
}

._send_x7xe8_215,
._stop_x7xe8_216 {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  flex-shrink: 0;
}

._send_x7xe8_215 {
  background: var(--accent);
  color: var(--accent-contrast);
}

._send_x7xe8_215:disabled {
  opacity: 0.3;
  cursor: default;
}

._stop_x7xe8_216 {
  background: var(--danger);
  color: #fff;
}

._fileInput_x7xe8_240 {
  display: none;
}

@media (max-width: 640px) {
  ._composer_x7xe8_1 {
    padding: 12px 11px 9px;
    border-radius: 15px;
  }

  ._input_x7xe8_135 {
    font-size: 16px;
  }

  ._pillLabel_x7xe8_203 {
    max-width: 105px;
  }
}

._pill_x7xe8_179 {
  transition:
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}

._pill_x7xe8_179:hover {
  background: var(--bg-hover);
  color: var(--text);
}

._modelPill_x7xe8_271 {
  min-width: 0;
  max-width: min(420px, 45vw);
}

._pillProvider_x7xe8_276 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-weight: 400;
}

@media (max-width: 600px) {
  ._modelPill_x7xe8_271 {
    max-width: 180px;
  }

  ._modelPill_x7xe8_271 ._pillProvider_x7xe8_276 {
    display: none;
  }
}

/* ---- Final mobile composer tuning ----
 * The controls row must never scroll horizontally: the Send/Stop button
 * stays pinned and always reachable, while the pills shrink and truncate
 * with ellipsis as space gets tight.
 */

._controls_x7xe8_152 {
  max-width: 100%;
  flex-wrap: nowrap;
}

._spacer_x7xe8_211 {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 640px) {
  ._composer_x7xe8_1 {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 10px;
    border-radius: 16px;
  }

  ._input_x7xe8_135 {
    min-height: 42px;
    max-height: 160px;
  }

  ._controls_x7xe8_152 {
    gap: 4px;
    overflow: hidden;
  }

  ._pill_x7xe8_179 {
    flex: 0 1 auto;
    min-width: 0;
    min-height: 32px;
    padding: 6px 8px;
  }

  ._pill_x7xe8_179 svg {
    flex-shrink: 0;
  }

  ._pillLabel_x7xe8_203 {
    max-width: 96px;
  }

  ._modelPill_x7xe8_271 {
    max-width: 38vw;
  }

  ._attach_x7xe8_68 {
    width: 40px;
    height: 40px;
  }

  ._send_x7xe8_215,
  ._stop_x7xe8_216 {
    width: 40px;
    height: 40px;
    margin-left: 0;
  }
}

/* Very narrow phones: collapse the agent/project labels to icons (the
 * sheets stay one tap away) and give the model name priority. */
@media (max-width: 420px) {
  ._modelPill_x7xe8_271 {
    max-width: 34vw;
  }

  ._agentPill_x7xe8_369 ._pillLabel_x7xe8_203,
  ._projectPill_x7xe8_370 ._pillLabel_x7xe8_203 {
    display: none;
  }

  ._agentPill_x7xe8_369,
  ._projectPill_x7xe8_370 {
    padding: 6px 7px;
  }
}

@media (max-width: 340px) {
  ._modelPill_x7xe8_271 {
    max-width: 30vw;
  }

  ._pillLabel_x7xe8_203 {
    max-width: 72px;
  }
}

@media (max-width: 360px) {
  ._modelPill_x7xe8_271 {
    max-width: 28vw;
  }

  ._pillLabel_x7xe8_203 {
    max-width: 64px;
  }

  ._agentPill_x7xe8_369 ._pillLabel_x7xe8_203,
  ._projectPill_x7xe8_370 ._pillLabel_x7xe8_203 {
    display: none;
  }

  ._agentPill_x7xe8_369,
  ._projectPill_x7xe8_370 {
    padding: 6px 7px;
  }
}


/* /src/components/Dialog.module.css */
._dialog_n5err_1 {
  /* Centering is spelled out rather than left to the UA modal defaults, which
     differ between engines. */
  position: fixed;
  inset: 0;
  width: fit-content;
  height: fit-content;
  margin: auto;
  padding: 0;
  border: none;
  background: none;
  color: var(--text);
  max-width: none;
  max-height: calc(100dvh - 32px);
  overflow: auto;
}

/* ::backdrop only inherits custom properties in recent browsers, so the token
   carries a literal fallback. */
._dialog_n5err_1::backdrop {
  background: var(--bg-overlay, rgb(0 0 0 / 0.5));
}

._panel_n5err_24 {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(420px, calc(100vw - 32px));
  padding: 20px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-pop);
  font-family: var(--font-sans);
  font-size: 15px;
}

._title_n5err_38 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

._message_n5err_45 {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

._field_n5err_53 {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

._field_n5err_53 input {
  width: 100%;
  padding: 11px 12px;
  color: var(--text);
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  font-size: 14px;
  font-weight: 400;
  outline: none;
}

._field_n5err_53 input:focus {
  border-color: var(--accent);
}

._actions_n5err_78 {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

._actions_n5err_78 button {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: var(--radius-s);
  font-size: 13.5px;
  font-weight: 600;
}

._actions_n5err_78 button:disabled {
  cursor: default;
  opacity: 0.6;
}

._actions_n5err_78 button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

._secondary_n5err_103 {
  background: var(--bg-inset);
}

._secondary_n5err_103:hover:not(:disabled) {
  background: var(--bg-hover);
}

._primary_n5err_111 {
  color: var(--accent-contrast);
  background: var(--accent);
}

._danger_n5err_116 {
  color: var(--accent-contrast);
  background: var(--danger);
}

._primary_n5err_111:hover:not(:disabled),
._danger_n5err_116:hover:not(:disabled) {
  filter: brightness(1.08);
}

/* Entry and exit animation; the global prefers-reduced-motion rule in app.css
   collapses these durations. */
._dialog_n5err_1,
._dialog_n5err_1::backdrop {
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    overlay 140ms allow-discrete,
    display 140ms allow-discrete;
}

._dialog_n5err_1 {
  opacity: 0;
  transform: scale(0.97) translateY(6px);
}

._dialog_n5err_1::backdrop {
  opacity: 0;
}

._dialog_n5err_1[open] {
  opacity: 1;
  transform: none;
}

._dialog_n5err_1[open]::backdrop {
  opacity: 1;
}

@starting-style {
  ._dialog_n5err_1[open] {
    opacity: 0;
    transform: scale(0.97) translateY(6px);
  }

  ._dialog_n5err_1[open]::backdrop {
    opacity: 0;
  }
}


/* /src/components/PermissionBanner.module.css */
._banner_csmhe_1 {
  border: 1px solid var(--border-strong);
  background: var(--bg-raised);
  border-radius: var(--radius-m);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-pop);
}

._text_csmhe_12 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

._label_csmhe_19 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

._title_csmhe_27 {
  font-size: 14px;
  font-weight: 500;
}

._command_csmhe_32 {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-inset);
  border-radius: var(--radius-s);
  padding: 6px 9px;
  overflow-x: auto;
  white-space: pre;
}

._actions_csmhe_42 {
  display: flex;
  gap: 8px;
}

._actions_csmhe_42 button {
  flex: 1;
  padding: 8px 10px;
  border-radius: var(--radius-s);
  font-size: 13.5px;
  font-weight: 600;
}

._deny_csmhe_55 {
  background: var(--bg-inset);
  color: var(--danger);
}

._deny_csmhe_55:hover {
  background: var(--danger-bg);
}

._allow_csmhe_64 {
  background: var(--bg-inset);
}

._allow_csmhe_64:hover {
  background: var(--bg-hover);
}

._allowAlways_csmhe_72 {
  background: var(--accent);
  color: var(--accent-contrast);
}


/* /src/components/QuestionSheet.module.css */
._content_1l0r7_1 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

._header_1l0r7_7 {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

._question_1l0r7_15 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

._options_1l0r7_22 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

._option_1l0r7_22 {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  padding: 12px;
  text-align: left;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}

._option_1l0r7_22:hover {
  background: var(--bg-hover);
}

._option_1l0r7_22[data-picked='true'] {
  border-color: var(--accent);
  background: var(--accent-bg);
}

._mark_1l0r7_49 {
  display: grid;
  place-items: center;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  color: var(--accent);
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  font-size: 10px;
}

._mark_1l0r7_49[data-multiple='true'] {
  border-radius: 5px;
  font-size: 13px;
}

._option_1l0r7_22[data-picked='true'] ._mark_1l0r7_49 {
  border-color: var(--accent);
}

._optionText_1l0r7_71 {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

._optionText_1l0r7_71 strong {
  font-size: 14px;
  font-weight: 600;
}

._optionText_1l0r7_71 small {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.35;
}

._custom_1l0r7_89 {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

._custom_1l0r7_89 input {
  width: 100%;
  padding: 11px 12px;
  color: var(--text);
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  font-size: 14px;
  outline: none;
}

._custom_1l0r7_89 input:focus {
  border-color: var(--accent);
}

._error_1l0r7_113 {
  margin: 0;
  padding: 9px 11px;
  color: var(--danger);
  background: var(--danger-bg);
  border-radius: var(--radius-s);
  font-size: 12px;
}

._actions_1l0r7_122 {
  display: flex;
  gap: 8px;
}

._actions_1l0r7_122 button {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: var(--radius-s);
  font-size: 13.5px;
  font-weight: 600;
}

._actions_1l0r7_122 button:disabled {
  cursor: default;
  opacity: 0.6;
}

._reject_1l0r7_140 {
  color: var(--danger);
  background: var(--bg-inset);
}

._secondary_1l0r7_145 {
  margin-left: auto;
  background: var(--bg-inset);
}

._primary_1l0r7_150 {
  margin-left: auto;
  color: var(--accent-contrast);
  background: var(--accent);
}

._secondary_1l0r7_145 + ._primary_1l0r7_150 {
  margin-left: 0;
}


/* /src/components/pickers.module.css */
._list_mu1u8_1 {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--bg-inset);
  border-radius: var(--radius-m);
  overflow: hidden;
}

._list_mu1u8_1 > li + li {
  border-top: 1px solid var(--border);
}

._row_mu1u8_14 {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  text-align: left;
}

._row_mu1u8_14:hover {
  background: var(--bg-hover);
}

._rowText_mu1u8_27 {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

._rowTitle_mu1u8_35 {
  font-size: 15px;
  font-weight: 500;
}

._capitalize_mu1u8_40::first-letter {
  text-transform: uppercase;
}

._rowSubtitle_mu1u8_44 {
  font-size: 12.5px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
}

._check_mu1u8_53 {
  color: var(--accent);
  flex-shrink: 0;
}

._empty_mu1u8_58 {
  padding: 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
}

._openProjectButton_mu1u8_65 {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin-bottom: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-m);
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

._openProjectButton_mu1u8_65 span {
  flex: 1;
}

._openProjectButton_mu1u8_65:hover {
  filter: brightness(1.03);
}

._search_mu1u8_88 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  margin-bottom: 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-inset);
  color: var(--text-muted);
}

._search_mu1u8_88 input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
}

._modelFilters_mu1u8_108 {
  display: flex;
  gap: 6px;
  margin: 0 0 12px;
}

._modelFilter_mu1u8_108,
._modelFilterActive_mu1u8_115 {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  transition: background 120ms ease, color 120ms ease;
}

._modelFilter_mu1u8_108 {
  background: var(--bg-inset);
  color: var(--text-muted);
}

._modelFilter_mu1u8_108:hover {
  background: var(--bg-hover);
  color: var(--text);
}

._modelFilterActive_mu1u8_115 {
  background: var(--accent-bg);
  color: var(--accent);
}

._freeBadge_mu1u8_138 {
  flex-shrink: 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  ._modelFilters_mu1u8_108 {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 4px 0 10px;
    background: var(--bg);
  }

  ._modelFilter_mu1u8_108,
  ._modelFilterActive_mu1u8_115 {
    flex: 1;
    text-align: center;
  }
}


/* /src/components/MessageView.module.css */
._userRow_cm62z_1 {
  display: flex;
  justify-content: flex-end;
  margin-block: 28px;
  padding-left: 18%;
}

._userMessage_cm62z_8 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  max-width: min(78%, 720px);
}

._userBubble_cm62z_16 {
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  border-radius: 16px;
  background: var(--bg-inset);
  color: var(--text);
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.58;
}

._userAttachments_cm62z_28 {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

._userAttachmentImage_cm62z_35 {
  width: 112px;
  height: 88px;
  border: 1px solid var(--border);
  border-radius: 9px;
  object-fit: cover;
  background: var(--bg-inset);
}

._userAttachmentFile_cm62z_44 {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-inset);
  color: var(--text);
  font-size: 12px;
  text-decoration: none;
}

._userAttachmentFile_cm62z_44 > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

._userAttachmentType_cm62z_65 {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

._assistant_cm62z_72 {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-block: 34px;
  padding-right: 3%;
  color: var(--text);
  line-height: 1.68;
}

._turnActions_cm62z_82 {
  display: flex;
  gap: 3px;
  margin-top: 0;
  margin-left: -5px;
}

._turnActionButton_cm62z_89 {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  transition:
    color 120ms ease,
    background-color 120ms ease;
}

._turnActionButton_cm62z_89:not(:disabled):hover,
._turnActionButton_cm62z_89:not(:disabled):focus-visible {
  background: var(--bg-inset);
  color: var(--text-muted);
}

._turnActionButton_cm62z_89:disabled {
  opacity: 0.45;
  cursor: default;
}

._error_cm62z_116 {
  padding: 10px 13px;
  border: 1px solid color-mix(in srgb, var(--danger) 22%, transparent);
  border-radius: 9px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
}

._aborted_cm62z_126 {
  padding-block: 2px;
  color: var(--text-faint);
  font-size: 13px;
  font-style: italic;
}

/* ---- Tool / reasoning activity ---- */

._tool_cm62z_135,
._reasoning_cm62z_136 {
  margin-block: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--bg-raised) 80%, transparent);
  font-size: 13px;
}

._tool_cm62z_135 summary,
._reasoning_cm62z_136 summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px 10px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 120ms ease;
}

._tool_cm62z_135 summary:hover,
._reasoning_cm62z_136 summary:hover {
  background: var(--bg-inset);
}

._tool_cm62z_135 summary::-webkit-details-marker,
._reasoning_cm62z_136 summary::-webkit-details-marker {
  display: none;
}

._disclosure_cm62z_169 {
  flex-shrink: 0;
  transition: transform 120ms ease;
}

._tool_cm62z_135[open] ._disclosure_cm62z_169,
._reasoning_cm62z_136[open] ._disclosure_cm62z_169 {
  transform: rotate(90deg);
}

._toolName_cm62z_179 {
  flex-shrink: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 600;
}

._toolTitle_cm62z_186 {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

._toolStatus_cm62z_197 {
  display: grid;
  place-items: center;
  width: 16px;
  margin-left: auto;
  flex-shrink: 0;
}

._toolChip_cm62z_205 {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--bg-raised) 80%, transparent);
  color: var(--text-muted);
  font-size: 12.5px;
}

._taskCard_cm62z_217 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: color-mix(in srgb, var(--bg-raised) 80%, transparent);
  color: var(--text);
  text-decoration: none;
}

._taskLink_cm62z_230 {
  cursor: pointer;
  transition:
    background-color 120ms ease,
    border-color 120ms ease;
}

._taskLink_cm62z_230:hover,
._taskLink_cm62z_230:focus-visible {
  border-color: var(--border-strong);
  background: var(--bg-inset);
}

._taskLink_cm62z_230:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

._taskIcon_cm62z_248 {
  display: grid;
  place-items: center;
  width: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

._taskText_cm62z_256 {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

._taskHeading_cm62z_264 {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

._taskAgent_cm62z_271 {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: capitalize;
}

._taskDescription_cm62z_279 {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

._taskActivity_cm62z_288 {
  min-width: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

._taskArrow_cm62z_298 {
  flex-shrink: 0;
  color: var(--text-faint);
}

._toolBody_cm62z_303 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px 10px;
  border-top: 1px solid var(--border);
}

._toolIo_cm62z_311 {
  max-height: 320px;
  margin: 0;
  overflow-x: auto;
  overflow-y: auto;
  padding: 8px 9px;
  border-radius: 7px;
  background: var(--bg-inset);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

._toolError_cm62z_327 {
  color: var(--danger);
}

._ok_cm62z_331 {
  color: var(--ok);
}

._bad_cm62z_335 {
  color: var(--danger);
}

._spinner_cm62z_339 {
  width: 11px;
  height: 11px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: _spin_cm62z_339 0.8s linear infinite;
}

@keyframes _spin_cm62z_339 {
  to {
    transform: rotate(360deg);
  }
}

._reasoningBody_cm62z_354 {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px 11px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

@media (max-width: 700px) {
  ._userRow_cm62z_1 {
    margin-block: 22px;
    padding-left: 7%;
  }

  ._userMessage_cm62z_8 {
    max-width: 91%;
  }

  ._assistant_cm62z_72 {
    margin-block: 27px;
    padding-right: 0;
    gap: 12px;
  }

  ._userBubble_cm62z_16 {
    padding: 9px 13px;
    font-size: 15px;
  }

  ._tool_cm62z_135,
  ._reasoning_cm62z_136 {
    border-radius: 8px;
  }

  ._taskCard_cm62z_217 {
    padding: 8px 9px;
  }
}

/* ---- Claude-inspired activity polish ---- */

._tool_cm62z_135,
._reasoning_cm62z_136 {
  position: relative;
  margin: 14px 0;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 11px;
  background: color-mix(in srgb, var(--bg-inset) 72%, transparent);
  transition:
    border-color 120ms ease,
    background 120ms ease;
}

._tool_cm62z_135:hover,
._reasoning_cm62z_136:hover {
  border-color: var(--border);
  background: var(--bg-inset);
}

._tool_cm62z_135 summary,
._reasoning_cm62z_136 summary {
  min-height: 42px;
  padding: 10px 13px;
  gap: 8px;
}

._tool_cm62z_135 summary:hover,
._reasoning_cm62z_136 summary:hover {
  background: transparent;
}

._disclosure_cm62z_169 {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 140ms ease;
}

._tool_cm62z_135[open] ._disclosure_cm62z_169,
._reasoning_cm62z_136[open] ._disclosure_cm62z_169 {
  transform: rotate(90deg);
}

._toolName_cm62z_179 {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

._toolTitle_cm62z_186 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-muted);
}

._toolStatus_cm62z_197 {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-muted);
}

._toolChip_cm62z_205 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  margin: 9px 0;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 9px;
  background: var(--bg-inset);
}

._taskCard_cm62z_217 {
  margin: 14px 0;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 11px;
  background: color-mix(in srgb, var(--bg-inset) 72%, transparent);
  transition:
    border-color 120ms ease,
    background 120ms ease;
}

._taskCard_cm62z_217:hover {
  border-color: var(--border);
  background: var(--bg-inset);
}

._taskLink_cm62z_230 {
  border-radius: inherit;
  transition: background 120ms ease;
}

._taskLink_cm62z_230:hover {
  background: transparent;
}

._taskIcon_cm62z_248 {
  color: var(--text-muted);
}

._taskHeading_cm62z_264 {
  font-size: 12.5px;
  font-weight: 600;
}

._taskAgent_cm62z_271 {
  font-size: 11.5px;
  color: var(--text-muted);
}

._taskDescription_cm62z_279 {
  font-size: 12px;
  color: var(--text-muted);
}

._taskActivity_cm62z_288 {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
  font-size: 11.5px;
  color: var(--text-muted);
}

._taskArrow_cm62z_298 {
  color: var(--text-muted);
}

._toolBody_cm62z_303 {
  margin: 0 13px 13px;
  padding: 11px 12px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--border) 62%, transparent);
}

._toolIo_cm62z_311 {
  font-size: 11.5px;
  line-height: 1.55;
}

._toolError_cm62z_327 {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12px;
}

._reasoning_cm62z_136 {
  border-style: dashed;
  background: transparent;
}

._reasoning_cm62z_136 summary {
  color: var(--text-muted);
}

._reasoningBody_cm62z_354 {
  margin: 0 14px 14px;
  padding-left: 21px;
  border-left: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

._reasoningBody_cm62z_354 p:first-child {
  margin-top: 0;
}

._reasoningBody_cm62z_354 p:last-child {
  margin-bottom: 0;
}

._aborted_cm62z_126 {
  margin: 12px 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--bg-inset);
  color: var(--text-muted);
  font-size: 12.5px;
}

._error_cm62z_116 {
  margin: 14px 0;
  padding: 11px 13px;
  border-radius: 9px;
  background: var(--bg-inset);
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 600px) {
  ._tool_cm62z_135,
  ._reasoning_cm62z_136,
  ._taskCard_cm62z_217 {
    margin: 10px 0;
    border-radius: 9px;
  }

  ._tool_cm62z_135 summary,
  ._reasoning_cm62z_136 summary {
    min-height: 40px;
    padding: 9px 11px;
  }

  ._toolBody_cm62z_303 {
    margin: 0 10px 10px;
  }

  ._reasoningBody_cm62z_354 {
    margin: 0 10px 11px;
    padding-left: 16px;
  }

  ._toolTitle_cm62z_186 {
    max-width: 42vw;
  }
}


/* /src/components/Markdown.module.css */
._markdown_32erj_1 {
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

._markdown_32erj_1 > :first-child {
  margin-top: 0;
}

._markdown_32erj_1 > :last-child {
  margin-bottom: 0;
}

._markdown_32erj_1 p,
._markdown_32erj_1 ul,
._markdown_32erj_1 ol,
._markdown_32erj_1 blockquote,
._markdown_32erj_1 pre,
._markdown_32erj_1 table {
  margin-block: 0.75em;
}

._markdown_32erj_1 h1,
._markdown_32erj_1 h2,
._markdown_32erj_1 h3,
._markdown_32erj_1 h4 {
  margin-block: 1.2em 0.5em;
  line-height: 1.3;
}

._markdown_32erj_1 h1 {
  font-size: 1.35em;
}

._markdown_32erj_1 h2 {
  font-size: 1.2em;
}

._markdown_32erj_1 h3 {
  font-size: 1.05em;
}

._markdown_32erj_1 ul,
._markdown_32erj_1 ol {
  padding-inline-start: 1.4em;
}

._markdown_32erj_1 li + li {
  margin-top: 0.25em;
}

._markdown_32erj_1 code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-inset);
  border-radius: 4px;
  padding: 0.15em 0.35em;
}

._markdown_32erj_1 pre {
  background: light-dark(#1e1e1e, #111111);
  color: #e8e8e6;
  border-radius: var(--radius-m);
  padding: 12px 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

._markdown_32erj_1 pre code {
  background: none;
  padding: 0;
  font-size: 12.5px;
  line-height: 1.5;
}

._markdown_32erj_1 blockquote {
  border-left: 3px solid var(--border-strong);
  padding-left: 12px;
  color: var(--text-muted);
}

._markdown_32erj_1 a {
  color: var(--accent);
}

._markdown_32erj_1 table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

._markdown_32erj_1 th,
._markdown_32erj_1 td {
  border: 1px solid var(--border);
  padding: 6px 10px;
  font-size: 0.92em;
}

._markdown_32erj_1 th {
  background: var(--bg-inset);
  text-align: left;
}

._markdown_32erj_1 hr {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: 1.2em;
}

._markdown_32erj_1 img {
  border-radius: var(--radius-s);
}
