:root {
  --bg: #f3f7f5;
  --paper: #fffdf7;
  --ink: #191b1f;
  --muted: #646a73;
  --line: #d5ded8;
  --line-strong: #aebbb1;
  --mint: #dff8ef;
  --mint-strong: #2f9a78;
  --coral: #ff6b57;
  --sun: #f5c542;
  --violet: #8e7ae6;
  --blue: #2977bf;
  --shadow: 0 18px 50px rgba(25, 27, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(223, 248, 239, 0.52), rgba(243, 247, 245, 0) 360px),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(174, 187, 177, 0.55);
  background: rgba(243, 247, 245, 0.88);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--sun);
  box-shadow: 4px 4px 0 var(--ink);
}

.brand-mark::before {
  content: "";
  width: 17px;
  height: 17px;
  border: 4px solid var(--ink);
  border-left-color: transparent;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 9px 11px;
  border-radius: 999px;
  color: #343941;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--ink);
  color: white;
}

.section {
  padding: 58px 0;
}

.section.tight {
  padding: 34px 0;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 1.05fr);
  align-items: center;
  gap: 40px;
  padding-top: 46px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #355249;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.06;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 5.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.15rem;
}

.lede {
  max-width: 650px;
  margin: 20px 0 0;
  color: #4a5058;
  font-size: 1.1rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn.primary {
  background: var(--coral);
  color: white;
}

.btn.subtle {
  border-color: var(--line-strong);
  box-shadow: none;
}

.visual {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}

.visual img {
  display: block;
  width: 100%;
  height: auto;
}

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

.stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.8);
}

.stat strong {
  display: block;
  font-size: 1.25rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.86rem;
}

.tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.panel {
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 2px solid var(--ink);
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.panel-body {
  padding: 18px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

label,
.label {
  color: #333942;
  font-size: 0.86rem;
  font-weight: 800;
}

select,
input[type="number"],
input[type="text"],
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  padding: 10px 11px;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

.segmented,
.chips,
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented button,
.chip,
.check-chip {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: white;
  color: #333942;
  padding: 8px 11px;
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
}

.segmented button[aria-pressed="true"],
.chip[aria-pressed="true"],
.chip.is-active,
.check-chip input:checked + span {
  border-color: var(--ink);
  background: var(--mint);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.check-chip {
  padding: 0;
}

.check-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-chip span {
  display: block;
  min-height: 36px;
  border-radius: 999px;
  padding: 8px 11px;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
  gap: 10px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--mint-strong);
}

.output-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.output-tabs button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: white;
  color: #343941;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.output-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.prompt-box {
  min-height: 230px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #111317;
  color: #f8f0df;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
}

.output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.mini-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.82);
  padding: 18px;
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.example-card {
  display: grid;
  gap: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--mint);
  color: #225447;
  font-size: 0.78rem;
  font-weight: 800;
}

.example-text {
  margin: 0;
  color: #2d333b;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.filter-bar button {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: white;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.filter-bar button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--sun);
}

.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 56px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--sun);
  font-weight: 900;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.82);
  padding: 14px 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 850;
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

.link-tile {
  display: block;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.86);
  padding: 16px;
  text-decoration: none;
}

.link-tile strong {
  display: block;
}

.link-tile span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.genre-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 178px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.genre-card span {
  width: max-content;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--mint);
  color: var(--mint-strong);
  font-size: 0.78rem;
  font-weight: 820;
}

.genre-card strong {
  font-size: 1.02rem;
}

.genre-card em {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
}

.example-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.example-block {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.example-block p {
  margin: 0;
  color: var(--muted);
}

.example-block code {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: #202630;
  white-space: normal;
  line-height: 1.55;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #343941;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.page-intro {
  padding: 46px 0 20px;
}

.page-intro h1 {
  max-width: 14ch;
}

.prose {
  max-width: 790px;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 20px;
}

.prose h2 {
  margin-top: 34px;
  font-size: 1.55rem;
}

.prose h3 {
  margin-top: 24px;
}

.prose p {
  margin: 12px 0;
}

.prose a {
  color: var(--blue);
  font-weight: 750;
}

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

.intent-grid .card {
  min-height: 178px;
}

.note-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(223, 248, 239, 0.62);
  padding: 16px;
}

