:root {
  --accent: #2854c5;
  --accent-soft: #edf2ff;
  --ink: #1c293b;
  --muted: #6c7889;
  --paper: #fff;
  --bg: #f5f7fa;
  --border: #e1e6ed;
  --radius: 7px;
  --serif:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font:
    14px/1.65 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
p {
  margin-top: 0;
}
button {
  border: 0;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
[hidden] {
  display: none !important;
}
.review-bar {
  background: #202b3c;
  color: #fff;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  min-height: 52px;
}
.review-bar > a {
  opacity: 0.8;
  white-space: nowrap;
}
.review-bar strong {
  white-space: nowrap;
}
.review-note {
  color: #c4cdd9;
}
.review-bar nav {
  margin-left: auto;
  display: flex;
  gap: 3px;
}
.review-bar nav button {
  background: transparent;
  color: #d4deed;
  padding: 8px 12px;
  border-radius: 4px;
  white-space: nowrap;
}
.review-bar nav button.active {
  background: #ffffff20;
  color: white;
}
.site-header,
.admin-header {
  max-width: 1200px;
  margin: auto;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 18px;
  letter-spacing: 0.06em;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 20px;
}
.header-note {
  font-size: 12px;
  color: var(--muted);
}
.form-layout {
  max-width: 1140px;
  margin: 36px auto 64px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 84px;
  align-items: start;
}
.introduction {
  padding-top: 20px;
  position: sticky;
  top: 24px;
}
.eyebrow,
.section-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 650;
}
.introduction h1 {
  font: 600 38px/1.45 var(--serif);
  letter-spacing: -0.04em;
  margin: 19px 0;
}
.intro-copy {
  color: #667487;
  font-size: 15px;
  max-width: 285px;
  line-height: 1.9;
}
.intro-meta {
  display: flex;
  gap: 8px;
  flex-direction: column;
  color: var(--muted);
  font-size: 12px;
  margin: 24px 0;
}
.intro-meta span:first-child {
  color: var(--accent);
}
.steps {
  list-style: none;
  margin: 42px 0 32px;
  padding: 0;
}
.steps li {
  display: flex;
  gap: 16px;
  margin: 0 0 25px;
  color: #8791a1;
}
.steps li > span {
  width: 31px;
  height: 31px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  background: var(--paper);
}
.steps li.active {
  color: var(--ink);
  font-weight: 600;
}
.steps li.active > span {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.steps li small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.aside-foot {
  color: var(--muted);
  font-size: 12px;
  max-width: 285px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.form-column {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 34px 38px 20px;
  border-radius: var(--radius);
  min-width: 0;
}
.mobile-progress {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 28px;
}
.progress-track {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.progress-track i {
  display: block;
  width: 33.33%;
  height: 100%;
  background: var(--accent);
  transition: width 0.25s;
}
.section-kicker {
  margin-bottom: 8px;
}
.form-step h2 {
  font-size: 23px;
  font-weight: 650;
  margin-bottom: 6px;
}
.section-note {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 26px;
}
.field {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field > label,
.field legend {
  display: block;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 8px;
}
.field legend {
  float: left;
  width: 100%;
}
.field legend + .choices,
.field legend + .timing-choices {
  clear: both;
}
em {
  font-style: normal;
  color: var(--accent);
  padding-left: 3px;
}
.optional {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #d6dee8;
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  padding: 11px 13px;
  outline: none;
  min-height: 44px;
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
}
textarea {
  resize: vertical;
  line-height: 1.7;
  min-height: 76px;
}
input::placeholder,
textarea::placeholder {
  color: #8b95a4;
  font-size: 12px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.invalid {
  border-color: #b84039 !important;
}
.error {
  font-size: 12px;
  color: #af312a;
  line-height: 1.6;
  margin: 5px 0 0;
  min-height: 0;
}
.error:empty {
  display: none;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.spacer {
  flex: 1;
}
.primary-button {
  background: var(--accent);
  color: white;
  padding: 12px 20px;
  min-height: 46px;
  border-radius: 5px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition:
    filter 0.15s,
    transform 0.15s;
}
.primary-button:hover {
  filter: brightness(0.93);
  transform: translateY(-1px);
}
.text-button {
  background: transparent;
  color: var(--muted);
  padding: 10px 0;
  font-size: 12px;
}
.form-foot {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  margin: 20px 0 0;
}
.site-footer {
  text-align: center;
  padding: 0 24px 30px;
  color: var(--muted);
  font-size: 11px;
}
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cps-choice {
  grid-column: 1 / -1;
}
.cps-choice > .choice {
  width: 100%;
}
.cps-choice > .cps-note {
  margin: 8px 0 2px;
  font-size: 13px;
}
.choice {
  border: 1px solid var(--border);
  padding: 11px 10px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  min-height: 46px;
  transition:
    background 0.16s,
    border-color 0.16s;
}
.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
}
.cps-note {
  border-left: 3px solid var(--accent);
  padding: 14px 17px;
  background: var(--accent-soft);
  font-size: 12px;
  margin: 4px 0 22px;
  animation: appear 0.18s ease-out;
}
.cps-note p {
  margin: 5px 0 0;
  color: #536279;
}
.timing-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.timing-choices label {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 10px;
  font-size: 12px;
  cursor: pointer;
  min-height: 44px;
}
.timing-choices label:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.submission-note {
  background: var(--bg);
  border-radius: 5px;
  padding: 16px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 30px;
}
.success-page {
  max-width: 620px;
  margin: 90px auto;
  padding: 0 28px;
  text-align: center;
}
.success-icon {
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 30px;
  margin: 0 auto 28px;
}
.success-page h1 {
  font-size: 29px;
  line-height: 1.5;
}
.success-page > p {
  color: var(--muted);
}
.receipt {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  margin: 30px 0;
}
.receipt span,
.receipt small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.receipt strong {
  display: block;
  font-size: 19px;
  letter-spacing: 0.04em;
  margin: 5px 0 15px;
}
.login-page {
  max-width: 430px;
  margin: 80px auto;
  padding: 36px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.login-page h1 {
  font-size: 28px;
  margin: 30px 0 8px;
}
.login-page > p {
  font-size: 13px;
  color: var(--muted);
}
.login-page > label {
  display: block;
  margin: 28px 0 8px;
  font-size: 13px;
}
.login-page .primary-button {
  width: 100%;
  margin-top: 20px;
}
.admin-header {
  max-width: 1360px;
  border-bottom: 1px solid var(--border);
  padding-top: 20px;
  padding-bottom: 20px;
}
.admin-header > span {
  color: var(--muted);
  font-size: 12px;
  margin-right: auto;
  margin-left: 24px;
}
.admin-main {
  max-width: 1320px;
  margin: 36px auto;
  padding: 0 32px;
}
.admin-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.admin-title h1 {
  font-size: 27px;
  font-weight: 600;
  margin: 7px 0 6px;
}
.admin-title p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}
.demo-label {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.summary {
  display: flex;
  gap: 0;
  padding: 28px 0 26px;
  border-bottom: 1px solid var(--border);
}
.metric {
  flex: 1;
  border-right: 1px solid var(--border);
  padding: 0 24px;
}
.metric:first-child {
  padding-left: 0;
}
.metric:last-child {
  border: 0;
}
.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.metric strong {
  font-size: 31px;
  font-weight: 550;
  line-height: 1.7;
}
.metric small {
  font-size: 11px;
  color: var(--muted);
  margin-left: 9px;
}
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 18px;
  gap: 20px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 18px;
}
.tabs button {
  padding: 9px 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.filters {
  display: flex;
  gap: 8px;
  max-width: 390px;
}
.filters input {
  max-width: 210px;
}
.filters input,
.filters select {
  font-size: 12px;
  min-height: 40px;
  padding: 8px 10px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}
.company-list {
  min-width: 0;
}
.list-head {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.company-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px 84px;
  gap: 12px;
  align-items: center;
  text-align: left;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 18px 12px;
  color: var(--ink);
  transition: background 0.15s;
}
.company-row:hover,
.company-row.selected {
  background: var(--accent-soft);
}
.company-row strong {
  font-weight: 600;
  display: block;
  font-size: 14px;
}
.company-row small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.row-direction {
  font-size: 11px;
  color: var(--muted);
}
.stage-tag {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 7px;
  border-radius: 3px;
  white-space: nowrap;
  display: inline-block;
}
.stage-tag.later {
  color: var(--muted);
  background: #e8ecf0;
}
.inspector {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px;
  align-self: start;
}
.inspector h2 {
  font-size: 18px;
  margin: 10px 0 6px;
}
.inspector .detail-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.detail-block {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--border);
}
.detail-block h3 {
  font-size: 12px;
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 500;
}
.detail-block p,
.detail-block li {
  font-size: 12px;
  line-height: 1.85;
  margin: 0;
}
.detail-block ul {
  padding-left: 17px;
  margin: 0;
}
.detail-directions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.detail-directions span {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 7px;
  border-radius: 3px;
}
.analysis-note {
  font-size: 11px;
  color: var(--muted);
  padding: 20px 0;
}
.empty {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
body.theme-b {
  --accent: #a85335;
  --accent-soft: #f8eee6;
  --ink: #3c3028;
  --muted: #85796b;
  --bg: #f5f0e7;
  --paper: #fffdf8;
  --border: #e3d9cc;
  --serif: "Songti SC", "Noto Serif CJK SC", serif;
}
.theme-b .site-header {
  max-width: 920px;
}
.theme-b .form-layout {
  display: block;
  max-width: 850px;
  margin-top: 20px;
}
.theme-b .introduction {
  position: static;
  padding: 10px 30px 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  text-align: center;
}
.theme-b .introduction h1 {
  font-size: 43px;
  line-height: 1.4;
}
.theme-b .intro-copy {
  max-width: 520px;
  margin: 0 auto;
}
.theme-b .intro-meta {
  flex-direction: row;
  justify-content: center;
  gap: 22px;
  margin: 18px 0 0;
}
.theme-b .steps,
.theme-b .aside-foot,
.theme-b .mobile-progress {
  display: none;
}
.theme-b .form-column {
  padding: 0 30px;
  background: transparent;
  border: 0;
}
.theme-b .form-step {
  padding: 0 0 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.theme-b .form-step h2 {
  font-family: var(--serif);
  font-size: 27px;
}
.theme-b input:not([type="checkbox"]):not([type="radio"]),
.theme-b textarea {
  background: #fffdf9;
}
.theme-b .form-actions {
  border: 0;
  padding: 0;
}
.theme-b .primary-button {
  border-radius: 2px;
}
.theme-b .form-actions .primary-button {
  width: 100%;
}
.theme-b .admin-title h1 {
  font-family: var(--serif);
}
.theme-b .company-row {
  padding-top: 22px;
  padding-bottom: 22px;
}
body.theme-c {
  --accent: #21634e;
  --accent-soft: #e9f2ed;
  --ink: #203d32;
  --muted: #728278;
  --bg: #f0f4f0;
  --paper: #fff;
  --border: #d9e4dc;
  --radius: 14px;
}
.theme-c .site-header {
  max-width: none;
  background: #174c3d;
  color: white;
  padding-left: max(32px, calc((100vw - 1080px) / 2));
  padding-right: max(32px, calc((100vw - 1080px) / 2));
}
.theme-c .header-note {
  color: #c0d8ca;
}
.theme-c .brand-mark {
  background: #ffffff1a;
}
.theme-c .form-layout {
  display: block;
  max-width: 720px;
  margin-top: 36px;
}
.theme-c .introduction {
  text-align: center;
  position: static;
  padding: 0;
}
.theme-c .introduction h1 {
  font-size: 32px;
  margin: 10px 0;
}
.theme-c .intro-copy {
  max-width: 480px;
  margin: 0 auto;
  font-size: 13px;
}
.theme-c .intro-meta {
  flex-direction: row;
  justify-content: center;
  margin: 14px 0 28px;
}
.theme-c .steps,
.theme-c .aside-foot {
  display: none;
}
.theme-c .form-column {
  padding: 30px 36px 22px;
}
.theme-c .mobile-progress {
  margin-bottom: 24px;
}
.theme-c .form-actions {
  position: sticky;
  bottom: 0;
  background: var(--paper);
  padding: 18px 0 8px;
  z-index: 2;
}
.theme-c .primary-button {
  border-radius: 99px;
}
.theme-c .admin-header {
  max-width: none;
  background: #174c3d;
  color: white;
  padding-left: 32px;
  padding-right: 32px;
}
.theme-c .admin-header > span,
.theme-c .admin-header .text-button {
  color: #c0d8ca;
}
.theme-c .admin-main {
  max-width: 1240px;
}
.theme-c .inspector {
  border-radius: 12px;
}
.theme-c .form-actions {
  position: static;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.form-step {
  animation: appear 0.22s ease-out;
}
@media (min-width: 1500px) {
  .form-layout {
    margin-top: 52px;
  }
}
@media (max-width: 1000px) {
  .form-layout {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 32px;
  }
  .introduction h1 {
    font-size: 32px;
  }
  .form-column {
    padding: 26px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .company-row {
    grid-template-columns: minmax(0, 1fr) 90px;
  }
  .row-direction {
    display: none;
  }
  .tabs {
    gap: 14px;
  }
}
@media (max-width: 720px) {
  .review-bar {
    padding: 9px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .review-note {
    display: none;
  }
  .review-bar nav {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
  }
  .review-bar nav button {
    padding: 7px 8px;
    font-size: 11px;
  }
  .site-header {
    padding: 20px;
  }
  .wordmark {
    font-size: 16px;
  }
  .header-note {
    font-size: 10px;
  }
  .brand-mark {
    height: 30px;
    width: 30px;
    font-size: 18px;
  }
  .form-layout {
    display: block;
    padding: 0 20px;
    margin: 14px auto 35px;
  }
  .introduction {
    position: static;
    padding: 0 3px 22px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .introduction h1 {
    font-size: 27px;
    line-height: 1.45;
    margin: 12px 0;
  }
  .introduction h1 br {
    display: none;
  }
  .intro-copy {
    font-size: 13px;
    max-width: none;
    line-height: 1.8;
    margin: 0;
  }
  .intro-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 14px 0 0;
    font-size: 11px;
  }
  .steps,
  .aside-foot {
    display: none;
  }
  .form-column {
    padding: 24px 20px 18px;
  }
  .mobile-progress {
    margin-bottom: 22px;
  }
  .form-step h2 {
    font-size: 21px;
  }
  .section-note {
    font-size: 13px;
    margin-bottom: 22px;
  }
  .field {
    margin-bottom: 19px;
  }
  .field > label,
  .field legend {
    font-size: 14px;
  }
  .choices {
    grid-template-columns: 1fr;
  }
  .choice {
    font-size: 14px;
    padding: 12px;
  }
  input[type="checkbox"],
  input[type="radio"] {
    width: 19px;
    height: 19px;
  }
  .timing-choices {
    flex-direction: column;
  }
  .timing-choices label {
    padding: 12px;
    font-size: 14px;
  }
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select {
    font-size: 16px;
  }
  input::placeholder,
  textarea::placeholder {
    font-size: 13px;
  }
  .form-actions {
    gap: 6px;
    margin-top: 24px;
  }
  .text-button {
    font-size: 12px;
  }
  .primary-button {
    padding: 12px 15px;
    gap: 12px;
    font-size: 14px;
  }
  .form-foot {
    font-size: 11px;
  }
  .theme-b .form-layout {
    padding: 0 20px;
  }
  .theme-b .introduction {
    padding: 0 0 26px;
    margin-bottom: 27px;
    text-align: left;
  }
  .theme-b .introduction h1 {
    font-size: 32px;
  }
  .theme-b .intro-copy {
    font-size: 13px;
  }
  .theme-b .intro-meta {
    justify-content: flex-start;
    gap: 12px;
  }
  .theme-b .form-column {
    padding: 0;
  }
  .theme-b .form-step h2 {
    font-size: 25px;
  }
  .theme-c .site-header {
    padding: 18px 20px;
  }
  .theme-c .form-layout {
    margin-top: 24px;
  }
  .theme-c .introduction h1 {
    font-size: 27px;
  }
  .theme-c .introduction .eyebrow {
    font-size: 9px;
  }
  .theme-c .intro-copy {
    font-size: 13px;
  }
  .theme-c .intro-meta {
    font-size: 11px;
    margin-bottom: 0;
  }
  .theme-c .form-column {
    padding: 23px 20px 18px;
  }
  .success-page {
    margin: 60px auto;
  }
  .success-page h1 {
    font-size: 25px;
  }
  .success-page > p {
    font-size: 14px;
  }
  .login-page {
    margin: 40px 20px;
    padding: 28px 24px;
  }
  .admin-header,
  .theme-c .admin-header {
    padding: 18px 20px;
  }
  .admin-header > span {
    display: none;
  }
  .admin-main {
    padding: 0 20px;
    margin: 25px auto;
  }
  .admin-title {
    display: block;
  }
  .admin-title h1 {
    font-size: 24px;
  }
  .admin-title p {
    font-size: 13px;
  }
  .demo-label {
    display: inline-block;
    margin-top: 12px;
  }
  .summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 24px 0;
  }
  .metric {
    padding: 0 0 0 16px;
  }
  .metric:nth-child(odd) {
    padding-left: 0;
  }
  .metric:nth-child(even) {
    border: 0;
  }
  .metric strong {
    font-size: 28px;
  }
  .metric small {
    font-size: 11px;
  }
  .metric span {
    font-size: 12px;
  }
  .admin-toolbar {
    margin-top: 16px;
    gap: 12px;
  }
  .tabs {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }
  .tabs button {
    font-size: 12px;
  }
  .filters {
    width: 100%;
    max-width: none;
  }
  .filters input {
    max-width: none;
    flex: 1;
    min-width: 0;
  }
  .filters select {
    width: 140px;
  }
  .workspace {
    display: block;
  }
  .company-row {
    grid-template-columns: minmax(0, 1fr) 80px;
    padding: 16px 7px;
    gap: 8px;
  }
  .company-row strong {
    font-size: 14px;
  }
  .company-row small {
    font-size: 12px;
  }
  .list-head {
    font-size: 11px;
    padding: 10px 7px;
  }
  .inspector {
    margin-top: 22px;
  }
  .detail-block p,
  .detail-block li {
    font-size: 14px;
  }
  .analysis-note {
    line-height: 1.8;
  }
  .theme-b .company-row {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* 已选 A 方案：生产样式与状态 */
.submit-error {
  border-left: 3px solid #b84039;
  background: #fff0ee;
  color: #942d27;
  padding: 14px;
  font-size: 13px;
  margin-top: 18px;
  line-height: 1.8;
}
.success-help {
  font-size: 12px;
}
.offline-note {
  background: #fff4d9;
  color: #78501f;
  padding: 10px 20px;
  text-align: center;
  font-size: 13px;
}
.admin-header {
  background: var(--paper);
}
.login-page .error {
  margin-top: 12px;
}
.login-page .primary-button {
  min-height: 48px;
}
.admin-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.download-button {
  padding: 9px 14px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  border-radius: 5px;
  font-size: 12px;
}
.download-button:hover {
  border-color: var(--accent);
}
.workspace {
  grid-template-columns: minmax(0, 1fr) 370px;
}
.inspector {
  position: sticky;
  top: 16px;
}
.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.admin-title .demo-label {
  border: 0;
  padding: 0;
}
.insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.insights h2 {
  font-size: 13px;
  font-weight: 550;
  margin: 0 0 12px;
}
.insights p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0;
}
.bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 28px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  margin: 8px 0;
}
.bar-track {
  height: 5px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--accent);
  width: 0;
}
.notice-inline {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}
.data-status {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.detail-block input,
.detail-block textarea,
.detail-block select {
  font-size: 13px;
}
.detail-block label {
  display: block;
  font-size: 12px;
  margin: 12px 0 6px;
}
.detail-contact {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 6px;
  font-size: 12px;
  margin: 0;
}
.detail-contact dt {
  color: var(--muted);
}
.detail-contact dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.detail-block p {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.detail-block .primary-button {
  font-size: 12px;
  min-height: 40px;
  margin-top: 12px;
  padding: 8px 15px;
}
.save-message {
  font-size: 12px;
  color: var(--accent);
  margin-top: 10px;
}
.danger-button {
  color: #a23832;
  background: transparent;
  border: 1px solid #edcfcb;
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 12px;
  margin-top: 12px;
}
.muted-copy {
  font-size: 12px;
  color: var(--muted);
}
.full-width {
  grid-column: 1/-1;
}
.legacy-record {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.legacy-record h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.legacy-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
  table-layout: fixed;
}
.legacy-table th,
.legacy-table td {
  padding: 9px;
  border: 1px solid var(--border);
  text-align: left;
  word-break: break-word;
}
.legacy-table th {
  width: 130px;
  background: var(--bg);
}
dialog {
  width: min(760px, calc(100% - 32px));
  max-height: 85svh;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop {
  background: #13223866;
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.dialog-header h2 {
  margin: 0;
  font-size: 21px;
}
.dialog-header button {
  background: transparent;
  font-size: 22px;
  padding: 4px 12px;
}
.dialog-content {
  padding-top: 20px;
}
.detail-suggestion {
  background: var(--accent-soft);
  padding: 12px;
  border-radius: 4px;
}
.detail-suggestion strong {
  font-size: 12px;
}
.details-toggle {
  margin-top: 12px;
  color: var(--accent);
  cursor: pointer;
}
.details-toggle + div {
  padding-top: 8px;
}
.filter-foot {
  color: var(--muted);
  font-size: 11px;
}
.company-list .empty button {
  margin-top: 14px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-size: 12px;
}
.pagination button {
  background: transparent;
  color: var(--accent);
  padding: 8px;
}
.mobile-detail-link {
  display: none;
}
#adminError {
  max-width: 1256px;
  margin: 20px auto;
}
.form-step h2:focus {
  outline: none;
}
.admin-toolbar {
  scroll-margin-top: 16px;
}
.startup-note {
  max-width: 500px;
  margin: 80px auto;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}
input:disabled,
textarea:disabled {
  opacity: 0.7;
}
.field > label,
.field legend {
  font-size: 14px;
}
.choice {
  font-size: 13px;
}
.form-column {
  padding-top: 28px;
}
.mobile-progress {
  margin-bottom: 22px;
}
.form-step h2 {
  scroll-margin-top: 24px;
}
.stage-tag {
  font-size: 12px;
}
.inspector .archive-warning {
  font-size: 12px;
  color: #9c4937;
}
.company-row .stage-tag {
  text-align: center;
}
.list-head span:last-child {
  text-align: right;
}
.inspector {
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .inspector {
    padding: 18px;
  }
  .admin-actions {
    gap: 12px;
  }
  .summary {
    gap: 0;
  }
}
@media (max-width: 720px) {
  .workspace {
    display: block;
  }
  .inspector {
    position: static;
  }
  .insights {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 0;
  }
  .summary {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .admin-header .wordmark {
    font-size: 15px;
  }
  .admin-actions {
    gap: 10px;
  }
  .admin-actions button {
    font-size: 11px;
  }
  .admin-title h1 {
    font-size: 23px;
  }
  .tabs {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 17px;
  }
  .tabs button {
    min-height: 44px;
    font-size: 13px;
  }
  .admin-toolbar {
    margin-top: 14px;
  }
  .filters input,
  .filters select {
    font-size: 16px;
    min-height: 44px;
  }
  .download-button {
    min-height: 44px;
  }
  .detail-contact {
    font-size: 14px;
  }
  .detail-block input,
  .detail-block textarea,
  .detail-block select {
    font-size: 16px;
  }
  .detail-block label {
    font-size: 14px;
  }
  .detail-block .primary-button {
    min-height: 44px;
    font-size: 14px;
  }
  .detail-block h3 {
    font-size: 13px;
  }
  .detail-block p,
  .detail-block li {
    font-size: 14px;
  }
  .field > label,
  .field legend {
    font-size: 14px;
  }
  .choice {
    font-size: 14px;
  }
  .form-foot a {
    display: inline-block;
    min-height: 44px;
    padding: 12px;
  }
  .list-head span:last-child {
    max-width: 170px;
  }
  .admin-title .data-status {
    display: block;
    margin-top: 12px;
  }
  .insights p {
    font-size: 13px;
  }
  .analysis-note {
    font-size: 12px;
  }
  .form-actions .text-button {
    min-height: 44px;
  }
  .review-bar {
    display: none;
  }
  .login-page {
    max-width: 430px;
  }
  .legacy-table {
    font-size: 12px;
  }
  .legacy-table th {
    width: 95px;
  }
  .primary-button {
    font-size: 14px;
  }
}
@media (max-width: 720px) {
  .inspector {
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
    scrollbar-gutter: auto;
  }
}

/* Keep the convenience option beside WeChat on desktop and narrow phones. */
.wechat-control {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wechat-control > #wechat {
  flex: 1;
  min-width: 0;
  width: 0;
}
.wechat-same {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  flex: none;
  white-space: nowrap;
  cursor: pointer;
  font-size: 14px;
}
.wechat-same > input {
  width: 18px;
  height: 18px;
}
#wechat[readonly] {
  background: var(--accent-soft);
}
