.home-shell {
  --home-bg: oklch(0.105 0.006 155);
  --home-sidebar: oklch(0.135 0.008 150);
  --home-surface: oklch(0.165 0.009 150);
  --home-surface-raised: oklch(0.205 0.014 150);
  --home-line: oklch(0.31 0.015 150);
  position: fixed;
  inset: 0;
  z-index: var(--z-home);
  display: flex;
  min-width: 320px;
  background: var(--home-bg);
  color: var(--ink);
}

.home-shell[hidden] {
  display: none;
}

.home-shell button,
.home-shell input {
  font-family: inherit;
}

.home-sidebar {
  width: 232px;
  flex: 0 0 232px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 14px 16px;
  background: var(--home-sidebar);
  border-right: 1px solid var(--home-line);
}

.home-brand {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.home-brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--primary);
}

.home-brand-mark svg {
  width: 19px;
  height: 19px;
}

.home-new-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px 5px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  color: oklch(0.14 0.03 145);
  background: var(--primary);
  font-size: 14px;
  font-weight: 750;
  transition: background 160ms ease-out, transform 160ms ease-out;
}

.home-new-button:hover {
  background: oklch(0.73 0.16 145);
}

.home-new-button:active {
  transform: translateY(1px);
}

.home-new-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.home-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.home-nav button,
.home-sidebar-footer > button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: background 160ms ease-out, color 160ms ease-out;
}

.home-nav button:hover,
.home-sidebar-footer > button:hover {
  color: var(--ink);
  background: var(--surface-hover);
}

.home-nav button.active {
  color: var(--ink);
  background: var(--home-surface-raised);
}

.home-nav button.active svg {
  color: var(--primary);
}

.home-nav button svg,
.home-sidebar-footer > button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.home-nav button span {
  flex: 1;
}

.home-nav button em {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-hover);
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.home-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 9px;
}

.home-demo-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
}

.home-demo-note > span {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--primary);
  background: oklch(0.18 0.035 145);
}

.home-demo-note p {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}

.home-demo-note strong {
  color: var(--ink);
  font-size: 11px;
}

.home-demo-note small {
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.45;
}

.home-main {
  min-width: 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-color: var(--line-strong) transparent;
  background:
    radial-gradient(circle at 68% -18%, oklch(0.28 0.055 160 / 0.22), transparent 34%),
    var(--home-bg);
}

.home-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  background: oklch(0.11 0.007 150 / 0.9);
  border-bottom: 1px solid var(--home-line);
  backdrop-filter: blur(10px);
}

.home-topbar-spacer {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 1px;
}

.home-topbar-spacer strong {
  color: var(--ink);
  font-size: 12px;
}

.home-topbar-spacer small {
  color: var(--muted);
  font-size: 9px;
}

.home-mobile-menu {
  display: none;
}

.home-utility {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  background: var(--home-surface-raised);
  font-size: 12px;
  font-weight: 650;
}

.home-utility:hover {
  color: var(--ink);
  background: var(--surface-hover);
}

.home-utility svg,
.home-credit svg {
  width: 14px;
  height: 14px;
}

.home-credit {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  background: var(--home-surface-raised);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.home-credit svg {
  color: var(--amber);
}

.home-avatar {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--blue-soft);
  font-size: 10px;
  font-weight: 800;
}

.home-content {
  width: min(1360px, calc(100% - 56px));
  margin: 0 auto;
  padding: 28px 0 32px;
}

.home-hero {
  min-height: 292px;
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(460px, 1.1fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(115deg, oklch(0.245 0.04 150), oklch(0.19 0.027 170) 48%, oklch(0.165 0.026 235));
  position: relative;
  box-shadow: 0 6px 14px oklch(0 0 0 / 0.28);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, oklch(0.26 0.04 145 / 0.7), transparent 60%);
  pointer-events: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -90px;
  top: -155px;
  border-radius: 50%;
  background: oklch(0.68 0.13 240 / 0.13);
  filter: blur(2px);
  pointer-events: none;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 40px 20px 40px 44px;
}

.home-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  color: oklch(0.84 0.15 145);
  background: oklch(0.2 0.055 145 / 0.82);
  font-size: 11px;
  font-weight: 700;
}

