/* ============================================================
   Home view — vertical stack inside the entry main scroll
   ============================================================ */
.home-view {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
/* The hero block self-constrains to a readable column even though
   its parent now stretches to ~1440px so the plugin gallery can
   spread out. Recent projects + plugins-home keep full width. */
.home-view > .home-hero {
  align-self: center;
  width: 100%;
  max-width: 960px;
}

/* Hero — large centered prompt input */
.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 0 8px;
}
.home-hero__brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}
.home-hero__brand-mark {
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
}
.home-hero__brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.home-hero__brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-strong);
}
.home-hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  text-align: center;
}
.home-hero__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  text-align: center;
  max-width: 540px;
  line-height: 1.55;
}
.home-hero__subtitle kbd {
  font: inherit;
  font-size: 11.5px;
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg-subtle);
}
/* ---------- Output-type tab bar ----------
   Sits below the input card, Manus-style: the selected creation mode
   stays attached to the composer and unlocks prompt examples directly
   underneath. Secondary shortcuts collapse behind the trailing more
   button so they don't compete with the main creation types. */
.home-hero__type-tabs {
  width: 100%;
  max-width: 720px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin: -2px 0 0;
  padding: 0 12px;
}
.home-hero__type-tab {
  appearance: none;
  position: relative;
  justify-content: center;
  min-width: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-panel) 92%, var(--bg-subtle));
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 580;
  line-height: 1.3;
  letter-spacing: 0;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition:
    color 120ms ease,
    background-color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease;
}
.home-hero__type-tab:hover:not(:disabled) {
  color: var(--text-strong);
  border-color: var(--border-strong);
  background: var(--bg-panel);
  transform: translateY(-0.5px);
}
.home-hero__type-tab.is-active {
  background: var(--accent-tint);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  color: var(--accent);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--accent) 16%, transparent),
    var(--shadow-xs);
}
.home-hero:focus-within .home-hero__type-tab.is-active {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent),
    var(--shadow-xs);
}
.home-hero__type-tab.is-active:hover:not(:disabled) {
  background: var(--accent-tint);
  color: var(--accent);
}
.home-hero__type-tab.is-pending {
  opacity: 0.65;
}
.home-hero__type-tab:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.home-hero__type-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.home-hero__type-tab-icon {
  flex: 0 0 auto;
  opacity: 0.82;
}
.home-hero__type-tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-hero__type-tab--more {
  width: 34px;
  flex: 0 0 34px;
  padding: 7px;
}

/* Second-level sub-type rail — lighter/smaller than the primary type tabs
   so it reads as a child row, mirroring Manus's website sub-category pills. */
