:root {
  --navy: #17324d; --blue: #2f628c; --light-blue: #eaf2f8; --gold: #c99a3d;
  --text: #24313d; --muted: #647382; --background: #f4f6f7; --white: #fff;
  --border: #d8e0e6; --error: #a33a3a; --success: #28734f;
  --shadow: 0 12px 32px rgba(23, 50, 77, .1);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--background); color: var(--text); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
button, textarea, input, select { font: inherit; }
.app-shell { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0; }
.app-header { margin-bottom: 32px; text-align: center; }
.eyebrow, .section-label { margin: 0 0 8px; color: var(--blue); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; color: var(--navy); font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; }
h2 { margin-bottom: 12px; color: var(--navy); font-size: clamp(1.35rem, 4vw, 1.8rem); line-height: 1.3; }
.subtitle, .question-help, .record-header p { color: var(--muted); }
.subtitle { max-width: 600px; margin: 0 auto; }
.progress-section { margin-bottom: 20px; }
.progress-details { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: .88rem; }
.progress-track { height: 8px; overflow: hidden; background: var(--border); border-radius: 999px; }
.progress-bar { width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), var(--gold)); border-radius: inherit; transition: width .3s ease; }
.question-card, .record-header, .record-content { background: var(--white); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.question-card { padding: clamp(24px, 5vw, 40px); }
.answer-area { margin-top: 24px; }
textarea, input, select { width: 100%; padding: 14px 16px; color: var(--text); background: var(--white); border: 1px solid #b9c6cf; border-radius: 10px; outline: none; }
textarea { min-height: 170px; resize: vertical; }
textarea:focus, input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 98, 140, .15); }
.option-list { display: grid; gap: 12px; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.option:hover { border-color: var(--blue); background: var(--light-blue); }
.option input { width: auto; margin-top: 5px; }
.validation-message, .copy-message { min-height: 24px; margin: 14px 0 0; font-size: .9rem; }
.validation-message { color: var(--error); }
.copy-message { color: var(--success); text-align: center; }
.navigation { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.button { min-width: 120px; padding: 12px 20px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; cursor: pointer; }
.button:disabled { cursor: not-allowed; opacity: .45; }
.primary { color: var(--white); background: var(--navy); }
.primary:hover:not(:disabled) { background: var(--blue); }
.secondary { color: var(--navy); background: var(--white); border-color: var(--border); }
.secondary:hover:not(:disabled) { background: var(--light-blue); border-color: var(--blue); }
.record-header { margin-bottom: 20px; padding: clamp(24px, 5vw, 36px); }
.record-header p:last-child { margin-bottom: 0; }
.record-content { padding: clamp(20px, 5vw, 36px); }
.record-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.record-item:first-child { padding-top: 0; }
.record-item:last-child { padding-bottom: 0; border-bottom: 0; }
.record-item h3 { margin: 0 0 8px; color: var(--navy); font-size: 1rem; }
.record-item p { margin-bottom: 0; white-space: pre-wrap; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 560px) {
  .app-shell { width: min(100% - 22px, 760px); padding: 28px 0; }
  .navigation { flex-direction: column-reverse; }
  .button { width: 100%; }
}