.home-hero-tag svg {
  width: 13px;
  height: 13px;
}

.home-hero h1 {
  max-width: 620px;
  margin: 16px 0 12px;
  color: var(--ink);
  font-size: 40px;
  line-height: 1.14;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.home-hero p {
  max-width: 55ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.72;
  text-wrap: pretty;
}

.home-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 15px;
}

.home-hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: oklch(0.88 0.02 150);
  font-size: 11px;
  font-weight: 650;
}

.home-hero-points svg {
  width: 13px;
  height: 13px;
  color: var(--primary);
  stroke-width: 2.2;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.home-primary-action,
.home-secondary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 750;
  transition: background 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out;
}

.home-primary-action {
  border: 0;
  color: oklch(0.14 0.03 145);
  background: var(--primary);
}

.home-primary-action:hover {
  background: oklch(0.73 0.16 145);
}

.home-secondary-action {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: oklch(0.16 0.012 150 / 0.78);
}

.home-secondary-action:hover {
  border-color: var(--muted);
  background: var(--surface-hover);
}

.home-primary-action:active,
.home-secondary-action:active {
  transform: translateY(1px);
}

.home-primary-action svg,
.home-secondary-action svg {
  width: 15px;
  height: 15px;
}

.home-hero-visual {
  min-height: 292px;
  position: relative;
  overflow: hidden;
}

.home-hero-visual::before {
  content: "";
  position: absolute;
  inset: 26px 22px;
  border: 1px solid oklch(0.63 0.055 170 / 0.34);
  border-radius: var(--radius-md);
  background: oklch(0.12 0.015 165 / 0.46);
}

.home-flow-caption {
  position: absolute;
  z-index: 2;
  left: 42px;
  top: 38px;
  display: grid;
  gap: 2px;
}

.home-flow-caption b {
  color: var(--ink);
  font-size: 11px;
}

.home-flow-caption small {
  color: var(--muted);
  font-size: 9px;
}

.home-flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.home-flow-lines path {
  fill: none;
  stroke: oklch(0.69 0.11 155 / 0.72);
  stroke-width: 1.35;
  stroke-dasharray: 5 5;
}

.home-flow-node,
.home-flow-center {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  z-index: 2;
  transition: border-color 180ms ease-out, background 180ms ease-out, transform 180ms ease-out;
}

.home-flow-node {
  min-width: 98px;
  height: 44px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: oklch(0.145 0.014 165 / 0.94);
  font-size: 12px;
  font-weight: 650;
}

.home-flow-node svg {
  width: 14px;
  height: 14px;
}

.home-flow-node.text { left: 5%; top: 26%; border-color: oklch(0.58 0.08 305); }
.home-flow-node.image { left: 5%; bottom: 17%; border-color: oklch(0.58 0.08 240); }
.home-flow-node.video { right: 5%; top: 24%; border-color: oklch(0.58 0.09 28); }
.home-flow-node.audio { right: 5%; bottom: 15%; border-color: oklch(0.64 0.09 85); }
.home-flow-node.text svg { color: var(--violet); }
.home-flow-node.image svg { color: var(--blue); }
.home-flow-node.video svg { color: var(--coral); }
.home-flow-node.audio svg { color: var(--amber); }

.home-hero:hover .home-flow-node {
  transform: translateY(-2px);
  background: oklch(0.19 0.02 165);
}

.home-flow-center {
  left: 50%;
  top: 50%;
  width: 138px;
  height: 76px;
  transform: translate(-50%, -50%);
  border: 0;
  color: var(--white);
  background: oklch(0.59 0.17 145);
  box-shadow: 0 5px 12px oklch(0.05 0.04 145 / 0.42);
  pointer-events: none;
}

.home-flow-center svg {
  width: 22px;
  height: 22px;
}

.home-flow-center strong {
  font-size: 12px;
}

.home-start-section,
.home-projects,
.home-gallery {
  scroll-margin-top: 74px;
  margin-top: 36px;
}

.home-section-heading {
  min-height: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding: 0 4px;
}

