:root {
  color-scheme: dark;
  --background: #131313;
  --surface: #1c1c1c;
  --surface-low: #1b1b1b;
  --surface-mid: #20201f;
  --surface-high: #2a2a2a;
  --surface-highest: #353535;
  --text: #e5e2e1;
  --text-soft: rgba(229, 226, 225, 0.68);
  --text-faint: rgba(229, 226, 225, 0.42);
  --outline: rgba(255, 255, 255, 0.1);
  --outline-strong: rgba(255, 185, 95, 0.36);
  --amber: #f59e0b;
  --amber-soft: #ffc174;
  --amber-dark: #472a00;
  --muted-amber: #d8c3ad;
  --panel: rgba(28, 28, 28, 0.68);
  --panel-strong: rgba(28, 28, 28, 0.9);
  --glow: 0 0 24px rgba(245, 158, 11, 0.18);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --side-width: 288px;
  --top-height: 72px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 86% 8%, rgba(245, 158, 11, 0.18), transparent 360px),
    radial-gradient(circle at 34% 0%, rgba(255, 193, 116, 0.08), transparent 320px),
    var(--background);
  color: var(--text);
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  width: var(--side-width);
  flex-direction: column;
  border-right: 1px solid var(--outline);
  background: rgba(28, 28, 28, 0.92);
  backdrop-filter: blur(24px);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  background: var(--surface-high);
  color: var(--amber);
  box-shadow: var(--glow);
  font-size: 22px;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  color: var(--amber);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-copy small {
  color: var(--text-soft);
  font-size: 13px;
}

.main-nav,
.side-footer {
  display: grid;
  gap: 8px;
  padding: 20px 14px;
}

.main-nav {
  flex: 1;
  overflow: auto;
  border-top: 1px solid var(--outline);
}

.main-nav a,
.side-footer a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  border-radius: var(--radius);
  color: var(--text-faint);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 650;
  padding: 0 18px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.main-nav a span,
.side-footer a span {
  display: grid;
  width: 22px;
  place-items: center;
  color: inherit;
  font-size: 21px;
}

.main-nav a:hover,
.side-footer a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.main-nav a.active {
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(245, 158, 11, 0.13);
  color: var(--amber);
}

.side-footer {
  border-top: 1px solid var(--outline);
}

.upgrade-button {
  margin-top: 10px;
  border: 1px solid var(--outline);
  background: rgba(255, 255, 255, 0.04);
  color: var(--amber) !important;
}

.site-header {
  position: fixed;
  inset: 0 0 auto var(--side-width);
  z-index: 35;
  display: flex;
  height: var(--top-height);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--outline);
  background: rgba(28, 28, 28, 0.78);
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.09);
  padding: 0 28px;
  backdrop-filter: blur(22px);
}

.global-search {
  position: relative;
  display: flex;
  width: min(360px, 100%);
  align-items: center;
}

.global-search span {
  position: absolute;
  left: 16px;
  color: var(--text-faint);
  font-size: 24px;
  pointer-events: none;
}

.global-search input {
  min-height: 44px;
  border-radius: 999px;
  padding-left: 48px;
}

.header-actions,
.cta-actions,
.chip-row,
.metric-row,
.card-actions,
.segmented,
.generator-heading,
.section-heading.with-action,
.template-detail-hero {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions {
  justify-content: flex-end;
}

.round-icon,
.user-dot {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}

.user-dot {
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
}

.ghost-link,
.primary-button,
.secondary-button,
.small-button,
.upload-sim,
.segmented button,
.chip-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  padding: 0 14px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.primary-button,
.small-button.dark {
  border-color: rgba(255, 193, 116, 0.35);
  background: var(--amber);
  color: var(--amber-dark);
  box-shadow: var(--glow);
}

.header-create {
  border-radius: 999px;
  min-height: 42px;
  padding-inline: 22px;
}

.primary-button:hover,
.small-button.dark:hover {
  background: var(--amber-soft);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.28);
}

.ghost-link:hover,
.secondary-button:hover,
.small-button:hover,
.upload-sim:hover,
.segmented button:hover,
.chip-row button:hover,
.round-icon:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.site-main {
  display: grid;
  gap: 32px;
  min-height: 100vh;
  margin-left: var(--side-width);
  padding: calc(var(--top-height) + 32px) 32px 32px;
}