.answer-box {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #b8d7c8;
  border-radius: 10px;
  background: var(--mint);
}

.answer-box strong {
  color: var(--mint-strong);
}

.answer-box p {
  margin: 0;
  color: #263a32;
}

.source-line {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.spec-table th,
.spec-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
}

.spec-table th {
  background: #f7f8f7;
  color: #202630;
}

.spec-table td {
  color: var(--muted);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.disclaimer-box {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf8;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hero,
  .tool-shell,
  .two-col {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.7rem, 16vw, 4.1rem);
  }

  .section {
    padding: 42px 0;
  }

  .control-grid,
  .content-grid,
  .genre-grid,
  .intent-grid,
  .link-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .output-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Product Design refresh: quiet prompt workspace */
:root {
  --bg: #f8faf8;
  --paper: #ffffff;
  --ink: #0d1117;
  --muted: #667085;
  --line: #e3e7e4;
  --line-strong: #cfd8d2;
  --mint: #ecf7f1;
  --mint-strong: #16794f;
  --coral: #ff5b45;
  --sun: #f3b835;
  --shadow: 0 12px 34px rgba(16, 24, 40, 0.05);
}

body {
  background: var(--bg);
  font-size: 15px;
}

.brand-mark {
  display: none;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.nav {
  width: min(1360px, calc(100% - 40px));
  padding: 14px 0;
}

.brand {
  gap: 0;
  font-size: 1rem;
}

.brand span:last-child {
  color: var(--ink);
}

.brand span:last-child::after {
  content: "Suno Prompt Generator";
  display: block;
  color: var(--mint-strong);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.1;
}

.nav-links {
  gap: 16px;
}

.nav-links a {
  padding: 8px 0;
  border-radius: 0;
  color: #202630;
  font-size: 0.93rem;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: transparent;
  color: var(--mint-strong);
  box-shadow: inset 0 -2px 0 var(--mint-strong);
}

h1 {
  max-width: none;
  font-size: clamp(2rem, 3vw, 2.55rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.lede {
  margin-top: 8px;
  font-size: 1rem;
}

.section {
  padding: 38px 0;
}

.wrap {
  width: min(1360px, calc(100% - 40px));
}

.product-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 12px;
}

.product-hero .lede {
  max-width: 680px;
  margin-top: 5px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-head > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.proof-section {
  padding-top: 16px;
}

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

.proof-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.proof-card h3 {
  font-size: 1rem;
}

.proof-card pre {
  min-height: 190px;
  margin: 0;
  padding: 13px;
  border: 1px solid #d7e7de;
  border-radius: 8px;
  background: #fffdf8;
  color: #1f2933;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
}

.proof-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.proof-meta span {
  min-height: 25px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--mint-strong);
  font-size: 0.76rem;
  font-weight: 800;
}

.platform-notes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.platform-notes article {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.platform-notes strong {
  color: #202630;
}

.platform-notes span {
  color: var(--muted);
  font-size: 0.88rem;
}

.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: none;
  font-size: 0.9rem;
  font-weight: 750;
}

.btn:hover {
  transform: none;
  border-color: #aab6af;
  box-shadow: none;
}

.btn.primary {
  border-color: var(--coral);
  background: var(--coral);
  color: white;
}

.btn.wide {
  width: 100%;
}

.panel,
.card,
.link-tile,
.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: none;
}

.preflight-shell,
.v5-builder-shell {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.preflight-grid,
.v5-builder-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(360px, 1fr) minmax(340px, 0.95fr);
  margin: 0;
}

.v5-template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.preflight-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.preflight-panel:last-child {
  border-right: 0;
}

.preflight-panel:first-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.preflight-panel:first-child .preflight-title,
.preflight-panel:first-child .span-2 {
  grid-column: 1 / -1;
}

.preflight-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.preflight-title h2 {
  font-size: 1rem;
  line-height: 1.25;
}

.preflight-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.step-badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--mint-strong);
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
}