.home-section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.home-section-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.home-section-heading > button {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 32px;
  padding: 0 7px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
}

.home-section-heading > button:hover {
  color: var(--ink);
}

.home-section-heading > button svg {
  width: 13px;
  height: 13px;
}

.home-start-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(440px, 1fr);
  gap: 12px;
}

.home-create-panel {
  min-height: 174px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: linear-gradient(135deg, oklch(0.185 0.018 150), oklch(0.145 0.01 160));
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: border-color 180ms ease-out, background 180ms ease-out;
}

.home-create-panel::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 190px;
  height: 140px;
  border: 1px solid oklch(0.55 0.09 145 / 0.35);
  border-radius: 50%;
}

.home-create-panel:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, oklch(0.21 0.025 150), oklch(0.16 0.015 160));
}

.home-create-icon {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: oklch(0.14 0.03 145);
  background: var(--primary);
}

.home-create-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 2;
}

.home-create-panel > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.home-create-panel strong {
  font-size: 18px;
}

.home-create-panel small {
  color: var(--muted);
  font-size: 12px;
}

.home-create-arrow {
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: var(--muted);
  transition: transform 180ms ease-out, color 180ms ease-out;
}

.home-create-panel:hover .home-create-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

.home-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-feature-list button {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--ink);
  border: 1px solid transparent;
  background: var(--home-surface);
  text-align: left;
  transition: background 160ms ease-out;
}

.home-feature-list button:hover {
  border-color: var(--home-line);
  background: var(--home-surface-raised);
}

.home-feature-list button > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}

.home-feature-list button strong {
  font-size: 13px;
}

.home-feature-list button small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-feature-list button > svg {
  width: 13px;
  height: 13px;
  color: var(--faint);
}

.feature-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
}

.feature-icon svg {
  width: 16px;
  height: 16px;
}

.feature-icon.violet { color: var(--violet); background: var(--violet-soft); }
.feature-icon.coral { color: var(--coral); background: var(--coral-soft); }
.feature-icon.blue { color: var(--blue); background: var(--blue-soft); }
.feature-icon.green { color: var(--primary); background: var(--primary-soft); }

.home-project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-project-item {
  min-width: 0;
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 14px 9px 9px;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: transparent;
  text-align: left;
  transition: border-color 160ms ease-out, background 160ms ease-out;
}

.home-project-item:hover {
  border-color: var(--line-strong);
  background: var(--home-surface);
}

.home-project-preview {
  width: 98px;
  height: 68px;
  flex: 0 0 98px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--panel-raised);
}

.story-preview i,
.catalog-preview i {
  position: absolute;
  height: 12px;
  border-radius: 3px;
  background: oklch(0.34 0.02 145);
}

.story-preview i:nth-child(1) { left: 10px; top: 12px; width: 26px; }
.story-preview i:nth-child(2) { right: 9px; top: 11px; width: 27px; }
.story-preview i:nth-child(3) { right: 9px; bottom: 10px; width: 27px; }
.story-preview b { position: absolute; left: 34px; top: 18px; width: 32px; height: 30px; border: 1px dashed var(--primary); border-radius: 50%; }
.catalog-preview { display: grid; grid-template-columns: repeat(2, 27px); grid-template-rows: repeat(2, 18px); place-content: center; gap: 5px; }
.catalog-preview i { position: static; width: 27px; height: 18px; background: oklch(0.3 0.025 145); }

.home-project-meta {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 5px;
}

.home-project-meta strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-project-meta small {
  color: var(--muted);
  font-size: 11px;
}

.home-project-status {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--panel-raised);
  font-size: 9px;
  white-space: nowrap;
}

.home-project-item > svg {
  width: 14px;
  height: 14px;
  color: var(--faint);
}

.home-agent-starter {
  min-height: 106px;
  display: grid;
  grid-template-columns: auto minmax(210px, 0.8fr) minmax(360px, 1.2fr);
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(100deg, oklch(0.205 0.048 145), oklch(0.16 0.018 155) 54%, oklch(0.145 0.011 165));
}

.home-agent-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--primary);
  background: var(--primary-soft);
}

.home-agent-starter > div {
  display: grid;
  gap: 4px;
}

