:root {
  color-scheme: light;
  --ink: #17313b;
  --paper: #f4f8fb;
  --mist: #e9f1f6;
  --teal: #277a84;
  --teal-deep: #1e5f6b;
  --sky: #dcecf3;
  --gold: #c8a860;
  --ember: #9a5a30;
  --field: #4f7560;
  --rose: #b54768;
  --border: rgba(23, 49, 59, 0.1);
  --shadow: 0 20px 42px rgba(31, 76, 97, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(200, 168, 96, 0.12), transparent 24%),
    radial-gradient(circle at 90% 6%, rgba(87, 160, 180, 0.16), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(39, 122, 132, 0.08), transparent 28%),
    linear-gradient(180deg, #eff5f9 0%, #f5f9fc 42%, #edf4f8 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Pretendard Variable", "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 118px,
      rgba(39, 122, 132, 0.02) 118px,
      rgba(39, 122, 132, 0.02) 119px
    );
}

button,
input,
a,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  gap: 16px;
}

.side-panel,
.main-panel,
.sticky-footer,
.completion-card {
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.side-panel {
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(244, 249, 252, 0.96), rgba(235, 244, 249, 0.94)),
    linear-gradient(160deg, rgba(39, 122, 132, 0.05), rgba(255, 255, 255, 0));
  padding: 18px;
}

.main-panel {
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(249, 252, 254, 0.98), rgba(242, 247, 251, 0.96)),
    linear-gradient(180deg, rgba(39, 122, 132, 0.04), rgba(255, 255, 255, 0));
  overflow: hidden;
}

.hero-card,
.notice-card,
.progress-card,
.question-card,
.summary-card,
.info-panel,
.start-card,
.detail-card,
.mini-card,
.validation-box,
.alert-box {
  border-radius: 24px;
}

.hero-card {
  background:
    radial-gradient(circle at right top, rgba(39, 122, 132, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(247, 251, 254, 0.98), rgba(233, 243, 249, 0.98)),
    linear-gradient(180deg, rgba(39, 122, 132, 0.08), rgba(200, 168, 96, 0.04));
  color: var(--ink);
  padding: 20px;
  border: 1px solid rgba(39, 122, 132, 0.16);
  text-align: center;
}

.hero-card h1,
.completion-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(1.28rem, 2vw, 1.76rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.hero-card h1 span {
  display: block;
}

.hero-card p:last-child,
.completion-hero p:last-child {
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.58;
  color: rgba(23, 49, 59, 0.74);
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(39, 122, 132, 0.84);
}

.eyebrow.tint {
  color: rgba(39, 122, 132, 0.72);
}

.progress-card,
.notice-card,
.question-card,
.summary-card,
.validation-box,
.detail-card,
.start-card:not(.dark),
.mini-card,
.upload-box {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(244, 249, 252, 0.95));
}

.progress-card,
.notice-card {
  margin-top: 14px;
  padding: 15px;
}

.progress-copy,
.notice-card {
  font-size: 0.94rem;
  line-height: 1.58;
  color: rgba(23, 49, 59, 0.72);
}

.metric-value {
  margin: 10px 0 0;
  font-size: 2.2rem;
  font-weight: 700;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(105, 142, 158, 0.18);
  margin-top: 12px;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), #76afbd);
}

.step-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.step-chip {
  width: 100%;
  border: 1px solid rgba(23, 49, 59, 0.07);
  border-radius: 22px;
  background: rgba(248, 252, 254, 0.72);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: 0.2s ease;
}

.step-chip span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(39, 122, 132, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: rgba(23, 49, 59, 0.72);
}

.step-chip strong {
  font-size: 0.92rem;
  line-height: 1.36;
}

.step-chip.current {
  background: rgba(39, 122, 132, 0.11);
  border-color: rgba(39, 122, 132, 0.22);
}

.step-chip.current span {
  background: var(--teal);
  color: white;
}

.step-chip.done {
  background: rgba(77, 109, 77, 0.08);
}

.step-chip.done span {
  background: var(--field);
  color: white;
}

.panel-header {
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(242, 248, 252, 0.94), rgba(247, 251, 253, 0.82)),
    linear-gradient(90deg, rgba(39, 122, 132, 0.05), rgba(255, 255, 255, 0));
}