.field {
  gap: 7px;
}

label,
.label {
  color: #202630;
  font-size: 0.78rem;
  font-weight: 760;
}

select,
input[type="number"],
input[type="text"],
input[type="search"],
textarea {
  min-height: 33px;
  border-color: var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  font-size: 0.88rem;
}

select:focus,
input:focus,
textarea:focus {
  outline: 2px solid rgba(22, 121, 79, 0.16);
  border-color: var(--mint-strong);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 6px;
}

.segmented button {
  min-height: 34px;
  border-radius: 6px;
  border-color: var(--line);
  font-size: 0.82rem;
  font-weight: 720;
}

.segmented button:first-child {
  border-radius: 6px;
}

.segmented button:last-child {
  border-radius: 6px;
}

.segmented button[aria-pressed="true"] {
  border-color: var(--mint-strong);
  background: var(--mint);
  color: var(--mint-strong);
  box-shadow: inset 0 0 0 1px var(--mint-strong);
}

.chip,
.check-chip span {
  min-height: 27px;
  border-color: var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  background: #f7f8f7;
  font-size: 0.8rem;
}

.chip[aria-pressed="true"],
.check-chip input:checked + span,
.section-chip input:checked + span {
  border-color: #b8d7c8;
  background: var(--mint);
  color: var(--mint-strong);
  box-shadow: none;
}

.structure-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.section-chip {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.section-chip:nth-child(3n) {
  border-right: 0;
}

.section-chip input {
  position: absolute;
  opacity: 0;
}

.section-chip span {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 9px 10px;
  background: #fff;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 750;
}

.section-chip small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.lyrics-area {
  min-height: 142px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.55;
}

.output-panel {
  background: linear-gradient(180deg, #f7fbf8 0, #fff 46%);
}

.preview-format {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #b8d7c8;
  border-radius: 8px;
  background: var(--mint);
}

.preview-format span {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  color: #334139;
  font-size: 0.82rem;
  line-height: 1.35;
}

.preview-format strong {
  color: var(--mint-strong);
}

.output-tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}

.output-tabs button {
  min-height: 35px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #303743;
  font-size: 0.82rem;
}

.output-tabs button[aria-selected="true"] {
  background: transparent;
  color: var(--mint-strong);
  border-bottom: 2px solid var(--mint-strong);
}

.prompt-box {
  min-height: 210px;
  border: 1px solid #9fc9b5;
  border-radius: 8px;
  background: #fffdf8;
  color: #1f2933;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.55;
  box-shadow: inset 0 0 0 1px rgba(22, 121, 79, 0.08);
}

.negative-mini {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 0.86rem;
}

.negative-mini span {
  color: var(--muted);
}

.prompt-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.prompt-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 72px minmax(260px, 2.2fr) 1fr 70px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: #202630;
  text-align: left;
  cursor: pointer;
}

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

.prompt-row:hover {
  background: #f8fbf9;
}

.prompt-head {
  min-height: 38px;
  background: #f7f8f7;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: default;
}

.prompt-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--mint-strong);
}

.tag.quiet {
  min-height: auto;
  padding: 3px 7px;
  background: var(--mint);
  font-size: 0.76rem;
}

.prompt-row em {
  display: inline-flex;
  justify-content: center;
  min-width: 42px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-style: normal;
  font-weight: 800;
  cursor: pointer;
}

.library-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 360px;
  min-height: 760px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.library-rail,
.library-inspector {
  padding: 22px 18px;
  background: #fbfcfb;
}

