:root {
  color-scheme: light;
  --ink: #332f2a;
  --muted: #746e66;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #e8e2d8;
  --jade: #3f7669;
  --jade-dark: #28594f;
  --jade-soft: #e8f1ed;
  --gold: #b58a45;
  --warm: #f3eee4;
  --danger: #a14b42;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at top right, #eff5ef 0, transparent 32%), var(--paper);
  min-height: 100vh;
}
button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  background: rgba(251, 250, 246, .88);
  position: relative;
  padding: 0 18px 32px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-top: env(safe-area-inset-top);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .08em; }
.seal {
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  color: #fff; background: linear-gradient(145deg, var(--jade), var(--jade-dark));
  box-shadow: 0 8px 18px rgba(40, 89, 79, .2);
}
.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 9px; border-radius: 999px;
  color: var(--jade-dark); background: var(--jade-soft); font-size: 12px;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--jade); }
.hero { padding: 24px 4px 22px; }
.eyebrow { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
h1 { margin: 10px 0 12px; font-size: clamp(28px, 8vw, 38px); line-height: 1.2; letter-spacing: -.02em; }
.lead { margin: 0; color: var(--muted); line-height: 1.75; font-size: 15px; }
.flow {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0;
}
.flow-item {
  padding: 12px 8px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,.76); text-align: center; font-size: 12px; color: var(--muted);
}
.flow-num { display: block; color: var(--jade); font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.card {
  background: var(--surface); border: 1px solid rgba(226, 217, 204, .82);
  border-radius: 20px; padding: 18px;
  box-shadow: 0 14px 38px rgba(77, 66, 51, .06); margin-bottom: 14px;
}
.card-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.card-title h2 { margin: 0; font-size: 17px; }
.tiny { color: var(--muted); font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: 13px; }
.control {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 13px;
  background: #fff; color: var(--ink); padding: 0 13px; outline: none;
}
.control:focus { border-color: var(--jade); box-shadow: 0 0 0 3px rgba(63,118,105,.1); }
.privacy { display: flex; align-items: flex-start; gap: 10px; margin: 16px 2px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.privacy input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--jade); }
.primary {
  width: 100%; height: 52px; border: 0; border-radius: 15px;
  color: #fff; background: linear-gradient(135deg, var(--jade), var(--jade-dark));
  font-weight: 700; letter-spacing: .04em; cursor: pointer;
  box-shadow: 0 12px 24px rgba(40,89,79,.2);
}
.primary:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
.secondary { color: var(--jade-dark); background: var(--jade-soft); box-shadow: none; }
.notice { display: none; margin-top: 12px; padding: 11px 12px; border-radius: 12px; font-size: 13px; line-height: 1.55; }
.notice.show { display: block; }
.notice.error { color: var(--danger); background: #f9ece9; }
.notice.info { color: var(--jade-dark); background: var(--jade-soft); }
.footnote { padding: 8px 4px 0; text-align: center; color: #989086; font-size: 11px; line-height: 1.6; }
.mock-banner { padding: 10px 12px; color: #6f552e; background: #f7edd9; border: 1px dashed #d7b97e; border-radius: 13px; font-size: 12px; line-height: 1.6; }
.upload-list { display: grid; gap: 12px; margin: 18px 0; }
.upload {
  min-height: 86px; border: 1px dashed #c9beb0; border-radius: 16px;
  display: flex; align-items: center; gap: 13px; padding: 14px; background: #fff;
}
.upload-icon { width: 44px; height: 44px; border-radius: 13px; background: var(--warm); display: grid; place-items: center; font-size: 21px; }
.upload strong { display: block; margin-bottom: 4px; font-size: 14px; }
.upload span { color: var(--muted); font-size: 12px; }
.upload input { max-width: 128px; font-size: 11px; }
.score { display: flex; align-items: baseline; gap: 6px; }
.score strong { color: var(--jade-dark); font-size: 42px; }
.result-tag { display: inline-flex; padding: 7px 12px; border-radius: 999px; color: var(--jade-dark); background: var(--jade-soft); font-weight: 700; }
.list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.list li { position: relative; padding-left: 17px; color: var(--muted); line-height: 1.6; font-size: 14px; }
.list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.loading { display: grid; place-items: center; min-height: 66vh; text-align: center; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--jade-soft); border-top-color: var(--jade); animation: spin .8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 360px) { .grid2 { grid-template-columns: 1fr; } .field.full { grid-column: auto; } }