.home-agent-starter strong {
  font-size: 14px;
}

.home-agent-starter p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.home-agent-starter form {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 5px 4px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  border-color: oklch(0.42 0.035 150);
  background: oklch(0.11 0.008 150 / 0.88);
}

.home-agent-starter input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
}

.home-agent-starter input::placeholder,
.home-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.home-agent-starter form:focus-within {
  border-color: var(--primary);
}

.home-agent-starter form button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: oklch(0.14 0.03 145);
  background: var(--primary);
}

.home-agent-starter form button svg {
  width: 15px;
  height: 15px;
}

.gallery-heading {
  align-items: center;
}

.home-search {
  width: 230px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.home-search:focus-within {
  border-color: var(--primary);
}

.home-search svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.home-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 11px;
}

.home-gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 11px;
}

.home-gallery-tabs button {
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
}

.home-gallery-tabs button:hover {
  color: var(--ink);
  background: var(--panel);
}

.home-gallery-tabs button.active {
  color: var(--ink);
  background: var(--panel-raised);
}

.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.home-gallery-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 160px auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: transparent;
  text-align: left;
  transition: border-color 180ms ease-out, transform 180ms ease-out;
}

.home-gallery-card.wide {
  grid-column: span 2;
}

.home-gallery-card:hover {
  border-color: oklch(0.5 0.045 150);
  transform: translateY(-2px);
}

.home-gallery-card[hidden] {
  display: none;
}

.gallery-visual {
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: oklch(0.165 0.007 145);
}

.gallery-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 14px 14px 15px;
}

.gallery-copy strong {
  grid-column: 1;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-copy small {
  grid-column: 1;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-copy em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 4px 6px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--panel-raised);
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.gallery-visual.story i {
  position: absolute;
  z-index: 1;
  min-width: 62px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink-soft);
  background: var(--panel);
  font-size: 9px;
  font-style: normal;
}

.gallery-visual.story i:nth-child(1) { left: 8%; top: 20px; }
.gallery-visual.story i:nth-child(2) { left: 34%; top: 78px; }
.gallery-visual.story i:nth-child(3) { right: 27%; top: 22px; }
.gallery-visual.story i:nth-child(4) { right: 5%; top: 83px; }
.gallery-visual.story b { position: absolute; left: 14%; right: 10%; top: 52px; height: 34px; border-top: 1px dashed var(--primary); transform: rotate(3deg); }

.gallery-visual.character {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  padding: 20px;
}

.gallery-visual.character i {
  width: 26%;
  height: 85%;
  border-radius: 8px 8px 3px 3px;
  background: oklch(0.29 0.035 305);
  position: relative;
}

.gallery-visual.character i:nth-child(2) { height: 100%; background: oklch(0.34 0.05 305); }
.gallery-visual.character i::before { content: ""; position: absolute; left: 50%; top: 16%; width: 22px; height: 22px; border-radius: 50%; background: oklch(0.68 0.04 70); transform: translateX(-50%); }

.gallery-visual.commerce i {
  position: absolute;
  border-radius: 8px;
  background: oklch(0.25 0.035 28);
}

.gallery-visual.commerce i:nth-child(1) { left: 18px; top: 20px; width: 44%; height: 82px; }
.gallery-visual.commerce i:nth-child(2) { right: 18px; bottom: 18px; width: 38%; height: 70px; background: oklch(0.3 0.05 28); }
.gallery-visual.commerce b { position: absolute; left: 42%; top: 49%; width: 40px; height: 40px; border-radius: 50%; background: var(--coral); opacity: .75; }

.gallery-visual.music {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.gallery-visual.music i {
  width: 5px;
  border-radius: 999px;
  background: var(--blue);
}

.gallery-visual.music i:nth-child(1), .gallery-visual.music i:nth-child(7) { height: 26px; opacity: .5; }
.gallery-visual.music i:nth-child(2), .gallery-visual.music i:nth-child(6) { height: 54px; opacity: .7; }
.gallery-visual.music i:nth-child(3), .gallery-visual.music i:nth-child(5) { height: 82px; }
.gallery-visual.music i:nth-child(4) { height: 112px; background: var(--violet); }

.gallery-visual.catalog {
  display: grid;
  grid-template-columns: repeat(3, 78px);
  place-content: center;
  gap: 8px;
}

.gallery-visual.catalog i {
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--panel);
}

