:root {
  --forest: #173f37;
  --forest-deep: #102f29;
  --forest-soft: #2f6254;
  --moss: #8ead78;
  --clay: #c55b3f;
  --sand: #e8d7be;
  --cream: #f3f0e8;
  --paper: #fbfaf6;
  --white: #fff;
  --ink: #28302c;
  --muted: #6f7771;
  --line: rgba(23, 63, 55, .14);
  --line-strong: rgba(23, 63, 55, .24);
  --danger: #a33b32;
  --danger-soft: #fbe9e6;
  --success: #2d6a4f;
  --success-soft: #e7f2eb;
  --serif: "Songti SC", "Noto Serif SC", "STSong", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shadow: 0 30px 90px rgba(23, 63, 55, .14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --page: min(1220px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.16; letter-spacing: -.035em; }
h1 { font-size: clamp(46px, 6.4vw, 82px); }
h2 { font-size: clamp(32px, 4.2vw, 54px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
[hidden] { display: none !important; }
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--forest);
  border-radius: 999px;
}
.skip-link:focus { top: 16px; }

/* Shell and header */
.survey-page { position: relative; overflow-x: clip; }
.survey-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 8%, rgba(229, 214, 188, .7), transparent 25%),
    radial-gradient(circle at 92% 23%, rgba(142, 173, 120, .15), transparent 25%);
}
.survey-header {
  position: relative;
  z-index: 20;
  padding: 20px 0;
  background: var(--forest);
  color: var(--cream);
}
.survey-header--admin { background: var(--paper); color: var(--forest); border-bottom: 1px solid var(--line); }
.survey-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--page);
  margin: 0 auto;
}
.survey-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.survey-brand img { width: 46px; height: 46px; }
.survey-brand span { display: grid; line-height: 1; }
.survey-brand strong { font-family: var(--serif); font-size: 24px; letter-spacing: .08em; }
.survey-brand small { margin-top: 6px; font-size: 9px; letter-spacing: .28em; }
.survey-header__back {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  opacity: .78;
}
.survey-header__back:hover { opacity: 1; }
.survey-header__actions { display: flex; align-items: center; gap: 20px; }
.survey-header__edit {
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(243, 240, 232, .35);
  background: transparent;
  color: var(--sand);
  font-size: 12px;
  line-height: 1.8;
}
.survey-header__edit:hover { color: var(--cream); }

/* Hero */
.survey-hero {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  background: var(--forest);
  color: var(--cream);
}
.survey-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--forest-deep) 0%, rgba(16, 47, 41, .96) 45%, rgba(16, 47, 41, .35) 100%),
    radial-gradient(circle at 72% 42%, rgba(197, 91, 63, .24), transparent 18%);
}
.survey-hero__garden {
  position: absolute;
  inset: 0 0 0 44%;
  background: url("../assets/hero-garden.webp") center 44% / cover no-repeat;
  opacity: .38;
  filter: saturate(.72);
}
.survey-hero__content {
  position: relative;
  z-index: 3;
  width: var(--page);
  margin: 0 auto;
  padding: clamp(90px, 11vw, 145px) 0 120px;
}
.survey-kicker {
  margin-bottom: 18px;
  color: var(--clay);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
}
.survey-hero .survey-kicker { color: var(--moss); }
.survey-hero h1 {
  max-width: 850px;
  margin-bottom: 26px;
  text-wrap: balance;
}
.survey-hero h1 em {
  color: var(--sand);
  font-style: normal;
}
.survey-hero__lead {
  max-width: 650px;
  color: rgba(243, 240, 232, .72);
  font-size: 17px;
  line-height: 1.95;
}
.survey-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.survey-meta span {
  padding: 8px 13px;
  border: 1px solid rgba(243, 240, 232, .22);
  border-radius: 999px;
  color: rgba(243, 240, 232, .76);
  font-size: 11px;
}
.survey-hero__seal {
  position: absolute;
  z-index: 4;
  right: max(30px, calc((100vw - 1220px) / 2));
  bottom: 78px;
  display: grid;
  align-content: center;
  justify-items: center;
  width: 156px;
  height: 156px;
  border: 1px solid rgba(232, 215, 190, .34);
  border-radius: 50%;
  backdrop-filter: blur(6px);
}
.survey-hero__seal span {
  font-family: var(--serif);
  font-size: 44px;
  line-height: .9;
}
.survey-hero__seal b { margin-top: 9px; font-size: 13px; }
.survey-hero__seal small { color: rgba(243, 240, 232, .48); font-size: 9px; letter-spacing: .12em; }

