:root {
  color-scheme: light;
  --bg: #f4f0dc;
  --surface: #fffaf0;
  --surface-strong: #fff6d9;
  --ink: #111713;
  --muted: #4c5d4a;
  --line: #1d2b1d;
  --green: #248a38;
  --green-deep: #0c4d28;
  --yellow: #ffe11f;
  --red: #ef3b22;
  --blue: #2a70d6;
  --shadow: 10px 10px 0 #111713;
  --radius: 8px;
  --font-sans: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: Impact, "Arial Black", "PingFang SC", sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070a07;
  --surface: #10170f;
  --surface-strong: #182417;
  --ink: #fff7df;
  --muted: #d8d1ae;
  --line: #f3d84b;
  --green: #2f7f3d;
  --green-deep: #ffe35a;
  --yellow: #ffe35a;
  --red: #ff5d45;
  --blue: #9ec3ff;
  --shadow: 10px 10px 0 #000;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(17, 23, 19, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(17, 23, 19, 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
}

[data-theme="dark"] body {
  background:
    linear-gradient(90deg, rgba(255, 227, 90, 0.08) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(255, 227, 90, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255, 225, 31, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 16%, rgba(36, 138, 56, 0.8) 0 2px, transparent 3px),
    radial-gradient(circle at 58% 76%, rgba(239, 59, 34, 0.55) 0 2px, transparent 3px);
  background-size: 84px 84px, 110px 110px, 128px 128px;
}

[data-theme="dark"] body::before {
  opacity: 0.12;
}

a {
  color: inherit;
}

button,
select,
textarea {
  font: inherit;
}

input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--yellow);
  color: #111713;
  transform: translateY(-140%);
  transition: transform 180ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.icon-sprite {
  display: none;
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 6px clamp(16px, 4vw, 48px);
  border-bottom: 2px solid var(--line);
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(14px);
}

[data-theme="dark"] .site-header {
  border-bottom-color: var(--line);
  background: rgba(7, 10, 7, 0.94);
}

.brand {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(82px, 10vw, 122px);
  height: auto;
  object-fit: contain;
}

[data-theme="dark"] .brand-logo {
  filter: brightness(0) invert(1);
}

.header-tools {
  display: inline-flex;
  gap: 10px;
  align-items: flex-start;
  justify-self: end;
}

.header-tool-item {
  display: grid;
  gap: 3px;
  justify-items: center;
  align-content: start;
}

.header-tool-button {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--line);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out;
  text-decoration: none;
}

.header-tool-button-top svg {
  transform: rotate(-90deg);
}

.header-tool-button:hover,
.header-tool-button:focus-visible {
  background: var(--surface-strong);
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--line);
}

.header-tool-button svg {
  width: 20px;
  height: 20px;
}

.header-tool-note {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  margin-top: 2px;
}

[data-theme="dark"] .header-tool-button {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 4px 4px 0 #27451c;
}

[data-theme="dark"] .header-tool-button:hover,
[data-theme="dark"] .header-tool-button:focus-visible {
  background: var(--surface-strong);
  color: var(--yellow);
  box-shadow: 6px 6px 0 #27451c;
}

[data-theme="dark"] .header-tool-note {
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  min-height: 44px;
  padding: 11px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.icon-button,
.small-icon {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.icon-button:hover,
.small-icon:hover {
  background: var(--yellow);
  color: #111713;
}

main {
  overflow-x: clip;
}

.hero {
  display: grid;
  min-height: auto;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 48px) 36px;
}

.hero-copy {
  max-width: 670px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

[data-theme="dark"] .kicker {
  color: var(--yellow);
}

[data-theme="dark"] .hero-lede,
[data-theme="dark"] .section-lede,
[data-theme="dark"] .helper,
[data-theme="dark"] .nav-links a {
  color: var(--ink);
}

[data-theme="dark"] .hero-lede,
[data-theme="dark"] .section-lede {
  font-weight: 850;
}

[data-theme="dark"] h2,
[data-theme="dark"] #hero-title {
  color: var(--yellow);
}

[data-theme="dark"] h1,
[data-theme="dark"] #hero-title {
  text-shadow: 4px 4px 0 #000, 7px 7px 0 #365020;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 13vw, 11rem);
  line-height: 0.82;
  text-transform: uppercase;
  text-shadow: 5px 5px 0 var(--yellow), 8px 8px 0 var(--line);
}

#hero-title {
  max-width: min(100%, 720px);
  color: var(--ink);
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.92;
  text-shadow: 5px 5px 0 var(--yellow), 8px 8px 0 var(--line);
}

.hero-logo {
  display: block;
  width: min(100%, clamp(300px, 43vw, 620px));
  height: auto;
  filter: brightness(0) drop-shadow(6px 6px 0 var(--yellow));
}

.hero-lede {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-action,
.secondary-action,
.submit-button,
.copy-button,
.toolbar-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out;
}

.primary-action,
.submit-button {
  padding: 13px 18px;
  background: var(--yellow);
  color: #111713;
  box-shadow: 6px 6px 0 var(--line);
}

.secondary-action,
.copy-button,
.toolbar-button {
  padding: 13px 16px;
  background: var(--surface);
}

[data-theme="dark"] .secondary-action,
[data-theme="dark"] .copy-button,
[data-theme="dark"] .toolbar-button {
  background: #151d12;
  color: var(--ink);
}

[data-theme="dark"] .primary-action,
[data-theme="dark"] .submit-button {
  box-shadow: 6px 6px 0 #000;
}

[data-theme="dark"] .primary-action:hover,
[data-theme="dark"] .submit-button:hover {
  box-shadow: 8px 8px 0 #000;
}

.primary-action:hover,
.secondary-action:hover,
.submit-button:hover,
.copy-button:hover,
.toolbar-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--line);
}

.hero-collage {
  position: relative;
  justify-self: end;
  width: min(100%, 720px);
  height: clamp(560px, 58vw, 680px);
  isolation: isolate;
  overflow: visible;
}

.hero-collage::before {
  position: absolute;
  inset: 6% 5% 10% auto;
  z-index: -2;
  width: 62%;
  border: 2px solid var(--line);
  background: var(--green);
  box-shadow: var(--shadow);
  content: "";
}

.feedback-modal[hidden] {
  display: none;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.feedback-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 23, 19, 0.56);
}

.feedback-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(100%, 640px);
  padding: 18px;
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: 10px 10px 0 var(--line);
}

.feedback-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.feedback-dialog-head .kicker {
  margin-bottom: 8px;
}

.feedback-dialog-head h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.feedback-close svg {
  transform: rotate(45deg);
}

.feedback-form {
  display: grid;
  gap: 14px;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 14px;
  border: 2px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
}