.library-rail {
  border-right: 1px solid var(--line);
}

.library-rail strong {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.library-rail button,
.library-rail a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #27313d;
  padding: 7px 9px;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
}

.library-rail button[aria-pressed="true"] {
  background: var(--mint);
  color: var(--mint-strong);
}

.library-rail span {
  color: var(--muted);
  font-weight: 650;
}

.library-main {
  padding: 34px;
  min-width: 0;
}

.library-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.library-toolbar h2 {
  font-size: 2rem;
}

.library-toolbar p {
  margin: 6px 0 0;
  color: var(--muted);
}

.library-search {
  display: flex;
  gap: 8px;
  width: min(100%, 500px);
}

.library-search input {
  flex: 1;
  min-width: 0;
}

.library-inspector {
  border-left: 1px solid var(--line);
}

.inspector-head h2 {
  margin-top: 8px;
  font-size: 1.45rem;
}

.inspector-head p {
  color: var(--muted);
}

.eyebrow.compact {
  margin-bottom: 0;
  font-size: 0.72rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.spec-grid span {
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #202630;
}

.spec-grid strong {
  color: var(--muted);
  font-size: 0.72rem;
}

.compact-tabs {
  gap: 15px;
  margin-bottom: 12px;
}

.library-output {
  min-height: 170px;
}

.pattern-list {
  display: grid;
  gap: 9px;
  margin-top: 22px;
  color: #202630;
}

.pattern-list span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}

.pattern-list em {
  color: var(--muted);
  font-style: normal;
}

.workflow-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.workflow-step:last-child {
  border-right: 0;
}

.workflow-step h3 {
  font-size: 0.96rem;
}

.workflow-step p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(320px, 1.2fr);
  gap: 12px;
}

.workflow-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.workflow-card h2 {
  font-size: 1rem;
}

.workflow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.example-list {
  display: grid;
  gap: 8px;
}

.example-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #202630;
  font-size: 0.88rem;
}

@media (max-width: 1120px) {
  .preflight-grid,
  .library-layout,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .preflight-panel,
  .library-rail,
  .library-inspector {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-rail {
    grid-template-columns: 1fr 1fr;
  }

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

  .prompt-row span:nth-child(4),
  .prompt-row span:nth-child(6) {
    display: none;
  }

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

@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header,
  main,
  .section,
  .preflight-shell,
  .v5-builder-shell {
    max-width: 100vw;
    overflow-x: clip;
  }

  .nav,
  .product-hero,
  .library-toolbar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav,
  .wrap {
    width: min(calc(100% - 24px), 366px);
    max-width: 366px;
    margin-left: 12px;
    margin-right: 12px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px 10px;
  }

  .nav-links a {
    min-width: 0;
    padding: 7px 0;
    overflow-wrap: anywhere;
  }

  .product-hero > div,
  .section-head > div,
  .lede {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: 2rem;
  }

  .quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .preflight-panel,
  .library-main,
  .library-rail,
  .library-inspector {
    padding: 16px;
  }

  .preflight-panel:first-child {
    grid-template-columns: 1fr;
  }

  .field,
  .preflight-panel:first-child .field {
    grid-column: 1 / -1;
  }

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

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

  .chip,
  .check-chip span {
    display: grid;
    place-items: center;
    width: 100%;
    text-align: center;
  }

  .structure-row,
  .workflow-rail,
  .spec-grid,
  .proof-grid,
  .platform-notes {
    grid-template-columns: 1fr;
  }

  .proof-section {
    padding-top: 8px;
  }

  .proof-card pre {
    min-height: 0;
  }

  .preview-format span {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .output-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    border-bottom: 0;
  }

  .output-tabs button {
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
  }

  .output-tabs button[aria-selected="true"] {
    border-color: var(--mint-strong);
    background: var(--mint);
  }

  .section-chip {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .prompt-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .prompt-head {
    display: none;
  }
}
