:root {
  color-scheme: light;
  --orange: #ff6900;
  --orange-dark: #d95600;
  --orange-soft: #fff1e8;
  --ink: #1f2430;
  --muted: #667085;
  --line: #e8e8eb;
  --paper: #ffffff;
  --canvas: #faf9f7;
  --success: #1f8a5b;
  --danger: #c9362b;
  --radius-xl: 30px;
  --radius-lg: 20px;
  --shadow: 0 28px 80px rgba(36, 28, 22, .10), 0 3px 12px rgba(36, 28, 22, .05);
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.5;
}

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

.ambient {
  position: fixed;
  z-index: -1;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.ambient-one { top: -20rem; right: -8rem; background: radial-gradient(circle, rgba(255,105,0,.18), transparent 70%); }
.ambient-two { bottom: -22rem; left: -12rem; background: radial-gradient(circle, rgba(255,105,0,.10), transparent 70%); }

.site-header {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  min-height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 7px 12px;
  border-radius: 15px;
  background: rgba(255,255,255,.88);
}
.brand img { display: block; width: 180px; max-width: 42vw; height: auto; object-fit: contain; }

.demo-badge {
  padding: 7px 11px;
  border: 1px solid #ffd0b0;
  border-radius: 999px;
  background: var(--orange-soft);
  color: #94400a;
  font-size: .76rem;
  font-weight: 700;
}

.save-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .86rem;
}

.save-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(31,138,91,.10); }
.save-state.saving .save-dot { background: var(--orange); animation: pulse 1s infinite; }

.survey-shell { width: min(1120px, calc(100% - 40px)); margin: 12px auto 48px; }

.journey {
  display: grid;
  grid-template-columns: minmax(150px, .65fr) minmax(180px, 1fr) 48px;
  gap: 20px;
  align-items: center;
  margin: 0 12px 18px;
}