.feedback-form input[readonly] {
  background: color-mix(in srgb, var(--surface) 88%, var(--yellow));
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

[data-theme="dark"] .feedback-dialog {
  background: var(--surface);
  box-shadow: 10px 10px 0 #27451c;
}

[data-theme="dark"] .feedback-modal-backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.collage-img {
  position: absolute;
  border: 2px solid var(--line);
  height: auto;
  object-fit: contain;
  filter: saturate(1.05) contrast(1.04);
  box-shadow: 8px 8px 0 var(--line);
  transform-origin: center;
  transition: transform 260ms ease-out, box-shadow 260ms ease-out, filter 260ms ease-out;
  will-change: transform;
}

.collage-img-one {
  right: 3%;
  bottom: 1%;
  z-index: 1;
  width: min(58%, 420px);
  aspect-ratio: 2 / 3;
  transform: translateX(0) rotate(-1deg);
}

.collage-img-two {
  top: 6%;
  left: 4%;
  z-index: 2;
  width: min(34%, 250px);
  aspect-ratio: 2 / 3;
  transform: translateX(0) rotate(0.6deg);
}

.collage-img:hover {
  filter: saturate(1.16) contrast(1.08);
}

.collage-img-one:hover {
  z-index: 5;
  transform: translate(8px, -10px) rotate(1.5deg);
  box-shadow: 14px 14px 0 var(--line);
}

.collage-img-two:hover {
  z-index: 6;
  transform: translate(-8px, -10px) rotate(-1.4deg);
  box-shadow: 14px 14px 0 var(--line);
}

.cutout-note {
  position: absolute;
  right: 4%;
  bottom: 12%;
  z-index: 8;
  display: grid;
  gap: 2px;
  width: min(30%, 240px);
  color: #fffef1;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.1vw, 3.6rem);
  line-height: 0.76;
  pointer-events: none;
  text-shadow: 5px 5px 0 var(--line);
  transition: transform 260ms ease-out;
}

.hero-collage:has(.collage-img:hover) .cutout-note {
  transform: translateY(-8px);
}

.studio,
.wall,
.inspiration-wall {
  padding: 70px clamp(16px, 4vw, 48px);
  scroll-margin-top: 92px;
}

.section-heading {
  display: flex;
  max-width: 1180px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 24px;
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.section-lede {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  font-weight: 800;
}

.inspiration-wall {
  padding-top: 46px;
}

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

.inspiration-board {
  display: grid;
  max-width: 1180px;
  gap: 18px;
  margin: 0 auto;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 225, 31, 0.2), transparent 38%),
    color-mix(in srgb, var(--green) 82%, var(--surface));
  box-shadow: 8px 8px 0 var(--line);
}

[data-theme="dark"] .inspiration-board {
  background:
    linear-gradient(135deg, rgba(255, 227, 90, 0.22), transparent 42%),
    #123119;
  box-shadow: 8px 8px 0 #000;
}

.seed-maker {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 2px solid var(--line);
  background: #fffef1;
  color: #111713;
  box-shadow: 5px 5px 0 var(--line);
}

[data-theme="dark"] .seed-maker {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 5px 5px 0 #000;
}

.seed-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}

.seed-input-row textarea {
  min-height: 86px;
  background: #fff7b8;
  color: #111713;
}

[data-theme="dark"] .seed-input-row textarea {
  background: #071007;
  color: var(--ink);
}

.seed-button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--line);
  background: var(--yellow);
  color: #111713;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--line);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out;
  overflow: hidden;
}

.seed-button {
  min-width: 184px;
  padding: 10px 14px;
}

.seed-button:hover {
  background: #fffef1;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--line);
}

[data-theme="dark"] .seed-button:hover {
  background: #fff7cf;
  color: #111713;
}

.seed-button::before,
.seed-button::after {
  position: absolute;
  z-index: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #111713;
  content: "";
  opacity: 0;
  pointer-events: none;
  box-shadow:
    18px -10px 0 #ef3b22,
    34px 4px 0 #248a38,
    48px -12px 0 #111713;
}

.seed-button::before {
  left: 18px;
  top: 50%;
}

.seed-button::after {
  right: 26px;
  top: 46%;
  transform: rotate(180deg);
}

.seed-button > svg,
.seed-button > span {
  position: relative;
  z-index: 1;
}

.seed-button.is-loading {
  background: #fffef1;
  cursor: wait;
}

.seed-button.is-loading svg {
  animation: seedWandPulse 760ms ease-in-out infinite;
}

.seed-button.is-loading::before,
.seed-button.is-loading::after {
  animation: seedSparkTrail 820ms ease-out infinite;
}

.seed-button.is-loading::after {
  animation-delay: 180ms;
}

.seed-button svg,
.seed-card-action svg {
  width: 18px;
  height: 18px;
}

.seed-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.seed-card {
  display: grid;
  gap: 10px;
  min-height: 290px;
  padding: 14px;
  border: 2px solid var(--line);
  background: #fffef1;
  color: #111713;
  text-align: left;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--line);
  transform: rotate(-1.2deg);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out;
  appearance: none;
}

.seed-card:nth-child(2n) {
  background: #fff7b8;
  transform: rotate(1.3deg);
}

.seed-card:nth-child(3n) {
  background: #d9efc2;
  transform: rotate(-0.4deg);
}

.seed-card:nth-child(4n) {
  background: #cfe6f7;
  transform: rotate(1.7deg);
}

.seed-card:nth-child(5n) {
  background: #fffef1;
  transform: rotate(-1.8deg);
}

.seed-card:hover,
.seed-card:focus-visible {
  background: #fff3a0;
  transform: translate(-3px, -3px) rotate(0deg);
  box-shadow: 9px 9px 0 var(--line);
}

.seed-card:focus-visible .seed-card-action,
.seed-card:hover .seed-card-action {
  color: var(--green-deep);
  transform: translateX(4px);
}

.seed-category {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border: 2px solid var(--line);
  background: var(--green);
  color: #fffef1;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.seed-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.7vw, 2.55rem);
  line-height: 0.92;
}

.seed-card p {
  margin: 0;
  font-weight: 800;
  line-height: 1.35;
}

.seed-meta {
  display: grid;
  gap: 5px;
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
}

.seed-meta dt {
  color: #335031;
  font-weight: 900;
}

.seed-meta dd {
  margin: -5px 0 0;
  font-weight: 800;
}

.seed-card-action {
  display: inline-flex;
  min-height: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  align-self: end;
  width: 100%;
  padding: 10px 0 0;
  border: 0;
  border-top: 2px solid currentColor;
  background: transparent;
  color: #3f4b3b;
  font-size: 14px;
  font-weight: 900;
  box-shadow: none;
  pointer-events: none;
  transition: transform 180ms ease-out, color 180ms ease-out;
}

.workspace {
  display: grid;
  max-width: 1320px;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  margin: 0 auto;
}

.workbench-stack {
  display: grid;
  position: relative;
  max-width: min(1180px, 100%);
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 3fr);
  gap: 14px;
  align-self: start;
  width: 100%;
  padding: 14px;
  border: 2px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 225, 31, 0.18), transparent 30%),
    linear-gradient(315deg, rgba(36, 138, 56, 0.12), transparent 28%),
    var(--surface);
  box-shadow: 8px 8px 0 var(--line);
  overflow: visible;
}

.workbench-stack::before {
  display: none;
  content: none;
}

