:root {
  --navy: #17324d;
  --navy-2: #224865;
  --teal: #1d7a73;
  --teal-light: #e5f1ef;
  --yellow: #f2c14e;
  --coral: #e76f51;
  --ink: #24333f;
  --muted: #667781;
  --line: #d9e2e4;
  --paper: #f5f7f5;
  --white: #ffffff;
  --danger: #b74343;
  --shadow: 0 22px 60px rgba(23, 50, 77, 0.12);
  color-scheme: light;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
select,
label {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.intake-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(320px, 36vw) minmax(0, 1fr);
}

.brand-rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
  padding: clamp(28px, 4vw, 56px);
  color: var(--white);
  background: var(--navy);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
}

.brand-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin-top: clamp(78px, 14vh, 150px);
}

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

.brand-copy .eyebrow {
  color: var(--yellow);
}

.brand-copy h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.13;
  letter-spacing: 0;
}

.brand-copy > p:last-child {
  max-width: 440px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.8;
}

.brand-meta {
  position: absolute;
  z-index: 2;
  left: clamp(28px, 4vw, 56px);
  bottom: calc(clamp(220px, 21vw, 320px) + 28px);
  display: flex;
  gap: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.brand-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-meta span::before {
  width: 5px;
  height: 5px;
  background: var(--yellow);
  content: "";
}

.rabbit-mascot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(220px, 21vw, 320px);
  height: clamp(220px, 21vw, 320px);
  object-fit: cover;
  object-position: center;
  opacity: 1;
  pointer-events: none;
}

.form-stage {
  display: flex;
  flex-direction: column;
  width: min(100%, 980px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 70px) clamp(22px, 6vw, 92px) 28px;
}

.form-header {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 240px);
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.step-label,
.channel-badge {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.channel-badge {
  margin-top: 5px;
  color: var(--teal);
}

.progress-track {
  height: 6px;
  overflow: hidden;
  background: #dfe7e7;
}

.progress-value {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--teal);
  transition: width 280ms ease;
}

.progress-value.progress-step-1 { width: 25%; }
.progress-value.progress-step-2 { width: 50%; }
.progress-value.progress-step-3 { width: 75%; }
.progress-value.progress-step-4 { width: 100%; }

#demandForm {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-step {
  padding: clamp(34px, 6vh, 68px) 0 32px;
  animation: step-enter 260ms ease both;
}

@keyframes step-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 38px;
}

.step-number {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  color: var(--navy);
  background: var(--yellow);
  font-size: 13px;
  font-weight: 800;
}

.step-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: 0;
}

.step-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.field-grid {
  display: grid;
  gap: 20px;
}

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

.field {
  display: grid;
  gap: 9px;
  margin-bottom: 24px;
}