.badge-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.header-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.badge,
.pill,
.required-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge {
  background: rgba(39, 122, 132, 0.1);
  color: var(--teal);
}

.badge.soft {
  background: rgba(24, 48, 51, 0.05);
  color: rgba(24, 48, 51, 0.62);
}

.badge.warm {
  background: rgba(200, 168, 96, 0.16);
  color: #8b6a1d;
}

.top-copyright {
  flex-shrink: 0;
  border: 1px solid rgba(39, 122, 132, 0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.96), rgba(240, 247, 250, 0.92));
  padding: 7px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(23, 49, 59, 0.62);
  text-align: right;
}

.panel-heading {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.panel-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(1.18rem, 1.7vw, 1.52rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.step-caption {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(33, 112, 133, 0.88);
}

.step-description {
  max-width: 860px;
  margin: 10px 0 0;
  font-size: 0.93rem;
  line-height: 1.56;
  color: rgba(23, 49, 59, 0.7);
}

.panel-progress {
  min-width: 120px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(39, 122, 132, 0.11), rgba(23, 49, 59, 0.04)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0));
  padding: 10px 12px;
  text-align: right;
}

.panel-progress span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(23, 49, 59, 0.48);
}

.panel-progress strong {
  display: block;
  margin-top: 6px;
  font-size: 1.45rem;
}

.progress-track.wide {
  margin-top: 14px;
}

.panel-body {
  padding: 16px 18px 20px;
  display: grid;
  gap: 12px;
}

.top-gap {
  margin-top: 10px;
}

.intro-grid,
.completion-grid {
  display: grid;
  gap: 12px;
}

.start-card,
.detail-card {
  padding: 18px;
}