.hero-workbench,
.model-layout,
.template-workspace,
.workspace-page,
.api-layout,
.workspace-split {
  display: grid;
  gap: 28px;
}

.hero-workbench {
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1fr);
  min-height: calc(100vh - var(--top-height) - 64px);
}

.hero-copy,
.page-hero,
.content-band,
.workflow-band,
.cta-band,
.generator-card,
.side-panel,
.workspace-rail,
.workspace-content,
.api-docs,
.api-nav,
.workspace-tabs,
.prompt-list-block,
.template-flow {
  border: 1px solid var(--outline);
  border-radius: var(--radius-xl);
  background: var(--panel);
  backdrop-filter: blur(20px);
}

.hero-copy,
.page-hero,
.content-band,
.workflow-band,
.cta-band {
  padding: clamp(24px, 4vw, 52px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.1), transparent 44%),
    rgba(28, 28, 28, 0.62);
}

.hero-copy h1,
.page-hero h1 {
  max-width: 980px;
  margin: 0;
  color: #fff;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.page-hero.compact h1 {
  font-size: clamp(38px, 5vw, 66px);
}

.lead {
  max-width: 780px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.hero-stats span,
.metric-row span,
.tag,
.ratio-pill,
.template-number,
.result-line,
.quota {
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 13px;
  padding: 7px 10px;
}

.hero-stats strong {
  color: var(--amber);
}

.generator-card {
  align-self: stretch;
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 26px;
}

.generator-heading {
  justify-content: space-between;
  align-items: flex-start;
}

.generator-heading h2,
.section-heading h2,
.side-panel h2,
.workspace-content h1,
.workspace-rail h2,
.api-block h2,
.template-flow h2,
.prompt-list-block h2 {
  margin: 0;
  color: #fff;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.quota {
  color: var(--amber);
  font-weight: 750;
  white-space: nowrap;
}

.prompt-input,
.search-field,
.select-field {
  display: grid;
  gap: 8px;
}

.prompt-input span,
.search-field span,
.select-field span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: rgba(19, 19, 19, 0.58);
  color: var(--text);
  outline: none;
}

textarea:focus,
input:focus,
select:focus {
  border-color: rgba(245, 158, 11, 0.56);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35);
}

textarea {
  min-height: 260px;
  resize: vertical;
  padding: 18px;
  line-height: 1.65;
}

input,
select {
  min-height: 48px;
  padding: 0 16px;
}

select {
  color-scheme: dark;
}

.counter {
  color: var(--text-faint);
  font-size: 12px;
  text-align: right;
}

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

.reference-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  font-size: 13px;
}

.primary-button.wide {
  width: 100%;
}

.notice {
  margin: 0;
  color: var(--amber);
  font-size: 14px;
  font-weight: 720;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.section-heading p {
  max-width: 780px;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.section-heading.with-action,
.template-detail-hero {
  justify-content: space-between;
  align-items: flex-start;
}

.inspiration-grid,
.template-grid,
.feature-grid,
.usecase-grid,
.pricing-grid,
.workflow-grid {
  display: grid;
  gap: 18px;
}

.inspiration-grid,
.template-grid,
.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid.three,
.usecase-grid,
.pricing-grid,
.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inspiration-card,
.template-card,
.feature-card,
.workflow-card,
.usecase-card,
.prompt-card,
.prompt-row,
.task-card,
.plan-card,
.api-block,
.empty-state,
.activity-row,
.faq-item {
  border: 1px solid var(--outline);
  border-radius: var(--radius-xl);
  background: rgba(27, 27, 27, 0.72);
}

.inspiration-card,
.template-card {
  position: relative;
  display: grid;
  min-height: 360px;
  overflow: hidden;
  padding: 0;
}

.feature-card,
.workflow-card,
.usecase-card,
.prompt-card,
.task-card,
.plan-card,
.api-block,
.empty-state {
  padding: 18px;
}

.card-body,
.template-card-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--outline);
  background: rgba(14, 14, 14, 0.68);
  padding: 16px;
  backdrop-filter: blur(18px);
  transform: translateY(calc(100% - 82px));
  transition: transform 0.25s ease;
}

.inspiration-card:hover .card-body,
.template-card:hover .template-card-body {
  transform: translateY(0);
}