.workbench-stack::after {
  display: none;
  content: none;
}

.workbench-stack .spark-form::before {
  display: none;
  content: none;
}

.spark-form,
.spark-output,
.wall-tile {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--line);
}

[data-theme="dark"] .spark-form,
[data-theme="dark"] .spark-output,
[data-theme="dark"] .wall-tile {
  box-shadow: 6px 6px 0 #000;
}

[data-theme="dark"] .workbench-stack {
  background:
    linear-gradient(135deg, rgba(255, 227, 90, 0.14), transparent 42%),
    #123119;
  box-shadow: 8px 8px 0 #000;
}

[data-theme="dark"] .workbench-stack::after {
  background: #1f3d2c;
}

[data-theme="dark"] .workbench-stack::before {
  background: var(--yellow);
}

[data-theme="dark"] .spark-form {
  background: var(--surface);
}

[data-theme="dark"] .workbench-stack .spark-form,
[data-theme="dark"] .workbench-stack .workbench-seed-maker {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 4px 4px 0 #000;
}

[data-theme="dark"] .workbench-stack .workbench-seed-maker {
  background: var(--surface-strong);
}

.workbench-stack .spark-form,
.workbench-stack .workbench-seed-maker {
  position: relative;
  z-index: 1;
  border: 2px solid var(--line);
  border-radius: 0;
  background: #fffef1;
  box-shadow: 4px 4px 0 var(--line);
}

.workbench-stack .workbench-seed-maker {
  z-index: 3;
  background: #fff7b8;
}

.spark-form {
  display: grid;
  grid-column: 2 / 3;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 88px;
  gap: 12px;
  padding: 14px;
  align-self: stretch;
}

.workbench-seed-maker {
  display: grid;
  z-index: 3;
  grid-column: 1 / 2;
  grid-template-rows: 16px minmax(0, 1fr);
  gap: 8px;
  align-content: stretch;
  padding: 12px;
  background: #fff7b8;
}

.workbench-seed-maker .seed-input-row {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 0;
}

.workbench-seed-maker .seed-button {
  width: 100%;
  min-height: 44px;
}

.field-group {
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}

.workbench-stack .field-group {
  grid-template-rows: 16px 1fr;
  padding: 0;
  background: transparent;
}

.field-group.is-empty-optional {
  opacity: 0.6;
}

.field-group.is-empty-optional:focus-within {
  opacity: 1;
}

.workbench-stack .field-group.is-empty-optional {
  opacity: 1;
}

.field-group.is-autofill-hinting {
  animation: optionalFadeIn 520ms ease-out;
}

label {
  display: block;
  align-self: start;
  height: 16px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111713;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

[data-theme="dark"] label {
  color: var(--ink);
}

textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: 0;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.45;
}

.workbench-stack textarea,
.workbench-stack select {
  height: 58px;
  border-color: var(--line);
  background: #fff7b8;
  color: #111713;
  font-size: 14px;
  font-weight: 850;
  outline-color: var(--line);
  accent-color: var(--line);
}

.workbench-stack .field-group.is-empty-optional select {
  color: #6f7a6b;
}

[data-theme="dark"] .workbench-stack textarea,
[data-theme="dark"] .workbench-stack select,
[data-theme="dark"] #seedInput {
  border-color: var(--line);
  background: #070a07;
  color: var(--ink);
  outline-color: var(--line);
  accent-color: var(--line);
}

[data-theme="dark"] .workbench-stack textarea::placeholder {
  color: #bcb58f;
}

[data-theme="dark"] .workbench-stack .field-group.is-empty-optional select,
[data-theme="dark"] .workbench-stack select:invalid {
  color: #bcb58f;
}

.workbench-stack textarea:focus,
.workbench-stack textarea:focus-visible,
.workbench-stack select:focus,
.workbench-stack select:focus-visible {
  border-color: var(--line);
  outline: 3px solid var(--line);
  outline-offset: 2px;
}

[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #071007;
  color: var(--ink);
  border-color: var(--line);
}

[data-theme="dark"] textarea::placeholder {
  color: #bcb58f;
}

textarea::placeholder,
select:invalid {
  color: #6f7a6b;
  font-weight: 800;
}

textarea {
  min-height: 52px;
  padding: 9px;
  resize: vertical;
}

#seedInput {
  height: 100%;
  min-height: 0;
  flex: 1;
  background: #fff7b8;
  color: #111713;
}

#topicInput {
  height: 58px;
  min-height: 58px;
}

#audienceInput,
#constraintsInput {
  height: 58px;
  min-height: 58px;
}

select {
  height: 58px;
  padding: 0 12px;
  cursor: pointer;
}

.helper {
  min-height: 0;
  margin: 0;
  padding: 7px 9px;
  border: 2px solid rgba(29, 43, 29, 0.38);
  background: #fff7b8;
  color: #3f4b3b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

[data-theme="dark"] .helper {
  border-color: var(--line);
  background: #071007;
  color: var(--muted);
}

.ai-placeholder {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height 180ms ease-out, opacity 180ms ease-out, transform 180ms ease-out;
}

.field-group:focus-within .ai-placeholder {
  max-height: 24px;
  opacity: 1;
  transform: translateY(0);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.workbench-stack .spark-form > .form-row {
  display: contents;
}

.submit-button {
  width: 100%;
  align-self: end;
}

.workbench-stack .spark-form > .field-group:last-of-type {
  grid-column: 1 / 3;
  grid-row: 3 / 4;
}

.workbench-stack .spark-form > .submit-button {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
  align-self: start;
  margin-top: 23px;
  min-height: 58px;
}

.workbench-stack .helper {
  display: none;
}

.spark-output {
  min-height: 720px;
  padding: 18px;
  width: 100%;
  background:
    linear-gradient(135deg, rgba(255, 225, 31, 0.14), transparent 42%),
    var(--green);
  color: #111713;
}

[data-theme="dark"] .spark-output {
  background:
    linear-gradient(135deg, rgba(255, 227, 90, 0.18), transparent 46%),
    #123119;
}

.brief-loading {
  display: grid;
  min-height: 360px;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 225, 31, 0.28), transparent 46%),
    #fffef1;
  color: #111713;
  box-shadow: 8px 8px 0 var(--line);
}

[data-theme="dark"] .brief-loading {
  background:
    linear-gradient(135deg, rgba(255, 227, 90, 0.16), transparent 46%),
    #11190f;
  color: var(--ink);
  box-shadow: 8px 8px 0 #000;
}

[data-theme="dark"] .brief-loading-stage {
  background:
    linear-gradient(90deg, rgba(255, 227, 90, 0.08) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(255, 227, 90, 0.06) 1px, transparent 1px) 0 0 / 24px 24px,
    #10170f;
}

[data-theme="dark"] .brief-progress-card {
  box-shadow: 6px 6px 0 #000;
}

[data-theme="dark"] .brief-loading-copy h3 {
  color: var(--yellow);
}

[data-theme="dark"] .brief-loading-copy p:last-child {
  color: var(--ink);
}

.brief-loading[hidden] {
  display: none;
}

