.idea-wizard {
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(22px, 4.5vw, 48px);
}

.idea-form { display: grid; gap: 24px; }
.idea-form h2, .idea-board h2 { font-size: clamp(1.65rem, 4vw, 2.5rem); text-wrap: pretty; }
.idea-form h2:focus, .idea-board h2:focus { outline: none; }
.idea-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  gap: 8px;
  list-style: none;
}
.idea-progress li { position: relative; padding-top: 12px; font-size: .8rem; font-weight: 720; color: var(--muted); }
.idea-progress li::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--stroke); border-radius: 8px; }
.idea-progress li[aria-current] { color: var(--cream); }
.idea-progress li[aria-current]::before { background: var(--coral); }
.idea-progress li[data-complete]::before { background: var(--teal-bright); }
.idea-roles, .idea-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.idea-role {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--stroke);
  background: var(--well);
  border-radius: 13px;
  cursor: pointer;
}
.idea-role:hover, .idea-role:has(input:checked) { border-color: var(--brand-light); }
.idea-role:has(input:checked) { background: #29201e; }
.idea-role input[type='radio'] { margin: 5px 0 0; accent-color: var(--coral); }
.idea-role strong, .idea-role small { display: block; }
.idea-role small { color: var(--muted); margin-top: 3px; }
.idea-field { min-width: 0; display: grid; gap: 6px; font-size: .9rem; font-weight: 700; }
.idea-field > :is(input, select, textarea) { width: 100%; }
.idea-field:has(textarea), .idea-fields > p, .idea-research, .idea-advantage { grid-column: 1 / -1; }
.idea-fields > p { margin: 0; }
.idea-fields textarea { font-weight: 500; min-height: 80px; }
.idea-advantage summary { cursor: pointer; font-size: .88rem; font-weight: 700; color: var(--muted); }
.idea-advantage .idea-field { margin-top: 10px; }
.idea-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.idea-quiet { color: var(--muted); min-height: 42px; padding-inline: 10px; font-size: .875rem; font-weight: 700; }
.idea-quiet:hover { color: var(--cream); }
.idea-error, .idea-wait { margin: 0; }
.idea-error { color: var(--err); }

/* The ideas: three short cards, each read at a glance; filming notes open on request. */
.idea-board-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.idea-board .idea-board-title { font-size: clamp(1.2rem, 2.2vw, 1.5rem); letter-spacing: -0.03em; }
.idea-board-head p { margin: 4px 0 0; }
.idea-board-actions { display: flex; gap: 8px; }
.idea-board[aria-busy='true'] .idea-grid { opacity: .5; transition: opacity .2s; }
.idea-board > .idea-error { margin: 0 0 16px; }
.idea-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.idea-card { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 12px; overflow-wrap: anywhere; }
.idea-card-top { display: flex; align-items: center; justify-content: space-between; }
.idea-num { font-size: .78rem; font-weight: 800; letter-spacing: .08em; color: var(--faint); font-variant-numeric: tabular-nums; }
.idea-format {
  padding: 3px 10px;
  border-radius: 999px;
  background: #8fcfc414;
  border: 1px solid #8fcfc433;
  color: var(--teal-bright);
  font-size: .74rem;
  font-weight: 760;
}
.idea-card h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.2; text-wrap: pretty; }
.idea-card p { margin: 0; }
.idea-hook { color: var(--cream); font-style: italic; opacity: .92; }
.idea-why {
  color: var(--muted);
  font-size: .9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.idea-more { margin-top: auto; border-top: 1px solid var(--stroke); padding-top: 12px; }
.idea-more > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .86rem;
  font-weight: 740;
  color: var(--brand-light);
}
.idea-more > summary::-webkit-details-marker { display: none; }
.idea-more > summary::after { content: '+'; font-size: 1.1rem; line-height: 1; transition: transform .2s; }
.idea-more[open] > summary::after { transform: rotate(45deg); }
.idea-card:has(.idea-more[open]) .idea-why { -webkit-line-clamp: unset; }
.idea-more > * + * { margin-top: 12px; }
.idea-first { font-size: .9rem; color: var(--muted); }
.idea-first strong { color: var(--cream); font-weight: 720; }
.idea-beats, .idea-sources ul { margin: 0; padding-inline-start: 20px; color: var(--muted); font-size: .9rem; }
.idea-beats li + li, .idea-sources li + li { margin-top: 6px; }
.idea-sources summary { cursor: pointer; font-weight: 700; font-size: .86rem; }
.idea-sources ul { margin-top: 8px; }
.idea-foot { margin: 18px 0 0; text-align: center; }

@media (max-width: 880px) {
  .idea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .rail-btn { flex: 1; min-width: 0; padding-inline: 4px; }
}
@media (max-width: 560px) {
  .idea-grid, .idea-fields, .idea-roles { grid-template-columns: 1fr; }
  .idea-form { gap: 18px; }
  .idea-role { padding: 12px; }
}