.card-body h3,
.template-card h3,
.feature-card h3,
.workflow-card h3,
.usecase-card h3,
.prompt-card h3,
.prompt-row h3,
.task-card h3,
.plan-card h2 {
  margin: 0;
  color: #fff;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -0.01em;
  line-height: 1.22;
}

.card-body p,
.template-card p,
.feature-card p,
.workflow-card p,
.usecase-card p,
.prompt-card p,
.prompt-row p,
.task-card p,
.plan-card p,
.api-block p,
.empty-state p,
.faq-item p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.58;
}

.poster-visual {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 360px;
  align-content: end;
  gap: 10px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, 0.3), transparent 26%),
    radial-gradient(circle at 12% 80%, rgba(255, 193, 116, 0.28), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    var(--visual-color, #2a2a2a);
  color: #fff;
  padding: 20px;
}

.visual-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transform: scale(1.01);
  transition:
    opacity 0.25s ease,
    transform 0.35s ease;
}

.poster-visual:has(.visual-image) {
  background: #171717;
}

.poster-visual:has(.visual-image)::before {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.78)),
    radial-gradient(circle at 80% 18%, rgba(245, 158, 11, 0.26), transparent 36%);
}

.poster-visual:has(.visual-image)::after {
  display: none;
}

.inspiration-card:hover .visual-image,
.template-card:hover .visual-image {
  opacity: 1;
  transform: scale(1.06);
}

.poster-visual.large {
  width: min(420px, 100%);
  min-height: 430px;
  flex: none;
}

.poster-visual::before {
  content: "";
  position: absolute;
  inset: 28px 28px auto auto;
  width: 42%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.12);
}

.poster-visual::after {
  content: "";
  position: absolute;
  inset: auto auto 42px 22px;
  width: 42%;
  height: 25%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px 999px 24px 24px;
}

.poster-visual strong,
.poster-visual span,
.poster-visual p,
.visual-bars {
  position: relative;
  z-index: 1;
}

.poster-visual strong {
  color: rgba(255, 255, 255, 0.9);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 48px;
  line-height: 1;
}

.poster-visual p {
  margin: 0;
  max-width: 84%;
  color: #fff;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 25px;
  font-weight: 790;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.poster-visual span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.visual-teal {
  --visual-color: #173e39;
}

.visual-gold {
  --visual-color: #5a3a10;
}

.visual-blue {
  --visual-color: #23364f;
}

.visual-red {
  --visual-color: #4b241f;
}

.visual-ink {
  --visual-color: #1c1c1c;
}

.visual-bars {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.visual-bars i {
  display: block;
  width: 72%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.visual-bars i:nth-child(2) {
  width: 48%;
}

.visual-bars i:nth-child(3) {
  width: 60%;
}

.template-tools {
  display: grid;
  gap: 14px;
  max-width: 1120px;
  margin-top: 24px;
}

.chip-row {
  flex-wrap: wrap;
}

.chip-row button.active,
.segmented button.active {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.16);
  color: var(--amber);
}

.model-layout {
  grid-template-columns: minmax(420px, 0.9fr) minmax(360px, 1fr);
}

.template-workspace {
  grid-template-columns: 292px minmax(0, 1fr);
  align-items: start;
}

.workspace-page {
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
}

.api-layout {
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
}

.workspace-split {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.72fr);
  align-items: start;
}

.side-panel,
.workspace-rail,
.workspace-content,
.api-docs,
.api-nav,
.workspace-tabs,
.prompt-list-block,
.template-flow {
  padding: 22px;
}

.workspace-rail,
.workspace-tabs,
.api-nav {
  position: sticky;
  top: calc(var(--top-height) + 28px);
  align-self: start;
}

.prompt-table,
.prompt-card-list,
.workspace-list,
.api-docs,
.rail-list,
.faq-list {
  display: grid;
  gap: 12px;
}

.rail-list,
.workspace-tabs,
.api-nav {
  margin-top: 18px;
}

.rail-list a,
.workspace-tabs a,
.api-nav a {
  display: flex;
  gap: 12px;
  border-radius: var(--radius);
  color: var(--text-soft);
  padding: 11px;
}

.rail-list a.active,
.rail-list a:hover,
.workspace-tabs a:hover,
.api-nav a:hover {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber);
}