.brief-loading-stage {
  display: grid;
  min-height: 120px;
  align-items: center;
  padding: 12px;
  border: 2px solid var(--line);
  background:
    linear-gradient(90deg, rgba(17, 23, 19, 0.08) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(17, 23, 19, 0.08) 1px, transparent 1px) 0 0 / 24px 24px,
    #d9efc2;
  overflow: hidden;
}

.brief-progress-card {
  display: grid;
  gap: 10px;
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 12px 14px;
  border: 2px solid var(--line);
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--line);
}

.brief-progress-head,
.brief-progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brief-progress-head span,
.brief-progress-head strong,
.brief-progress-steps span {
  font-size: 12px;
  font-weight: 950;
}

.brief-progress-track {
  height: 18px;
  border: 2px solid var(--line);
  background: #fffef1;
  overflow: hidden;
}

.brief-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      90deg,
      #248a38 0 18px,
      rgba(36, 138, 56, 0.18) 18px 24px
    );
  transform: scaleX(0.08);
  transform-origin: left center;
  will-change: transform, filter, opacity;
}

.loading-sticker {
  position: absolute;
  display: grid;
  min-width: 76px;
  min-height: 48px;
  place-items: center;
  padding: 8px 10px;
  border: 2px solid var(--line);
  background: #fffef1;
  color: #111713;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--line);
}

.loading-sticker-topic {
  left: 10%;
  top: 22px;
  background: var(--yellow);
  transform: rotate(-6deg);
}

.loading-sticker-angle {
  right: 12%;
  top: 28px;
  background: #cfe6f7;
  animation-delay: 120ms;
  transform: rotate(5deg);
}

.loading-sticker-hook {
  left: 18%;
  bottom: 34px;
  background: #fff7b8;
  animation-delay: 240ms;
  transform: rotate(4deg);
}

.loading-sticker-publish {
  right: 18%;
  bottom: 28px;
  background: #bde77a;
  animation-delay: 360ms;
  transform: rotate(-4deg);
}

.brief-loading-copy {
  display: grid;
  gap: 6px;
}

.spark-output[data-brief-state="loading"] {
  padding-bottom: 12px;
}

.brief-loading-copy h3,
.brief-loading-copy p {
  margin: 0;
}

.brief-loading-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.9;
}

.brief-loading-copy p:last-child {
  max-width: 620px;
  color: #335031;
  font-weight: 850;
}

.spark-output[data-brief-state="loading"] .brief-loading-stage {
  background:
    linear-gradient(90deg, rgba(17, 23, 19, 0.08) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(17, 23, 19, 0.08) 1px, transparent 1px) 0 0 / 24px 24px,
    #fff7b8;
}

[data-theme="dark"] .spark-output[data-brief-state="loading"] .brief-loading-stage {
  background:
    linear-gradient(90deg, rgba(255, 227, 90, 0.08) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(255, 227, 90, 0.06) 1px, transparent 1px) 0 0 / 24px 24px,
    #10170f;
}

.spark-output[data-brief-state="loading"] .brief-progress-fill {
  animation:
    briefProgress 45s steps(18, end) forwards,
    briefProgressBlink 900ms steps(1, end) infinite;
}

.api-error-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 2px solid var(--line);
  background: #fffef1;
  color: #111713;
  box-shadow: 5px 5px 0 var(--line);
}

.api-error-panel[hidden] {
  display: none;
}

.api-error-panel strong {
  display: block;
  margin-bottom: 4px;
  color: var(--red);
  font-weight: 900;
}

.api-error-panel p {
  margin: 0;
  color: #335031;
  font-size: 13px;
  font-weight: 800;
}

[data-theme="dark"] .api-error-panel {
  background: #fff8dc;
  color: #0b0f0b;
}

[data-theme="dark"] .api-error-panel p {
  color: #263826;
}

.panel-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: #fffef1;
  font-weight: 900;
}

.panel-controls {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.toolbar-button {
  min-height: 44px;
  padding: 9px 12px;
  color: #111713;
  font-size: 13px;
  box-shadow: 4px 4px 0 var(--line);
}

.collapse-button {
  position: absolute;
  right: -10px;
  bottom: -22px;
  z-index: 3;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: min(72%, 210px);
  padding: 9px 12px;
  border: 2px solid var(--line);
  background: var(--blue);
  color: #fffef1;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--line);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out;
}

.collapse-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--line);
}

.collapse-button svg {
  width: 18px;
  height: 18px;
  transform: rotate(90deg);
  transition: transform 180ms ease-out;
}

.collapse-button.is-collapsed svg {
  transform: rotate(0deg);
}

.toolbar-button svg {
  width: 18px;
  height: 18px;
}

.brief-document[hidden] {
  display: none;
}

.brief-one-liner[hidden],
.angle-bank[hidden] {
  display: none;
}

.brief-document {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fffef1;
  color: #111713;
  box-shadow: 8px 8px 0 var(--line);
}

[data-theme="dark"] .brief-document {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 8px 8px 0 #000;
}

.brief-one-liner {
  position: relative;
  display: grid;
  gap: 10px;
  margin-bottom: 34px;
  padding: 18px 18px 44px;
  border: 2px solid var(--line);
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--line);
}

[data-theme="dark"] .brief-one-liner {
  background: var(--yellow);
  color: #111713;
  box-shadow: 5px 5px 0 #000;
}

.brief-section-label {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.brief-one-liner p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.35;
}

.brief-block,
.brief-actions-block {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 2px solid var(--line);
  background: #fffaf0;
}

.brief-block:nth-of-type(odd) {
  background: #f1f7df;
}

[data-theme="dark"] .brief-block,
[data-theme="dark"] .brief-actions-block,
[data-theme="dark"] .brief-subsection,
[data-theme="dark"] .brief-summary,
[data-theme="dark"] .field-list,
[data-theme="dark"] .title-card,
[data-theme="dark"] .step-item,
[data-theme="dark"] .checklist li,
[data-theme="dark"] .short-advice-card {
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--ink);
}

[data-theme="dark"] .brief-block:nth-of-type(odd) {
  background: var(--surface);
}

.brief-block-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}

.brief-block-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 0.92;
}

.brief-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 2px solid var(--line);
  background: #fffef1;
}

.brief-summary-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.36fr) minmax(0, 1fr);
  min-height: 62px;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.brief-summary-row:nth-child(2n) {
  border-right: 0;
}

.brief-summary-row:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.brief-summary-row dt,
.brief-summary-row dd {
  margin: 0;
  padding: 12px;
}