/* Survey layout */
.survey-shell {
  position: relative;
  z-index: 6;
  width: var(--page);
  margin: -58px auto 90px;
}
.survey-form {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.survey-aside {
  position: relative;
}
.survey-aside__sticky {
  position: sticky;
  top: 22px;
  padding: 30px 24px;
  background: var(--forest-deep);
  color: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.survey-progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 11px;
}
.survey-progress-copy span { color: rgba(243, 240, 232, .52); }
.survey-progress-copy strong { color: var(--sand); letter-spacing: .1em; }
.survey-progress {
  height: 2px;
  margin-bottom: 28px;
  overflow: hidden;
  background: rgba(243, 240, 232, .16);
}
.survey-progress i {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--sand);
  transition: width .35s ease;
}
.step-nav {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step-nav button {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(243, 240, 232, .48);
  text-align: left;
  transition: background .25s ease, color .25s ease;
}
.step-nav button span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(243, 240, 232, .23);
  border-radius: 50%;
  font-size: 9px;
}
.step-nav button b { font-size: 12px; font-weight: 500; line-height: 2; }
.step-nav button.is-active { background: rgba(243, 240, 232, .09); color: var(--cream); }
.step-nav button.is-active span { background: var(--sand); border-color: var(--sand); color: var(--forest); }
.step-nav button.is-complete { color: var(--moss); }
.step-nav button.is-complete span { color: var(--moss); border-color: rgba(142, 173, 120, .45); }
.step-nav button:disabled { cursor: default; opacity: .56; }
.step-nav button:not(:disabled):hover { background: rgba(243, 240, 232, .06); }
.survey-privacy-note {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(243, 240, 232, .12);
}
.survey-privacy-note strong { color: var(--sand); font-size: 11px; }
.survey-privacy-note p {
  margin: 8px 0 0;
  color: rgba(243, 240, 232, .48);
  font-size: 10px;
  line-height: 1.8;
}
.survey-panel {
  min-height: 720px;
  padding: clamp(26px, 4vw, 52px);
  background: var(--paper);
  border: 1px solid rgba(23, 63, 55, .08);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 70px rgba(23, 63, 55, .09);
}
.edit-mode-banner {
  margin-bottom: 24px;
  padding: 13px 16px;
  border: 1px solid rgba(45, 106, 79, .17);
  border-radius: 12px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 10px;
}

