:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #eef3f1;
  --ink: #17201d;
  --muted: #66716c;
  --line: #d6ddd9;
  --accent: #0f6f5c;
  --accent-strong: #0a4b40;
  --accent-soft: #dceee9;
  --warning: #9a4f22;
  --focus: #2f6fed;
  --shadow: 0 18px 44px rgba(25, 37, 33, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

button {
  cursor: pointer;
}

img,
video {
  display: block;
  max-width: 100%;
}

.app-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

body[data-step-type="language"] .app-shell {
  position: relative;
  grid-template-columns: 1fr;
}

body[data-step-type="language"] .app-shell::before,
body[data-step-type="language"] .app-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body[data-step-type="language"] .app-shell::before {
  z-index: 0;
  background: url("data_static/title_page_background.png") center / cover no-repeat;
}

body[data-step-type="language"] .app-shell::after {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(244, 246, 248, 0.1) 0%, rgba(244, 246, 248, 0.22) 34%, rgba(244, 246, 248, 0.24) 66%, rgba(244, 246, 248, 0.12) 100%),
    linear-gradient(180deg, rgba(244, 246, 248, 0.1) 0%, rgba(244, 246, 248, 0.03) 48%, rgba(244, 246, 248, 0.28) 100%);
}

body[data-step-type="language"] .survey-main {
  position: relative;
  z-index: 2;
}

body[data-step-type="language"] .sidebar {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100vh;
  padding: 24px;
  overflow-y: auto;
  background: #17201d;
  color: #f7fbf9;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  font-weight: 850;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: rgba(247, 251, 249, 0.72);
  font-size: 12px;
}

.progress-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(247, 251, 249, 0.82);
  font-size: 13px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #77dac9;
  transition: width 180ms ease;
}

.step-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step-list li {
  display: block;
  padding: 0;
  border-radius: 999px;
  color: rgba(247, 251, 249, 0.7);
}

.step-list li.active {
  color: #ffffff;
}

.step-list li.done {
  color: rgba(247, 251, 249, 0.88);
}

.step-index {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
}

.step-list li.unlocked .step-index {
  cursor: pointer;
}

.step-list li.locked {
  color: rgba(247, 251, 249, 0.32);
}

.step-list li.locked .step-index {
  cursor: not-allowed;
}

.step-list li.active .step-index {
  color: #11201c;
  background: #77dac9;
}

.step-list li.section-start {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 10px 0 0;
  padding: 8px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
}

.step-list li.section-start:first-child {
  margin-top: 0;
  border-top: 0;
}

.step-list li.section-start .step-index {
  width: 34px;
  height: 34px;
  color: #11201c;
  background: rgba(119, 218, 201, 0.92);
}

.step-list li.section-start.locked .step-index {
  color: rgba(247, 251, 249, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.step-list li.section-start.active .step-index {
  background: #ffffff;
}

.step-section-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  line-height: 1.25;
}

.step-section-copy strong {
  color: rgba(247, 251, 249, 0.96);
  font-size: 14px;
  font-weight: 800;
}

.step-section-copy small {
  color: rgba(247, 251, 249, 0.58);
  font-size: 12px;
  font-weight: 600;
}

.survey-main {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 48px);
}

.screen {
  min-height: calc(100vh - 96px);
}