.brief-summary-row dt {
  display: grid;
  align-items: center;
  border-right: 2px solid var(--line);
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.brief-summary-row dd {
  display: grid;
  align-items: center;
  font-weight: 800;
  line-height: 1.35;
}

.brief-subsections {
  display: grid;
  gap: 0;
  border: 2px solid var(--line);
  background: #fffef1;
}

.brief-subsection {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-bottom: 2px solid var(--line);
}

.brief-subsection-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.brief-subsection-actions {
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.brief-subsection:last-child {
  border-bottom: 0;
}

.brief-subsection h4 {
  margin: 0;
  color: var(--green-deep);
  font-size: 1rem;
  font-weight: 900;
}

.micro-tune-button,
.micro-copy-button {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
  border: 2px solid var(--line);
  background: #fffef1;
  color: #111713;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--line);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out;
}

.micro-tune-button:hover,
.micro-tune-button:focus-visible,
.micro-copy-button:hover,
.micro-copy-button:focus-visible {
  background: var(--yellow);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--line);
}

.micro-copy-button svg {
  width: 15px;
  height: 15px;
}

.micro-tune-button:disabled,
.micro-copy-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.brief-subsection.is-local-loading {
  animation: shake 500ms ease-in-out;
}

.brief-subsection ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  font-weight: 750;
  line-height: 1.55;
}

.brief-subsection li::marker {
  color: var(--green-deep);
  font-weight: 900;
}

.brief-badge {
  display: inline-grid;
  width: 38px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--line);
  background: var(--green);
  color: #fffef1;
  font-size: 12px;
  font-weight: 900;
}

.brief-actions-block .panel-controls {
  justify-content: flex-start;
}

.brief-overview {
  gap: 14px;
}

.brief-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  font-weight: 950;
  line-height: 1.28;
}

.brief-chips {
  display: flex;
  max-width: 760px;
  flex-wrap: wrap;
  gap: 8px;
}

.brief-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 2px solid var(--line);
  background: #f1f7df;
  color: #111713;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 2px 2px 0 var(--line);
}

#visualSection .brief-subsection:nth-of-type(2) .brief-chip:nth-child(6n + 1) {
  background: #d8eefa;
}

#visualSection .brief-subsection:nth-of-type(2) .brief-chip:nth-child(6n + 2) {
  background: #f1f7df;
}

#visualSection .brief-subsection:nth-of-type(2) .brief-chip:nth-child(6n + 3) {
  background: #ffe9a8;
}

#visualSection .brief-subsection:nth-of-type(2) .brief-chip:nth-child(6n + 4) {
  background: #ffd9cf;
}

#visualSection .brief-subsection:nth-of-type(2) .brief-chip:nth-child(6n + 5) {
  background: #e9ddff;
}

#visualSection .brief-subsection:nth-of-type(2) .brief-chip:nth-child(6n) {
  background: #d7f1df;
}

.brief-section {
  display: grid;
  gap: 14px;
}

.brief-block {
  gap: 18px;
  margin-top: 8px;
}

.brief-block-head h3 {
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  letter-spacing: 0;
}

.brief-subsections {
  gap: 14px;
  border: 0;
  background: transparent;
}

.brief-subsection {
  gap: 14px;
  padding: 16px;
  border: 2px solid var(--line);
  background: #fffef1;
}

.brief-subsection:last-child {
  border-bottom: 2px solid var(--line);
}

.section-header,
.brief-subsection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(29, 43, 29, 0.2);
}

.section-header h4,
.brief-subsection-head h4 {
  margin: 0;
  color: var(--green-deep);
  font-size: 1.12rem;
  font-weight: 950;
  line-height: 1.25;
}

.section-summary {
  max-width: 760px;
  margin: 0;
  color: #192219;
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.7;
}

[data-theme="dark"] .section-summary,
[data-theme="dark"] .detail-copy,
[data-theme="dark"] .step-copy,
[data-theme="dark"] .short-advice-card,
[data-theme="dark"] .field-row dd,
[data-theme="dark"] .title-card p {
  color: var(--ink);
}

.section-summary p,
.detail-copy p,
.step-copy p,
.short-advice-card p {
  max-width: 760px;
  margin: 0;
  line-height: 1.7;
}

.section-summary.is-compact {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.angle-highlight-card {
  background: #fffef1;
}

.angle-quote {
  padding: 12px 14px;
  border: 2px solid var(--line);
  background: var(--yellow);
  color: #111713;
  font-size: 1.04rem;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--line);
}

[data-theme="dark"] .angle-highlight-card {
  background: var(--surface);
}

[data-theme="dark"] .angle-quote {
  background: var(--yellow);
  color: #111713;
  box-shadow: 3px 3px 0 #000;
}

.title-list {
  display: grid;
  gap: 10px;
}

.title-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 2px solid var(--line);
  background: #fffaf0;
  box-shadow: 3px 3px 0 var(--line);
}

.title-card span {
  display: inline-grid;
  width: 30px;
  height: 26px;
  place-items: center;
  background: var(--green);
  color: #fffef1;
  font-size: 11px;
  font-weight: 950;
}

.title-card p {
  margin: 0;
  font-weight: 900;
  line-height: 1.55;
}

.hook-card .hook-copy {
  padding: 12px;
  border: 2px solid var(--line);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--line);
}

.step-timeline {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.step-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 2px solid var(--line);
  background: #fffaf0;
}

.step-item > span {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  border: 2px solid var(--line);
  background: #f1f7df;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 950;
}

.step-copy,
.detail-copy,
.short-advice-card {
  color: #182218;
  font-weight: 720;
  line-height: 1.7;
}

.field-list {
  display: grid;
  max-width: 760px;
  border: 2px solid var(--line);
  background: #fffaf0;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(86px, 0.25fr) minmax(0, 1fr);
  border-bottom: 2px solid var(--line);
}

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

.field-row dt,
.field-row dd {
  margin: 0;
  padding: 11px 12px;
  line-height: 1.7;
}

.field-row dt {
  border-right: 2px solid var(--line);
  background: #f1f7df;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 950;
}

[data-theme="dark"] .field-row dt,
[data-theme="dark"] .step-item > span,
[data-theme="dark"] .brief-summary-row dt {
  background: var(--yellow);
  color: #111713;
}

.field-row dd {
  font-weight: 780;
}

.checklist {
  display: grid;
  max-width: 760px;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  min-height: 34px;
  padding: 7px 10px 7px 38px;
  border: 2px solid var(--line);
  background: #fffaf0;
  font-weight: 780;
  line-height: 1.55;
}

.checklist li::before {
  position: absolute;
  left: 10px;
  top: 9px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  background: #fffef1;
  content: "";
}

.publish-card,
.risk-card {
  background: #fffef1;
}

.tag-chips .brief-chip {
  background: var(--yellow);
}

.risk-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.short-advice-list {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.short-advice-card {
  padding: 11px 12px;
  border: 2px solid var(--line);
  background: #fffaf0;
  font-weight: 780;
}

.collapsible-detail {
  max-width: 760px;
}

.collapsible-detail summary {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-top: 2px;
  padding: 6px 9px;
  border: 2px solid var(--line);
  background: #fffef1;
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 2px 2px 0 var(--line);
}

.collapsible-detail > *:not(summary) {
  margin-top: 10px;
}

.module-actions {
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.micro-tune-button,
.micro-copy-button {
  min-height: 28px;
  padding: 4px 7px;
  font-size: 11px;
  box-shadow: 2px 2px 0 var(--line);
}

.micro-copy-button svg {
  width: 13px;
  height: 13px;
}

.angle-bank {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, #fffef1 92%, transparent);
  color: #111713;
  box-shadow: 6px 6px 0 var(--line);
}

.strategy-angle-bank {
  margin: 0 0 18px;
  background: var(--yellow);
  transform: rotate(-0.4deg);
  box-shadow: 8px 8px 0 var(--line);
}

.angle-bank .kicker {
  margin-bottom: 6px;
}

.angle-bank h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 0.92;
}

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

.angle-card {
  display: grid;
  gap: 8px;
  min-height: 140px;
  padding: 12px;
  border: 2px solid var(--line);
  background: #fffef1;
  color: #111713;
  text-align: left;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--line);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out;
  appearance: none;
}

