:root {
  color-scheme: dark;
  --bg: #071426;
  --bg-deep: #050e1a;
  --panel: #0d1d32;
  --panel-strong: #11243e;
  --panel-soft: #0a182a;
  --input: #091729;
  --text: #f5f7fb;
  --muted: #aeb9ca;
  --muted-strong: #c7cfdb;
  --line: rgba(159, 182, 214, 0.19);
  --line-strong: rgba(159, 182, 214, 0.33);
  --blue: #2d65aa;
  --blue-light: #4381d1;
  --gold: #d9b94f;
  --green: #3ad39c;
  --red: #ff8b8f;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 11px;
  --shell: 1220px;
  --form-shell: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 84% 12%, rgba(45, 101, 170, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong,
label,
legend {
  text-wrap: balance;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.form-shell {
  width: min(calc(100% - 40px), var(--form-shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 750;
  transform: translateY(-150%);
}

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tool-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.tool-brand strong,
.tool-brand small {
  display: block;
}

.tool-brand strong {
  font-size: 0.93rem;
  letter-spacing: 0.01em;
}

.tool-brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.76rem;
}

.brand-mark,
.author-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(217, 185, 79, 0.48);
  border-radius: 12px;
  background: rgba(217, 185, 79, 0.1);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.brand-mark-small {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 0.65rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 740;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.back-link:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(350px, 0.84fr);
  gap: 72px 58px;
  padding-top: 78px;
  padding-bottom: 60px;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 19px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 840;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

h1 {
  max-width: 800px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 5.65vw, 4.85rem);
  font-weight: 790;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.hero-lead {
  max-width: 740px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.6vw, 1.23rem);
  line-height: 1.65;
}

.benefit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 690;
}

.benefit-list li::before {
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(58, 211, 156, 0.1);
  content: "";
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.79rem;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(58, 211, 156, 0.1);
  vertical-align: 0.08em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.91rem;
  font-weight: 770;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.button-primary {
  border-color: rgba(102, 155, 226, 0.34);
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(20, 73, 143, 0.25);
}

.button-primary:hover:not(:disabled) {
  background: #3672bd;
}

.button-secondary {
  border-color: rgba(118, 165, 229, 0.26);
  background: rgba(23, 59, 108, 0.72);
}

.button-secondary:hover:not(:disabled) {
  background: rgba(31, 74, 133, 0.84);
}

.button-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--muted-strong);
}

.button-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.button-large {
  min-height: 54px;
  padding-inline: 24px;
  font-size: 0.97rem;
}

.hero-visual {
  position: relative;
  min-height: 460px;
  align-self: center;
}

.visual-glow {
  position: absolute;
  inset: 15% 0 0 10%;
  border-radius: 50%;
  background: rgba(42, 96, 164, 0.23);
  filter: blur(54px);
}

.prompt-sheet {
  position: absolute;
  z-index: 1;
  inset: 34px 20px 28px 32px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(172, 194, 224, 0.24);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(20, 42, 70, 0.98), rgba(8, 21, 37, 0.98));
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.prompt-sheet::before {
  position: absolute;
  top: 0;
  right: 36px;
  left: 36px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  content: "";
}

.sheet-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.sheet-ready {
  color: var(--green);
}

.sheet-ready i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.sheet-title-line {
  width: 75%;
  height: 13px;
  margin-bottom: 9px;
  border-radius: 5px;
  background: #eef2f8;
}

.sheet-title-line.short {
  width: 48%;
  margin-bottom: 32px;
}

.sheet-section {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  margin-top: 22px;
}

.sheet-section > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(217, 185, 79, 0.34);
  border-radius: 8px;
  color: var(--gold);
  font-size: 0.59rem;
  font-weight: 850;
}

.sheet-section div {
  padding-top: 2px;
}

.sheet-section i {
  display: block;
  width: 100%;
  height: 6px;
  margin-bottom: 8px;
  border-radius: 5px;
  background: rgba(191, 204, 224, 0.25);
}

.sheet-section i.medium {
  width: 78%;
}

.sheet-section i.short {
  width: 58%;
}

.sheet-footer {
  display: flex;
  gap: 7px;
  margin: 30px 0 0 44px;
}

.sheet-footer span {
  width: 46px;
  height: 7px;
  border-radius: 4px;
  background: rgba(58, 211, 156, 0.36);
}

.visual-label {
  position: absolute;
  z-index: 2;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(7, 20, 38, 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  color: var(--muted-strong);
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.label-input {
  top: 8px;
  left: 0;
}

.label-output {
  right: 0;
  bottom: 4px;
  color: var(--green);
}

.scope-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: -20px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 29, 50, 0.66);
}

.scope-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.scope-note strong {
  color: var(--muted-strong);
}

.scope-icon,
.content-explainer > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(67, 129, 209, 0.42);
  border-radius: 50%;
  color: #8db7ee;
  font-size: 0.73rem;
  font-weight: 850;
}