.home-hero__subtype-row {
  width: 100%;
  max-width: 720px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  margin: 6px 0 0;
  padding: 0 12px;
}
.home-hero__subtype-chip {
  appearance: none;
  position: relative;
  justify-content: center;
  min-width: 0;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 540;
  line-height: 1.3;
  cursor: pointer;
  transition:
    color 120ms ease,
    background-color 120ms ease,
    border-color 120ms ease,
    transform 120ms ease;
}
.home-hero__subtype-chip:hover:not(:disabled) {
  color: var(--text-strong);
  border-color: var(--border-strong);
  background: color-mix(in srgb, var(--bg-panel) 92%, var(--bg-subtle));
  transform: translateY(-0.5px);
}
.home-hero__subtype-chip.is-active {
  background: var(--accent-tint);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  color: var(--accent);
}
.home-hero__subtype-chip.is-active:hover:not(:disabled) {
  background: var(--accent-tint);
  color: var(--accent);
}
.home-hero__subtype-chip.is-pending {
  opacity: 0.65;
}
.home-hero__subtype-chip:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.home-hero__subtype-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.home-hero__subtype-chip-icon {
  flex: 0 0 auto;
  opacity: 0.8;
}
.home-hero__subtype-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-hero__shortcut-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.home-hero__shortcut-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  width: 210px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-panel) 98%, white);
  box-shadow: var(--shadow-lg);
}
.home-hero__shortcut-menu-item {
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}
.home-hero__shortcut-menu-item:hover:not(:disabled),
.home-hero__shortcut-menu-item:focus-visible {
  outline: none;
  border-color: var(--border-soft);
  background: var(--bg-subtle);
  color: var(--text-strong);
}
.home-hero__shortcut-menu-item:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}
.home-hero__shortcut-menu-item.is-active {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  background: var(--accent-tint);
  color: var(--accent);
}
.home-hero__shortcut-menu-item.is-pending {
  opacity: 0.72;
}
.home-hero__shortcut-menu-icon {
  flex: 0 0 auto;
  color: currentColor;
  opacity: 0.78;
}
.home-hero__shortcut-menu-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-hero__input-card {
  position: relative;
  --home-hero-prompt-max-height: 180px;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.home-hero__input-card:has(.inline-switcher__popover),
.home-hero__input-card:has(.session-mode-toggle__popover),
.home-hero__input-card:has(.home-hero__plugin-picker) {
  z-index: 1700;
  overflow: visible;
}
/* The mode toggle's description card (chat.css) anchors upward and is only
   shown on the home hero — it is `display:none` inside the chat composer.
   The home-hero toggle sits well down the composer, so the card grows up
   toward the page header; at its default 360px it crowds (and on smaller
   windows clips) the top chrome. Cap it shorter here so it always clears the
   header, and keep the inner scroll for the overflow. */
.home-hero__input-card .session-mode-toggle__popover-card {
  max-height: min(300px, calc(100vh - 120px));
}
.home-hero__input-card--compact-authoring {
  max-width: 640px;
  padding-block: 12px 10px;
}
.home-hero__input-card:focus-within {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: none;
}
.home-hero__input-card.is-drag-active {
  border-color: color-mix(in srgb, var(--accent) 56%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.home-hero__active {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  max-height: min(82px, 18vh);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  font-size: 11.5px;
}
.home-hero__active-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: min(240px, 100%);
  min-height: 24px;
  padding: 2px 5px 2px 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-panel) 86%, var(--accent-tint));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border-soft));
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
  line-height: 1;
  box-shadow: none;
}
.home-hero__active-chip--skill {
  background: color-mix(in srgb, var(--bg-subtle) 88%, var(--accent-tint));
  color: var(--text-strong);
}
.home-hero__active-chip--context {
  background: color-mix(in srgb, var(--bg-panel) 90%, var(--bg-subtle));
  color: var(--text);
  border-color: var(--border-soft);
}
.home-hero__active-chip--file {
  background: color-mix(in srgb, var(--bg-panel) 92%, var(--accent-tint));
}
.home-hero__active-file-group {
  display: contents;
}
.home-hero__active-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 18px;
}
.home-hero__active-meta {
  flex: 0 0 auto;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 18px;
}
.home-hero__active-chip-body {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.home-hero__active-chip-body:disabled {
  cursor: default;
}
.home-hero__active-chip-body:hover {
  color: var(--accent);
}
.home-hero__active-chip-body:disabled:hover {
  color: inherit;
}
.home-hero__active-file-body {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: inherit;
  font: inherit;
  line-height: 1;
}
.home-hero__active-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 8%, var(--bg-subtle));
  color: inherit;
}
.home-hero__active-thumb {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 5px;
  object-fit: cover;
  background: var(--bg-subtle);
}
.home-hero__active-clear {
  appearance: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.62;
}
.home-hero__active-clear svg {
  display: block;
}
.home-hero__active-clear:hover {
  opacity: 1;
  background: var(--red-bg);
  color: var(--red);
}
.home-hero__prompt-surface {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  border-radius: calc(var(--radius-lg) - 6px);
}
.home-hero__prompt-surface--with-inputs {
  padding: 0;
}
/* The homepage prompt now embeds the SAME Lexical editor as the project
   composer (composer-editable / composer-inline-mention live in chat.css),
   so mention chips render and vertically align identically across both
   surfaces. The hero card owns the border + background, so the editor
   itself stays transparent and borderless. */