.workspace-detail,
.workspace-content {
  display: grid;
  gap: 22px;
}

.template-detail-hero {
  border: 1px solid var(--outline);
  border-radius: var(--radius-xl);
  background: rgba(27, 27, 27, 0.72);
  padding: clamp(18px, 3vw, 30px);
}

.prompt-card {
  display: grid;
  gap: 14px;
}

.prompt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.task-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.task-card .poster-visual {
  min-height: 150px;
}

.activity-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 120px 90px 80px;
  gap: 10px;
  align-items: center;
  padding: 14px;
  color: var(--text-soft);
}

.activity-row strong {
  color: #fff;
}

.plan-card {
  position: relative;
  display: grid;
  gap: 14px;
}

.plan-card.highlight {
  border-color: rgba(245, 158, 11, 0.48);
  box-shadow: 0 0 36px rgba(245, 158, 11, 0.14);
}

.plan-badge {
  justify-self: start;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: var(--amber);
  font-size: 12px;
  font-weight: 760;
  padding: 6px 9px;
}

.price {
  color: #fff;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 46px;
  font-weight: 820;
  letter-spacing: -0.04em;
}

.plan-card strong {
  color: var(--muted-amber);
}

.plan-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.api-block pre {
  overflow: auto;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: #0e0e0e;
  color: var(--muted-amber);
  padding: 16px;
}

.faq-item {
  padding: 16px;
}

.faq-item summary {
  cursor: pointer;
  color: #fff;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 760;
}

.cta-band {
  display: grid;
  place-items: center;
  text-align: center;
}

.cta-band h2 {
  max-width: 880px;
  margin: 0;
  color: #fff;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.cta-band p {
  max-width: 720px;
  color: var(--text-soft);
  line-height: 1.6;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.25fr);
  gap: 28px;
  margin: 0 32px 32px calc(var(--side-width) + 32px);
  border: 1px solid var(--outline);
  border-radius: var(--radius-xl);
  background: rgba(28, 28, 28, 0.62);
  padding: 24px;
  backdrop-filter: blur(20px);
}

.site-footer .brand {
  padding: 0 0 12px;
}

.site-footer p,
.site-footer a {
  color: var(--text-soft);
}

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1180px) {
  :root {
    --side-width: 84px;
  }

  .brand {
    justify-content: center;
    padding-inline: 14px;
  }

  .brand-copy,
  .main-nav a strong,
  .side-footer a strong {
    display: none;
  }

  .main-nav a,
  .side-footer a {
    justify-content: center;
    padding: 0;
  }

  .main-nav a.active {
    border-left-width: 3px;
  }

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

  .hero-workbench,
  .model-layout,
  .workspace-split,
  .template-workspace,
  .workspace-page,
  .api-layout {
    grid-template-columns: 1fr;
  }

  .poster-visual.large {
    width: 100%;
  }

  .workspace-rail,
  .workspace-tabs,
  .api-nav {
    position: static;
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    min-height: var(--top-height);
    padding: 12px;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .global-search {
    width: 100%;
  }

  .site-main {
    padding: calc(var(--top-height) + 88px) 14px 18px;
  }

  .hero-stats,
  .generator-controls,
  .feature-grid,
  .feature-grid.three,
  .usecase-grid,
  .pricing-grid,
  .workflow-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .task-card {
    grid-template-columns: 1fr;
  }

  .activity-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --side-width: 70px;
  }

  .side-nav {
    width: var(--side-width);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .inspiration-grid,
  .template-grid,
  .site-footer nav,
  .prompt-row {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .page-hero,
  .content-band,
  .workflow-band,
  .cta-band,
  .generator-card,
  .side-panel,
  .workspace-rail,
  .workspace-content,
  .api-docs,
  .api-nav,
  .workspace-tabs,
  .prompt-list-block,
  .template-flow {
    padding: 16px;
  }

  .generator-heading,
  .section-heading.with-action,
  .template-detail-hero,
  .card-actions,
  .metric-row,
  .cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  textarea {
    min-height: 200px;
  }

  .card-body,
  .template-card-body {
    position: relative;
    transform: none;
  }

  .poster-visual,
  .inspiration-card,
  .template-card {
    min-height: 280px;
  }

  .site-footer {
    margin: 0 14px 18px calc(var(--side-width) + 14px);
  }
}