.process-section {
  padding: 74px 0 82px;
  border-block: 1px solid var(--line);
  background: var(--bg-deep);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading h2,
.generator-intro h2,
.result-heading h2,
.author-card h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 770;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--line);
  list-style: none;
}

.process-grid li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 17px;
  min-height: 184px;
  padding: 30px 30px 26px 0;
}

.process-grid li + li {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.process-number {
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.process-grid h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.process-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.generator-section,
.result-section {
  padding: 86px 0;
}

.generator-intro,
.result-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.generator-intro p:not(.eyebrow),
.result-heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.save-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 350px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.save-note .status-dot {
  margin-top: 8px;
}

.save-note strong,
.save-note small {
  display: block;
}

.save-note strong {
  font-size: 0.78rem;
}

.save-note small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.45;
}

.progress-panel {
  margin-bottom: 18px;
  padding: 18px 20px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13, 29, 50, 0.76);
}

.progress-track {
  height: 3px;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.09);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-light), var(--green));
  transition: width 220ms ease;
}

.progress-panel ol {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-panel button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 720;
  text-align: left;
  cursor: pointer;
}

.progress-panel button:hover,
.progress-panel button.is-active {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.progress-panel button span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted-strong);
  font-size: 0.67rem;
}

.progress-panel button.is-complete span {
  border-color: rgba(58, 211, 156, 0.35);
  background: rgba(58, 211, 156, 0.11);
  color: var(--green);
}

.form-section {
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(13, 29, 50, 0.72);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.form-section:focus-within {
  border-color: rgba(102, 155, 226, 0.38);
}

.core-section {
  border-color: rgba(217, 185, 79, 0.24);
}

.section-toggle {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 32px;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 94px;
  padding: 17px 22px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.section-toggle:hover {
  background: rgba(255, 255, 255, 0.018);
}

.section-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(217, 185, 79, 0.29);
  border-radius: 11px;
  background: rgba(217, 185, 79, 0.07);
  color: var(--gold);
  font-size: 0.71rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.section-title strong,
.section-title small {
  display: block;
}

.section-title strong {
  font-size: 1.02rem;
}

.section-title small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 450;
}

.core-label {
  padding: 5px 8px;
  border: 1px solid rgba(217, 185, 79, 0.27);
  border-radius: 6px;
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.toggle-sign {
  position: relative;
  width: 24px;
  height: 24px;
}

.toggle-sign::before,
.toggle-sign::after {
  position: absolute;
  top: 11px;
  right: 4px;
  left: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--muted);
  content: "";
  transition: transform 160ms ease;
}

.section-toggle[aria-expanded="false"] .toggle-sign::after {
  transform: rotate(90deg);
}

.section-panel {
  padding: 28px 24px 30px;
  border-top: 1px solid var(--line);
}

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

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

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

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

.field,
fieldset {
  min-width: 0;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

label,
legend {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 740;
  line-height: 1.4;
}

.required-mark {
  color: var(--gold);
  font-weight: 850;
}

.optional,
.recommended {
  margin-left: 5px;
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.optional {
  color: var(--muted);
}

.recommended {
  color: var(--green);
}

.field-help {
  margin: -2px 0 9px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

input[type="text"],
input[type="url"],
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--input);
  color: var(--text);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

input[type="text"],
input[type="url"],
select {
  padding: 10px 13px;
}

textarea {
  min-height: 118px;
  padding: 12px 13px;
  line-height: 1.55;
  resize: vertical;
}

.textarea-large {
  min-height: 190px;
}

.textarea-xlarge {
  min-height: 270px;
}

input::placeholder,
textarea::placeholder {
  color: #6f8098;
  opacity: 1;
}

select {
  cursor: pointer;
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(159, 182, 214, 0.47);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue-light);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(67, 129, 209, 0.15);
  background: #0a1a2e;
}

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

.choice {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 20, 38, 0.54);
  color: var(--muted-strong);
  cursor: pointer;
}

.choice:hover {
  border-color: var(--line-strong);
}

.choice:has(input:checked) {
  border-color: rgba(67, 129, 209, 0.52);
  background: rgba(45, 101, 170, 0.16);
  color: var(--text);
}

.choice input,
.check-row input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0 10px 0 0;
  accent-color: var(--blue-light);
}

