/* Owner: d-home */

:root {
  --home-copy: color-mix(in srgb, var(--text) 74%, var(--bg));
  --home-surface: color-mix(in srgb, var(--bg-panel) 94%, var(--bg));
}

.home {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(8px, 2.5vh, 28px) 0 0;
}

.thread:has(.home) {
  padding-bottom: 16px;
}

.thread:has(.home) .thread-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  justify-content: safe center;
  min-height: 100%;
  padding-bottom: 24px;
}

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-mark {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: 8px;
}

.home-orax-picture {
  display: block;
  margin-bottom: 12px;
}

.home-orax {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.home-title {
  margin: 0;
  color: var(--text);
  font-size: var(--text-h1);
  font-weight: 600;
  line-height: var(--leading-h1);
  letter-spacing: 0;
}

.home-invite {
  padding: 8px 12px;
  color: var(--home-copy);
  font: inherit;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

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

.home-invite:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.home-lead {
  max-width: 32rem;
  margin: var(--space-2) 0 0;
  color: var(--home-copy);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
}

.home-workspace {
  display: inline-flex;
  max-width: min(100%, 28rem);
  min-height: 2.25rem;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 12px 8px 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  background: var(--home-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: background 120ms ease, border-color 120ms ease;
}

.home-workspace:hover {
  background: var(--bg-hover);
  border-color: var(--border);
}

.home-workspace:focus-visible,
.home-suggestion:focus-visible,
.home-recent-row:focus-visible,
.sb-empty-action:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.home-workspace-icon,
.home-workspace-chevron,
.home-suggestion-icon,
.home-recent-icon,
.sb-empty-action-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.home-workspace-icon {
  color: var(--home-copy);
}

.home-workspace-name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-workspace-chevron {
  margin-left: 4px;
  color: var(--home-copy);
}

.home-workspace svg,
.home-suggestion svg,
.home-recent svg,
.sb-empty-action svg {
  display: block;
  stroke: currentColor;
  fill: none;
}

.home-suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(24px, 4vh, 36px);
}

.home-suggestion {
  display: flex;
  min-height: 5.5rem;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  color: var(--text);
  text-align: left;
  background: var(--home-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.home-suggestion:hover {
  background: var(--bg-hover);
  border-color: var(--border);
  transform: translateY(-1px);
}

.home-suggestion-icon {
  width: 1.875rem;
  height: 1.875rem;
  color: var(--home-copy);
  background: var(--bg-element);
  border-radius: 8px;
}

.home-suggestion-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}

.home-suggestion-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.home-suggestion-hint {
  color: var(--home-copy);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.home-recent {
  margin-top: clamp(24px, 4vh, 36px);
}

.app:not(.sidebar-collapsed) .home-recent {
  display: none;
}

.home-section-title {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

.home-recent-list {
  overflow: hidden;
  background: var(--home-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.home-recent-row {
  display: flex;
  width: 100%;
  min-height: 2.875rem;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 120ms ease;
}

.home-recent-row:last-child {
  border-bottom: 0;
}

.home-recent-row:hover {
  background: var(--bg-hover);
}

.home-recent-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--home-copy);
}

.home-recent-main {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: baseline;
  gap: 12px;
}

.home-recent-title {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-recent-workspace,
.home-recent-time {
  flex: 0 0 auto;
  color: var(--home-copy);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.home-recent-workspace {
  max-width: 9rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-recent-time {
  margin-left: auto;
  padding-left: 8px;
}

.home-recent-empty {
  padding: 16px;
  color: var(--home-copy);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  background: var(--home-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

/* Quiet first-paint placeholder: no false empty state while bootstrap loads. */
.home-skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: clamp(24px, 12vh, 120px) 0 0;
}

.home-skeleton .skeleton-hero-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.home-skeleton .skeleton-hero-title {
  width: min(18rem, 60%);
  height: 26px;
}

.home-skeleton .skeleton-hero-copy {
  width: min(26rem, 82%);
  height: 14px;
}

.home-skeleton .skeleton-hero-panel {
  width: min(100%, 46rem);
  height: clamp(120px, 28vh, 320px);
  margin-top: 10px;
  border-radius: 12px;
}

.sidebar .sb-empty.sb-empty-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 4px 4px 4px;
  padding: 12px;
  color: var(--home-copy);
  background: var(--home-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.sb-empty-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.sb-empty-copy {
  margin-top: 4px;
  color: var(--home-copy);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.sb-empty-action {
  display: inline-flex;
  min-height: 1.875rem;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-element);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: background 120ms ease, border-color 120ms ease;
}

.sb-empty-action:hover {
  background: var(--bg-hover);
  border-color: var(--border);
}

.sb-empty-action.primary {
  color: var(--text-muted);
  background: transparent;
  border-color: transparent;
}

.sb-empty-action.primary:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.sb-empty-action-icon {
  color: currentColor;
}

.workspace-picker-popup {
  width: min(21rem, calc(100vw - 1rem));
}

.workspace-picker-empty {
  padding: 8px 8px 12px;
  color: var(--home-copy);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.home-first-run {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 20px;
  padding: 16px;
  text-align: left;
  background: var(--home-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.home-first-run-icon {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-element);
  color: var(--home-copy);
}

.home-first-run-copy {
  min-width: 0;
  flex: 1;
}

.home-first-run-title {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.home-first-run-text {
  margin: 4px 0 0;
  color: var(--home-copy);
  font-size: 13px;
  line-height: 1.5;
}

.home-first-run-hint {
  margin: 8px 0 0;
  color: var(--warning, #D4D4D7);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.home-first-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.home-first-action-icon {
  display: inline-flex;
  flex: none;
}

.home-first-run-disclaimer {
  margin: 12px 0 0;
  color: var(--text-faint, var(--home-copy));
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 899px) {
  .home {
    max-width: 100%;
    padding-top: 8px;
  }
}

@media (max-width: 700px) {
  .home-suggestions {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-recent-main {
    flex-direction: column;
    gap: 0;
  }
}

/* VU1: one calm prompt, no starter grid, no nested empty-state cards. */
.home {
  max-width: calc(var(--message-max-width) + var(--space-8) * 2);
  padding: var(--space-8) 0 0;
}

.home-hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  text-align: center;
}

.home-mark {
  width: 32px;
  height: 32px;
  border-radius: 0;
}

.home-title {
  margin: 0;
  color: var(--text);
  font-size: var(--text-h1);
  font-weight: 600;
  line-height: var(--leading-h1);
  letter-spacing: 0;
}

.home-lead,
.home-suggestions,
.home-recent,
.home-workspace {
  display: none;
}

.home-disclaimer {
  margin: var(--space-4) 0 0;
  color: var(--text-faint);
  font-size: var(--text-small);
  line-height: var(--leading-small);
  text-align: center;
}

.home-intro { max-width: 40rem; margin: 20px auto 0; color: var(--text); font-size: 14px; line-height: 1.6; text-align: center; }

.home-first-run {
  gap: 12px;
  margin-top: 28px;
  padding: 16px 16px;
  background: var(--bg-element);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.home-first-run-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.home-first-run-title {
  font-size: 15px;
  font-weight: 500;
}

.home-first-run-text {
  color: var(--text-muted);
  font-size: 13px;
}

.home-first-run-hint {
  color: var(--text-faint);
  font-weight: 400;
}

.home-first-run-disclaimer {
  color: var(--text-faint);
  font-size: 12px;
}

.sidebar .sb-empty.sb-empty-card {
  margin: 0;
  padding: 8px 12px 8px;
  background: transparent;
  border: 0;
}

/* First-run setup: provider -> key -> folder -> first chat. */
.bot-onboarding {
  width: min(900px, 100%);
  margin: 0 auto;
  color: var(--text);
  text-align: center;
}

.first-run.home-first-run:has(.bot-onboarding:not([hidden])) {
  width: 100%;
  max-width: none;
  margin-top: 0;
  padding: 0;
  background: var(--bg);
  border: 0;
}

.bot-onboarding-hero {
  position: relative;
  display: grid;
  min-height: 260px;
  place-content: center;
  padding: 52px 96px 32px;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

.bot-onboarding-kicker {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.bot-onboarding-headline {
  max-width: 690px;
  margin: 0;
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: .98;
}

.bot-onboarding-mark {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #111;
  font-size: 17px;
  font-weight: 750;
  border: 1px solid color-mix(in srgb, #111 35%, transparent);
  border-radius: 48% 52% 44% 56% / 58% 43% 57% 42%;
  box-shadow: 0 12px 28px color-mix(in srgb, #000 16%, transparent);
  transform: rotate(-4deg);
}

.bot-onboarding-mark::after {
  content: '';
  position: absolute;
}
.bot-onboarding-eye { position:absolute; z-index:2; top:36%; width:8%; height:13%; background:#fff; border-radius:999px; }
.bot-onboarding-eye.eye-one { left:31%; }
.bot-onboarding-eye.eye-two { right:31%; }

.tone-coral { background: #ff7968; }
.tone-accent { background: var(--accent, #D4D4D7); }
.tone-violet { background: #ae83ff; }
.tone-mint { background: #69d8ae; }

.bot-onboarding-hero > .bot-onboarding-mark { position: absolute; }
.bot-onboarding-hero .mark-one { top: 24px; left: 8%; transform:rotate(-12deg); }
.bot-onboarding-hero .mark-two { top: 30px; right: 10%; transform:rotate(9deg); }
.bot-onboarding-hero .mark-three { bottom: 24px; left: 16%; transform:rotate(7deg); }
.bot-onboarding-hero .mark-four { right: 16%; bottom: 20px; transform:rotate(-8deg); }

.bot-onboarding-meet {
  padding: 22px 48px 38px;
  border-top: 1px solid var(--border-subtle);
}

.bot-onboarding-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: 620px;
  margin: 0 auto 14px;
}

.bot-onboarding-title { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.bot-onboarding-position { color: var(--text-muted); font: 12px/1 var(--mono); }
.bot-onboarding-carousel { display: grid; grid-template-columns: 38px minmax(0, 540px) 38px; align-items: center; justify-content: center; gap: 12px; }
.bot-onboarding-card-host { min-width: 0; }
.bot-onboarding-card { display: grid; min-height: 230px; place-items: center; padding: 28px; background: var(--bg-element); border: 1px solid var(--border-subtle); border-radius: 24px; box-shadow: 0 18px 50px color-mix(in srgb, #000 10%, transparent); }
.bot-onboarding-mark.is-large { position: relative; width: 84px; height: 84px; font-size: 28px; border-radius: 48% 52% 44% 56% / 58% 43% 57% 42%; box-shadow:0 18px 38px color-mix(in srgb,#000 18%,transparent); }
.bot-onboarding-name { margin: 16px 0 0; font-size: 23px; letter-spacing: -.025em; }
.bot-onboarding-role { margin: 7px 0 20px; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.bot-onboarding-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bot-onboarding-start { min-height:42px; padding-inline:20px; border-radius:999px; }
.bot-onboarding-create { background:transparent; border-color:transparent; }
.bot-onboarding-arrow { display: grid; width: 38px; height: 38px; place-items: center; color: var(--text); background: var(--bg-element); border: 1px solid var(--border-subtle); border-radius: 50%; cursor: pointer; }
.bot-onboarding-arrow:hover { border-color: var(--text-muted); }
.bot-onboarding-arrow:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.first-run {
  display: block;
  margin-top: 20px;
  padding: 18px;
  text-align: left;
  background: var(--bg-element);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.first-run-in-modal {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.first-run-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.first-run-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 2px;
  padding: 0;
  list-style: none;
}

.first-run-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.4;
}

.first-run-step-dot {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: none;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
}

.first-run-step.is-current {
  color: var(--text);
}

.first-run-step.is-current .first-run-step-dot {
  color: var(--btn-primary-fg);
  background: var(--btn-primary-bg);
  border-color: transparent;
}

.first-run-step.is-done .first-run-step-dot {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 40%, var(--border-subtle));
}

.first-run-title {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.first-run-title:focus {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 4px;
}

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

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

.first-run-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.first-run-label {
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
}

.first-run-select,
.first-run-input {
  max-width: 360px;
}

.first-run-key-link {
  width: max-content;
  color: var(--focus-ring);
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
}

.first-run-key-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.first-run-help-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  width: 100%;
}

.first-run-settings-link {
  padding: 0;
  color: var(--focus-ring);
  font: inherit;
  background: none;
  border: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.first-run-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  max-width: 520px;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.5;
}

.first-run-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.first-run-skip-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.first-run-action-icon {
  display: inline-flex;
  flex: none;
}

.first-run-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 520px;
  padding: 8px 10px;
  color: var(--text-2);
  font-size: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-s);
}

.first-run-summary-label {
  color: var(--text-muted);
}

.first-run-summary-value {
  color: var(--text);
  font-weight: 500;
}

.first-run-path {
  max-width: 520px;
  padding: 8px 10px;
  overflow-wrap: anywhere;
  color: var(--text-2);
  font: 12px/1.45 var(--mono);
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-s);
}

.first-run-loading {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.first-run-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.first-run-error-text {
  align-self: flex-start;
  text-align: left;
  white-space: normal;
}

/* d-native resets pills after this file loads. Keep the first-run error box
   explicit, using each theme's error tokens instead of inheriting that reset. */
:root[data-theme] .first-run .pill-bad {
  color: var(--error-fg, var(--error));
  background: color-mix(in srgb, var(--error) 12%, var(--bg-element));
  border: 1px solid color-mix(in srgb, var(--error) 24%, var(--border-subtle));
}

.first-run-secondary {
  flex: none;
}

/* The composer stays fixed outside .thread. While setup is open, scroll the
   home content inside the remaining thread space rather than clipping its
   action row behind the composer on short or narrow screens. */
.thread:has(.home > .first-run.home-first-run) {
  overflow: hidden;
}

.thread:has(.home > .first-run.home-first-run) .thread-inner {
  height: 100%;
  min-height: 0;
  justify-content: flex-start;
  padding-bottom: 16px;
}

.thread:has(.home > .first-run.home-first-run) .home {
  max-height: 100%;
  min-height: 0;
  padding-bottom: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 600px) {
  .bot-onboarding-hero { min-height: 230px; padding: 54px 42px 34px; }
  .bot-onboarding-headline { font-size: clamp(31px, 11vw, 48px); }
  .bot-onboarding-mark { width: 38px; height: 38px; border-radius: 13px; box-shadow: 2px 2px 0 #111; }
  .bot-onboarding-hero .mark-three { left: 7%; }
  .bot-onboarding-hero .mark-four { right: 7%; }
  .bot-onboarding-meet { padding: 20px 0 28px; }
  .bot-onboarding-carousel { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 6px; }
  .bot-onboarding-card { min-height: 250px; padding: 22px 14px; border-radius: 18px; }
  .bot-onboarding-heading-row { padding: 0 40px; }

  .first-run {
    padding: 14px;
  }

  .first-run-steps {
    gap: 6px 10px;
  }

  .first-run-step-label {
    display: none;
  }
}

/* Equal flexible space above and below centers the editor. When content
   exceeds the available height the entire welcome screen scrolls together. */
#threadView:has(.home-hero) {
  overflow-y: auto;
}
#threadView:has(.home-hero) > .thread {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1 0 0px;
  min-height: max-content;
  overflow: visible;
  padding-block: 0;
}
.thread-view:has(.home-hero) .thread-inner {
  min-height: 0;
  padding: var(--space-3) 0;
}
.thread-view:has(.home-hero) .home {
  padding-top: 0;
}
.thread-view:has(.home-hero) > .composer-wrap {
  flex: 0 0 auto;
}
/* Keep the list in the welcome screen's scroll flow. Above the centered
   editor it can extend past the scrollport's top, which cannot scroll back. */
#threadView:has(.home-hero) .composer > .slash-menu:not(.mention-menu) {
  position: static;
  max-height: min(240px, 35dvh);
}

.home-starter-ideas {
  display: none;
}

.bot-home-head { display:flex; align-items:center; justify-content:space-between; margin:28px 0 8px; }
.bot-home-heading { margin:0; color:var(--text); font-size:15px; font-weight:650; }
.bot-home-count { color:var(--text-faint); font-size:12px; }
.bot-home-list { overflow:hidden; background:var(--home-surface); border:1px solid var(--border-subtle); border-radius:20px; box-shadow:0 14px 40px color-mix(in srgb,#000 6%,transparent); }
.bot-home-row { display:grid; grid-template-columns:48px minmax(0,1fr) auto; gap:13px; align-items:center; width:100%; min-height:78px; padding:12px 16px; color:var(--text); text-align:left; background:transparent; border:0; border-bottom:1px solid var(--border-subtle); cursor:pointer; transition:background 120ms ease; }
.bot-home-row:last-child { border-bottom:0; }
.bot-home-row:hover { background:var(--bg-hover); }
.bot-home-row:focus-visible { position:relative; outline:2px solid var(--primary); outline-offset:-2px; }
.bot-home-marks { position:relative; display:block; width:44px; height:44px; }
.bot-home-mark { position:absolute; left:0; top:0; display:grid; place-items:center; width:44px; height:44px; color:var(--text); font-size:13px; font-weight:750; background:color-mix(in srgb,var(--bg-element) 72%,var(--primary)); border:1px solid color-mix(in srgb,var(--primary) 28%,var(--border)); border-radius:48% 52% 44% 56% / 58% 43% 57% 42%; }
.bot-home-marks.is-group .bot-home-mark { left:calc(var(--mark-index) * 9px); top:calc(var(--mark-index) * 3px); width:32px; height:32px; border:2px solid var(--home-surface); border-radius:10px; }
.bot-home-online { position:absolute; right:-2px; bottom:-2px; width:12px; height:12px; background:#24b36b; border:2px solid var(--home-surface); border-radius:50%; box-shadow:0 0 0 1px color-mix(in srgb,#24b36b 25%,transparent); }
.bot-home-copy { display:flex; min-width:0; flex-direction:column; gap:5px; }
.bot-home-name-line { display:flex; min-width:0; align-items:center; gap:7px; }
.bot-home-name { overflow:hidden; font-size:14px; font-weight:650; white-space:nowrap; text-overflow:ellipsis; }
.bot-home-role { flex:none; max-width:45%; overflow:hidden; padding:3px 8px; color:var(--text-muted); font-size:10px; font-weight:650; white-space:nowrap; text-overflow:ellipsis; background:var(--bg-element); border:1px solid var(--border-subtle); border-radius:999px; }
.bot-home-preview { overflow:hidden; color:var(--text-muted); font-size:13px; white-space:nowrap; text-overflow:ellipsis; }
.bot-home-time { align-self:start; padding-top:4px; color:var(--text-faint); font-size:11px; white-space:nowrap; }
.bot-home-empty { margin:0; padding:24px; color:var(--text-muted); font-size:13px; text-align:center; }

@media (max-width:600px) {
  .home:has(.bot-home-list) { padding-inline:4px; }
  .home-hero:has(+ .bot-home-head) .home-orax-picture { display:none; }
  .home-hero:has(+ .bot-home-head) { align-items:flex-start; text-align:left; }
  .bot-home-head { margin-top:20px; }
  .bot-home-list { border-inline:0; border-radius:10px; }
  .bot-home-row { grid-template-columns:44px minmax(0,1fr) auto; min-height:68px; padding-inline:10px; gap:10px; }
  .bot-home-role { max-width:38%; }
}
.thread-view:has(.home-hero) > .home-starter-ideas {
  display: flex;
  align-self: center;
  flex: 1 0 0px;
  min-height: max-content;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  align-items: flex-start;
  gap: var(--space-2);
  width: min(var(--thread-w), calc(100% - var(--chat-gutter) * 2));
}
.home-starter-ideas .btn {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
}
.composer-setup-line { font-size: 12px; margin: 6px 8px; }