.field > span,
.choice-group legend {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.field em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.field input,
.field select,
.field textarea,
.admin-login input,
.filter-control input,
.filter-control select,
.drawer-field input,
.drawer-field select,
.drawer-field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  color: var(--ink);
  background: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input,
.field select {
  padding: 0 15px;
}

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

.field input::placeholder,
.field textarea::placeholder,
.drawer-field textarea::placeholder {
  color: #9ba8ae;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.admin-login input:focus,
.filter-control input:focus,
.filter-control select:focus,
.drawer-field input:focus,
.drawer-field select:focus,
.drawer-field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(29, 122, 115, 0.12);
}

.choice-group {
  min-width: 0;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.choice-group legend {
  margin-bottom: 13px;
}

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

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

.choice-grid.four-columns {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-grid.five-columns {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.choice {
  position: relative;
  min-width: 0;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice span {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #41525e;
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  transition: 150ms ease;
}

.choice:hover span {
  border-color: #8ab4ae;
  background: var(--white);
}

.choice input:checked + span {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-light);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.choice input:focus-visible + span {
  outline: 3px solid rgba(29, 122, 115, 0.18);
  outline-offset: 2px;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px 16px;
  border-left: 3px solid var(--yellow);
  color: var(--muted);
  background: #fffaf0;
  font-size: 12px;
  line-height: 1.7;
}

.privacy-check input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--danger);
  color: var(--danger);
  background: #fff1f1;
  font-size: 13px;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.button {
  min-width: 122px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.button-primary {
  margin-left: auto;
  color: var(--white);
  background: var(--teal);
}

.button-primary:hover {
  background: #176860;
}

.button-ghost {
  color: var(--navy);
  border-color: var(--line);
  background: transparent;
}

.button-ghost:hover {
  border-color: var(--navy);
}

.success-state {
  max-width: 620px;
  margin: auto;
  padding: 72px 0;
  animation: step-enter 280ms ease both;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  color: var(--white);
  background: var(--teal);
  font-size: 25px;
  font-weight: 800;
}

.success-state h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: 0;
}

.success-state > p:not(.eyebrow) {
  margin: 20px 0 34px;
  color: var(--muted);
  line-height: 1.8;
}

.receipt {
  margin: 0 0 30px;
  border-top: 1px solid var(--line);
}

.receipt div {
  display: grid;
  grid-template-columns: 100px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.receipt dt {
  color: var(--muted);
  font-size: 13px;
}

.receipt dd {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #8a989f;
  font-size: 11px;
}

/* Admin */
.admin-page {
  min-height: 100dvh;
  background: #eef2f2;
}

.admin-login {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
  background: var(--paper);
}

.login-panel {
  width: min(100%, 420px);
  padding: 34px;
  border-top: 5px solid var(--yellow);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.login-panel .brand {
  color: var(--navy);
}

.login-panel h1 {
  margin: 44px 0 8px;
  color: var(--navy);
  font-size: 28px;
}

.login-panel > p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.admin-login input {
  padding: 0 14px;
}

.admin-login .button {
  width: 100%;
  margin-top: 14px;
}

.login-error {
  margin: 14px 0 0;
  color: var(--danger);
  font-size: 12px;
}

.admin-app {
  min-height: 100dvh;
}

.admin-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 clamp(18px, 4vw, 54px);
  color: var(--white);
  background: var(--navy);
}

.admin-topbar .brand {
  gap: 10px;
}

.admin-topbar .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 11px;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-command,
.text-command {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  color: var(--white);
  background: transparent;
}

.icon-command {
  width: 38px;
  padding: 0;
  font-size: 17px;
}

.text-command {
  padding: 0 13px;
  font-size: 12px;
  font-weight: 700;
}

.icon-command:disabled,
.text-command:disabled {
  cursor: wait;
  opacity: 0.58;
}

.admin-main {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 54px) 60px;
}

.admin-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-heading h1 {
  margin: 0;
  color: var(--navy);
  font-size: 30px;
}

.admin-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.sync-time {
  color: var(--muted);
  font-size: 12px;
}

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

.kpi {
  min-height: 116px;
  padding: 20px;
  border-top: 4px solid var(--teal);
  border-radius: 6px;
  background: var(--white);
}

.kpi:nth-child(2) { border-top-color: var(--yellow); }
.kpi:nth-child(3) { border-top-color: var(--coral); }
.kpi:nth-child(4) { border-top-color: var(--navy-2); }

.kpi span {
  color: var(--muted);
  font-size: 12px;
}

.kpi strong {
  display: block;
  margin-top: 10px;
  color: var(--navy);
  font-size: 32px;
  line-height: 1;
}

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

.analytics-panel {
  min-height: 260px;
  padding: 22px;
  border-radius: 6px;
  background: var(--white);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 22px;
  color: var(--navy);
  font-size: 15px;
}

.panel-title span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.bar-list {
  display: grid;
  gap: 13px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(76px, 140px) 1fr 30px;
  align-items: center;
  gap: 10px;
  color: #53636d;
  font-size: 12px;
}

.bar-row > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border: 0;
  appearance: none;
  background: #edf1f1;
}

.bar-track::-webkit-progress-bar { background: #edf1f1; }
.bar-track::-webkit-progress-value,
.bar-track::-moz-progress-bar {
  background: var(--teal);
}

.bar-row:nth-child(2n) .bar-track::-webkit-progress-value { background: var(--yellow); }
.bar-row:nth-child(2n) .bar-track::-moz-progress-bar { background: var(--yellow); }
.bar-row:nth-child(3n) .bar-track::-webkit-progress-value { background: var(--coral); }
.bar-row:nth-child(3n) .bar-track::-moz-progress-bar { background: var(--coral); }

body.drawer-open { overflow: hidden; }

.data-panel {
  border-radius: 6px;
  background: var(--white);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(120px, 0.7fr));
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.filter-control input,
.filter-control select {
  min-height: 40px;
  padding: 0 11px;
  font-size: 12px;
}

.table-wrap {
  overflow: auto;
}

.demand-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  table-layout: fixed;
}

.demand-table .col-width-105 { width: 105px; }
.demand-table .col-width-110 { width: 110px; }
.demand-table .col-width-120 { width: 120px; }
.demand-table .col-width-145 { width: 145px; }
.demand-table .col-width-150 { width: 150px; }
.demand-table .col-width-160 { width: 160px; }
.demand-table .col-width-170 { width: 170px; }

.demand-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 13px 12px;
  color: var(--muted);
  background: #f7f9f9;
  font-size: 11px;
  font-weight: 750;
  text-align: left;
}

.demand-table td {
  padding: 14px 12px;
  border-top: 1px solid #edf1f1;
  color: #40515c;
  font-size: 12px;
  vertical-align: middle;
}

.demand-table tbody tr {
  cursor: pointer;
}

.demand-table tbody tr:hover,
.demand-table tbody tr:focus {
  outline: none;
  background: #f1f7f6;
}

.person-cell strong,
.scene-cell strong {
  display: block;
  overflow: hidden;
  color: var(--navy);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-cell span,
.scene-cell span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grade,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 750;
}

.grade-a { color: #9f3d31; background: #fbe6df; }
.grade-b { color: #7c5b0d; background: #fff2c6; }
.grade-c { color: #3a6764; background: #e5f1ef; }
.status-chip { color: var(--navy); background: #e9eef1; }

.empty-row {
  padding: 52px !important;
  color: var(--muted) !important;
  text-align: center;
}

.drawer-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  background: rgba(13, 30, 43, 0.42);
}

.detail-drawer {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(94vw, 680px);
  height: 100dvh;
  background: var(--white);
  box-shadow: -24px 0 70px rgba(23, 50, 77, 0.18);
  animation: drawer-enter 220ms ease both;
}

@keyframes drawer-enter {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
}

.drawer-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.drawer-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--navy);
  background: var(--white);
  font-size: 22px;
}

.drawer-content {
  flex: 1;
  overflow: auto;
  padding: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}

.detail-grid div {
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf1f1;
}

.detail-grid dt {
  color: var(--muted);
  font-size: 11px;
}

.detail-grid dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.drawer-field {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.drawer-field span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.drawer-field input,
.drawer-field select,
.drawer-field textarea {
  padding: 10px 12px;
  font-size: 13px;
}

.drawer-field textarea {
  min-height: 112px;
  resize: vertical;
}

.drawer-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}

.drawer-footer .button {
  width: 100%;
}

.admin-toast {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  max-width: 320px;
  padding: 13px 16px;
  border-radius: 5px;
  color: var(--white);
  background: var(--navy);
  box-shadow: var(--shadow);
  font-size: 12px;
}

@media (max-width: 1060px) {
  .choice-grid.five-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .choice-grid.four-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-control:first-child { grid-column: span 2; }
}

@media (max-width: 800px) {
  .intake-shell { display: block; }
  .brand-rail {
    position: relative;
    height: auto;
    min-height: 230px;
    padding: 22px 22px 28px;
  }
  .brand-mark { width: 36px; height: 36px; font-size: 12px; }
  .brand-name { font-size: 17px; }
  .brand-copy { margin-top: 42px; padding-right: 96px; }
  .brand-copy h1 { font-size: 30px; }
  .brand-copy > p:last-child { margin-top: 14px; font-size: 13px; line-height: 1.65; }
  .brand-meta { display: none; }
  .rabbit-mascot { right: 0; bottom: 0; width: 132px; height: 144px; object-fit: cover; opacity: 1; }
  .form-stage { min-height: calc(100dvh - 230px); padding: 24px 18px 20px; }
  .form-header { grid-template-columns: 1fr 118px; padding-bottom: 20px; }
  .form-step { padding-top: 32px; }
  .step-heading { margin-bottom: 28px; }
  .step-heading h2 { font-size: 27px; }
  .choice-grid.three-columns,
  .choice-grid.five-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-choices { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .choice span { min-height: 46px; padding: 8px 6px; font-size: 12px; }
  .form-actions { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .page-footer { font-size: 10px; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-app.registration-only .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-control:first-child { grid-column: span 2; }
}

@media (max-width: 520px) {
  .brand-rail { min-height: 220px; }
  .brand-copy { margin-top: 34px; }
  .brand-copy h1 { font-size: 27px; }
  .brand-copy > p:last-child { display: none; }
  .form-stage { min-height: calc(100dvh - 220px); }
  .form-header { grid-template-columns: 1fr 94px; gap: 12px; }
  .field-grid.two-columns { grid-template-columns: 1fr; gap: 0; }
  .choice-grid.three-columns,
  .choice-grid.four-columns,
  .choice-grid.five-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-number { flex-basis: 40px; width: 40px; height: 40px; }
  .step-heading { gap: 13px; }
  .button { min-width: 108px; }
  .page-footer { align-items: flex-start; flex-direction: column; gap: 5px; }
  .admin-topbar { padding: 0 14px; }
  .admin-topbar .brand-name { display: none; }
  .admin-main { padding: 24px 12px 44px; }
  .kpi { min-height: 100px; padding: 16px; }
  .kpi strong { font-size: 27px; }
  .analytics-panel { padding: 18px 14px; }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-control:first-child { grid-column: auto; }
  .detail-grid { grid-template-columns: 1fr; }
  .admin-toast { right: 12px; bottom: 90px; max-width: calc(100vw - 24px); }
}

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

/* Intake visual refresh */
.intake-page {
  --navy: #111b25;
  --navy-2: #263b4d;
  --teal: #0a746c;
  --teal-light: #e8f4f1;
  --yellow: #d6a23a;
  --coral: #c95f48;
  --ink: #1d2a33;
  --muted: #687780;
  --line: #d9e1e2;
  --paper: #f4f6f5;
  background: #e9eeed;
}

.intake-page .intake-shell {
  grid-template-columns: minmax(440px, 46vw) minmax(0, 1fr);
  background: var(--paper);
}

.intake-page .brand-rail {
  padding: 34px 44px 42px;
  background-color: #111b25;
  background-image: url("/qifu-ai-intake-hero.webp");
  background-position: 70% center;
  background-size: cover;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.intake-page .brand {
  gap: 11px;
}

.intake-page .brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: #f2bd54;
  background: rgba(9, 18, 27, 0.5);
  backdrop-filter: blur(8px);
  font-size: 12px;
}

.intake-page .brand-name {
  font-size: 18px;
  font-weight: 760;
}

.intake-page .brand-copy {
  max-width: 560px;
  margin-top: 17vh;
  text-shadow: 0 2px 18px rgba(5, 12, 18, 0.45);
}

.intake-page .brand-copy .eyebrow {
  margin-bottom: 16px;
  color: #f2bd54;
  font-size: 12px;
  letter-spacing: 0;
}

.intake-page .brand-copy h1 {
  max-width: 560px;
  font-size: 48px;
  line-height: 1.14;
  font-weight: 760;
}

.intake-page .brand-copy > p:last-child {
  max-width: 440px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.75;
}

.intake-page .brand-meta {
  left: 44px;
  bottom: 42px;
  width: min(52%, 390px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.intake-page .brand-meta span {
  display: grid;
  gap: 3px;
  padding-right: 10px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
}

.intake-page .brand-meta span::before {
  display: none;
}

.intake-page .brand-meta strong {
  color: #fff;
  font-size: 15px;
  font-weight: 750;
}

.intake-page .form-stage {
  width: min(100%, 820px);
  padding: 34px 54px 24px;
}

.intake-page .form-header {
  grid-template-columns: 1fr minmax(150px, 220px);
  padding-bottom: 18px;
  border-bottom-color: #dce3e3;
}

.intake-page .step-label {
  color: #53636c;
  font-size: 12px;
  font-weight: 750;
}

.intake-page .channel-badge {
  color: var(--teal);
  font-size: 11px;
}

.intake-page .progress-track {
  height: 4px;
  border-radius: 4px;
  background: #dfe6e5;
}

.intake-page .progress-value {
  border-radius: inherit;
  background: var(--teal);
}

.intake-page .form-step {
  padding: 42px 0 30px;
}

.intake-page .step-heading {
  gap: 16px;
  margin-bottom: 34px;
}

.intake-page .step-number {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  padding-top: 4px;
  color: var(--teal);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.intake-page .step-number::before {
  display: block;
  margin-bottom: 2px;
  color: #8d9a9f;
  content: "STEP";
  font-size: 9px;
  font-weight: 700;
}

.intake-page .step-heading h2 {
  color: var(--navy);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 760;
}

.intake-page .step-heading p {
  margin-top: 7px;
  font-size: 13px;
}

.intake-page .field-grid {
  gap: 16px;
}

.intake-page .field {
  gap: 9px;
  margin-bottom: 22px;
}

.intake-page .field > span,
.intake-page .choice-group legend {
  color: #26343d;
  font-size: 14px;
  font-weight: 680;
}

.intake-page .choice-hint {
  display: inline-block;
  margin-left: 8px;
  color: #718087;
  font-size: 11px;
  font-weight: 550;
}

.intake-page .field input,
.intake-page .field select,
.intake-page .field textarea {
  min-height: 54px;
  border-color: #d5dfe0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(17, 27, 37, 0.02);
}

.intake-page .field input,
.intake-page .field select {
  padding: 0 16px;
}

.intake-page .field textarea {
  min-height: 124px;
  padding: 14px 16px;
}

.intake-page .field input:hover,
.intake-page .field select:hover,
.intake-page .field textarea:hover {
  border-color: #aebcbe;
}

.intake-page .field input:focus,
.intake-page .field select:focus,
.intake-page .field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(10, 116, 108, 0.11);
}

.intake-page .conditional-input {
  margin-top: -12px;
  padding: 14px;
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  background: #edf6f4;
}

.intake-page .choice-group {
  margin-bottom: 27px;
}

.intake-page .choice-group legend {
  margin-bottom: 12px;
}

.intake-page .choice-grid {
  gap: 9px;
}

.intake-page .choice-grid.five-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.intake-page .choice span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 52px;
  padding: 9px 12px 9px 38px;
  border-color: #d7e0e1;
  border-radius: 8px;
  color: #3c4b54;
  background: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  box-shadow: 0 1px 0 rgba(17, 27, 37, 0.02);
}

.intake-page .choice span::before {
  position: absolute;
  left: 14px;
  width: 14px;
  height: 14px;
  border: 1px solid #aab8bb;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: border 150ms ease, background 150ms ease;
}

.intake-page .choice:hover span {
  border-color: #9db7b3;
  background: #fff;
}

.intake-page .choice input:checked + span {
  border-color: var(--teal);
  color: #075d57;
  background: var(--teal-light);
  box-shadow: 0 0 0 1px var(--teal);
}

.intake-page .choice input:checked + span::before {
  border: 4px solid var(--teal);
}

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

.intake-page .choice input[type="checkbox"]:checked + span::before {
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: var(--teal);
  content: "✓";
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.intake-page .choice input:disabled + span {
  cursor: not-allowed;
  opacity: 0.46;
  background: #f3f5f4;
}

.intake-page .privacy-check {
  padding: 14px 15px;
  border: 1px solid #e3ded0;
  border-left: 3px solid #d6a23a;
  border-radius: 0 8px 8px 0;
  background: #fffcf5;
  line-height: 1.65;
}

.intake-page .data-note {
  display: grid;
  gap: 4px;
  margin-bottom: 24px;
  padding: 14px 15px;
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  color: #526269;
  background: #edf6f4;
  font-size: 12px;
  line-height: 1.6;
}

.intake-page .data-note strong {
  color: #075d57;
  font-size: 13px;
}

.intake-page .conditional-note {
  margin: 0 0 24px;
  padding: 14px 15px;
  border-left: 3px solid #d6a23a;
  border-radius: 0 8px 8px 0;
  color: #6a5831;
  background: #fffcf5;
  font-size: 13px;
  line-height: 1.65;
}

.intake-page .form-actions {
  gap: 10px;
  padding-top: 18px;
}

.intake-page .button {
  min-height: 50px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 740;
}

.intake-page .button-primary {
  min-width: 190px;
  background: var(--teal);
  box-shadow: 0 9px 20px rgba(10, 116, 108, 0.18);
}

.intake-page .button-primary:hover {
  background: #075f59;
}

.intake-page .button-ghost {
  color: #263843;
  background: rgba(255, 255, 255, 0.72);
}

.intake-page .result-state {
  width: 100%;
  max-width: 620px;
  padding: 42px 0 36px;
}

.intake-page .result-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.intake-page .result-heading .eyebrow {
  margin: 0;
  color: #68777e;
}

.intake-page .result-badge {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  color: #075d57;
  background: #dff2ed;
  font-size: 11px;
  font-weight: 800;
}

.intake-page .result-state[data-level="prepare"] .result-badge {
  color: #755516;
  background: #fff0c8;
}

.intake-page .result-state[data-level="nurture"] .result-badge {
  color: #526269;
  background: #e8edee;
}

.intake-page .result-state h2 {
  max-width: 560px;
  color: var(--navy);
  font-size: 40px;
  line-height: 1.18;
}

.intake-page .result-summary {
  margin: 18px 0 0;
  color: #53636c;
  font-size: 15px;
  line-height: 1.8;
}

.intake-page .result-panel {
  margin: 28px 0 18px;
  padding: 22px;
  border-top: 3px solid var(--teal);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 27, 37, 0.08);
}

.intake-page .result-state[data-level="prepare"] .result-panel {
  border-top-color: #d6a23a;
}

.intake-page .result-state[data-level="nurture"] .result-panel {
  border-top-color: #819097;
}

.intake-page .result-panel > span {
  color: #7a878d;
  font-size: 11px;
  font-weight: 750;
}

.intake-page .result-panel > strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.65;
}

.intake-page .result-signals {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #e3e8e8;
  list-style: none;
}

.intake-page .result-signals li {
  position: relative;
  padding-left: 18px;
  color: #53636c;
  font-size: 13px;
  line-height: 1.55;
}

.intake-page .result-signals li::before {
  position: absolute;
  top: 8px;
  left: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.intake-page .result-state[data-level="prepare"] .result-signals li::before {
  background: #d6a23a;
}

.intake-page .result-state[data-level="nurture"] .result-signals li::before {
  background: #819097;
}

.intake-page .result-response {
  margin: 0;
  padding: 13px 15px;
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  color: #21423f;
  background: #edf6f4;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.intake-page .result-disclaimer {
  margin: 10px 0 28px;
  color: #7a878d;
  font-size: 11px;
  line-height: 1.6;
}

.intake-page .result-state .receipt {
  margin-bottom: 22px;
}

.intake-page .result-actions {
  display: flex;
  gap: 10px;
}

.intake-page .result-actions .button {
  margin: 0;
}

.intake-page .page-footer {
  margin-top: 28px;
  color: #849195;
}

@media (max-width: 1100px) {
  .intake-page .intake-shell {
    grid-template-columns: minmax(380px, 42vw) minmax(0, 1fr);
  }

  .intake-page .brand-copy h1 {
    font-size: 40px;
  }

  .intake-page .brand-meta {
    width: 56%;
  }

  .intake-page .choice-grid.four-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .intake-page .intake-shell {
    display: block;
  }

  .intake-page .brand-rail {
    position: relative;
    height: auto;
    min-height: 286px;
    padding: 20px 20px 26px;
    background-position: 58% center;
  }

  .intake-page .brand-mark {
    width: 36px;
    height: 36px;
  }

  .intake-page .brand-name {
    font-size: 17px;
  }

  .intake-page .brand-copy {
    max-width: 62%;
    margin-top: 42px;
    padding-right: 0;
  }

  .intake-page .brand-copy h1 {
    font-size: 29px;
    line-height: 1.17;
  }

  .intake-page .brand-copy > p:last-child {
    max-width: 250px;
    margin-top: 13px;
    font-size: 12px;
    line-height: 1.55;
  }

  .intake-page .brand-meta {
    display: none;
  }

  .intake-page .form-stage {
    min-height: calc(100dvh - 286px);
    padding: 20px 18px 18px;
  }

  .intake-page .form-header {
    grid-template-columns: 1fr 110px;
    gap: 14px;
    padding-bottom: 16px;
  }

  .intake-page .form-step {
    padding: 28px 0 24px;
  }

  .intake-page .step-heading {
    gap: 13px;
    margin-bottom: 27px;
  }

  .intake-page .step-heading h2 {
    font-size: 26px;
  }

  .intake-page .choice-grid.three-columns,
  .intake-page .choice-grid.five-columns,
  .intake-page .scene-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .intake-page .choice span {
    min-height: 50px;
    padding: 8px 8px 8px 34px;
  }

  .intake-page .choice span::before {
    left: 12px;
  }

  .intake-page .form-actions {
    position: static;
    margin: 0;
    padding: 18px 0 calc(12px + env(safe-area-inset-bottom));
    background: transparent;
  }

  .intake-page .form-actions .button-primary {
    flex: 1;
    min-width: 0;
    margin-left: 0;
  }

  .intake-page .form-actions .button-ghost {
    flex: 0 0 104px;
    min-width: 0;
  }

  .intake-page .result-state {
    padding: 32px 0 24px;
  }

  .intake-page .result-state h2 {
    font-size: 33px;
  }
}

@media (max-width: 520px) {
  .intake-page .brand-rail {
    min-height: 278px;
    background-position: 58% center;
  }

  .intake-page .brand-copy {
    max-width: 66%;
    margin-top: 36px;
  }

  .intake-page .brand-copy h1 {
    font-size: 27px;
  }

  .intake-page .brand-copy > p:last-child {
    display: block;
  }

  .intake-page .form-stage {
    min-height: calc(100dvh - 278px);
  }

  .intake-page .field-grid.two-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .intake-page .choice-grid.three-columns,
  .intake-page .choice-grid.four-columns,
  .intake-page .choice-grid.five-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intake-page .page-footer {
    gap: 4px;
  }

  .intake-page .result-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .intake-page .result-state h2 {
    font-size: 30px;
  }

  .intake-page .result-panel {
    padding: 19px 17px;
  }

  .intake-page .result-actions {
    flex-direction: column;
  }

  .intake-page .result-actions .button {
    width: 100%;
    min-width: 0;
  }
}

/* UI V3: mobile-first intake and scan-friendly administration */
@media (min-width: 801px) {
  .intake-page .intake-shell {
    grid-template-columns: minmax(400px, 42vw) minmax(0, 1fr);
  }

  .intake-page .brand-rail {
    background-position: 66% center;
  }

  .intake-page .brand-copy {
    margin-top: 15vh;
  }

  .intake-page .brand-copy h1 {
    font-size: 44px;
  }

  .intake-page .form-stage {
    width: min(100%, 780px);
    padding: 30px 48px 24px;
  }

  .intake-page .form-step {
    padding-top: 36px;
  }
}

.intake-page .progress-track {
  position: relative;
  height: 5px;
  overflow: visible;
}

.intake-page .progress-value::after {
  position: absolute;
  top: 50%;
  right: -4px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--teal);
  content: "";
  transform: translateY(-50%);
}

.intake-page .choice span {
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease,
    box-shadow 150ms ease, transform 150ms ease;
}

.intake-page .choice input {
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.intake-page .choice:active span {
  transform: scale(0.985);
}

.intake-page .choice input:checked + span {
  box-shadow: inset 3px 0 0 var(--teal);
}

.admin-page {
  --navy: #111b25;
  --navy-2: #263b4d;
  --teal: #0a746c;
  --teal-light: #e8f4f1;
  --yellow: #d6a23a;
  --coral: #c95f48;
  --paper: #f3f6f5;
  background: var(--paper);
}

.admin-page .admin-topbar {
  background: #111b25;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-page .admin-main {
  padding-top: 28px;
}

.admin-page .kpi,
.admin-page .analytics-panel,
.admin-page .data-panel {
  border: 1px solid #e0e6e5;
  box-shadow: 0 5px 18px rgba(17, 27, 37, 0.035);
}

.admin-page .analytics-panel {
  min-height: 0;
  padding: 20px;
}

.admin-page .panel-title {
  margin-bottom: 18px;
}

.admin-page .bar-list:empty::after {
  color: var(--muted);
  content: "暂无登记数据";
  font-size: 12px;
}

.admin-page .filter-control input,
.admin-page .filter-control select {
  min-height: 42px;
  border-radius: 5px;
  background-color: #fbfcfc;
}

.admin-page .demand-table tbody tr {
  transition: background 150ms ease;
}

@media (max-width: 800px) {
  .intake-page {
    background: var(--paper);
  }

  .intake-page .brand-rail {
    min-height: 238px;
    padding: 16px 18px 20px;
    background-position: 60% center;
  }

  .intake-page .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

  .intake-page .brand-name {
    font-size: 16px;
  }

  .intake-page .brand-copy {
    max-width: 58%;
    margin-top: 28px;
  }

  .intake-page .brand-copy .eyebrow {
    margin-bottom: 9px;
    font-size: 10px;
  }

  .intake-page .brand-copy h1 {
    font-size: 28px;
    line-height: 1.16;
  }

  .intake-page .brand-copy > p:last-child {
    max-width: 210px;
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.5;
  }

  .intake-page .form-stage {
    min-height: calc(100dvh - 238px);
    padding: 0 16px 18px;
  }

  .intake-page .form-header {
    position: sticky;
    z-index: 8;
    top: 0;
    grid-template-columns: 1fr 116px;
    min-height: 58px;
    margin: 0 -16px;
    padding: 11px 16px;
    border-bottom: 1px solid #dce3e3;
    background: rgba(244, 246, 245, 0.94);
    backdrop-filter: blur(12px);
  }

  .intake-page .step-label {
    font-size: 11px;
  }

  .intake-page .form-step {
    padding: 24px 0 22px;
  }

  .intake-page .step-heading {
    gap: 12px;
    margin-bottom: 22px;
  }

  .intake-page .step-number {
    min-width: 32px;
    padding: 3px 8px 3px 0;
    border-right: 1px solid #cbd6d5;
  }

  .intake-page .step-number::before {
    margin-bottom: 1px;
  }

  .intake-page .step-heading h2 {
    font-size: 23px;
  }

  .intake-page .step-heading p {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.45;
  }

  .intake-page .choice-group {
    margin-bottom: 23px;
  }

  .intake-page .choice-group legend {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.55;
  }

  .intake-page .choice-hint {
    display: block;
    margin: 2px 0 0;
    font-size: 10px;
  }

  .intake-page .choice-grid {
    gap: 8px;
  }

  .intake-page .choice span {
    min-height: 52px;
    padding: 8px 8px 8px 33px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.3;
  }

  .intake-page .choice span::before {
    left: 11px;
    width: 15px;
    height: 15px;
  }

  .intake-page .choice input:checked + span {
    box-shadow: inset 3px 0 0 var(--teal);
  }

  .intake-page .field {
    margin-bottom: 19px;
  }

  .intake-page .field input,
  .intake-page .field select {
    min-height: 50px;
  }

  .intake-page #demandForm {
    padding-bottom: 78px;
  }

  .intake-page .form-actions {
    position: fixed;
    z-index: 15;
    right: 0;
    bottom: 0;
    left: 0;
    gap: 8px;
    margin: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #d9e2e1;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 24px rgba(17, 27, 37, 0.08);
    backdrop-filter: blur(12px);
  }

  .intake-page .form-actions .button {
    min-height: 50px;
  }

  .intake-page .form-actions .button-primary {
    flex: 1 1 auto;
  }

  .intake-page .form-actions .button-ghost {
    flex: 0 0 100px;
  }

  .intake-page .page-footer {
    margin-top: 12px;
  }

  .admin-page .admin-topbar {
    min-height: 60px;
    padding: 0 12px;
  }

  .admin-page .admin-topbar .brand {
    gap: 7px;
  }

  .admin-page .admin-topbar .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }

  .admin-page .admin-topbar .brand-name {
    display: block;
    max-width: 92px;
    font-size: 12px;
    line-height: 1.25;
  }

  .admin-page .admin-actions {
    gap: 4px;
  }

  .admin-page .icon-command,
  .admin-page .text-command {
    min-height: 32px;
  }

  .admin-page .icon-command {
    width: 32px;
  }

  .admin-page .text-command {
    padding: 0 8px;
    font-size: 11px;
  }

  .admin-page .admin-main {
    padding: 20px 12px 40px;
  }

  .admin-page .admin-heading {
    display: grid;
    gap: 5px;
    margin-bottom: 16px;
  }

  .admin-page .admin-heading h1 {
    font-size: 25px;
  }

  .admin-page .admin-heading p {
    margin-top: 4px;
    font-size: 12px;
  }

  .admin-page .sync-time {
    font-size: 10px;
  }

  .admin-page .kpi-grid,
  .admin-page.registration-only .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 12px;
  }

  .admin-page .kpi {
    min-height: 86px;
    padding: 12px 10px;
    border-top-width: 3px;
  }

  .admin-page .kpi span {
    font-size: 10px;
    white-space: nowrap;
  }

  .admin-page .kpi strong {
    margin-top: 9px;
    font-size: 25px;
  }

  .admin-page .analytics-grid {
    gap: 10px;
    margin-bottom: 14px;
  }

  .admin-page .analytics-panel {
    min-height: 0;
    padding: 16px 14px;
  }

  .admin-page .panel-title {
    margin-bottom: 14px;
    font-size: 14px;
  }

  .admin-page .bar-list {
    gap: 10px;
  }

  .admin-page .bar-row {
    grid-template-columns: minmax(72px, 96px) 1fr 24px;
    gap: 8px;
  }

  .admin-page .data-panel {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .admin-page .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
    padding: 0;
    border: 0;
  }

  .admin-page .filter-control:first-child {
    grid-column: span 2;
  }

  .admin-page .filter-control input,
  .admin-page .filter-control select {
    min-height: 43px;
    background: #fff;
  }

  .admin-page .table-wrap {
    overflow: visible;
  }

  .admin-page .demand-table,
  .admin-page .demand-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .admin-page .demand-table colgroup,
  .admin-page .demand-table thead {
    display: none;
  }

  .admin-page .demand-table tbody {
    display: grid;
    gap: 10px;
  }

  .admin-page .demand-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
    padding: 14px;
    border: 1px solid #dde5e4;
    border-left: 3px solid var(--teal);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(17, 27, 37, 0.035);
  }

  .admin-page .demand-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    font-size: 11px;
  }

  .admin-page .demand-table td::before {
    display: block;
    margin-bottom: 4px;
    color: #879398;
    font-size: 9px;
    font-weight: 750;
  }

  .admin-page .demand-table td:nth-child(1),
  .admin-page .demand-table td:nth-child(4) {
    grid-column: span 2;
  }

  .admin-page .demand-table td:nth-child(2)::before { content: "提交时间"; }
  .admin-page .demand-table td:nth-child(3)::before { content: "来源渠道"; }
  .admin-page .demand-table td:nth-child(4)::before { content: "需求场景"; }
  .admin-page .demand-table td:nth-child(5)::before { content: "落地时间"; }
  .admin-page .demand-table td:nth-child(6)::before { content: "意向等级"; }
  .admin-page .demand-table td:nth-child(7)::before { content: "当前状态"; }
  .admin-page .demand-table td:nth-child(8)::before { content: "负责人"; }

  .admin-page .person-cell strong,
  .admin-page .scene-cell strong {
    font-size: 14px;
  }

  .admin-page .empty-row {
    display: block !important;
    padding: 34px 16px !important;
    border-left-width: 1px !important;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .intake-page .brand-rail {
    min-height: 232px;
    background-position: 59% center;
  }

  .intake-page .brand-copy {
    max-width: 60%;
    margin-top: 24px;
  }

  .intake-page .brand-copy h1 {
    font-size: 26px;
  }

  .intake-page .form-stage {
    min-height: calc(100dvh - 232px);
  }

  .admin-page .detail-drawer {
    width: 100vw;
  }

  .admin-page .drawer-header,
  .admin-page .drawer-content {
    padding-right: 16px;
    padding-left: 16px;
  }
}