.strategy-angle-bank .angle-card {
  background: #d9efc2;
}

.strategy-angle-bank .angle-card:nth-child(2n) {
  background: #fffef1;
}

.angle-card:nth-child(2n) {
  background: #fff7b8;
}

.angle-card:hover,
.angle-card:focus-visible {
  background: #fff3a0;
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--line);
}

.angle-card.is-active {
  background: #d9efc2;
  box-shadow: 7px 7px 0 var(--line);
}

.angle-card span {
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 900;
}

.angle-card h4,
.angle-card p {
  margin: 0;
}

.angle-card h4 {
  font-size: 1rem;
  line-height: 1.2;
}

.angle-card p {
  font-weight: 700;
}

.angle-card-action {
  display: inline-flex;
  min-height: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  align-self: end;
  width: 100%;
  padding-top: 10px;
  border-top: 2px solid currentColor;
  color: #3f4b3b;
  font-size: 14px;
  font-weight: 900;
  pointer-events: none;
  transition: transform 180ms ease-out, color 180ms ease-out;
}

.angle-card:hover .angle-card-action,
.angle-card:focus-visible .angle-card-action,
.angle-card.is-active .angle-card-action {
  color: var(--green-deep);
  transform: translateX(4px);
}

.clipboard-fallback {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.flying-seed-sticker {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  max-width: min(260px, 76vw);
  padding: 8px 10px;
  border: 2px solid var(--line);
  background: var(--yellow);
  color: #111713;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  pointer-events: none;
  box-shadow: 4px 4px 0 var(--line);
  transform: translate(var(--from-x), var(--from-y)) rotate(-4deg) scale(0.96);
  animation: flySeedSticker 760ms cubic-bezier(0.18, 0.78, 0.26, 1) forwards;
}

@keyframes optionalFadeIn {
  0% {
    opacity: 0.6;
    transform: translateY(0);
  }

  45% {
    opacity: 1;
    transform: translateY(-3px);
  }

  100% {
    opacity: 0.6;
    transform: translateY(0);
  }
}

@keyframes flySeedSticker {
  0% {
    opacity: 0;
    transform: translate(var(--from-x), var(--from-y)) rotate(-6deg) scale(0.9);
  }

  18% {
    opacity: 1;
  }

  78% {
    opacity: 1;
    transform: translate(var(--to-x), var(--to-y)) rotate(3deg) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(var(--to-x), var(--to-y)) rotate(0deg) scale(0.88);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  20% {
    transform: translateX(-3px) rotate(-0.5deg);
  }

  40% {
    transform: translateX(3px) rotate(0.5deg);
  }

  60% {
    transform: translateX(-2px) rotate(-0.35deg);
  }

  80% {
    transform: translateX(2px) rotate(0.35deg);
  }
}

@keyframes briefScan {
  0% {
    opacity: 0.35;
    transform: translateX(-50%) scaleX(0.72);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }
}

@keyframes briefProgress {
  0% {
    transform: scaleX(0.08);
  }

  72% {
    transform: scaleX(0.78);
  }

  100% {
    transform: scaleX(1);
  }
}

@keyframes briefProgressBlink {
  0%,
  100% {
    opacity: 0.88;
    filter: brightness(1);
  }

  50% {
    opacity: 1;
    filter: brightness(1.18);
  }
}

@keyframes loadingStickerFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

@keyframes seedWandPulse {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(-10deg) scale(1.08);
  }
}

@keyframes seedSparkTrail {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.5);
  }

  25% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-18px) scale(1);
  }
}

.segmented {
  display: inline-flex;
  border: 2px solid var(--line);
  background: #fffef1;
}

.segment {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #111713;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.segment.active {
  background: var(--yellow);
}

.detail-back-button {
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--line);
  background: #fffef1;
  color: #111713;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--line);
}

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

.idea-grid.list-view {
  grid-template-columns: 1fr;
  gap: 8px;
}

.idea-grid.detail-mode {
  grid-template-columns: 1fr;
}

.idea-card {
  display: grid;
  gap: 14px;
  min-height: 248px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #fffef1;
  color: #111713;
  cursor: pointer;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out;
}

.idea-grid.list-view .idea-card {
  position: relative;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 12px;
  min-height: 0;
  padding: 10px 12px 10px 44px;
  cursor: default;
}

.idea-grid.list-view .idea-card::before {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  background: #fffef1;
  content: "";
}

.idea-card[hidden],
.idea-card.is-detail-hidden {
  display: none !important;
}

[data-theme="dark"] .idea-card {
  background: #f8f4dc;
}

.idea-card:hover,
.idea-card:focus-visible {
  background: #e5f2ff;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--line);
}

.idea-grid.list-view .idea-card:hover,
.idea-grid.list-view .idea-card:focus-visible {
  background: #fffef1;
  transform: none;
  box-shadow: none;
}

.idea-card.is-detail-active {
  background: #cfe6f7;
  outline: 3px solid #1e88ff;
  outline-offset: 0;
  min-height: 0;
}

.idea-grid.detail-mode .idea-card.is-detail-active {
  cursor: default;
  transform: none;
  box-shadow: 8px 8px 0 var(--line);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.idea-grid.list-view .card-head {
  display: contents;
}

.idea-type,
.idea-meta {
  color: #335031;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.idea-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.7vw, 3.2rem);
  line-height: 0.9;
}

.idea-grid.list-view .idea-card h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.35;
}

.idea-card p {
  margin: 0;
  font-weight: 700;
}

.idea-grid.list-view .idea-card p,
.idea-grid.list-view .idea-meta,
.idea-grid.list-view .favorite-button,
.idea-grid.list-view .copy-button {
  display: none;
}

.favorite-button.is-active {
  background: var(--red);
  color: #fffef1;
}

.copy-button {
  width: max-content;
  min-height: 44px;
  padding: 8px 12px;
  box-shadow: none;
}

.copy-button:hover {
  box-shadow: 4px 4px 0 var(--line);
}

.wall {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 225, 31, 0.16), transparent 46%),
    color-mix(in srgb, var(--green) 78%, var(--surface));
  color: #fffef1;
  overflow: hidden;
}

[data-theme="dark"] .wall {
  background:
    linear-gradient(135deg, rgba(255, 227, 90, 0.14), transparent 44%),
    #123119;
  color: var(--ink);
}

.wall .kicker {
  color: var(--yellow);
}

