:root {
  color-scheme: light;
  --bg: #f6f5ee;
  --paper: #fffef9;
  --ink: #20342c;
  --muted: #56675e;
  --line: #dddcd1;
  --green: #19493e;
  --mint: #e8f0e7;
  --orange: #a74a33;
  --peach: #f8eae2;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: var(--green); text-underline-offset: .24em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .54; cursor: not-allowed; }
:focus-visible { outline: 3px solid #ca6f4e; outline-offset: 3px; }
.shell { width: min(1140px, calc(100% - 72px)); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 74px; gap: 16px; }
.brand { display: flex; gap: 11px; align-items: center; text-decoration: none; font-size: 17px; font-weight: 800; line-height: 1.22; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; margin-top: 3px; letter-spacing: .12em; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 11px 17px; border: 1px solid transparent; border-radius: 9px; background: var(--green); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; text-decoration: none; min-height: 44px; }
.button:hover:not(:disabled) { background: #276456; }
.button.small { padding: 8px 13px; min-height: 38px; font-size: 13px; }
.button.secondary { background: var(--paper); color: var(--green); border-color: #cbd7ce; }
.button.secondary:hover:not(:disabled) { background: var(--mint); }
.button.terra { background: var(--orange); color: white; }
.button.terra:hover:not(:disabled) { background: #873a28; }
button.link { color: var(--green); border: 0; padding: 6px 0; background: transparent; text-decoration: underline; text-underline-offset: .25em; font-weight: 700; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.22; }
h1 { font-size: clamp(30px, 4.2vw, 54px); letter-spacing: -.05em; }
h2 { font-size: 22px; letter-spacing: -.03em; }
h3 { font-size: 21px; letter-spacing: -.025em; }
.eyebrow { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.crumb { display: flex; gap: 11px; align-items: center; color: var(--muted); font-size: 13px; padding: 22px 0 13px; }
.badge { display: inline-flex; gap: 6px; align-items: center; border-radius: 999px; padding: 3px 9px; font-size: 11px; line-height: 1.5; font-weight: 750; background: var(--mint); color: #235043; white-space: nowrap; }
.badge.warm { background: var(--peach); color: #853722; }
.badge.neutral { background: #efeee6; color: #4f6258; }
.hero { position: relative; display: grid; grid-template-columns: 1fr .88fr; overflow: hidden; border-radius: 17px; background: #fbefd5; min-height: 256px; }
.hero-copy { position: relative; padding: 30px 36px 32px; z-index: 1; }
.hero-copy h1 { margin: 12px 0; }
.hero-copy p { max-width: 540px; font-size: 15px; color: #435449; }
.hero-art { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0 0 0 auto; width: 47%; }
.hero::after { content: ""; position: absolute; inset: 0 42% 0 48%; background: linear-gradient(90deg, #fbefd5, transparent); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.board { display: grid; grid-template-columns: minmax(0, 1fr) 298px; gap: 23px; margin-top: 24px; align-items: start; }
.column, .side { min-width: 0; display: grid; gap: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.section-head p, .muted { color: var(--muted); font-size: 13px; }
.section-head p { margin-top: 5px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.card { border: 1px solid var(--line); border-radius: 13px; padding: 17px 18px; background: var(--paper); min-width: 0; }
.plan { display: flex; flex-direction: column; gap: 12px; position: relative; }
.plan.selected { border-color: #87a695; box-shadow: inset 0 0 0 1px #87a695; }
.plan-top, .plan-foot, .between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan h3 { margin-top: 3px; overflow-wrap: anywhere; }
.plan h3 small { color: var(--muted); font-size: 12px; font-weight: 500; }
.date { color: var(--muted); font-size: 13px; }
.price { font-variant-numeric: tabular-nums; font-size: 21px; font-weight: 800; color: var(--green); letter-spacing: -.04em; }
.price small { color: var(--muted); font-size: 11px; font-weight: 500; }
.plan-foot { border-top: 1px solid #eeeee5; padding-top: 12px; margin-top: auto; flex-wrap: wrap; }
.plan .muted { overflow-wrap: anywhere; }
.counts { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.counts strong { color: var(--green); }
.track { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: #eeeae0; gap: 2px; }
.track span { background: #639283; flex-basis: 0; }
.track span:nth-child(2) { background: #d5c49d; }
.track span:nth-child(3) { background: #c78674; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stat { background: #f5f4ec; border-radius: 9px; padding: 8px 9px; }
.stat b { display: block; font-size: 22px; color: var(--green); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 11px; }
.side h2 { font-size: 17px; }
.side .muted { font-size: 12px; }
.steps, .members { list-style: none; padding: 0; margin: 12px 0 0; }
.steps li { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 13px; color: var(--muted); }
.steps .current { color: var(--green); font-weight: 800; }
.steps i { width: 21px; height: 21px; display: grid; place-items: center; background: #eeece1; border-radius: 50%; font-size: 11px; font-style: normal; flex: none; }
.steps .current i, .steps .past i { background: var(--mint); color: var(--green); }
.members li { padding: 7px 0; border-top: 1px solid #eeeee5; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.member-name { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.avatar { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--green); font-weight: 800; flex: none; }
.result { padding: 16px 18px; background: var(--mint); border: 1px solid #cbdccd; border-radius: 12px; }
.result h2 { font-size: 19px; }
.result p { margin-top: 6px; font-size: 14px; }
.result.closed { background: var(--peach); border-color: #e8cabe; }
.empty { border-style: dashed; padding: 25px; text-align: center; }
.empty p { margin-top: 6px; }
.loading { padding: 68px 0; color: var(--muted); }
.error-page { margin: 45px 0; max-width: 620px; }
.error-page p { margin: 10px 0 15px; }
.footer { margin-top: 34px; border-top: 1px solid var(--line); padding: 17px 0 27px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; color: var(--muted); font-size: 12px; }
dialog { padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); width: min(515px, calc(100% - 26px)); max-height: calc(100dvh - 26px); box-shadow: 0 12px 80px #18372d35; }
dialog::backdrop { background: #192b24a5; }
#dialog-content { padding: 22px; }
.dialog-head { margin-bottom: 12px; }
.close { background: #f0efe5; border: 0; border-radius: 50%; width: 34px; height: 34px; color: var(--ink); font-size: 21px; line-height: 1; flex: none; }
form { display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-size: 13px; color: var(--ink); font-weight: 750; }
input, textarea { display: block; width: 100%; min-width: 0; background: #fff; color: var(--ink); border: 1px solid #c9cec3; border-radius: 8px; padding: 8px 10px; min-height: 41px; font-weight: 500; }
textarea { resize: vertical; min-height: 70px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-help { font-size: 12px; color: var(--muted); font-weight: 500; }
.form-error { color: #8b2d24; font-size: 13px; }
.notice { position: fixed; z-index: 2; right: 18px; bottom: 18px; background: #173d33; color: white; padding: 10px 15px; border-radius: 10px; box-shadow: 0 5px 20px #173d3340; max-width: min(440px, calc(100% - 36px)); font-size: 14px; }
.notice[data-error] { background: #842f25; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .shell { width: calc(100% - 40px); }
  .board { grid-template-columns: minmax(0, 1fr) 245px; gap: 14px; }
  .plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 28px); }
  .topbar { min-height: 63px; }
  .crumb { padding: 14px 0 10px; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { padding: 21px 19px 19px; }
  .hero-copy h1 { margin: 9px 0; }
  .hero-art { position: static; width: 100%; height: 108px; object-position: 50% 61%; }
  .hero::after { display: none; }
  .board { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
  .column, .side { width: 100%; }
  .plan-grid { grid-template-columns: 1fr; }
  .card { padding: 15px; }
  .stats { margin-top: 11px; }
}
