:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --ink: #171d1f;
  --muted: #6b7472;
  --line: #e1e5e2;
  --green: #17645b;
  --green-soft: #e8f2ef;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 750;
}

button.ghost {
  width: auto;
  min-width: 68px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 100, 91, 0.12);
}

label {
  display: grid;
  gap: 8px;
  color: #3f4947;
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
  line-height: 1.18;
  letter-spacing: 0;
}

.phone-app {
  width: min(100%, 440px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.brand,
.status-pill {
  display: flex;
  align-items: center;
}

.brand {
  gap: 8px;
  font-size: 17px;
  font-weight: 850;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.status-pill {
  max-width: 52%;
  min-height: 30px;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 10px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.status-pill span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.guide-panel,
.flow-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.guide-panel {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}

.guide-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.guide-panel p {
  color: #3f4947;
  font-size: 14px;
  line-height: 1.58;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.step {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 8px 4px;
  text-align: center;
  font-size: 13px;
  font-weight: 720;
}

.step.active {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.card {
  display: none;
  padding: 18px;
}

.card.active {
  display: grid;
  gap: 16px;
}

.inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.result-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 6px 9px;
  font-size: 13px;
  font-weight: 750;
}

.copy-block,
.next-card {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.copy-block span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.copy-block p,
.next-card p {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

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

.next-card h3 {
  margin: 0 0 5px;
  font-size: 15px;
}
