:root {
  --ground: #F6F5F1; --surface: #FFFFFF; --ink: #16201C; --muted: #4F5B55;
  --line: #DAD7CC; --line-soft: #E4E1D7;
  --green: #0F5E4A; --green-dark: #0B4A3A; --green-tint: #E3EFEA;
  --amber-ink: #7A4205; --amber-tint: #FBF1E2; --red-ink: #8E2A1E; --red-tint: #FBE9E6;
  --radius: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-size: 16px; line-height: 1.5; }
a { color: var(--green); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 560px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--green); text-decoration: none; font-weight: 800; font-size: 18px; }
.brand span { color: var(--ink); }
.demo-banner { margin: 0; padding: 6px 20px; background: var(--amber-tint); color: var(--amber-ink); font-size: 13px; font-weight: 600; text-align: center; }
.page { max-width: 560px; margin: 0 auto; padding: 8px 20px 48px; display: flex; flex-direction: column; gap: 16px; }
h1 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
h2 { margin: 0; font-size: 18px; }
p { margin: 0; }
.lead { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }
.pill { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--green-tint); color: var(--green-dark); font-size: 12px; font-weight: 700; }
.pill.buyer { background: var(--amber-tint); color: var(--amber-ink); }
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; justify-content: space-between; gap: 12px; }
.row > span:first-child { color: var(--muted); }
.row > span:last-child { font-weight: 700; text-align: right; }
.hero { background: var(--green); color: #fff; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.hero .amount { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.hero p { color: #E3EFEA; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
input, select, textarea { font: inherit; font-weight: 500; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; min-height: 48px; width: 100%; }
textarea { padding: 12px 14px; min-height: 96px; }
input:focus, select:focus, textarea:focus, button:focus-visible, .btn:focus-visible { outline: 3px solid #8FC4B2; outline-offset: 1px; }
.field-row { display: flex; gap: 12px; }
.field-row > * { flex: 1; min-width: 0; }
.btn { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 18px; border: 0; border-radius: var(--radius); background: var(--green); color: #fff; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; width: 100%; }
.btn:disabled { background: #DCD9CF; color: var(--muted); cursor: not-allowed; }
.btn.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: var(--surface); color: var(--red-ink); border: 1px solid var(--line); }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; padding: 8px; }
.segmented { display: flex; gap: 8px; }
.segmented label { flex: 1; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 700; cursor: pointer; }
.segmented input:checked + span { background: var(--green); color: #fff; border-color: var(--green); }
.segmented input:focus-visible + span { outline: 3px solid #8FC4B2; }
.check { flex-direction: row; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); font-weight: 600; cursor: pointer; }
.check input { width: 22px; min-height: 22px; height: 22px; accent-color: var(--green); flex: none; }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--green-tint); color: var(--green-dark); font-weight: 600; }
.error { padding: 12px 14px; border-radius: 12px; background: var(--red-tint); color: var(--red-ink); font-weight: 600; }
.warn { padding: 10px 12px; border-radius: 12px; background: var(--amber-tint); color: var(--amber-ink); font-size: 14px; font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.steps .dot { width: 22px; height: 22px; border-radius: 999px; border: 2px solid #B9B5A8; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; }
.steps .done .dot { background: var(--green); border-color: var(--green); }
.steps .now .dot { border: 3px solid #C77A1A; }
.steps .now { color: var(--amber-ink); }
.steps .todo { color: var(--muted); }
.deal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.deal-list a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; color: var(--ink); text-decoration: none; }
.share { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border: 1px dashed #B9B5A8; border-radius: 14px; background: var(--surface); word-break: break-all; }
.share code { flex: 1; font-size: 15px; font-weight: 600; font-family: inherit; }
.share button { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--ground); font: inherit; font-weight: 700; cursor: pointer; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.listing-preview { display: flex; gap: 12px; align-items: center; }
.listing-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