.choice span {
  font-size: 0.8rem;
  font-weight: 650;
}

.content-explainer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 15px 16px;
  border: 1px solid rgba(67, 129, 209, 0.23);
  border-radius: 12px;
  background: rgba(45, 101, 170, 0.08);
}

.content-explainer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.check-row {
  display: flex;
  align-items: flex-start;
  min-height: 62px;
  margin-bottom: 25px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.check-row:has(input:checked) {
  border-color: rgba(58, 211, 156, 0.34);
  background: rgba(58, 211, 156, 0.065);
}

.check-row input {
  margin-top: 3px;
}

.check-row strong,
.check-row small {
  display: block;
}

.check-row strong {
  font-size: 0.84rem;
}

.check-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 430;
}

.guardrail-field {
  padding: 18px;
  border: 1px solid rgba(217, 185, 79, 0.18);
  border-radius: 13px;
  background: rgba(217, 185, 79, 0.035);
}

.field-error {
  margin: 7px 0 0;
  color: var(--red);
  font-size: 0.77rem;
  font-weight: 690;
}

.field-error:not([hidden])::before {
  margin-right: 6px;
  content: "!";
}

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

.section-error {
  margin: -14px 0 18px;
}

.field-invalid {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(255, 139, 143, 0.09) !important;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13, 29, 50, 0.75);
}

.draft-action {
  margin-top: 10px;
  text-align: right;
}

.text-button {
  min-height: 44px;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 680;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-button:hover {
  color: var(--text);
}

.result-section {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.result-heading .eyebrow .status-dot {
  margin-right: 9px;
}

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

.summary-grid article {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(13, 29, 50, 0.68);
}

.summary-grid article:first-child {
  grid-column: 1 / -1;
}

.summary-grid span,
.summary-grid strong {
  display: block;
}

.summary-grid span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 790;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.summary-grid strong {
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  line-height: 1.5;
}

.prompt-card {
  overflow: hidden;
  border: 1px solid rgba(159, 182, 214, 0.26);
  border-radius: 22px;
  background: #eef2f7;
  box-shadow: var(--shadow);
  color: #142033;
}

.prompt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  background: #ffffff;
}

.prompt-kicker {
  margin-bottom: 4px;
  color: #56708f;
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.prompt-card h3 {
  margin: 0;
  color: #102036;
  font-size: 1.08rem;
}

.prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-preview {
  margin: 0;
  padding: 16px 24px;
  border-block: 1px solid #d7dee8;
  background: #f8fafc;
  color: #4d5f76;
  font-size: 0.82rem;
}

#promptOutput {
  min-height: 480px;
  margin: 0;
  padding: 28px 28px 36px;
  overflow: visible;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #16243a;
  font: 0.83rem/1.72 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

#promptOutput:focus {
  outline-color: var(--blue);
  outline-offset: -5px;
}

.compatibility-note {
  margin: 0;
  padding: 15px 24px;
  border-top: 1px solid #d7dee8;
  background: #ffffff;
  color: #54667c;
  font-size: 0.78rem;
}

.tips-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 40px;
  margin-top: 24px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13, 29, 50, 0.7);
}

.tips-grid h3 {
  margin: 0;
  font-size: 1.25rem;
}

.tips-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tips-grid li {
  position: relative;
  padding: 7px 0 7px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 0.84rem;
}

.tips-grid li:last-child {
  border-bottom: 0;
}

.tips-grid li::before {
  position: absolute;
  top: 10px;
  left: 2px;
  color: var(--green);
  font-weight: 850;
  content: "✓";
}

.review-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  text-align: center;
}

.author-section {
  padding: 78px 0;
  border-top: 1px solid var(--line);
}

.author-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 32px;
  align-items: start;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(18, 40, 68, 0.94), rgba(9, 24, 42, 0.94));
}

.author-mark {
  width: 78px;
  height: 78px;
  border-radius: 21px;
  font-size: 1rem;
}

.author-card h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
}

.author-card > div:last-child > p:last-child {
  max-width: 880px;
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.site-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  font-size: 0.83rem;
}

.site-footer span,
.site-footer p {
  color: var(--muted);
  font-size: 0.71rem;
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  width: min(390px, calc(100% - 40px));
  padding: 14px 17px;
  border: 1px solid rgba(58, 211, 156, 0.35);
  border-radius: 12px;
  background: #10243a;
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 680;
}