.wall-board {
  display: grid;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.wall-detail-stage {
  min-height: auto;
  margin-top: 0;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, #fffef1 92%, transparent);
  box-shadow: 8px 8px 0 var(--line);
}

[data-theme="dark"] .wall-detail-stage {
  background: var(--surface);
  box-shadow: 8px 8px 0 #000;
}

.wall-detail-stage:has(.wall-panel.is-active) {
  min-height: 340px;
}

.spark-output .wall-board {
  max-width: none;
  margin-top: 18px;
  padding-top: 0;
}

.spark-output .wall-stickers {
  position: relative;
  inset: auto;
  display: grid;
  min-height: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.spark-output .sticker {
  position: relative;
  inset: auto;
  max-width: none;
}

.spark-output .wall-detail-stage {
  min-height: 74px;
  margin-top: 14px;
}

.spark-output .wall-detail-stage:has(.wall-panel.is-active) {
  min-height: auto;
  background: #fffef1;
}

[data-theme="dark"] .spark-output .wall-detail-stage:has(.wall-panel.is-active) {
  background: var(--surface);
}

.spark-output .wall-panel {
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
}

.spark-output .wall-panel img {
  height: min(28vw, 260px);
  min-height: 180px;
  max-height: 260px;
}

.wall-placeholder {
  margin: 0;
  color: #1f3619;
  font-size: 1.1rem;
  font-weight: 800;
}

[data-theme="dark"] .wall-placeholder {
  color: var(--ink);
}

.wall-panel {
  display: none;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  color: #111713;
}

[data-theme="dark"] .wall-panel {
  color: var(--ink);
}

.wall-panel.is-active {
  display: grid;
}

.wall-panel img {
  width: 100%;
  height: min(42vw, 360px);
  min-height: 260px;
  max-height: 360px;
  aspect-ratio: 4 / 3;
  border: 2px solid var(--line);
  object-fit: cover;
  box-shadow: 6px 6px 0 var(--line);
}

.wall-panel-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.wall-panel-kicker {
  margin: 0;
  color: #335031;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

[data-theme="dark"] .wall-panel-kicker {
  color: var(--yellow);
}

.wall-panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.9;
}

.wall-panel p {
  margin: 0;
  font-weight: 700;
}

.wall-actions {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  font-weight: 700;
}

.sample-brief {
  display: grid;
  gap: 16px;
  color: #111713;
}

.sample-brief-head {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 18px 18px 42px;
  border: 2px solid var(--line);
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--line);
}

.sample-brief-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.9;
}

.sample-collapse-button {
  position: absolute;
  right: -10px;
  bottom: -22px;
  z-index: 3;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: min(72%, 210px);
  padding: 9px 12px;
  border: 2px solid var(--line);
  background: var(--blue);
  color: #fffef1;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--line);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}

.sample-collapse-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--line);
}

.sample-collapse-button svg {
  width: 18px;
  height: 18px;
  transform: rotate(90deg);
  transition: transform 180ms ease-out;
}

.sample-collapse-button.is-collapsed svg {
  transform: rotate(0deg);
}

.sample-preview,
.sample-expanded {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 2px solid var(--line);
  background: #fffef1;
  box-shadow: 5px 5px 0 var(--line);
}

.sample-preview[hidden],
.sample-expanded[hidden] {
  display: none;
}

.sample-preview h4,
.sample-expanded h4 {
  margin: 0;
  color: var(--green-deep);
  font-size: 1.15rem;
  font-weight: 900;
}

.sample-preview h5,
.sample-expanded h5 {
  margin: 0 0 6px;
  color: var(--green-deep);
  font-size: 0.95rem;
  font-weight: 900;
}

.sample-preview p,
.sample-expanded p {
  margin: 0;
  font-weight: 750;
}

.sample-expanded ul,
.sample-expanded ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  font-weight: 750;
}

.sample-image-frame {
  display: grid;
  gap: 10px;
  margin: 2px 0 0;
  padding: 10px;
  border: 2px solid var(--line);
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--line);
}

.sample-image-frame img {
  width: 100%;
  border: 2px solid var(--line);
  height: auto;
  object-fit: contain;
}

.sample-image-frame figcaption {
  color: #111713;
  font-size: 12px;
  font-weight: 900;
}

@media (min-width: 1100px) {
  .sample-expanded {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.8fr);
    align-items: start;
    column-gap: 18px;
  }

  .sample-expanded > h4 {
    grid-column: 1 / -1;
  }

  .sample-expanded > :not(h4):not(.sample-image-frame) {
    grid-column: 1;
  }

  .sample-expanded > .sample-image-frame {
    position: sticky;
    top: 18px;
    grid-column: 2;
    grid-row: 2 / span 3;
    margin: 0;
  }

  .sample-image-frame img {
    max-height: 560px;
  }
}

.sample-steps {
  list-style: none;
  padding-left: 0 !important;
}

.sample-steps li {
  position: relative;
  padding: 0 0 18px;
}

.sample-steps li:not(:last-child)::after {
  position: absolute;
  left: 0;
  bottom: 0;
  color: var(--green-deep);
  content: "↓";
  font-weight: 900;
}

.wall-stickers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  opacity: 1;
}

.sticker {
  position: relative;
  display: grid;
  gap: 8px;
  max-width: none;
  min-height: 92px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  background: #fffef1;
  color: #111713;
  box-shadow: 5px 5px 0 var(--line);
  appearance: none;
  text-align: left;
  cursor: default;
  pointer-events: auto;
}

[data-theme="dark"] .sticker,
[data-theme="dark"] .sample-preview,
[data-theme="dark"] .sample-expanded {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 5px 5px 0 #000;
}

[data-theme="dark"] .sticker-yellow {
  background: var(--yellow);
  color: #111713;
}

[data-theme="dark"] .sticker-red {
  background: var(--red);
  color: #fffef1;
}

[data-theme="dark"] .sticker-blue {
  background: var(--blue);
  color: #071007;
}

.sticker span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sticker strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.sticker-yellow {
  background: var(--yellow);
  transform: rotate(-4deg);
}

.sticker-white {
  background: #fffef1;
  transform: rotate(3deg);
}

.sticker-red {
  background: var(--red);
  color: #fffef1;
  transform: rotate(-2deg);
}

.sticker-blue {
  background: #cfe6f7;
  transform: rotate(4deg);
}

.sticker-outline {
  background: #fffef1;
  transform: rotate(2deg);
}