.home-hero__prompt-editor {
  position: relative;
  min-width: 0;
}
.home-hero__lexical {
  width: 100%;
  min-width: 0;
}
.home-hero__lexical .composer-input-editor {
  min-height: 64px;
  max-height: var(--home-hero-prompt-max-height, 180px);
}
.home-hero__lexical .composer-editable {
  min-height: 64px;
  padding: 8px 4px;
}
.home-hero__lexical .composer-input-placeholder {
  top: 8px;
  left: 4px;
  color: var(--text-soft);
}
.home-hero__input-card .plugin-inputs-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-soft);
}
.home-hero__input-card .plugin-inputs-form__field {
  min-width: 0;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-panel);
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 42%, transparent);
}
.home-hero__input-card .plugin-inputs-form__field[data-filled='true'] {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  background: color-mix(in srgb, var(--accent-tint) 30%, var(--bg-panel));
}
.home-hero__input-card .plugin-inputs-form__label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-panel));
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 650;
}
.home-hero__input-card .plugin-inputs-form__required {
  color: var(--accent);
}
.home-hero__input-card .plugin-inputs-form__input {
  width: 100%;
  min-width: 0;
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
  background: var(--bg-panel);
  font-size: 13px;
}
.home-hero__input-card .plugin-inputs-form__input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: var(--accent);
}
.home-hero__input-card .plugin-inputs-form__input--textarea {
  min-height: 64px;
}
.home-hero__input-card .plugin-inputs-form__field[data-field-type='boolean'] {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.home-hero__input-card .plugin-inputs-form__field[data-field-type='boolean'] .plugin-inputs-form__input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.home-hero__input-card .plugin-inputs-form__file-shell {
  position: relative;
  display: block;
  min-width: 0;
}
.home-hero__input-card .plugin-inputs-form__input--file {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.home-hero__input-card .plugin-inputs-form__file-label {
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: var(--radius-sm, 6px);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-hero__input-card .plugin-inputs-form__file-shell:focus-within .plugin-inputs-form__file-label {
  outline: 2px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: var(--accent);
}
.home-hero__plugin-picker {
  position: absolute;
  left: 14px;
  right: 14px;
  top: calc(100% - 10px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  box-shadow: var(--shadow-lg, 0 14px 36px rgba(0, 0, 0, 0.14));
}
/* When hosted in the shared CaretFloatingLayer portal (position:fixed,
   width owned by the layer), the picker becomes a static, full-width
   panel anchored to the caret instead of the input card. */
.caret-floating-layer .home-hero__plugin-picker--floating {
  position: static;
  inset: auto;
  left: auto;
  right: auto;
  top: auto;
  width: 100%;
  max-height: var(--cfl-max-h, 60vh);
}
.home-hero__plugin-hover-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  margin-top: 4px;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg-subtle) 72%, var(--bg-panel));
}
.home-hero__plugin-hover-card strong {
  display: block;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-hero__plugin-hover-card p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.4;
}
.home-hero__plugin-hover-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.home-hero__plugin-hover-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: var(--text-faint);
  font-size: 11px;
}
.home-hero__plugin-hover-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-hero__plugin-hover-card button {
  appearance: none;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  color: var(--text);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
.home-hero__plugin-hover-card button:hover {
  border-color: var(--border-strong);
  color: var(--accent);
}
.home-hero__mention-tabs {
  display: flex;
  gap: 4px;
  padding: 2px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
}
.home-hero__mention-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius-sm) - 1px);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
.home-hero__mention-tab.is-active {
  border-color: var(--border);
  background: var(--bg-panel);
  color: var(--text-strong);
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(0, 0, 0, 0.05));
}
.home-hero__mention-tab span:last-child {
  color: var(--text-faint);
  font-size: 10.5px;
}
.home-hero__plugin-picker-empty {
  padding: 10px;
  color: var(--text-muted);
  font-size: 12px;
}
.home-hero__mention-section {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.home-hero__mention-section-label {
  padding: 5px 4px 2px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.home-hero__plugin-option {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.home-hero__plugin-option:hover,
.home-hero__plugin-option.is-active {
  border-color: var(--border-soft);
  background: var(--bg-subtle);
}
.home-hero__plugin-option:disabled {
  cursor: default;
  opacity: 0.62;
}
.home-hero__plugin-option-icon {
  flex: 0 0 auto;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.home-hero__plugin-option-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.home-hero__plugin-option-main span:first-child {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-hero__plugin-option-main span:last-child {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-hero__plugin-option-meta {
  flex: 0 0 auto;
  color: var(--text-faint);
  font-size: 11px;
}
.home-hero__input-foot {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 0;
  padding-top: 8px;
}
.home-hero__foot-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  overflow: visible;
}
.home-hero__foot-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.home-hero__execution-switcher {
  display: inline-flex;
  min-width: 0;
  flex: 0 1 auto;
}
.home-hero__execution-switcher .inline-switcher {
  min-width: 0;
  max-width: 48px;
}
.home-hero__execution-switcher .inline-switcher__chip {
  height: 30px;
  max-width: 48px;
  padding: 0 7px;
  gap: 4px;
  border-radius: var(--radius-sm);
}
.home-hero__foot-right .session-mode-toggle {
  height: 30px;
}
.home-hero__foot-right .session-mode-toggle__trigger {
  height: 30px;
  max-width: 120px;
  padding: 0 8px;
  gap: 6px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.home-hero__foot-right .session-mode-toggle__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-hero__execution-switcher .inline-switcher__popover {
  right: auto;
  left: 0;
  z-index: 1503;
}
.home-hero__execution-switcher .inline-switcher__agent-grid {
  grid-template-columns: 1fr;
}
.home-hero__tool {
  appearance: none;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 14px;
  transition:
    background-color 140ms cubic-bezier(0.23, 1, 0.32, 1),
    color 140ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 140ms cubic-bezier(0.23, 1, 0.32, 1);
}
.home-hero__tool:hover,
.home-hero__tool.is-active {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  color: var(--text);
}
.home-hero__tool-at {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
}
/* "+" menu: collapses attach + connectors/plugins/mcp into one trigger with an
   upward popup and right-side flyout submenus. */
.home-hero__plus-menu {
  position: relative;
  display: inline-flex;
}
.home-hero__plus-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 90;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 5px;
  border: 1px solid var(--border-strong, var(--border));
  border-radius: 12px;
  background: var(--bg-panel);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 10px 28px -10px rgba(0, 0, 0, 0.18);
}
.home-hero__plus-item {
  appearance: none;
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-strong);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms cubic-bezier(0.23, 1, 0.32, 1);
}
.home-hero__plus-item:hover,
.home-hero__plus-item:focus-visible {
  outline: none;
  background: var(--bg-subtle);
}
.home-hero__plus-item-icon {
  flex: 0 0 auto;
  opacity: 0.8;
}
.home-hero__plus-chevron {
  margin-left: auto;
  opacity: 0.55;
}
.home-hero__plus-submenu-row {
  position: relative;
}
.home-hero__plus-flyout {
  position: absolute;
  left: 100%;
  top: -5px;
  margin-left: 4px;
  z-index: 91;
  min-width: 220px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 5px;
  border: 1px solid var(--border-strong, var(--border));
  border-radius: 12px;
  background: var(--bg-panel);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 10px 28px -10px rgba(0, 0, 0, 0.18);
}
/* Invisible bridge so the cursor can cross the gap into the flyout without
   triggering the row's mouseleave. */
.home-hero__plus-flyout::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -8px;
  width: 8px;
}
.home-hero__plus-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  padding: 0 8px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
  color: var(--text-muted);
  flex: 0 0 auto;
}
.home-hero__plus-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
}
.home-hero__plus-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.home-hero__plus-divider {
  height: 1px;
  margin: 4px 6px;
  background: var(--border);
}
.home-hero__plus-empty {
  padding: 8px 9px;
  color: var(--text-muted);
  font-size: 12px;
}
.home-hero__working-dir-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.home-hero__working-dir {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  max-width: 180px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-panel);
  box-shadow: var(--shadow-xs);
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.home-hero__working-dir:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  color: var(--accent);
}
.home-hero__working-dir.picked {
  padding-right: 30px;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-panel));
  color: var(--text-strong);
}
.home-hero__working-dir span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-hero__working-dir-clear {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  opacity: 0;
  transition: color 120ms ease, opacity 120ms ease;
}
.home-hero__working-dir-wrap:hover .home-hero__working-dir-clear,
.home-hero__working-dir-clear:focus-visible {
  opacity: 0.8;
}
.home-hero__working-dir-clear:hover {
  color: var(--accent);
  opacity: 1;
}
.home-hero__working-dir-clear:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 22%, transparent);
  outline-offset: 2px;
}
.home-hero__active-type-chip {
  appearance: none;
  height: 32px;
  max-width: 220px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-panel);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  box-shadow: var(--shadow-xs);
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}
.home-hero__active-type-chip-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.home-hero__active-type-chip-close {
  flex: 0 0 auto;
  width: 0;
  opacity: 0;
  transform: translateX(-2px) scale(0.9);
  transition: opacity 120ms ease, transform 120ms ease, width 120ms ease;
}
.home-hero__active-type-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-hero__active-type-chip:hover,
.home-hero__active-type-chip:focus-visible {
  outline: none;
  border-color: var(--border-strong);
  background: var(--bg-subtle);
  color: var(--accent);
}
.home-hero__active-type-chip:hover .home-hero__active-type-chip-close,
.home-hero__active-type-chip:focus-visible .home-hero__active-type-chip-close {
  width: 12px;
  opacity: 1;
  transform: translateX(0) scale(1);
}
.home-hero__footer-options {
  display: contents;
}
.home-hero__footer-option {
  position: relative;
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 220px;
  min-width: 0;
  flex-shrink: 1;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  box-shadow: var(--shadow-xs);
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}
.home-hero__footer-option.is-open,
.home-hero__footer-option:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  color: var(--accent);
}
.home-hero__footer-option.is-open {
  z-index: 120;
}
.home-hero__footer-option > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.home-hero__footer-option input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  outline: none;
}
.home-hero__footer-option input {
  width: 100px;
}
.home-hero__footer-option--select {
  padding-right: 11px;
}
.home-hero__footer-option--select[data-field-name='designSystem'] {
  max-width: min(280px, 100%);
}
.home-hero__footer-option--select[data-field-name='fidelity'] {
  max-width: 210px;
}
.home-hero__footer-option--select[data-field-name='speakerNotes'] {
  max-width: 250px;
}
.home-hero__footer-select-trigger {
  appearance: none;
  height: 100%;
  border: 0;
  background: transparent;
  color: currentColor;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 190px;
  padding: 0;
}
.home-hero__footer-option--select[data-field-name='designSystem'] .home-hero__footer-select-trigger {
  max-width: 176px;
}
.home-hero__footer-option--select[data-field-name='fidelity'] .home-hero__footer-select-trigger {
  max-width: 158px;
}
.home-hero__footer-option--select[data-field-name='speakerNotes'] .home-hero__footer-select-trigger {
  max-width: 122px;
}
.home-hero__footer-select-trigger .home-hero__ds-option-preview {
  margin-right: 0;
}
.home-hero__footer-select-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-hero__footer-select-trigger svg {
  flex: 0 0 auto;
  color: currentColor;
}
.home-hero__footer-switch {
  appearance: none;
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-panel);
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  box-shadow: var(--shadow-xs);
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}
.home-hero__footer-switch:hover,
.home-hero__footer-switch:focus-visible {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  color: var(--accent);
  outline: none;
}
.home-hero__footer-switch.is-on {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  color: var(--text);
}
.home-hero__footer-switch i {
  position: relative;
  width: 34px;
  height: 20px;
  flex: 0 0 34px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 78%, var(--bg-subtle));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border-strong) 18%, transparent);
  transition: background-color 140ms cubic-bezier(0.23, 1, 0.32, 1);
}
.home-hero__footer-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1);
}
.home-hero__footer-switch.is-on i {
  background: var(--accent);
}
.home-hero__footer-switch.is-on i::after {
  transform: translateX(14px);
}
.home-hero__footer-select-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 7px);
  z-index: 140;
  min-width: max(180px, 100%);
  max-width: 460px;
  max-height: min(280px, calc(100vh - 220px));
  overflow: auto;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--bg-panel) 98%, var(--bg-subtle) 2%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16), 0 1px 2px rgba(15, 23, 42, 0.08);
  isolation: isolate;
}
.home-hero__footer-select-menu--searchable {
  width: 440px;
  padding: 10px;
}
.home-hero__footer-option--select[data-field-name='designSystem'] .home-hero__footer-select-menu {
  left: 0;
  bottom: calc(100% + 9px);
  width: min(340px, calc(100vw - 32px));
  max-width: min(340px, calc(100vw - 32px));
  max-height: min(280px, calc(100vh - 240px));
  padding: 7px;
  border-color: color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--bg-panel) 98%, white);
  box-shadow:
    0 16px 38px rgba(15, 23, 42, 0.14),
    0 2px 6px rgba(15, 23, 42, 0.08);
}
.home-hero__footer-select-search {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-bottom: 8px;
  background: color-mix(in srgb, var(--bg-panel) 98%, var(--bg-subtle) 2%);
}
.home-hero__footer-option--select[data-field-name='designSystem'] .home-hero__footer-select-search {
  margin: 0;
  padding: 0 0 6px;
  background: color-mix(in srgb, var(--bg-panel) 98%, white);
}
.home-hero__footer-select-search input {
  width: 100%;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: 10px;
  background: var(--bg-panel);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  outline: none;
  padding: 0 12px;
}
.home-hero__footer-option--select[data-field-name='designSystem'] .home-hero__footer-select-search input {
  height: 34px;
  border-color: color-mix(in srgb, var(--border) 74%, transparent);
  border-radius: 9px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 0 10px;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 70%, transparent),
    0 1px 2px rgba(15, 23, 42, 0.04);
}
.home-hero__footer-select-search input:focus {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
  background: var(--bg-panel);
}
.home-hero__footer-option--select[data-field-name='designSystem'] .home-hero__footer-select-search input:focus {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--accent) 10%, transparent),
    inset 0 1px 0 color-mix(in srgb, white 70%, transparent);
}
.home-hero__footer-select-count {
  padding: 12px 4px 4px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
}
.home-hero__footer-option--select[data-field-name='designSystem'] .home-hero__footer-select-count {
  padding: 7px 3px 0;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
}
.home-hero__footer-select-group + .home-hero__footer-select-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--border) 68%, transparent);
}
.home-hero__footer-option--select[data-field-name='designSystem'] .home-hero__footer-select-group + .home-hero__footer-select-group {
  margin-top: 6px;
  padding-top: 7px;
}
.home-hero__footer-select-group-label {
  padding: 7px 4px 6px;
  color: var(--text-faint);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.home-hero__footer-option--select[data-field-name='designSystem'] .home-hero__footer-select-group-label {
  padding: 3px 3px 5px;
  color: color-mix(in srgb, var(--text-muted) 82%, transparent);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.home-hero__footer-select-item {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 7px 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  text-align: left;
  transition:
    background-color 120ms ease,
    color 120ms ease;
}
.home-hero__footer-select-item > svg {
  flex: 0 0 auto;
  color: var(--text);
}
.home-hero__footer-select-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.home-hero__footer-select-description {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-hero__footer-option--select[data-field-name='designSystem'] .home-hero__footer-select-copy {
  gap: 2px;
}
.home-hero__footer-option--select[data-field-name='designSystem'] .home-hero__footer-select-copy > .home-hero__footer-select-label {
  font-size: 12.5px;
  font-weight: 760;
  color: currentColor;
}
.home-hero__footer-option--select[data-field-name='designSystem'] .home-hero__footer-select-description {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
}
.home-hero__footer-select-menu--searchable .home-hero__footer-select-item {
  min-height: 58px;
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 600;
}
.home-hero__footer-option--select[data-field-name='designSystem'] .home-hero__footer-select-item {
  grid-template-columns: 32px minmax(0, 1fr) minmax(54px, auto) 16px;
  gap: 8px;
  min-height: 42px;
  padding: 5px 8px;
  border-radius: 9px;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 720;
}
.home-hero__footer-select-meta {
  max-width: 92px;
  overflow: hidden;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  text-transform: lowercase;
  white-space: nowrap;
}
.home-hero__footer-option--select[data-field-name='designSystem'] .home-hero__footer-select-meta {
  max-width: 66px;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 720;
  letter-spacing: 0.02em;
}
.home-hero__ds-option-preview {
  width: 28px;
  height: 22px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-subtle);
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 44%, transparent);
}
.home-hero__footer-select-item .home-hero__ds-option-preview {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-radius: 9px;
}
.home-hero__footer-option--select[data-field-name='designSystem'] .home-hero__footer-select-item .home-hero__ds-option-preview,
.home-hero__footer-option--select[data-field-name='designSystem'] .home-hero__footer-select-item .home-hero__footer-option-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.home-hero__ds-option-preview--compact {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
}
.home-hero__ds-option-preview i {
  flex: 1 1 0;
  min-width: 0;
}
.home-hero__ds-option-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 2px;
  background: var(--bg-panel);
}
.home-hero__ds-option-preview b {
  align-self: center;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
}
.home-hero__ds-option-preview--compact b {
  font-size: 7px;
}
.home-hero__footer-option-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 44%, transparent);
}
.home-hero__footer-option-icon--compact {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: currentColor;
}
.home-hero__model-option-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 10%, var(--bg-panel));
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 44%, transparent);
}
.home-hero__model-option-icon img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.home-hero__model-option-icon--compact {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 8px;
}
.home-hero__model-option-icon--compact img {
  width: 12px;
  height: 12px;
}
.home-hero__model-option-icon--openai {
  color: #111827;
}
.home-hero__model-option-icon--dalle {
  color: #111827;
}
.home-hero__model-option-icon--seed {
  color: #3c8cff;
}
.home-hero__model-option-icon--sense {
  color: #2563eb;
}
.home-hero__model-option-icon--grok {
  color: #111827;
}
.home-hero__model-option-icon--google {
  color: #4285f4;
}
.home-hero__model-option-icon--router {
  color: #7c3aed;
}
.home-hero__model-option-icon--flux {
  color: #0f766e;
}
.home-hero__model-option-icon--elevenlabs {
  color: #111827;
}
.home-hero__model-option-icon--fishaudio {
  color: #7c6ee6;
}
.home-hero__model-option-icon--minimax {
  color: #e73562;
}
.home-hero__model-option-icon--suno {
  color: #111827;
}
.home-hero__model-option-icon--audio {
  color: #c05621;
}
.home-hero__model-option-icon--custom {
  color: var(--text-muted);
}
[data-theme="dark"] .home-hero__model-option-icon--openai img,
[data-theme="dark"] .home-hero__model-option-icon--dalle img,
[data-theme="dark"] .home-hero__model-option-icon--grok img,
[data-theme="dark"] .home-hero__model-option-icon--elevenlabs img,
[data-theme="dark"] .home-hero__model-option-icon--suno img {
  filter: invert(1) brightness(1.2);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .home-hero__model-option-icon--openai img,
  html:not([data-theme="light"]) .home-hero__model-option-icon--dalle img,
  html:not([data-theme="light"]) .home-hero__model-option-icon--grok img,
  html:not([data-theme="light"]) .home-hero__model-option-icon--elevenlabs img,
  html:not([data-theme="light"]) .home-hero__model-option-icon--suno img {
    filter: invert(1) brightness(1.2);
  }
}
.home-hero__ratio-option-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 9%, var(--bg-panel));
  color: var(--text-muted);
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 44%, transparent);
}
.home-hero__ratio-option-icon--compact {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-hero__ratio-option-icon i {
  display: block;
  border: 1.6px solid currentColor;
  border-radius: 2.5px;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.home-hero__ratio-option-icon--square {
  color: #6b7280;
}
.home-hero__ratio-option-icon--wide {
  color: #d06943;
}
.home-hero__ratio-option-icon--tall {
  color: #2563eb;
}
.home-hero__ratio-option-icon--standard {
  color: #0f766e;
}
.home-hero__ratio-option-icon--portrait {
  color: #7c3aed;
}
.home-hero__ratio-option-icon--custom {
  color: var(--text-muted);
}
.home-hero__footer-select-item:hover,
.home-hero__footer-select-item:focus-visible {
  background: color-mix(in srgb, var(--bg-subtle) 78%, var(--bg-panel));
  outline: none;
}
.home-hero__footer-option--select[data-field-name='designSystem'] .home-hero__footer-select-item:hover,
.home-hero__footer-option--select[data-field-name='designSystem'] .home-hero__footer-select-item:focus-visible {
  background: color-mix(in srgb, #eaf0f5 78%, var(--bg-panel));
}
.home-hero__footer-select-item.is-selected {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-subtle));
  color: var(--accent);
}
.home-hero__footer-option--select[data-field-name='designSystem'] .home-hero__footer-select-item.is-selected {
  background: color-mix(in srgb, var(--accent) 10%, #e7e1e3);
  color: var(--accent);
}
.home-hero__footer-option--select[data-field-name='designSystem'] .home-hero__footer-select-item.is-selected .home-hero__footer-select-description,
.home-hero__footer-option--select[data-field-name='designSystem'] .home-hero__footer-select-item.is-selected .home-hero__footer-select-meta {
  color: var(--text-muted);
}
.home-hero__footer-select-empty {
  padding: 14px 8px;
  color: var(--text-soft);
  font-size: 12px;
  text-align: center;
}
.home-hero__footer-option:focus-within {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
  color: var(--accent);
}
.home-hero__submit {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 64px;
  height: 32px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1;
  transition:
    background-color 140ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 140ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 140ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 140ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity 140ms cubic-bezier(0.23, 1, 0.32, 1);
}
.home-hero__submit:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-sm);
}
.home-hero__submit:active:not(:disabled) { transform: translateY(1px); box-shadow: var(--shadow-xs); }
.home-hero__submit:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
}
.home-hero__error {
  color: var(--red);
  font-size: 12.5px;
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  max-width: 720px;
  width: 100%;
}