.start-card.dark {
  background:
    radial-gradient(circle at 100% 0, rgba(39, 122, 132, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(245, 250, 253, 0.98), rgba(232, 242, 248, 0.96)),
    linear-gradient(180deg, rgba(39, 122, 132, 0.07), rgba(200, 168, 96, 0.04));
  color: var(--ink);
  border: 1px solid rgba(39, 122, 132, 0.14);
}

.start-card h3 {
  margin: 8px 0 0;
  font-size: clamp(1.18rem, 1.8vw, 1.5rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.start-card p {
  margin: 10px 0 0;
  font-size: 0.93rem;
  line-height: 1.56;
}

.mini-card {
  padding: 15px;
}

.mini-card strong {
  display: block;
  font-size: 1.02rem;
}

.mini-card p {
  margin: 8px 0 0;
  color: rgba(23, 49, 59, 0.7);
  line-height: 1.55;
}

.question-card,
.summary-card {
  padding: 16px;
}

.question-head,
.summary-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.question-head h3,
.summary-head h3 {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.34;
}

.required-pill.required {
  background: rgba(190, 18, 60, 0.12);
  color: var(--rose);
}

.required-pill.optional {
  background: rgba(23, 49, 59, 0.08);
  color: rgba(23, 49, 59, 0.62);
}

.hint-text {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(23, 49, 59, 0.58);
}

.question-body {
  margin-top: 12px;
}

.choice-grid,
.summary-grid,
.triple-grid {
  display: grid;
  gap: 10px;
}

.summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.triple-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-button,
.consent-toggle,
.secondary-button,
.primary-button,
.number-field,
.step-chip,
.summary-item {
  transition: 0.2s ease;
}

.choice-button {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(252, 254, 255, 1), rgba(244, 249, 252, 0.96));
  padding: 12px 14px;
  text-align: left;
}

.choice-button strong {
  font-size: 0.94rem;
  line-height: 1.36;
}

.choice-button.selected {
  border-color: rgba(39, 122, 132, 0.34);
  background: linear-gradient(180deg, rgba(231, 244, 248, 0.98), rgba(223, 239, 245, 0.92));
}

.choice-button.selected.warm {
  border-color: rgba(154, 90, 48, 0.26);
  background: rgba(154, 90, 48, 0.08);
}

.number-field,
.text-field,
.consent-toggle,
.select-field,
.textarea-field {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(247, 251, 253, 0.98);
  border-radius: 22px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.number-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 700;
}

.text-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.select-field select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
  appearance: none;
  padding-right: 18px;
}

.textarea-field {
  display: block;
}

.textarea-field textarea {
  width: 100%;
  border: 0;
  outline: 0;
  resize: vertical;
  min-height: 78px;
  background: transparent;
  font-size: 0.96rem;
  line-height: 1.55;
}

.number-field span {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(23, 49, 59, 0.52);
}

.consent-toggle.checked {
  background: rgba(79, 117, 96, 0.09);
  border-color: rgba(79, 117, 96, 0.22);
}

.checkbox-mark {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(23, 49, 59, 0.2);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.sub-block,
.upload-panel,
.summary-item,
.upload-box {
  margin-top: 10px;
}

.sub-block {
  border: 1px solid var(--border);
  background: rgba(238, 246, 250, 0.84);
  border-radius: 22px;
  padding: 13px 14px;
}

.sub-block h4 {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.secondary-button,
.primary-button {
  border-radius: 20px;
  padding: 12px 16px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
}

.secondary-button {
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(244, 249, 252, 0.96));
  border-color: rgba(23, 49, 59, 0.14);
  color: var(--ink);
}

.secondary-button.inverse {
  background: rgba(39, 122, 132, 0.08);
  border-color: rgba(39, 122, 132, 0.16);
  color: var(--teal-deep);
}

.secondary-button.danger-button {
  background: rgba(173, 79, 84, 0.08);
  border-color: rgba(173, 79, 84, 0.22);
  color: #8f3039;
}

.secondary-button.small {
  padding: 10px 14px;
  font-size: 0.92rem;
}

.primary-button {
  background: linear-gradient(180deg, #3f8d9d, var(--teal));
  color: white;
}

.primary-button.dark {
  background: linear-gradient(180deg, #2d6471, #214e59);
}

.pill.success {
  background: rgba(54, 83, 20, 0.12);
  color: var(--field);
}

.info-panel {
  padding: 14px 16px;
  font-size: 0.94rem;
  line-height: 1.58;
}

.info-panel.warning {
  background: rgba(200, 168, 96, 0.12);
  border: 1px solid rgba(200, 168, 96, 0.2);
}

.info-panel.neutral {
  background: rgba(39, 122, 132, 0.06);
  border: 1px solid var(--border);
}

.summary-item {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(249, 252, 254, 0.98), rgba(238, 246, 250, 0.94));
  padding: 12px;
}

.summary-item span {
  display: block;
  font-size: 0.92rem;
  color: rgba(23, 49, 59, 0.54);
}

.summary-item strong {
  display: block;
  margin-top: 6px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.validation-box {
  margin-top: 14px;
  padding: 13px 14px;
  background: rgba(181, 71, 104, 0.07);
  border: 1px solid rgba(181, 71, 104, 0.16);
}

.validation-box p {
  margin: 0;
  font-weight: 700;
}

.validation-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
  line-height: 1.6;
}

.sticky-footer {
  position: sticky;
  bottom: 16px;
  max-width: 1080px;
  margin: 14px auto 0;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(239, 246, 250, 0.96));
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.summary-banner,
.save-banner {
  margin-top: 12px;
  border-radius: 20px;
  padding: 12px 14px;
  background: rgba(33, 112, 133, 0.08);
  border: 1px solid rgba(33, 112, 133, 0.18);
  color: rgba(23, 49, 59, 0.82);
}

.mono-box {
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(23, 49, 59, 0.06);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.preview-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(249, 252, 254, 0.94);
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.preview-table th,
.preview-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(16, 19, 33, 0.08);
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.5;
}

.preview-table th {
  background: rgba(23, 49, 59, 0.05);
  font-weight: 700;
}

.preview-table tr:last-child td {
  border-bottom: 0;
}

.record-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.record-chip {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(248, 252, 254, 0.92);
  padding: 12px;
  text-align: left;
  display: grid;
  gap: 4px;
}

.record-chip strong {
  font-size: 0.98rem;
}

.record-chip span {
  font-size: 0.9rem;
  color: rgba(23, 49, 59, 0.64);
  line-height: 1.5;
}

.record-chip.selected {
  border-color: rgba(33, 112, 133, 0.28);
  background: rgba(33, 112, 133, 0.08);
}

.empty-card,
.field-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(248, 252, 254, 0.95);
  padding: 14px;
}

.field-card.full-span {
  grid-column: 1 / -1;
}

.button-row.compact {
  gap: 6px;
}

.admin-shell {
  gap: 12px;
}

.admin-shell .side-panel {
  padding: 14px;
}

.admin-shell .hero-card,
.admin-shell .progress-card,
.admin-shell .question-card,
.admin-shell .summary-card,
.admin-shell .field-card,
.admin-shell .empty-card,
.admin-shell .sticky-footer {
  border-radius: 18px;
}

.admin-shell .hero-card {
  padding: 14px;
}

.admin-shell .hero-card h1 {
  font-size: clamp(1.1rem, 1.5vw, 1.34rem);
  line-height: 1.1;
}

.admin-shell .hero-card p:last-child,
.admin-shell .progress-copy,
.admin-shell .notice-card,
.admin-shell .step-description,
.admin-shell .helper-text,
.admin-shell .sticky-footer p,
.admin-shell .record-chip span,
.admin-shell .empty-card p,
.admin-shell .mini-card p {
  font-size: 0.86rem;
  line-height: 1.35;
}

.admin-shell .progress-card {
  margin-top: 12px;
  padding: 12px;
}

.admin-shell .metric-value {
  font-size: 1.8rem;
  margin-top: 6px;
}

.admin-shell .record-list {
  margin-top: 10px;
  gap: 6px;
}

.admin-shell .record-chip {
  padding: 10px;
}

.admin-shell .record-chip strong {
  font-size: 0.9rem;
}

.admin-shell .panel-header {
  padding: 14px 14px 12px;
}

.admin-shell .panel-heading {
  margin-top: 8px;
  gap: 10px;
}

.admin-shell .panel-heading h2 {
  margin-top: 4px;
  font-size: clamp(1.04rem, 1.3vw, 1.22rem);
  line-height: 1.14;
}

.admin-shell .step-caption {
  font-size: 0.78rem;
}

.admin-shell .step-description {
  margin-top: 6px;
}

.admin-shell .panel-body {
  padding: 12px 14px 16px;
  gap: 10px;
}

.admin-shell .question-card,
.admin-shell .summary-card {
  padding: 12px;
}

.admin-shell .question-head,
.admin-shell .summary-head {
  gap: 8px;
}

.admin-shell .question-head h3,
.admin-shell .summary-head h3,
.admin-shell .field-card strong {
  font-size: 0.95rem;
  line-height: 1.22;
}

.admin-shell .top-gap {
  margin-top: 6px;
}

.admin-shell .clinician-grid,
.admin-shell .summary-grid,
.admin-shell .triple-grid,
.admin-shell .choice-grid {
  gap: 8px;
}

.admin-shell .field-card {
  padding: 10px 11px;
}

.admin-shell .choice-button {
  border-radius: 16px;
  padding: 9px 10px;
}

.admin-shell .choice-button strong {
  font-size: 0.87rem;
  line-height: 1.24;
}

.admin-shell .number-field,
.admin-shell .text-field,
.admin-shell .consent-toggle,
.admin-shell .select-field,
.admin-shell .textarea-field {
  border-radius: 16px;
  padding: 10px 11px;
}

.admin-shell .number-field input,
.admin-shell .text-field input,
.admin-shell .select-field select,
.admin-shell .textarea-field textarea {
  font-size: 0.92rem;
}

.admin-shell .textarea-field textarea {
  min-height: 64px;
  line-height: 1.38;
}

.admin-shell .summary-item {
  padding: 10px;
}

.admin-shell .summary-item span {
  font-size: 0.82rem;
}

.admin-shell .summary-item strong {
  margin-top: 4px;
  font-size: 0.88rem;
  line-height: 1.3;
}

.admin-shell .sticky-footer {
  margin-top: 10px;
  padding: 10px 12px;
}

.empty-card.large {
  padding: 20px;
}

.empty-card strong,
.field-card strong {
  font-size: 1.05rem;
}

.helper-text {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(23, 49, 59, 0.54);
}

.simple-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
  color: rgba(23, 49, 59, 0.8);
}

.simple-list li + li {
  margin-top: 6px;
}

.secondary-button.is-active {
  background: rgba(33, 112, 133, 0.12);
  border-color: rgba(33, 112, 133, 0.28);
  color: rgba(17, 60, 73, 0.94);
}

.file-input-wrap input[type="file"] {
  width: 100%;
  font-size: 0.92rem;
}

.empty-card p {
  margin: 8px 0 0;
  line-height: 1.55;
  color: rgba(23, 49, 59, 0.66);
}

.clinician-grid {
  display: grid;
  gap: 10px;
}

.summary-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sticky-footer p {
  margin: 0;
  line-height: 1.5;
  color: rgba(23, 49, 59, 0.68);
}

.completion-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.completion-card {
  width: 100%;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(241, 247, 251, 0.96));
  padding: 18px;
}

