/* 三环华兰销售部业务难点调研 — UI v4 (2026) */

:root {
  color-scheme: light;

  --bg: #eef2f6;
  --bg-grad-a: #e6f1ee;
  --bg-grad-b: #eef2f6;

  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --surface-2: #f1f5f9;

  --ink: #0f172a;
  --ink-2: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --faint: #94a3b8;

  --line: #e6ebf2;
  --line-2: #d6deea;

  --brand: #0d7d6b;
  --brand-2: #0a6155;
  --brand-3: #075247;
  --brand-soft: #e3f3ef;
  --brand-tint: #f0f8f6;

  --gold: #b9842f;
  --gold-soft: #fbf2e2;

  --navy: #0e1a30;
  --navy-2: #16233d;

  --danger: #c0362a;
  --danger-soft: #fdeceb;
  --ok: #15803d;

  --radius: 16px;
  --radius-sm: 11px;
  --radius-xs: 9px;

  --shadow-xl: 0 30px 60px -28px rgba(15, 32, 51, 0.32);
  --shadow-lg: 0 22px 48px -26px rgba(15, 32, 51, 0.28);
  --shadow-md: 0 14px 32px -22px rgba(15, 32, 51, 0.26);
  --shadow-sm: 0 6px 18px -12px rgba(15, 32, 51, 0.22);

  --ring: 0 0 0 4px rgba(13, 125, 107, 0.16);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(1100px 540px at 88% -8%, rgba(13, 125, 107, 0.16), transparent 60%),
    radial-gradient(900px 480px at -6% 4%, rgba(35, 95, 128, 0.12), transparent 58%),
    linear-gradient(180deg, var(--bg-grad-a) 0, var(--bg-grad-b) 420px, var(--bg-grad-b) 100%);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: var(--brand);
  text-decoration: none;
}

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

::selection {
  background: rgba(13, 125, 107, 0.18);
}

h1, h2, h3 {
  letter-spacing: -0.01em;
}

/* ---------- top progress bar ---------- */
.progressbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}

.progressbar__fill {
  height: 100%;
  width: 0;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--brand), #21b89c);
  box-shadow: 0 0 12px rgba(13, 125, 107, 0.55);
  transition: width 0.25s var(--ease);
}

/* ---------- layout shell ---------- */
.survey-page {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 72px;
  overflow-x: clip;
}

/* ---------- hero ---------- */
.hero-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: center;
  padding: 40px 40px 42px;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(140% 120% at 100% 0, rgba(33, 184, 156, 0.42), transparent 52%),
    radial-gradient(120% 130% at 0 100%, rgba(13, 26, 48, 0.55), transparent 60%),
    linear-gradient(125deg, #0c2f3f 0%, #0d6457 55%, #0d7d6b 100%);
  box-shadow: var(--shadow-xl);
  isolation: isolate;
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 18% 120%, rgba(255, 255, 255, 0.10) 0, transparent 38%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 16px);
  opacity: 0.8;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #eafaf6;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ce0c4;
  box-shadow: 0 0 0 4px rgba(92, 224, 196, 0.25);
}

.hero-band h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.1;
  font-weight: 800;
}