.gallery-visual.catalog i:nth-child(2),
.gallery-visual.catalog i:nth-child(5) {
  border-color: oklch(0.55 0.08 145);
}

.home-gallery-empty {
  margin: 20px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.home-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 18px 4px 0;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
}

@media (max-width: 1120px) {
  .home-sidebar {
    width: 198px;
    flex-basis: 198px;
  }

  .home-hero {
    grid-template-columns: 1fr 1fr;
  }

  .home-hero-copy {
    padding-left: 28px;
  }

  .home-start-layout {
    grid-template-columns: 1fr;
  }

  .home-create-panel {
    min-height: 126px;
  }

  .home-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .home-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 4;
    width: 232px;
    transform: translateX(-100%);
    transition: transform 200ms ease-out;
  }

  .home-shell.nav-open .home-sidebar {
    transform: translateX(0);
  }

  .home-shell.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 3;
    background: oklch(0 0 0 / .54);
  }

  .home-mobile-menu {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--ink);
    background: var(--panel-raised);
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-hero h1 {
    max-width: 16ch;
    font-size: 36px;
  }

  .home-hero-visual {
    min-height: 190px;
    border-top: 1px solid var(--line);
  }

  .home-project-list {
    grid-template-columns: 1fr;
  }

  .home-agent-starter {
    grid-template-columns: auto 1fr;
  }

  .home-agent-starter form {
    grid-column: 1 / -1;
  }

  .home-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .home-topbar {
    height: 64px;
    padding: 0 12px;
  }

  .home-mobile-menu,
  .home-utility,
  .home-avatar {
    width: 44px;
    height: 44px;
  }

  .home-credit {
    height: 44px;
  }

  .home-utility {
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .home-content {
    width: min(100% - 24px, 1400px);
    padding-top: 14px;
  }

  .home-hero-copy {
    padding: 28px 22px 26px;
  }

  .home-hero h1 {
    max-width: 14ch;
    margin-top: 14px;
    font-size: 30px;
    line-height: 1.2;
  }

  .home-hero p {
    font-size: 14px;
    line-height: 1.7;
  }

  .home-hero-points {
    gap: 7px 12px;
  }

  .home-hero-points span {
    font-size: 12px;
  }

  .home-hero-visual {
    min-height: 200px;
  }

  .home-hero-visual::before {
    inset: 16px 12px;
  }

  .home-flow-caption {
    left: 28px;
    top: 27px;
  }

  .home-flow-node {
    min-width: 74px;
    height: 36px;
    font-size: 9px;
  }

  .home-flow-center {
    width: 106px;
    height: 58px;
  }

  .home-section-heading h2 {
    font-size: 19px;
  }

  .home-section-heading p {
    font-size: 13px;
  }

  .home-feature-list {
    grid-template-columns: 1fr;
  }

  .home-create-panel {
    padding: 20px;
  }

  .home-create-panel strong {
    font-size: 16px;
  }

  .home-create-panel small,
  .home-feature-list button small,
  .home-project-meta small,
  .gallery-copy small {
    font-size: 12px;
  }

  .home-feature-list button strong,
  .home-project-meta strong,
  .gallery-copy strong {
    font-size: 14px;
  }

  .home-create-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .home-project-preview {
    width: 78px;
    flex-basis: 78px;
  }

  .home-project-status {
    display: none;
  }

  .home-agent-starter strong {
    font-size: 14px;
  }

  .home-agent-starter p,
  .home-agent-starter input {
    font-size: 12px;
  }

  .gallery-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .home-search {
    width: 100%;
    height: 44px;
  }

  .home-gallery-tabs button {
    min-height: 40px;
    font-size: 12px;
  }

  .home-gallery-grid {
    grid-template-columns: 1fr;
  }

  .home-gallery-card.wide {
    grid-column: span 1;
  }

  .home-footer {
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-shell *,
  .home-shell *::before,
  .home-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