.completion-hero {
  border-radius: 28px;
  background:
    radial-gradient(circle at right top, rgba(39, 122, 132, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(246, 251, 254, 0.98), rgba(233, 243, 249, 0.96)),
    linear-gradient(180deg, rgba(39, 122, 132, 0.07), rgba(200, 168, 96, 0.04));
  color: var(--ink);
  padding: 20px;
  border: 1px solid rgba(39, 122, 132, 0.14);
}

.alert-box {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(39, 122, 132, 0.06);
  line-height: 1.58;
}

.alert-box.danger {
  background: rgba(181, 71, 104, 0.08);
  color: #8e3a58;
}

.copyright-line {
  margin-top: 16px;
  font-size: 0.92rem;
  color: rgba(23, 49, 59, 0.54);
}

.choice-button:hover,
.record-chip:hover,
.step-chip:hover,
.secondary-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
}

.choice-button:hover,
.record-chip:hover,
.step-chip:hover {
  box-shadow: 0 12px 24px rgba(31, 76, 97, 0.08);
}

.choice-button:focus-visible,
.secondary-button:focus-visible,
.primary-button:focus-visible,
.record-chip:focus-visible,
.step-chip:focus-visible {
  outline: 3px solid rgba(39, 122, 132, 0.18);
  outline-offset: 2px;
}