/* Step content */
.step {
  animation: stepIn .32s ease both;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.step-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding-bottom: 26px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.step-head span {
  color: var(--clay);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}
.step-head h2 { margin: 9px 0 0; font-size: clamp(31px, 4vw, 47px); }
.step-head p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
  text-align: right;
}
.form-section {
  margin: 0 0 30px;
  padding: 0;
  border: 0;
}
.form-section + .form-section {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.form-section__title {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.form-section__title::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--clay);
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin-bottom: 18px;
}
.choice-field {
  padding: 0;
  margin: 0 0 18px;
  border: 0;
}
.choice-field > legend {
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
}
.field--full { grid-column: 1 / -1; }
.field > label,
.field > legend,
.question-label {
  color: var(--forest);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
}
.required-mark { margin-left: 3px; color: var(--clay); }
.field > label small,
.question-label small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}
.field-hint-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  border-bottom: 1px solid currentColor;
  color: var(--forest);
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}
.field input,
.field select,
.field textarea,
.admin-access input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  outline: 0;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input,
.field select,
.admin-access input { min-height: 48px; padding: 0 14px; }
.field textarea {
  min-height: 112px;
  padding: 12px 14px;
  line-height: 1.7;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.admin-access input:focus {
  border-color: var(--forest-soft);
  box-shadow: 0 0 0 4px rgba(23, 63, 55, .08);
}
.field input::placeholder,
.field textarea::placeholder { color: #a0a8a2; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--danger); background: var(--danger-soft); }
.field-hint { color: var(--muted); font-size: 10px; }
.field-error { margin: 0; color: var(--danger); font-size: 10px; }
.privacy-banner {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 26px;
  padding: 18px 20px;
  background: var(--success-soft);
  border: 1px solid rgba(45, 106, 79, .13);
  border-radius: var(--radius-md);
}
.privacy-banner__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--forest);
  color: var(--sand);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 20px;
}
.privacy-banner strong { display: block; margin-bottom: 3px; color: var(--forest); font-size: 11px; }
.privacy-banner p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.75; }
.chairman-letter {
  position: relative;
  margin: 0 0 28px;
  padding: 24px 26px 22px;
  overflow: hidden;
  background: var(--forest);
  border-radius: var(--radius-md);
  color: var(--cream);
}
.chairman-letter::after {
  content: "“";
  position: absolute;
  right: 22px;
  top: -24px;
  color: rgba(232, 215, 190, .11);
  font-family: var(--serif);
  font-size: 140px;
  line-height: 1;
}
.chairman-letter__label {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  color: var(--moss);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .17em;
}
.chairman-letter blockquote {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: rgba(243, 240, 232, .88);
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.75;
}
.chairman-letter__sign {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  color: var(--sand);
  font-size: 11px;
  text-align: right;
}

/* Selection cards */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 0;
}
.choice-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 52px;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #4b554f;
  font-size: 11px;
  line-height: 1.55;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.choice-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice-card__indicator {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border: 1px solid rgba(23, 63, 55, .32);
  border-radius: 50%;
  background: #fff;
}
.choice-card__indicator::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--forest);
  transform: scale(0);
  transition: transform .15s ease;
}
.choice-card input[type="checkbox"] + .choice-card__indicator { border-radius: 4px; }
.choice-card input[type="checkbox"] + .choice-card__indicator::after { border-radius: 2px; }
.choice-card:has(input:checked) {
  background: #edf4ef;
  border-color: var(--forest-soft);
  color: var(--forest);
}
.choice-card:has(input:checked) .choice-card__indicator { border-color: var(--forest); }
.choice-card:has(input:checked) .choice-card__indicator::after { transform: scale(1); }
.choice-card:has(input:focus-visible) { outline: 3px solid rgba(23, 63, 55, .18); outline-offset: 2px; }
.choice-card.is-disabled {
  opacity: .42;
  cursor: not-allowed;
}
.choice-card--text { align-items: center; min-height: 44px; }
.selection-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}
.selection-note strong { color: var(--forest-soft); }

/* Rating scale */
.scale-block {
  margin: 0 0 22px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.scale-block legend {
  float: left;
  width: 100%;
  margin-bottom: 14px;
  padding: 0;
  color: var(--forest);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
}
.scale {
  display: grid;
  clear: both;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.scale label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.scale input {
  position: absolute;
  opacity: 0;
}
.scale label:hover { border-color: var(--line-strong); background: var(--cream); }
.scale label:has(input:checked) {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
  font-weight: 700;
}
.scale label:has(input:focus-visible) { outline: 3px solid rgba(23, 63, 55, .18); outline-offset: 2px; }
.scale-caption {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
  color: #939b96;
  font-size: 9px;
}
.scale-block.is-invalid {
  border-color: var(--danger);
  background: var(--danger-soft);
}

/* Open questions and consent */
.open-question {
  margin-bottom: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.open-question .field { margin-bottom: 0; }
.consent-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.consent-box input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--forest); }
.consent-box strong { display: block; color: var(--forest); }
.review-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}
.review-strip div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.review-strip span { display: block; color: var(--muted); font-size: 9px; }
.review-strip strong { display: block; margin-top: 3px; color: var(--forest); font-family: var(--serif); font-size: 18px; }