.home-hero-confirm__backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 12, 10, 0.34);
  backdrop-filter: blur(8px);
}
.home-hero-confirm {
  width: min(420px, 100%);
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  box-shadow: var(--shadow-lg, 0 18px 50px rgba(0, 0, 0, 0.18));
}
.home-hero-confirm h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 16px;
  letter-spacing: 0;
}
.home-hero-confirm p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.home-hero-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.home-hero-confirm__secondary,
.home-hero-confirm__primary {
  appearance: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.home-hero-confirm__secondary {
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
}
.home-hero-confirm__primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
}
.home-hero-confirm__secondary:hover {
  border-color: var(--border-strong);
}
.home-hero-confirm__primary:hover {
  background: var(--accent-strong);
  color: white;
}

.home-hero__prompt-examples {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.home-hero__prompt-examples-title {
  padding: 0 2px;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.home-hero__prompt-examples-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.home-hero__prompt-example {
  appearance: none;
  min-width: 0;
  min-height: 112px;
  display: flex;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-panel);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}
.home-hero__prompt-example span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.home-hero__prompt-example:hover,
.home-hero__prompt-example:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  background: color-mix(in srgb, var(--accent-tint) 34%, var(--bg-panel));
  color: var(--text-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.home-hero__plugin-presets-wrap {
  max-width: min(880px, 100%);
}

.home-hero__plugin-presets {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 1px 2px 8px;
  scrollbar-width: thin;
}

.home-hero__plugin-preset {
  appearance: none;
  position: relative;
  flex: 0 0 248px;
  min-width: 0;
  display: grid;
  grid-template-rows: 150px minmax(0, auto);
  gap: 8px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-panel);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  scroll-snap-align: start;
  overflow: hidden;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

.home-hero__plugin-preset:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.home-hero__plugin-preset:not(:disabled):hover,
.home-hero__plugin-preset:not(:disabled):focus-visible,
.home-hero__plugin-preset.is-active {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  background: color-mix(in srgb, var(--accent-tint) 32%, var(--bg-panel));
  color: var(--text-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.home-hero__plugin-preset.is-pending {
  opacity: 0.8;
}

.home-hero__plugin-preset-preview {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-subtle);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.home-hero__plugin-preset-check {
  position: absolute;
  top: 7px;
  right: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg-panel);
  box-shadow: var(--shadow-sm);
}

.home-hero__plugin-preset-preview .plugins-home__preview,
.home-hero__plugin-preset-preview .plugins-home__media,
.home-hero__plugin-preset-preview .plugins-home__html,
.home-hero__plugin-preset-preview .plugins-home__text-surface {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.home-hero__plugin-preset-preview .plugins-home__html {
  padding: 0;
}

/* Replit-style preview: drop the faux browser chrome (dots + example.html)
   so the card is a clean full-bleed thumbnail + name. Scoped to the Home
   preset cards; the Community grid keeps its chrome. */
.home-hero__plugin-preset-preview .plugins-home__html-chrome {
  display: none;
}

.home-hero__plugin-preset-preview .plugins-home__html-iframe {
  transform: scale(0.172);
}

.home-hero__plugin-preset-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 12px 12px;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.2;
}

/* ------------------------------------------------------------
   Stage B of plugin-driven-flow-plan: Home intent rail.
   Two flex sub-groups ("create" outputs vs. lower starter shortcuts)
   separated by a hairline divider. The whole rail wraps cleanly
   onto multiple rows on narrow viewports — no horizontal scroll.
   Visual language matches the active-plugin chip inside the
   input card (pill, accent-tint when selected), and the shortcut
   variant uses the page's --bg-subtle surface so secondary
   intents recede without losing affordance.
   ------------------------------------------------------------ */
.home-hero__rail {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding: 4px 2px 0;
}
.home-hero__rail--shortcuts {
  padding-top: 0;
}
.home-hero__rail-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.home-hero__rail-divider {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: var(--border-soft);
  border-radius: 1px;
  flex: 0 0 auto;
}
.home-hero__rail-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color 140ms ease, background-color 140ms ease,
    color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.home-hero__rail-chip--migrate {
  background: var(--bg-subtle);
  border-color: color-mix(in srgb, var(--border) 70%, transparent);
}
.home-hero__rail-chip-icon {
  flex: 0 0 auto;
  color: currentColor;
  opacity: 0.82;
  transition: opacity 140ms ease;
}
.home-hero__rail-chip-label {
  white-space: nowrap;
}
.home-hero__rail-chip:hover:not(:disabled) {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--bg-panel);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.home-hero__rail-chip:hover:not(:disabled) .home-hero__rail-chip-icon {
  opacity: 1;
}
.home-hero__rail-chip:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.home-hero__rail-chip:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
  transform: none;
}
.home-hero__rail-chip.is-active {
  background: var(--accent-tint);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  color: var(--accent);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--accent) 18%, transparent),
    var(--shadow-xs);
  transform: translateY(-1px);
}
.home-hero__rail-chip.is-active .home-hero__rail-chip-icon {
  opacity: 1;
}
.home-hero__rail-chip.is-pending {
  opacity: 0.75;
  box-shadow: none;
}