.hero-lead {
  margin: 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.hero-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.hero-card__num {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #fff;
}

.hero-card__num b {
  font-size: 56px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-card__num i {
  font-style: normal;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.hero-card > p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13.5px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}

/* ---------- form layout ---------- */
.survey-form {
  margin-top: 22px;
}

.survey-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

/* ---------- sidebar nav ---------- */
.survey-aside {
  position: sticky;
  top: 18px;
}

.aside-panel {
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.aside-panel .eyebrow {
  background: rgba(92, 224, 196, 0.14);
  border-color: rgba(92, 224, 196, 0.3);
  color: #9fe9d8;
}

.aside-panel h2 {
  margin: 12px 0 4px;
  font-size: 19px;
  color: #fff;
}

.aside-panel .aside-sub {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.step-nav {
  display: grid;
  gap: 7px;
}

.step-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.step-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.step-nav a.is-active {
  background: rgba(13, 125, 107, 0.28);
  border-color: rgba(92, 224, 196, 0.4);
  color: #fff;
}

.step-nav a .num {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #9fe9d8;
  font-size: 12px;
  font-weight: 800;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.step-nav a.is-active .num {
  background: #15a98f;
  color: #fff;
}

.step-nav a .lbl {
  flex: 1;
}

.step-nav a .tick {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: transparent;
  font-size: 11px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.step-nav a.is-done .tick {
  background: #15a98f;
  color: #fff;
}

.aside-progress {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.aside-progress .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 9px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.aside-progress .row b {
  color: #fff;
  font-size: 15px;
}

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

.aside-progress .bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #15a98f, #5ce0c4);
  transition: width 0.3s var(--ease);
}

/* ---------- form stack & sections ---------- */
.form-stack {
  display: grid;
  gap: 20px;
}

.question-section {
  scroll-margin-top: 20px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.question-section:focus-within {
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}

.section-title {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.section-title > .badge {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--brand) 0, var(--brand-2) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 18px -10px rgba(13, 125, 107, 0.7);
}

.section-title h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.3;
}

.section-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ---------- fields ---------- */
.basic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: block;
  margin-top: 20px;
}

.basic-grid .field {
  margin-top: 0;
}

.field > span,
.field > legend {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.5;
}

.field em {
  margin-left: 5px;
  color: var(--danger);
  font-style: normal;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fbfdff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
}

input {
  min-height: 50px;
  padding: 0 15px;
}

textarea {
  min-height: 118px;
  padding: 13px 15px;
  line-height: 1.7;
  resize: vertical;
}

input:hover,
textarea:hover {
  border-color: #c2cddc;
}

input:focus,
textarea:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: var(--ring);
}

input.invalid,
textarea.invalid {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.field-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.field-counter {
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.field-counter.near {
  color: var(--gold);
}

/* ---------- choice options ---------- */
.option-field {
  border: 0;
  padding: 0;
  margin: 0;
  margin-top: 20px;
  min-width: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 11px;
}

.choice {
  position: relative;
  min-height: 50px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease), box-shadow 0.16s var(--ease), transform 0.12s var(--ease);
}

.choice:hover {
  border-color: #b9c6d6;
  background: #fff;
}

.choice:active {
  transform: scale(0.99);
}

.choice:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.choice:has(input:focus-visible) {
  box-shadow: var(--ring);
}

.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.choice span {
  position: relative;
  display: block;
  width: 100%;
  padding: 13px 13px 13px 44px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.choice span::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.choice input[type="checkbox"] + span::before {
  border-radius: 6px;
}

.choice:has(input:checked) span {
  color: var(--brand-3);
  font-weight: 700;
}

.choice:has(input:checked) span::before {
  border-color: var(--brand);
  background: var(--brand);
}

.choice:has(input:checked) span::after {
  content: "";
  position: absolute;
  left: 20.5px;
  top: 50%;
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-62%) rotate(45deg);
}

/* ---------- submit bar ---------- */
.submit-bar {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  margin-left: 312px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px) saturate(140%);
}

.submit-bar .submit-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.submit-ring {
  --p: 0;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, #fff 56%, transparent 57%),
    conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line-2) 0);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  transition: background 0.3s var(--ease);
}

.submit-bar strong {
  display: block;
  color: var(--ink);
  font-size: 15.5px;
}

.submit-bar .submit-info span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- buttons ---------- */
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.12s var(--ease), box-shadow 0.18s var(--ease);
}

.button:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -14px rgba(13, 125, 107, 0.8);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.button.primary {
  min-width: 168px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
}

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

.button.secondary:hover {
  border-color: #9a6c22;
  background: #9a6c22;
  box-shadow: 0 12px 24px -14px rgba(185, 132, 47, 0.7);
}

.button.ghost {
  background: #fff;
  color: var(--brand);
  border-color: var(--line-2);
}

.button.ghost:hover {
  background: var(--brand-tint);
  border-color: var(--brand);
  color: var(--brand-2);
  box-shadow: none;
}

.button.full {
  width: 100%;
}

/* ---------- alert ---------- */
.alert {
  display: grid;
  gap: 4px;
  padding: 15px 17px 15px 46px;
  position: relative;
  border: 1px solid #f1c3bd;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
  box-shadow: var(--shadow-sm);
}

.alert::before {
  content: "!";
  position: absolute;
  left: 15px;
  top: 16px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.alert p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 92px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  backdrop-filter: blur(8px);
  z-index: 40;
}

.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  border-color: var(--brand);
  background: #fff;
}

.to-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- generic panels (thanks / login) ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.narrow {
  width: min(540px, calc(100% - 28px));
  margin: 72px auto;
  padding: 36px;
}

.success-panel {
  text-align: center;
}

.success-panel h1 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 26px;
}

.success-panel p {
  margin: 6px 0;
  color: var(--muted);
}

.success-panel .button {
  margin-top: 16px;
}

.status-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #d8f3ec, var(--brand-soft));
  color: var(--brand);
  font-size: 36px;
  font-weight: 800;
  box-shadow: 0 0 0 8px rgba(13, 125, 107, 0.08);
  animation: pop 0.5s var(--ease);
}