.toast[data-tone="error"] {
  border-color: rgba(255, 139, 143, 0.43);
}

.toast[hidden] {
  display: none;
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.92fr);
    gap: 45px 30px;
  }

  .hero-visual {
    min-height: 410px;
  }

  .process-grid li {
    grid-template-columns: 38px 1fr;
    padding-right: 22px;
  }

  .process-grid li + li {
    padding-left: 22px;
  }

  .progress-panel {
    overflow-x: auto;
  }

  .progress-panel ol {
    min-width: 760px;
  }
}

@media (max-width: 780px) {
  .shell,
  .form-shell {
    width: min(calc(100% - 30px), var(--shell));
  }

  .header-inner {
    min-height: 74px;
  }

  .tool-brand strong {
    max-width: 200px;
    line-height: 1.25;
  }

  .back-link {
    padding-inline: 12px;
    font-size: 0.78rem;
  }

  .hero {
    display: block;
    padding-top: 54px;
  }

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

  .hero-visual {
    min-height: 390px;
    margin-top: 42px;
  }

  .scope-note {
    margin-top: 24px;
  }

  .process-grid {
    display: block;
  }

  .process-grid li {
    min-height: 0;
    padding: 25px 0;
  }

  .process-grid li + li {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .generator-intro,
  .result-heading {
    display: block;
  }

  .save-note {
    max-width: none;
    margin-top: 20px;
  }

  .field-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .field-grid-nested {
    grid-template-columns: 1fr 1fr;
  }

  .section-toggle {
    grid-template-columns: 44px minmax(0, 1fr) 26px;
    min-height: 88px;
    padding-inline: 16px;
  }

  .core-label {
    display: none;
  }

  .section-panel {
    padding: 24px 16px 26px;
  }

  .result-heading .button {
    margin-top: 18px;
  }

  .prompt-card-header {
    display: block;
  }

  .prompt-actions {
    margin-top: 16px;
  }

  .tips-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

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

@media (max-width: 560px) {
  .shell,
  .form-shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .site-header .tool-brand small,
  .back-link span {
    display: none;
  }

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

  .back-link {
    min-height: 44px;
    max-width: 128px;
    text-align: center;
  }

  .hero {
    padding-top: 44px;
    padding-bottom: 46px;
  }

  .hero-copy .eyebrow {
    align-items: flex-start;
  }

  h1 {
    font-size: clamp(2.58rem, 13vw, 3.4rem);
    line-height: 1;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    display: block;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions p {
    margin-top: 15px;
    text-align: center;
  }

  .hero-visual {
    min-height: 320px;
    margin-top: 34px;
  }

  .prompt-sheet {
    inset: 25px 5px 26px 10px;
    padding: 22px;
  }

  .sheet-section {
    margin-top: 17px;
  }

  .visual-label {
    font-size: 0.52rem;
  }

  .scope-note {
    padding: 15px;
  }

  .process-section,
  .generator-section,
  .result-section,
  .author-section {
    padding-block: 62px;
  }

  .section-heading h2,
  .generator-intro h2,
  .result-heading h2 {
    font-size: 2rem;
  }

  .progress-panel {
    padding-inline: 14px;
  }

  .progress-panel ol {
    min-width: 650px;
  }

  .section-title small {
    display: none;
  }

  .field-grid-nested {
    grid-template-columns: 1fr;
  }

  .form-actions {
    display: grid;
    padding: 14px;
  }

  .form-actions .button {
    width: 100%;
  }

  .draft-action {
    text-align: center;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid article:first-child {
    grid-column: auto;
  }

  .prompt-actions {
    display: grid;
  }

  .prompt-actions .button {
    width: 100%;
  }

  .prompt-card-header,
  .prompt-preview,
  .compatibility-note {
    padding-inline: 17px;
  }

  #promptOutput {
    min-height: 360px;
    padding: 22px 17px 30px;
    font-size: 0.76rem;
  }

  .tips-grid {
    padding: 20px 17px;
  }

  .author-card {
    gap: 22px;
    padding: 25px 20px;
  }

  .site-footer .shell {
    display: block;
  }

  .site-footer p {
    margin-top: 13px;
    text-align: left;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
}

@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;
  }
}

.site-footer .tk-static-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.site-footer .tk-static-legal a {
  color: inherit;
  text-decoration: none;
}

.site-footer .tk-static-legal a:hover {
  color: #d2ad43;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .site-footer .tk-static-legal {
    width: 100%;
    justify-content: center;
  }
}