@media (min-width: 1080px) {
  .app-shell {
    grid-template-columns: 330px minmax(0, 1fr);
  }

  .admin-shell {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .intro-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .detail-card {
    grid-column: 1 / -1;
  }

  .completion-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .clinician-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell .clinician-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-shell .summary-grid.three {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1079px) {
  .choice-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell .summary-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .app-shell,
  .completion-shell {
    padding: 10px;
  }

  .panel-heading,
  .sticky-footer,
  .question-head,
  .summary-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .choice-grid.cols-2,
  .choice-grid.cols-3,
  .triple-grid,
  .summary-grid,
  .summary-grid.three,
  .clinician-grid {
    grid-template-columns: 1fr;
  }

  .panel-header,
  .panel-body,
  .completion-card {
    padding: 14px;
  }

  .sticky-footer {
    bottom: 8px;
  }

  .hero-card,
  .start-card,
  .detail-card,
  .question-card,
  .summary-card,
  .completion-hero {
    padding: 14px;
  }

  .hero-card h1,
  .completion-hero h1 {
    font-size: 1.18rem;
    line-height: 1.14;
  }

  .panel-heading h2,
  .start-card h3 {
    font-size: 1.08rem;
    line-height: 1.16;
  }

  .hero-card p:last-child,
  .completion-hero p:last-child,
  .start-card p,
  .step-description,
  .hint-text {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .choice-button,
  .number-field,
  .text-field,
  .consent-toggle,
  .select-field,
  .textarea-field {
    padding: 11px 12px;
  }

  .admin-shell .panel-header,
  .admin-shell .panel-body,
  .admin-shell .side-panel,
  .admin-shell .question-card,
  .admin-shell .summary-card,
  .admin-shell .field-card,
  .admin-shell .hero-card,
  .admin-shell .progress-card {
    padding: 10px;
  }

  .admin-shell .summary-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .panel-header,
  .panel-body,
  .completion-card,
  .side-panel {
    padding: 12px;
  }

  .hero-card,
  .start-card,
  .detail-card,
  .question-card,
  .summary-card,
  .completion-hero,
  .info-panel,
  .alert-box {
    border-radius: 18px;
  }

  .hero-card h1,
  .completion-hero h1 {
    font-size: 1.08rem;
  }

  .panel-heading h2,
  .start-card h3,
  .question-head h3,
  .summary-head h3 {
    font-size: 0.98rem;
  }

  .top-copyright,
  .badge,
  .pill,
  .required-pill {
    font-size: 0.66rem;
  }

  .admin-shell .summary-grid.three {
    grid-template-columns: 1fr;
  }
}