/* Actions */
.survey-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.survey-actions__hint {
  flex: 1;
  color: var(--muted);
  font-size: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .62; transform: none; }
.button--primary { background: var(--forest); color: var(--cream); }
.button--primary:hover { background: var(--forest-deep); }
.button--soft { background: transparent; border-color: var(--line-strong); color: var(--forest); }
.button--soft:hover { background: var(--cream); }
.button--text { min-height: auto; padding: 8px 10px; background: transparent; color: var(--muted); }
.button--small { min-height: 38px; padding: 0 16px; }
.button-loader {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(243, 240, 232, .35);
  border-top-color: var(--cream);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
.button.is-loading .button-loader { display: block; }
@keyframes spin { to { transform: rotate(1turn); } }
.form-alert {
  margin: 22px 0 0;
  padding: 13px 16px;
  background: var(--danger-soft);
  border: 1px solid rgba(163, 59, 50, .18);
  border-radius: 11px;
  color: var(--danger);
  font-size: 11px;
}

/* Completion */
.survey-complete {
  position: relative;
  padding: clamp(40px, 7vw, 82px);
  background: var(--paper);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.survey-complete::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -280px;
  top: -280px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.complete-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  background: var(--forest);
  color: var(--sand);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 28px;
}
.survey-complete h2 { max-width: 700px; margin-bottom: 18px; }
.complete-lead { max-width: 720px; color: var(--muted); }
.complete-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin: 42px 0;
}
.complete-score { text-align: center; }
.score-ring {
  display: grid;
  place-content: center;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  background: conic-gradient(var(--forest) var(--ring, 50%), rgba(23, 63, 55, .09) 0);
  border-radius: 50%;
  position: relative;
}
.score-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  background: var(--paper);
  border-radius: 50%;
}
.score-ring span,
.score-ring small { position: relative; z-index: 1; display: block; }
.score-ring span { color: var(--forest); font-family: var(--serif); font-size: 43px; line-height: 1; }
.score-ring small { margin-top: 8px; color: var(--muted); font-size: 9px; }
.complete-score p { margin: 14px 0 0; color: var(--muted); font-size: 10px; }
.complete-dimensions { display: grid; gap: 9px; }
.complete-dimension {
  display: grid;
  grid-template-columns: 110px 1fr 38px;
  gap: 14px;
  align-items: center;
}
.complete-dimension span { color: var(--forest); font-size: 11px; }
.complete-dimension i { height: 6px; background: rgba(23, 63, 55, .1); border-radius: 999px; overflow: hidden; }
.complete-dimension i::after { content: ""; display: block; width: var(--score); height: 100%; background: var(--moss); border-radius: inherit; }
.complete-dimension b { color: var(--forest); font-family: var(--serif); font-size: 17px; text-align: right; }
.complete-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.edit-code-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 20px 22px;
  background: var(--sand);
  border: 1px solid rgba(151, 109, 73, .2);
  border-radius: var(--radius-md);
}
.edit-code-card span { display: block; color: var(--muted); font-size: 9px; }
.edit-code-card strong {
  display: block;
  margin: 4px 0;
  color: var(--forest);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 24px;
  letter-spacing: .12em;
}
.edit-code-card p { margin: 0; color: var(--muted); font-size: 9px; }
.edit-dialog {
  width: min(520px, calc(100vw - 30px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(23, 63, 55, .3);
}
.edit-dialog::backdrop { background: rgba(16, 47, 41, .68); backdrop-filter: blur(6px); }
.edit-dialog__form { display: grid; gap: 15px; padding: 28px; }
.edit-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.edit-dialog__head span { color: var(--clay); font-size: 9px; letter-spacing: .14em; }
.edit-dialog__head h2 { margin: 5px 0 0; font-size: 28px; }
.edit-dialog__close { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--forest); font-size: 22px; line-height: 1; }
.edit-dialog__form > p { margin: 0; color: var(--muted); font-size: 10px; }
.edit-dialog__form > label { display: grid; gap: 6px; color: var(--forest); font-size: 11px; font-weight: 650; }
.edit-dialog__form input { min-height: 46px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; color: var(--ink); outline: 0; }
.edit-dialog__form input:focus { border-color: var(--forest-soft); box-shadow: 0 0 0 4px rgba(23, 63, 55, .08); }
.survey-footer {
  display: flex;
  justify-content: space-between;
  width: var(--page);
  margin: 0 auto;
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.noscript { position: fixed; inset: auto 20px 20px; padding: 14px; background: var(--danger-soft); color: var(--danger); }

/* Admin */
.admin-page { background: #eeece4; }
.admin-main { width: var(--page); margin: 0 auto; padding: 58px 0 90px; }
.admin-access {
  max-width: 680px;
  margin: 5vh auto 0;
  padding: clamp(32px, 6vw, 64px);
  background: var(--paper);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.admin-access h1 { margin-bottom: 18px; }
.admin-access > p:not(.survey-kicker) { color: var(--muted); }
.admin-access__form { margin-top: 30px; }
.admin-access__form > label { display: block; margin-bottom: 8px; color: var(--forest); font-size: 12px; font-weight: 700; }
.admin-access__row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
  margin-bottom: 32px;
}
.admin-topbar h1 { margin-bottom: 8px; font-size: clamp(36px, 5vw, 60px); }
.admin-topbar p { margin: 0; color: var(--muted); font-size: 11px; }
.admin-topbar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.admin-kpi {
  min-height: 132px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.admin-kpi span { color: var(--muted); font-size: 10px; }
.admin-kpi strong {
  display: block;
  margin: 18px 0 6px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
}
.admin-kpi small { color: var(--muted); font-size: 9px; }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.admin-card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.admin-card--wide { margin-bottom: 18px; }
.admin-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.admin-card__head > div { display: flex; gap: 12px; align-items: baseline; }
.admin-card__head span { color: var(--clay); font-size: 9px; letter-spacing: .12em; }
.admin-card__head h2 { margin: 0; font-size: 23px; }
.admin-card__head small { color: var(--muted); font-size: 9px; }
.metric-bars { display: grid; gap: 17px; }
.metric-bar__top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 11px; }
.metric-bar__top span { color: var(--forest); }
.metric-bar__top b { color: var(--forest); font-family: var(--serif); font-size: 15px; font-weight: 500; }
.metric-bar__track { height: 8px; overflow: hidden; background: rgba(23, 63, 55, .09); border-radius: 999px; }
.metric-bar__track i { display: block; width: var(--value); height: 100%; background: linear-gradient(90deg, var(--moss), var(--forest-soft)); border-radius: inherit; }
.metric-bar__track--warm i { background: linear-gradient(90deg, var(--sand), var(--clay)); }
.metric-bar__foot { margin-top: 5px; color: var(--muted); font-size: 9px; }
.rank-list { display: grid; gap: 10px; }
.rank-list--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.rank-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.rank-row > span { color: var(--clay); font-family: var(--serif); }
.rank-row > b { color: var(--forest); font-size: 11px; font-weight: 500; }
.rank-row__track { height: 6px; margin-top: 5px; background: rgba(23, 63, 55, .08); border-radius: 999px; overflow: hidden; }
.rank-row__track i { display: block; width: var(--value); height: 100%; background: var(--moss); }
.rank-row > strong { color: var(--forest); font-family: var(--serif); font-size: 16px; font-weight: 500; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.admin-table th,
.admin-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); font-size: 9px; font-weight: 600; }
.admin-table td { color: var(--ink); }
.admin-table td:not(:first-child):not(:last-child) { text-align: center; }
.tag-ok { color: var(--success); }
.tag-low { color: var(--clay); }
.comment-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.comment-group h3 {
  margin-bottom: 12px;
  color: var(--forest);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .04em;
}
.comment-list { display: grid; gap: 8px; }
.comment-item {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 10px;
  line-height: 1.72;
}
.comment-item p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-item span { display: block; margin-top: 8px; color: var(--muted); font-size: 8px; }
.empty-state { color: var(--muted); font-size: 10px; }
.admin-disclaimer {
  padding: 18px 20px;
  color: var(--muted);
  background: var(--sand);
  border-radius: var(--radius-md);
  font-size: 10px;
}
.admin-empty { max-width: 620px; margin: 12vh auto 0; text-align: center; }

/* Responsive */
@media (max-width: 980px) {
  :root { --page: min(100% - 34px, 840px); }
  .survey-shell { margin-top: -34px; }
  .survey-form { grid-template-columns: 1fr; }
  .survey-aside { order: 2; }
  .survey-aside__sticky { position: static; padding: 20px; }
  .survey-progress { margin-bottom: 16px; }
  .step-nav { grid-template-columns: repeat(5, 1fr); }
  .step-nav button { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .step-nav button b { font-size: 9px; }
  .survey-privacy-note { display: none; }
  .admin-kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --page: calc(100% - 28px); }
  body { font-size: 15px; }
  .survey-header { padding: 14px 0; }
  .survey-brand strong { font-size: 21px; }
  .survey-header__back { font-size: 11px; }
  .survey-header__actions { gap: 12px; }
  .survey-header__edit { font-size: 10px; }
  .survey-hero { min-height: 520px; }
  .survey-hero__content { padding-top: 72px; }
  .survey-hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .survey-hero__lead { font-size: 15px; }
  .survey-hero__garden { inset: 32% 0 0 0; opacity: .24; }
  .survey-hero__seal { display: none; }
  .survey-meta { gap: 6px; }
  .survey-meta span { padding: 6px 9px; font-size: 9px; }
  .survey-shell { margin-top: -24px; }
  .survey-panel { padding: 24px 18px; border-radius: 24px; }
  .step-head { display: block; padding-bottom: 20px; margin-bottom: 26px; }
  .step-head p { margin-top: 12px; max-width: none; text-align: left; }
  .field-grid, .choice-grid, .choice-grid--wide, .review-strip { grid-template-columns: 1fr; }
  .choice-grid--wide { grid-template-columns: 1fr; }
  .scale-block { padding: 15px; }
  .survey-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .survey-actions__hint { grid-column: 1 / -1; grid-row: 1; }
  .survey-actions .button { width: 100%; }
  #prevButton[hidden] + .survey-actions__hint + #nextButton { grid-column: 1 / -1; }
  .complete-layout { grid-template-columns: 1fr; gap: 28px; }
  .complete-dimension { grid-template-columns: 92px 1fr 34px; }
  .edit-code-card { display: grid; gap: 14px; }
  .edit-code-card .button { width: 100%; }
  .survey-footer { display: grid; gap: 4px; }
  .admin-main { padding-top: 30px; }
  .admin-access { padding: 30px 20px; }
  .admin-access__row { grid-template-columns: 1fr; }
  .admin-topbar { display: block; }
  .admin-topbar__actions { margin-top: 22px; }
  .admin-kpis, .admin-grid, .comment-columns { grid-template-columns: 1fr; }
  .rank-list--wide { grid-template-columns: 1fr; }
  .admin-card { padding: 20px 16px; }
  .admin-kpi { min-height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