@media (max-width: 900px) {
  .home-hero__title {
    font-size: 24px;
  }
  .home-hero__prompt-examples-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-hero__plugin-preset {
    flex-basis: 224px;
    grid-template-rows: 136px minmax(0, auto);
  }
  .home-hero__plugin-preset-preview .plugins-home__html-iframe {
    transform: scale(0.146);
  }
  /* Plan §B follow-up: chip rail must never require horizontal
     scrolling. The base rule already wraps; on narrow viewports
     the two groups stack onto separate rows, so the divider
     becomes visual noise — hide it. */
  .home-hero__rail-divider {
    display: none;
  }
  .home-hero__rail {
    gap: 6px 8px;
  }
  .home-hero__foot-left {
    flex-wrap: wrap;
  }
  .home-hero__footer-options {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
  }
  .home-hero__execution-switcher {
    flex-basis: auto;
  }
  .home-hero__execution-switcher .inline-switcher,
  .home-hero__execution-switcher .inline-switcher__chip {
    width: auto;
    max-width: 48px;
  }
}

@media (max-width: 560px) {
  .home-hero__type-tabs {
    justify-content: flex-start;
    padding: 0;
  }
  .home-hero__prompt-examples-grid {
    grid-template-columns: 1fr;
  }
  .home-hero__plugin-preset {
    flex-basis: 208px;
    grid-template-rows: 126px minmax(0, auto);
  }
  .home-hero__plugin-preset-preview .plugins-home__html-iframe {
    transform: scale(0.134);
  }
}