.journey-copy { display: grid; }
.journey-copy strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eyebrow { color: var(--orange-dark); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.progress-track { position: relative; height: 9px; margin-right: 20px; border-radius: 999px; background: #e7e3df; }
.progress-fill { position: relative; display: block; height: 100%; width: 0; border-radius: inherit; background: var(--orange); transition: width .55s cubic-bezier(.2,.8,.2,1); }
.progress-walker { position: absolute; right: -12px; bottom: 6px; display: block; width: auto; height: auto; background: transparent; font-size: 1.35rem; line-height: 1; transform-origin: 50% 100%; transition: transform .2s; }
.progress-walker.is-walking { animation: walkBob .55s steps(2, end) infinite; }
.progress-finish { position: absolute; left: calc(100% + 4px); bottom: 4px; display: block; font-size: 1.2rem; line-height: 1; }
.progress-track.is-complete .progress-walker { animation: arriveAtFinish .55s ease-out both; }
.progress-number { color: var(--muted); font-weight: 700; font-size: .86rem; text-align: right; }

.form-card {
  min-height: 500px;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

#survey-form { min-height: 500px; display: flex; flex-direction: column; }
#step-stage { flex: 1; padding: clamp(26px, 4vw, 44px) clamp(22px, 5vw, 54px) 26px; }

.step { animation: stepIn .38s cubic-bezier(.2,.8,.2,1) both; }
.step.is-leaving { animation: stepOut .18s ease both; }
.step-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--orange-dark); font-weight: 700; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.step-kicker::before { content: ""; width: 22px; height: 2px; background: var(--orange); }

h1, h2, h3 { margin-top: 0; font-family: Manrope, "DM Sans", sans-serif; line-height: 1.12; letter-spacing: -.035em; }
.step h1, .step h2 { max-width: 880px; margin-bottom: 10px; font-size: clamp(2rem, 5vw, 3.35rem); }
.step h2 { font-size: clamp(1.7rem, 3.5vw, 2.65rem); }
.title-code { display: inline-flex; margin-right: 8px; padding: 5px 8px; border-radius: 8px; background: var(--orange-soft); color: var(--orange-dark); font-size: .42em; vertical-align: middle; letter-spacing: 0; }
.step-intro { max-width: 850px; margin: 0 0 22px; color: var(--muted); font-size: clamp(.96rem, 1.6vw, 1.08rem); }
.accent { color: var(--orange); }

.welcome-mark { width: 72px; height: 5px; margin-bottom: 20px; border-radius: 999px; background: var(--orange); }
.consent-copy { max-width: 760px; margin: 0; padding: 12px 14px; border-left: 3px solid var(--orange); background: var(--orange-soft); color: #784020; border-radius: 0 10px 10px 0; font-size: .9rem; }
.welcome-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; padding: 0; list-style: none; }
.welcome-points li { padding: 9px 13px; border-radius: 999px; background: var(--orange-soft); color: #9a4108; font-size: .86rem; font-weight: 600; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 8px; color: #343946; font-size: .9rem; font-weight: 700; }
.field.full { grid-column: 1 / -1; }
.institution-type .choice-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select, .other-input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: #fff;
  color: var(--ink);
  padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .other-input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,105,0,.10); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); background: #fffafa; }

.question { margin: 0 0 22px; }
.question:last-child { margin-bottom: 0; }
.question-title { margin: 0 0 6px; font-family: Manrope, sans-serif; font-size: 1.05rem; letter-spacing: -.01em; }
.question-hint { margin: 0 0 14px; color: var(--muted); font-size: .86rem; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50px;
  gap: 12px;
  padding: 10px 13px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
}
.choice:hover { transform: translateY(-1px); border-color: #ffc49d; box-shadow: 0 6px 16px rgba(52,38,29,.05); }
.choice:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 0 0 2px rgba(255,105,0,.07); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-control { flex: 0 0 auto; width: 20px; height: 20px; display: grid; place-items: center; border: 1.5px solid #c5c7ce; border-radius: 6px; background: #fff; }
.choice input[type="radio"] + .choice-control { border-radius: 50%; }
.choice input:checked + .choice-control { border-color: var(--orange); background: var(--orange); box-shadow: inset 0 0 0 4px white; }
.choice input[type="checkbox"]:checked + .choice-control { box-shadow: none; }
.choice input[type="checkbox"]:checked + .choice-control::after { content: "✓"; color: white; font-weight: 800; font-size: .8rem; }
.choice-copy { display: grid; font-size: .92rem; font-weight: 600; line-height: 1.3; }
.choice-copy small { margin-top: 3px; color: var(--muted); font-size: .76rem; font-weight: 400; }

.rating-list { display: grid; gap: 14px; }
.rating-row { padding: 16px 17px; border: 1px solid var(--line); border-radius: 16px; }
.rating-row-title { display: block; margin-bottom: 12px; font-size: .92rem; font-weight: 700; }
.rating-scale { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.rating-scale label { position: relative; cursor: pointer; }
.rating-scale input { position: absolute; opacity: 0; }
.rating-scale span { min-height: 38px; display: grid; place-items: center; padding: 4px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-weight: 700; font-size: .82rem; text-align: center; transition: .18s; }
.rating-scale label:hover span { border-color: #ffc49d; }
.rating-scale input:checked + span { border-color: var(--orange); background: var(--orange); color: white; }
.rating-legend { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: .72rem; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.matrix-wrap { width: 100%; overflow-x: auto; border: 1px solid #dde2ec; border-radius: 14px; background: white; scrollbar-color: #c6cad4 transparent; }
.matrix-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: .84rem; }
.matrix-table th, .matrix-table td { padding: 9px 8px; border-right: 1px solid #dde2ec; border-bottom: 1px solid #dde2ec; text-align: center; vertical-align: middle; }
.matrix-table th:last-child, .matrix-table td:last-child { border-right: 0; }
.matrix-table tbody tr:last-child > * { border-bottom: 0; }
.matrix-table thead th { background: #f0f2ff; color: #272d3f; font-weight: 800; line-height: 1.25; }
.matrix-table thead th:first-child { min-width: 250px; text-align: left; }
.matrix-table tbody th { width: 34%; min-width: 250px; background: #fff; text-align: left; font-weight: 600; line-height: 1.35; }
.matrix-table tbody tr:nth-child(even) th, .matrix-table tbody tr:nth-child(even) td { background: #fafbff; }
.matrix-option { min-width: 32px; min-height: 32px; display: grid; place-items: center; cursor: pointer; }
.matrix-option input { position: absolute; opacity: 0; pointer-events: none; }
.matrix-option > span[aria-hidden="true"] { width: 18px; height: 18px; border: 2px solid #9ca3b2; border-radius: 50%; background: white; transition: .15s; }
.matrix-option:hover > span[aria-hidden="true"] { border-color: var(--orange); }
.matrix-option input:focus-visible + span { outline: 3px solid rgba(255,105,0,.25); outline-offset: 2px; }
.matrix-option input:checked + span { border-color: var(--orange); box-shadow: inset 0 0 0 4px white; background: var(--orange); }
.grouped-matrix { min-width: 1040px; }
.grouped-matrix thead th:nth-child(1) { min-width: 110px; }
.grouped-matrix thead th:nth-child(2) { min-width: 380px; text-align: left; }
.grouped-matrix tbody th:not(.group-cell) { min-width: 380px; }
.grouped-matrix .group-cell { min-width: 110px; width: 110px; background: var(--orange-soft) !important; color: #91400b; font-weight: 800; }
.matrix-legend { margin: 10px 0 0; color: var(--muted); font-size: .78rem; }

.stage-slide { min-height: 350px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; max-width: 820px; margin: auto; }
.stage-number { color: var(--orange-dark); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.stage-rule { width: 54px; height: 5px; margin: 16px 0 22px; border-radius: 99px; background: var(--orange); }
.stage-slide h2 { margin-bottom: 14px; font-size: clamp(2.2rem, 5vw, 4rem); }
.stage-slide p { max-width: 690px; margin: 0; color: var(--muted); font-size: 1.12rem; }
.stage-cue { margin-top: 28px; color: var(--orange-dark); font-weight: 700; }

.support-instruction { margin-bottom: 16px; }
.support-product-block { margin: 0 0 22px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fbfbfc; }
.support-product-block:last-child { margin-bottom: 0; }
.support-product-block h3 { margin: 3px 0 12px; font-size: 1.22rem; letter-spacing: -.02em; }
.product-sequence { color: var(--orange-dark); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.bank-content { display: grid; gap: 12px; }
.bank-content .q { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.bank-content .q-head { display: flex; align-items: flex-start; gap: 10px; }
.bank-content .q-head h4 { margin: 1px 0 0; font-family: Manrope, "DM Sans", sans-serif; font-size: 1rem; line-height: 1.35; letter-spacing: -.01em; }
.bank-content .code { flex: none; padding: 5px 7px; border-radius: 7px; background: var(--orange-soft); color: var(--orange-dark); font-size: .68rem; font-weight: 800; }
.bank-content .hint { margin: 8px 0 6px; color: var(--muted); font-size: .82rem; }
.bank-content .intro.small, .bank-content .refs { margin: 8px 0 6px; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.bank-content .refs { font-style: italic; }
.bank-content .tw { width: 100%; overflow-x: auto; margin-top: 10px; border: 1px solid #dde2ec; border-radius: 12px; }
.bank-content table { width: 100%; min-width: 700px; border-collapse: separate; border-spacing: 0; font-size: .82rem; }
.bank-content table th, .bank-content table td { padding: 8px 7px; border-right: 1px solid #dde2ec; border-bottom: 1px solid #dde2ec; text-align: center; vertical-align: middle; }
.bank-content table th:last-child, .bank-content table td:last-child { border-right: 0; }
.bank-content table tr:last-child > * { border-bottom: 0; }
.bank-content table thead th { background: #f0f2ff; color: #272d3f; font-weight: 800; }
.bank-content table tbody th, .bank-content table .first { min-width: 230px; text-align: left; font-weight: 600; }
.bank-content table tbody tr:nth-child(even) > * { background: #fafbff; }
.bank-content table input[type="radio"] { width: 17px; height: 17px; accent-color: var(--orange); }
.bank-content .opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.bank-content .opts.inline { display: flex; flex-wrap: wrap; }
.bank-content .opt { display: flex; align-items: flex-start; gap: 9px; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; font-size: .87rem; line-height: 1.35; }
.bank-content .opt:hover { border-color: #ffc49d; }
.bank-content .opt:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.bank-content .opt:has(input:disabled) { opacity: .5; }
.bank-content .opt input { flex: none; margin-top: 2px; accent-color: var(--orange); }
.bank-content .product-name { color: var(--orange); font-weight: 800; }
.bank-content .prodname, .bank-content .ambname { display: block; color: var(--orange); font-weight: 800; }
.bank-content .ambname { text-transform: uppercase; }
.bank-content .ambdesc { display: block; margin-top: 5px; color: var(--muted); font-size: .76rem; font-weight: 400; line-height: 1.45; }
.bank-content .sub { margin: 7px 0 0; padding-left: 18px; color: var(--muted); font-size: .76rem; font-weight: 400; line-height: 1.4; }
.study-intro { margin: 16px 0 12px; padding: 16px 18px; border-left: 4px solid var(--orange); border-radius: 0 13px 13px 0; background: var(--orange-soft); }
.study-intro p { margin: 0 0 8px; color: #62371c; font-size: .9rem; line-height: 1.55; }
.study-intro small { color: #865331; line-height: 1.4; }
.bank-content input.field, .bank-content textarea.field, .bank-content select.field, .bank-content .other input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font: inherit; }
.bank-content textarea.field { min-height: 84px; resize: vertical; }
.bank-content .other { display: grid; gap: 5px; margin-top: 8px; color: var(--muted); font-size: .82rem; }
.bank-content .subgroup { margin: 14px 0 4px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bank-content .routebox { margin-top: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafbff; }
.bank-content .routebox h3 { margin: 4px 0 8px; font-size: .8rem; text-transform: uppercase; }
.bank-content .selgrid select { min-width: 220px; }
.bank-content .restable td { text-align: left; vertical-align: top; }
.bank-content .mini { display: inline-flex; align-items: center; gap: 5px; margin: 3px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; }
.embedded-section { margin-top: 26px; padding-top: 22px; border-top: 2px solid var(--orange-soft); }
.review-celebration { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 15px; border-radius: 14px; background: var(--orange-soft); color: #91400b; }
.review-celebration span { font-size: 1.4rem; color: var(--orange); }
.review-list + .question { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }

.inline-note { margin: 20px 0 0; padding: 13px 15px; border-left: 3px solid var(--orange); border-radius: 0 10px 10px 0; background: var(--orange-soft); color: #784020; font-size: .86rem; }
.conditional-panel { margin-top: 18px; padding: 18px; border-radius: 16px; background: #faf9f7; }

.review-list { display: grid; gap: 12px; }
.review-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 16px 17px; border: 1px solid var(--line); border-radius: 15px; }
.review-item span { color: var(--muted); font-size: .82rem; }
.review-item strong { display: block; margin-top: 2px; }
.review-item button { border: 0; background: var(--orange-soft); color: var(--orange-dark); border-radius: 999px; padding: 7px 11px; font-weight: 700; font-size: .78rem; }

.success-screen { text-align: center; padding-top: 28px; }
.success-icon { width: 82px; height: 82px; margin: 0 auto 26px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: white; font-size: 2.2rem; box-shadow: 0 15px 30px rgba(255,105,0,.25); }
.success-screen h2 { margin-inline: auto; }
.success-screen .step-intro { margin-inline: auto; }
.response-id { display: inline-block; margin-top: 10px; padding: 9px 14px; border-radius: 10px; background: #f4f2ef; color: var(--muted); font: .78rem ui-monospace, monospace; }

.form-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 16px clamp(22px, 5vw, 54px); border-top: 1px solid var(--line); background: rgba(255,255,255,.92); }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 13px; border: 0; padding: 0 20px; font-weight: 700; transition: transform .18s, background .18s, box-shadow .18s, opacity .18s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button-primary { justify-self: end; background: var(--orange); color: white; box-shadow: 0 9px 20px rgba(255,105,0,.20); }
.button-primary:hover:not(:disabled) { background: var(--orange-dark); }
.button-ghost { justify-self: start; background: #f4f2ef; color: #4f4f55; }
.step-counter { color: var(--muted); font-size: .8rem; text-align: center; }
.form-error { margin: 0 72px 10px; padding: 11px 14px; border-radius: 10px; background: #fff0ef; color: var(--danger); font-weight: 600; font-size: .86rem; }
.privacy-note { max-width: 620px; margin: 20px auto 0; color: var(--muted); font-size: .76rem; text-align: center; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 10; max-width: 330px; padding: 12px 16px; border-radius: 12px; background: #24262d; color: white; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .25s; font-size: .86rem; }
.toast.show { opacity: 1; transform: translateY(0); }

.admin-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.admin-card { width: min(1180px, 100%); padding: 42px; border-radius: var(--radius-xl); background: white; box-shadow: var(--shadow); }
.admin-card .admin-logo { width: 145px; margin-bottom: 36px; }
.admin-card h1 { margin: 8px 0 12px; }
.admin-card p { color: var(--muted); }
.admin-card .field + .field { margin-top: 14px; }
.admin-card .admin-status { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--orange-soft); color: #7f3b0d; }
.admin-stats { display: grid; gap: 16px; margin-top: 22px; }
.admin-total { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-radius: 14px; background: var(--orange-soft); color: #7f3b0d; }
.admin-total span { font-weight: 700; }
.admin-total strong { color: var(--orange); font-size: 2rem; }
.admin-breakdowns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-breakdowns > div { padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.admin-breakdowns h2 { margin-bottom: 10px; font-size: 1rem; }
.admin-breakdowns ul { display: grid; gap: 7px; max-height: 220px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.admin-breakdowns li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .84rem; }
.admin-breakdowns li strong { color: var(--ink); }
.admin-card .admin-actions { display: grid; gap: 10px; }
.admin-card .button { width: 100%; margin-top: 18px; }
.admin-card .form-error { margin: 16px 0 0; }
.dashboard-heading, .section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.dashboard-heading h2, .dashboard-section h2 { margin: 4px 0 0; font-size: 1.25rem; }
.dashboard-heading small { color: var(--muted); }
.dashboard-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dashboard-kpis article { display: grid; gap: 5px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.dashboard-kpis article.goal-card { border-color: #ffc49d; background: var(--orange-soft); }
.dashboard-kpis span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.dashboard-kpis strong { color: var(--ink); font-size: 1.9rem; }
.dashboard-kpis small { color: var(--muted); }
.dashboard-section { display: grid; gap: 12px; margin-top: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.territory-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.territory-card { padding: 16px; border: 1px solid var(--line); border-radius: 15px; }
.territory-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.territory-card h3 { margin: 0; font-size: 1rem; }
.territory-card > div strong { color: var(--orange); font-size: 1.4rem; }
.territory-card p { margin: 8px 0; font-size: .85rem; }
.territory-card small { display: block; margin-top: 8px; color: var(--muted); }
.coverage-progress, .mini-progress { position: relative; height: 8px; overflow: hidden; border-radius: 99px; background: #ece8e4; }
.coverage-progress span, .mini-progress span { display: block; height: 100%; border-radius: inherit; background: var(--orange); }
.coverage-progress i { position: absolute; top: -2px; width: 2px; height: 12px; background: #272d3f; }
.compact-filter { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.compact-filter select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.institution-table-wrap { max-height: 390px; overflow: auto; border: 1px solid var(--line); border-radius: 13px; }
.institution-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.institution-table th, .institution-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.institution-table th { position: sticky; top: 0; z-index: 1; background: #f7f5f3; color: var(--muted); }
.territory-summary-wrap { max-height: none; }
.territory-summary th:not(:first-child), .territory-summary td:not(:first-child) { text-align: center; }
.territory-summary tbody tr:last-child { background: var(--orange-soft); }
.status-pill { display: inline-flex; padding: 4px 8px; border-radius: 99px; font-size: .72rem; font-weight: 800; }
.status-pill.responded { background: #e6f5ee; color: #18734d; }
.status-pill.pending { background: #f4f2ef; color: #77716c; }
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.analytics-grid > article { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 15px; }
.analytics-grid h3 { margin: 0 0 14px; font-size: 1rem; }
.metric-list { display: grid; gap: 12px; max-height: 360px; overflow-y: auto; }
.metric-row { display: grid; gap: 5px; }
.metric-row > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; }
.metric-row strong { color: var(--orange-dark); }
.mini-progress { height: 5px; }
.product-metric { display: grid; gap: 7px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.product-metric > b { font-size: .86rem; }
.product-metric small, .metric-list > small, .empty-metric { color: var(--muted); font-size: .75rem; }

@keyframes stepIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes stepOut { to { opacity: 0; transform: translateX(-18px); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes walkBob { 0%, 100% { transform: none; } 50% { transform: translateY(-3px) rotate(4deg); } }
@keyframes arriveAtFinish { 0% { transform: none; } 50% { transform: translateY(-5px) scale(1.12); } 100% { transform: none; } }

@media (max-width: 720px) {
  .site-header { width: min(100% - 28px, 920px); min-height: 82px; }
  .brand { min-height: 50px; padding: 6px 9px; }
  .brand img { width: 142px; }
  .save-state span:last-child { display: none; }
  .demo-badge { position: absolute; top: 72px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .68rem; }
  .survey-shell { width: min(100% - 20px, 920px); margin-top: 8px; }
  .journey { grid-template-columns: 1fr 42px; margin-inline: 8px; gap: 12px; }
  .progress-track { grid-column: 1 / -1; grid-row: 2; }
  .form-card, #survey-form { min-height: calc(100vh - 170px); border-radius: 22px; }
  #step-stage { padding: 26px 18px 22px; }
  .field-grid, .choice-grid, .choice-grid.compact { grid-template-columns: 1fr; }
  .rating-scale { grid-template-columns: repeat(3, 1fr); }
  .rating-scale .na-option { grid-column: span 3; }
  .form-actions { position: sticky; bottom: 0; padding: 15px 18px; }
  .button { min-height: 46px; padding-inline: 15px; }
  .step-counter { display: none; }
  .form-actions { grid-template-columns: 1fr 1fr; }
  .form-error { margin-inline: 20px; }
  .matrix-wrap { margin-inline: 0; border-radius: 11px; }
  .matrix-table { min-width: 700px; font-size: .78rem; }
  .matrix-table th, .matrix-table td { padding: 8px 6px; }
  .matrix-table thead th:first-child, .matrix-table tbody th { min-width: 210px; }
  .grouped-matrix { min-width: 980px; }
  .stage-slide { min-height: 300px; }
  .stage-slide p { font-size: 1rem; }
  .support-product-block { padding: 12px; }
  .bank-content .q { padding: 12px; }
  .bank-content .opts { grid-template-columns: 1fr; }
  .bank-content table { min-width: 650px; }
  .admin-breakdowns { grid-template-columns: 1fr; }
  .admin-card { padding: 24px 18px; }
  .dashboard-kpis, .territory-cards, .analytics-grid { grid-template-columns: 1fr; }
  .dashboard-heading, .section-title-row { align-items: flex-start; flex-direction: column; }
}

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