.sticker-green {
  background: #bde77a;
  transform: rotate(-5deg);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(16px, 4vw, 48px);
  border-top: 2px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 0.8fr) minmax(330px, 0.95fr);
    gap: 28px;
  }

  h1 {
    font-size: clamp(4.2rem, 11vw, 8.6rem);
  }

  .hero-collage {
    height: clamp(520px, 56vw, 620px);
  }

  .cutout-note {
    width: min(32%, 220px);
    font-size: clamp(1.55rem, 3.7vw, 3rem);
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .idea-card h3 {
    font-size: clamp(1.55rem, 3.2vw, 2.6rem);
  }

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-block: 4px;
  }

  .nav-links {
    display: none;
  }

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

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

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

  .hero {
    min-height: auto;
  }

  .hero-collage {
    height: clamp(520px, 82vw, 620px);
    justify-self: center;
  }

  .hero-copy {
    max-width: 760px;
  }

  .panel-topline {
    display: grid;
  }

  .panel-controls {
    justify-content: flex-start;
  }

  .spark-output {
    min-height: auto;
  }

  .workbench-stack {
    max-width: none;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .spark-form {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
  }

  .workbench-stack .spark-form > .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .workbench-seed-maker {
    grid-template-rows: auto auto;
    align-content: start;
  }

  .workbench-seed-maker .seed-input-row {
    grid-template-rows: auto auto;
  }

  .workbench-seed-maker,
  .spark-form,
  .workbench-stack .spark-form > .field-group:nth-child(n),
  .workbench-stack .spark-form > .form-row:nth-child(n) > .field-group:nth-child(n),
  .workbench-stack .spark-form > .submit-button {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .workbench-stack .spark-form > .field-group:last-of-type {
    grid-column: 1 / -1;
  }

  .submit-button {
    grid-column: 1 / -1;
  }

  .workbench-stack .spark-form > .submit-button {
    align-self: stretch;
    margin-top: 0;
  }

  #seedInput {
    height: 120px;
    min-height: 120px;
  }

  .wall-detail-stage {
    margin-top: 16px;
  }

  .wall-board {
    min-height: auto;
  }

  .wall-stickers {
    position: relative;
    inset: auto;
    display: grid;
    max-width: 1180px;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px auto 0;
  }

  .sticker {
    position: relative;
    inset: auto;
    max-width: none;
  }

  .wall-panel,
  .wall-panel.is-active {
    grid-template-columns: 1fr;
  }

  .wall-panel img {
    height: min(48vw, 340px);
    max-height: 340px;
  }

  .spark-output .wall-stickers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spark-output .wall-panel,
  .spark-output .wall-panel.is-active {
    grid-template-columns: 1fr;
  }

  .spark-output .wall-panel img {
    height: min(42vw, 260px);
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 10px;
    padding-block: 3px;
    padding-inline: 12px;
  }

  .header-tools {
    gap: 6px;
  }

  .brand {
    min-height: 26px;
  }

  .brand-logo {
    width: clamp(72px, 24vw, 96px);
  }

  .header-tool-item {
    gap: 2px;
  }

  .header-tool-note {
    margin-top: 3px;
    font-size: 9px;
  }

  .brand span:last-child {
    max-width: 8em;
  }

  .feedback-modal {
    padding: 12px;
  }

  .feedback-dialog {
    padding: 14px;
  }

  .feedback-actions {
    grid-template-columns: 1fr;
  }

  .feedback-actions .toolbar-button,
  .feedback-actions .submit-button {
    width: 100%;
  }

  .hero,
  .studio,
  .wall,
  .inspiration-wall {
    padding-inline: 14px;
  }

  h1 {
    font-size: clamp(4.2rem, 22vw, 6.5rem);
  }

  .hero {
    gap: 18px;
  }

  .hero-collage {
    display: none;
  }

  .cutout-note {
    right: 3%;
    bottom: 14%;
    width: 36%;
    font-size: clamp(1.7rem, 10vw, 3.4rem);
  }

  .form-row,
  .idea-grid,
  .brief-summary,
  .wall-panel,
  .wall-panel.is-active {
    grid-template-columns: 1fr;
  }

  #hero-title {
    font-size: clamp(2.8rem, 15vw, 5rem);
  }

  .toolbar-button {
    width: 100%;
    justify-content: flex-start;
  }

  .inspiration-board {
    padding: 12px;
  }

  .seed-grid {
    grid-auto-columns: minmax(84%, 1fr);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 4px 6px 10px 2px;
    margin-inline: -2px;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .seed-grid::-webkit-scrollbar {
    display: none;
  }

  .seed-card {
    min-height: auto;
    transform: none;
    scroll-snap-align: start;
  }

  .seed-card:nth-child(n) {
    transform: none;
  }

  .seed-button {
    width: 100%;
  }

  .angle-grid {
    grid-auto-columns: minmax(86%, 1fr);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 2px 4px 8px 2px;
    margin-inline: -2px;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .angle-grid::-webkit-scrollbar {
    display: none;
  }

  .angle-card {
    min-height: 156px;
    scroll-snap-align: start;
  }

  .collapse-button {
    position: absolute;
    right: -8px;
    bottom: -22px;
    width: max-content;
    max-width: min(76%, 220px);
    justify-content: center;
  }

  .sample-collapse-button {
    position: absolute;
    right: -8px;
    bottom: -22px;
    width: max-content;
    max-width: min(76%, 220px);
    justify-content: center;
  }

  .brief-document,
  .brief-block,
  .brief-actions-block,
  .angle-bank,
  .sample-preview,
  .sample-expanded {
    padding: 12px;
  }

  .spark-output {
    padding: 12px;
  }

  .brief-loading {
    min-height: 360px;
    padding: 10px;
  }

  .brief-loading-stage {
    min-height: 124px;
    padding: 10px;
  }

  .brief-progress-card {
    padding: 12px;
    box-shadow: 4px 4px 0 var(--line);
  }

  .brief-progress-head,
  .brief-progress-steps {
    gap: 8px;
  }

  .brief-progress-steps span {
    font-size: 11px;
  }

  .brief-block-head {
    align-items: flex-start;
  }

  .brief-block-head h3 {
    font-size: clamp(1.35rem, 9vw, 2.1rem);
    line-height: 1;
  }

  .brief-badge {
    width: 34px;
    height: 30px;
  }

  .brief-summary-row,
  .brief-summary-row:nth-child(2n) {
    grid-template-columns: 1fr;
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .brief-summary-row:nth-last-child(-n + 2) {
    border-bottom: 2px solid var(--line);
  }

  .brief-summary-row:last-child {
    border-bottom: 0;
  }

  .brief-summary-row dt {
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .risk-grid,
  .field-row,
  .step-item {
    grid-template-columns: 1fr;
  }

  .field-row dt {
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .section-header,
  .brief-subsection-head {
    align-items: flex-start;
  }

  .module-actions {
    max-width: 142px;
  }

  .workbench-stack {
    padding: 14px;
  }

  .spark-form {
    padding-top: 12px;
  }

  .workbench-stack textarea,
  .workbench-stack select,
  #topicInput,
  #audienceInput,
  #constraintsInput {
    height: auto;
    min-height: 58px;
  }

  .flying-seed-sticker {
    z-index: 1000;
    max-width: calc(100vw - 32px);
    box-shadow: 5px 5px 0 var(--line);
  }

  .wall-detail-stage {
    margin-top: 18px;
    min-height: auto;
  }

  .wall-panel img {
    min-height: 220px;
  }

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

  .spark-output .wall-stickers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticker {
    transform: none;
  }

  .section-heading {
    display: grid;
  }

  .site-footer {
    display: grid;
  }
}

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