:root {
  color-scheme: light;
  --ink: #17233f;
  --muted: #68738a;
  --cream: #fbf8f1;
  --paper: rgba(255, 255, 255, .86);
  --line: #e8e4da;
  --orange: #ed895a;
  --orange-dark: #c9663b;
  --blue: #18284a;
  --green: #dce9db;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 5%, rgba(237, 137, 90, .22), transparent 30%),
    radial-gradient(circle at 92% 90%, rgba(120, 160, 190, .18), transparent 32%),
    var(--cream);
}

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

.shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 34px 20px 56px;
}

.view { animation: rise .35s ease both; }
.hidden { display: none !important; }

.eyebrow {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

h1 {
  margin: 12px 0 12px;
  max-width: 620px;
  font-size: clamp(34px, 9vw, 62px);
  line-height: 1.04;
  letter-spacing: -.06em;
}

h2 { margin: 0 0 8px; font-size: 23px; }
p { line-height: 1.7; }
.lead { max-width: 520px; color: var(--muted); font-size: 17px; }

.notice, .card, .image-offer {
  border: 1px solid rgba(232, 228, 218, .9);
  background: var(--paper);
  box-shadow: 0 18px 60px rgba(35, 44, 70, .08);
  border-radius: 24px;
}

.notice {
  margin: 28px 0 16px;
  padding: 20px 22px;
  color: #59647a;
  font-size: 13px;
}

.notice strong { color: var(--ink); font-size: 15px; }
.notice p { margin: 7px 0 0; }

.card { padding: 22px; }
.form-card label { display: block; margin-bottom: 16px; }
.form-card label > span { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 400; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  padding: 13px 14px;
  color: var(--ink);
  background: #fffdf9;
}

textarea { resize: vertical; min-height: 112px; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(237, 137, 90, .12); }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.consent-row {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.consent-row input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--orange); }
.consent-row span { margin: 0 !important; font-weight: 400 !important; line-height: 1.5; }

.primary, .secondary {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.primary { color: #fff; background: var(--blue); box-shadow: 0 10px 25px rgba(24, 40, 74, .18); }
.primary:hover, .secondary:hover { transform: translateY(-2px); }
.primary span { margin-left: 10px; color: #f5bb91; }
.secondary { color: var(--ink); background: #eeeae1; }
.wide { width: 100%; margin-top: 14px; }
.tiny { color: var(--muted); font-size: 11px; }

.topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.expiry-label { color: var(--muted); font-size: 11px; }
.progress { height: 5px; margin: 16px 0 22px; overflow: hidden; border-radius: 99px; background: #e7e4dc; }
.progress span { display: block; width: 7%; height: 100%; border-radius: inherit; background: var(--orange); transition: width .4s ease; }

.messages { display: flex; flex-direction: column; gap: 13px; margin-bottom: 18px; }
.message { max-width: 89%; padding: 14px 16px; white-space: pre-wrap; line-height: 1.7; }
.message.assistant { align-self: flex-start; border-radius: 18px 18px 18px 5px; background: #fff; box-shadow: 0 9px 28px rgba(35, 44, 70, .06); }
.message.user { align-self: flex-end; border-radius: 18px 18px 5px 18px; color: #fff; background: var(--blue); }

.composer { padding: 17px; border: 1px solid var(--line); border-radius: 21px; background: rgba(255, 255, 255, .65); }
.composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; }
.composer-bottom span { color: var(--muted); font-size: 11px; }

.report-text {
  margin: 24px 0;
  padding: 24px;
  border-radius: 21px;
  white-space: pre-wrap;
  line-height: 1.85;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 14px 45px rgba(35, 44, 70, .07);
}

.image-offer { position: relative; margin: 20px 0 16px; padding: 24px; text-align: center; overflow: hidden; }
.image-offer::before { content: ""; position: absolute; width: 180px; height: 180px; top: -100px; right: -55px; border-radius: 50%; background: #f8d8bc; }
.spark { position: relative; color: var(--orange-dark); font-size: 26px; }
.image-offer p { position: relative; margin: 8px auto 16px; color: var(--muted); }
.choice-row { position: relative; display: flex; justify-content: center; gap: 10px; }
.image-loading { padding: 30px; color: var(--muted); text-align: center; }
.image-result { padding: 12px; border-radius: 21px; background: #fff; box-shadow: 0 14px 45px rgba(35, 44, 70, .08); }
.image-result img { display: block; width: 100%; border-radius: 14px; }
.done { padding-top: 18vh; text-align: center; }
.done p { color: var(--muted); }
.done-mark { display: grid; width: 72px; height: 72px; margin: 0 auto; place-items: center; border-radius: 50%; color: #fff; background: #6f9b77; font-size: 34px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .shell { padding: 25px 15px 40px; }
  .two-cols { grid-template-columns: 1fr; gap: 0; }
  .composer-bottom { align-items: flex-start; flex-direction: column; }
  .composer-bottom .primary { align-self: stretch; }
  .message { max-width: 95%; }
}