.panel {
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.complete-panel {
  display: flex;
  min-height: calc(100vh - 96px);
  flex-direction: column;
}

.lead-in-panel {
  display: flex;
  min-height: calc(100vh - 96px);
  flex-direction: column;
  justify-content: space-between;
}

.lead-in-panel .screen-header {
  margin: auto 0;
}

.ending-art {
  display: grid;
  flex: 1;
  min-height: 360px;
  place-items: center;
  padding: clamp(8px, 4vw, 32px);
}

.ending-art img {
  display: block;
  width: min(100%, 520px);
  max-height: min(58vh, 560px);
  object-fit: contain;
}

.complete-panel .actions {
  margin-top: auto;
}

.screen-header {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 920px;
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.3;
}

.lede,
.body-copy {
  max-width: 840px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.lead-in-panel h1 {
  color: var(--muted);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.14;
}

.lead-in-panel .lede {
  max-width: 920px;
  color: var(--text);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.55;
}

.lead-in-panel .lede strong {
  font-weight: 850;
}

.body-copy p {
  margin-bottom: 12px;
}

.body-copy a {
  color: var(--accent-strong);
  font-weight: 760;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.media-note {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.welcome-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: calc(100vh - clamp(36px, 8vw, 96px));
  align-content: center;
  justify-items: center;
  gap: 26px;
  padding: clamp(150px, 20vh, 210px) clamp(28px, 6vw, 64px) clamp(28px, 6vw, 64px);
  text-align: center;
}

.welcome-panel > * {
  position: relative;
  z-index: 1;
}

.welcome-motion {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.welcome-motion::before {
  content: "";
  position: absolute;
  inset: auto -12% 4% -12%;
  height: 42%;
  background: radial-gradient(ellipse at center, rgba(15, 111, 92, 0.1) 0%, rgba(15, 111, 92, 0.04) 38%, rgba(15, 111, 92, 0) 72%);
  opacity: 0.58;
  animation: welcomeGlow 12s ease-in-out infinite;
}

.welcome-motion span {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 34vw;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(15, 111, 92, 0), rgba(15, 111, 92, 0.22), rgba(255, 255, 255, 0));
  opacity: 0;
  filter: blur(0.2px);
  animation: welcomeFlow 9s linear infinite;
}

.welcome-motion span:nth-child(1) {
  transform: rotate(18deg) translateX(-58vw);
  animation-delay: -1s;
}

.welcome-motion span:nth-child(2) {
  top: 49%;
  width: 42vw;
  transform: rotate(7deg) translateX(-62vw);
  animation-delay: -4s;
}

.welcome-motion span:nth-child(3) {
  top: 56%;
  width: 38vw;
  transform: rotate(-9deg) translateX(-60vw);
  animation-delay: -6.5s;
}

.welcome-motion span:nth-child(4) {
  top: 66%;
  width: 48vw;
  transform: rotate(-17deg) translateX(-66vw);
  animation-delay: -2.6s;
}

@keyframes welcomeFlow {
  0% {
    opacity: 0;
    translate: -10vw 0;
  }
  18% {
    opacity: 0.45;
  }
  70% {
    opacity: 0.28;
  }
  100% {
    opacity: 0;
    translate: 78vw 0;
  }
}

@keyframes welcomeGlow {
  0%, 100% {
    opacity: 0.36;
    transform: scaleX(0.94);
  }
  50% {
    opacity: 0.62;
    transform: scaleX(1.04);
  }
}

.welcome-visual {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 420px;
}

.welcome-visual span {
  min-width: 84px;
  padding: 12px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.welcome-copy {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.welcome-copy h1 {
  max-width: 820px;
}

.welcome-copy .lede {
  max-width: 620px;
}

.welcome-actions {
  display: grid;
  justify-items: center;
  gap: 34px;
}

.welcome-start {
  min-width: 220px;
  min-height: 58px;
  padding: 0 34px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 860;
  box-shadow: 0 18px 38px rgba(21, 118, 97, 0.18);
}

.language-pill {
  display: grid;
  gap: 2px;
  place-items: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 760;
}

.language-picker {
  display: grid;
  justify-items: center;
  gap: 0;
  max-width: 960px;
}

.language-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
}

.language-grid .language-pill {
  min-width: 128px;
  min-height: 64px;
  padding: 8px 22px;
  border-color: #2d4350;
  background: transparent;
  color: #2d4350;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.language-grid .language-pill small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
}

.language-grid .language-pill.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.language-pill:hover,
.language-pill:focus-visible {
  border-color: var(--accent);
  color: var(--accent-strong);
  outline: none;
}

:dir(rtl) .choice,
:dir(rtl) .radio-line {
  direction: rtl;
}

.welcome-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
}

.welcome-notes span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
  font-weight: 760;
}

.welcome-footer {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 12px;
  width: min(620px, 100%);
  color: var(--muted);
  font-size: 14px;
}

.welcome-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.welcome-institution {
  position: absolute;
  top: clamp(16px, 2.8vw, 30px);
  left: clamp(16px, 2.8vw, 30px);
  display: inline-flex;
  align-items: center;
  width: min(330px, 42vw);
  z-index: 2;
}

.welcome-institution img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.welcome-footer a {
  color: var(--accent-strong);
  font-weight: 760;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.media-frame {
  overflow: hidden;
  margin: 18px 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101615;
}

.media-frame img,
.media-frame video {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: #101615;
}

.media-fallback {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 28px;
  color: rgba(255, 255, 255, 0.76);
  text-align: center;
}

.sound-check {
  display: grid;
  gap: 14px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.sound-check .button {
  justify-self: start;
}

.question-stack {
  display: grid;
  gap: 18px;
}

.question {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.question legend {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  font-weight: 760;
  line-height: 1.45;
}

.question-reference {
  display: grid;
  place-items: center;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.question-reference img {
  display: block;
  width: min(100%, 280px);
  max-height: 280px;
  object-fit: contain;
}

.question-guide {
  margin: 0 0 16px;
}

.question-guide summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
  list-style: none;
}

.question-guide summary::-webkit-details-marker {
  display: none;
}

.guide-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  font-size: 15px;
  line-height: 1;
}

.guide-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.guide-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.region-map {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d3dfda;
  border-radius: 8px;
  background: #f7faf8;
}

.region-map-svg {
  width: 100%;
  aspect-ratio: 2 / 1;
  display: block;
  border: 1px solid #dfe8e4;
  border-radius: 8px;
  background: #edf4f6;
}

.region-map-water {
  fill: #edf4f6;
}

.region-map-shape {
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: opacity 140ms ease, filter 140ms ease, stroke-width 140ms ease;
}

.region-map-shape:hover,
.region-map-shape:focus-visible,
.region-map-shape.selected {
  filter: drop-shadow(0 2px 3px rgba(17, 32, 28, 0.28));
  opacity: 1;
  outline: none;
  stroke: #11201c;
  stroke-width: 1.8;
}

.region-map-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.region-map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid #cfdcd7;
  border-radius: 8px;
  background: #ffffff;
  color: #11201c;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.region-map-legend-item:hover,
.region-map-legend-item:focus-visible,
.region-map-legend-item.selected {
  border-color: var(--accent-strong);
  background: #f4fbf7;
  box-shadow: 0 8px 18px rgba(17, 32, 28, 0.08);
  outline: none;
}

.region-map-swatch {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 3px;
  background: currentColor;
}

.region-eap {
  fill: #4f8a8b;
  color: #4f8a8b;
}

.region-eca {
  fill: #8a6fba;
  color: #8a6fba;
}

.region-lac {
  fill: #d08a5b;
  color: #d08a5b;
}

.region-mena {
  fill: #b96f7d;
  color: #b96f7d;
}

.region-north_america {
  fill: #4d78b6;
  color: #4d78b6;
}

.region-south_asia {
  fill: #7d9b45;
  color: #7d9b45;
}

.region-ssa {
  fill: #c0a34b;
  color: #c0a34b;
}

.guide-source {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 760;
}

.required {
  color: var(--warning);
}

.choice-list {
  display: grid;
  gap: 10px;
}

.choice {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.choice:hover {
  border-color: #9cb7ae;
  background: #fbfdfc;
}

.choice input {
  margin-top: 2px;
}

.likert {
  display: grid;
  gap: 10px;
}

.likert-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(40px, 1fr));
  gap: 8px;
}

.likert-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.likert-option span {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.likert-option input:checked + span {
  color: white;
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.likert-option input:focus-visible + span,
.choice input:focus-visible,
.text-input:focus-visible,
.textarea:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(47, 111, 237, 0.28);
  outline-offset: 2px;
}

.likert-labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.text-input,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.text-input,
.select-input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.select-input {
  appearance: auto;
}

.textarea {
  min-height: 128px;
  padding: 12px;
  resize: vertical;
}

.slider-field {
  display: grid;
  gap: 12px;
}

.slider-value {
  justify-self: center;
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
}

.slider-instruction {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 680;
  line-height: 1.45;
  text-align: center;
}

.slider-input {
  width: 100%;
  height: 44px;
  accent-color: var(--accent-strong);
  cursor: grab;
  appearance: none;
  background: transparent;
}

.slider-input:active {
  cursor: grabbing;
}

.slider-input::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d6e3de, #b7d4cb);
  box-shadow: inset 0 0 0 1px rgba(23, 32, 29, 0.08);
}

.slider-input::-webkit-slider-thumb {
  appearance: none;
  width: 32px;
  height: 32px;
  margin-top: -10px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 8px 18px rgba(10, 75, 64, 0.28);
}

.slider-input::-moz-range-track {
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #d6e3de, #b7d4cb);
  box-shadow: inset 0 0 0 1px rgba(23, 32, 29, 0.08);
}

.slider-input::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 8px 18px rgba(10, 75, 64, 0.28);
}

.slider-input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.slider-input:disabled::-webkit-slider-thumb {
  box-shadow: none;
}

.slider-input:disabled::-moz-range-thumb {
  box-shadow: none;
}

.slider-ticks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: -6px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.slider-ticks span {
  text-align: center;
}

.slider-ticks span:first-child {
  text-align: left;
}

.slider-ticks span:last-child {
  text-align: right;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.slider-labels span:last-child {
  text-align: right;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 780;
}

.button.primary {
  color: white;
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.button.secondary {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--surface);
}

.button.ghost {
  color: var(--accent-strong);
  background: transparent;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.error-box {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #d8a887;
  border-radius: 8px;
  color: #6e2f0b;
  background: #fff4ec;
}

.error-box.visible {
  display: block;
}

.submission-status {
  display: grid;
  gap: 4px;
  margin: 18px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 14px;
  line-height: 1.45;
}

.submission-status strong {
  color: var(--ink);
}

.submission-status.success {
  border-color: #8bc2a7;
  color: #21543b;
  background: #edf8f2;
}

.submission-status.error {
  border-color: #d8a887;
  color: #6e2f0b;
  background: #fff4ec;
}

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

.summary-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.summary-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
}

.summary-card span {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }

  .step-list {
    display: none;
  }

  .survey-main {
    padding: 16px;
  }

  .screen {
    min-height: auto;
  }

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

@media (max-width: 560px) {
  .panel {
    padding: 18px;
  }

  .welcome-panel {
    padding-top: 130px;
  }

  .welcome-institution {
    width: min(220px, 68vw);
  }

  .welcome-motion span {
    width: 58vw;
  }

  .region-map {
    padding: 10px;
  }

  .likert-row {
    grid-template-columns: repeat(7, minmax(34px, 1fr));
    gap: 5px;
  }

  .likert-option span {
    min-height: 38px;
    font-size: 13px;
  }

  .actions,
  .action-group {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-motion::before,
  .welcome-motion span {
    animation: none;
  }

  .welcome-motion span {
    opacity: 0.16;
  }
}