@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------- login ---------- */
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(430px, 100%);
  padding: 34px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
}

.login-brand .mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.login-brand b {
  color: var(--ink);
  font-size: 18px;
}

.login-brand span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.login-panel h1 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 22px;
}

.login-panel .login-hint {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- admin ---------- */
.admin-page {
  background: #eef2f7;
  background-image: radial-gradient(900px 420px at 100% -10%, rgba(13, 125, 107, 0.08), transparent 60%);
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  background: linear-gradient(180deg, var(--navy), var(--navy-2));
  color: #fff;
  box-shadow: var(--shadow-md);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.admin-brand .mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  font-size: 15px;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-user .who {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.admin-user .avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.admin-user form {
  margin: 0;
}

.admin-user button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-size: 13.5px;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.admin-user button:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

.admin-layout {
  width: min(1220px, calc(100% - 32px));
  margin: 26px auto 56px;
}

.admin-title {
  margin: 0 0 18px;
}

.admin-title h1 {
  margin: 0;
  font-size: 23px;
  color: var(--ink);
}

.admin-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -14px;
  top: -14px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand-soft);
  opacity: 0.7;
}

.stat-card.is-accent::after {
  background: var(--gold-soft);
}

.stat-card span {
  position: relative;
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.stat-card strong {
  position: relative;
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.panel.admin-panel {
  padding: 20px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px auto auto auto;
  gap: 13px;
  align-items: end;
  margin-bottom: 18px;
}

.filter-bar label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.filter-bar input {
  min-height: 44px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  position: sticky;
  top: 0;
}

tbody tr {
  transition: background-color 0.14s var(--ease);
}

tbody tr:hover {
  background: var(--brand-tint);
}

tr:last-child td {
  border-bottom: 0;
}

td .name-cell {
  font-weight: 700;
  color: var(--ink);
}

.table-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--brand);
}

.table-link:hover {
  color: var(--brand-2);
}

.empty-cell {
  color: var(--muted);
  text-align: center;
  padding: 40px 16px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.pagination a,
.pagination span,
.pagination strong {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--surface);
  font-weight: 600;
}

.pagination a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.pagination span {
  color: var(--faint);
  background: var(--surface-soft);
}

.pagination strong {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.admin-actions {
  margin-bottom: 14px;
}

.detail-head {
  padding: 24px;
}

.detail-head h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 23px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
}

.meta-grid div,
.remark-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--surface-soft);
}

.meta-grid span,
.remark-box span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.meta-grid strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.remark-box {
  margin-top: 13px;
}

.remark-box p {
  margin: 0;
  line-height: 1.7;
}

.detail-section {
  margin-top: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.detail-section h2 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
}

.detail-section h2::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

.detail-section dl {
  margin: 0;
}

.answer-row {
  display: grid;
  grid-template-columns: minmax(190px, 290px) minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.answer-row:first-of-type {
  border-top: 0;
}

.answer-row dt {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.55;
}

.answer-row dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.muted {
  color: var(--faint);
}

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .survey-layout {
    grid-template-columns: 1fr;
  }

  .survey-aside {
    position: static;
  }

  .aside-panel {
    padding: 16px 18px;
  }

  .aside-panel h2,
  .aside-panel .aside-sub {
    display: none;
  }

  .step-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .aside-progress {
    margin-top: 14px;
    padding-top: 14px;
  }

  .submit-bar {
    margin-left: 0;
  }
}

@media (max-width: 920px) {
  .hero-band {
    grid-template-columns: 1fr;
    padding: 28px 24px 30px;
  }

  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    font-size: 14px;
  }

  .survey-page,
  .admin-layout {
    width: calc(100% - 22px);
  }

  .survey-page {
    padding-top: 14px;
  }

  .hero-band h1 {
    font-size: 27px;
  }

  .hero-card__num b {
    font-size: 46px;
  }

  .step-nav {
    grid-template-columns: 1fr;
  }

  .question-section,
  .panel,
  .detail-section,
  .detail-head,
  .narrow {
    padding: 20px;
  }

  .narrow {
    margin: 36px auto;
  }

  .section-title {
    gap: 13px;
  }

  .section-title > .badge {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .section-title h2 {
    font-size: 19px;
  }

  .basic-grid,
  .stat-grid,
  .filter-bar,
  .meta-grid,
  .answer-row {
    grid-template-columns: 1fr;
  }

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

  .submit-bar {
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .submit-bar .button {
    width: 100%;
  }

  .to-top {
    bottom: 150px;
    right: 14px;
  }

  .admin-header {
    height: 56px;
    padding: 0 16px;
  }

  .admin-user .who {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
