:root {
  --paper: #f8f4eb;
  --card: #fffdf8;
  --ink: #2f2a24;
  --ink-soft: #5e574c;
  --muted: #8c8273;
  --line: #e4d8c6;
  --seal: #b5462c;
  --seal-soft: #f7e9df;
  --jade-soft: #dfeee7;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", sans-serif; }
body { min-height: 100dvh; }
.shell { max-width: 560px; margin: 0 auto; padding: 16px 14px 0; }
.head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.eyebrow { margin: 0 0 2px; color: var(--seal); font-size: 11px; letter-spacing: .1em; font-weight: 700; }
h1 { margin: 0; font-family: var(--serif); font-size: 27px; }
h2 { margin: 0; font-size: 15px; }
.pill { margin-left: auto; background: var(--jade-soft); color: #2f5947; border-radius: 999px; padding: 5px 10px; font-size: 11px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(73, 55, 34, .04); }
.step { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.step span { width: 20px; height: 20px; border-radius: 50%; background: var(--seal); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.step em { margin-left: auto; color: var(--muted); font-size: 11px; font-style: normal; }
.input { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 15px; padding: 11px 12px; font-family: inherit; }
.input:focus { outline: 2px solid rgba(181, 70, 44, .16); border-color: var(--seal); }
.input.space { margin-top: 8px; }
.narrow { flex: 0 0 104px; }
.row { display: flex; gap: 7px; }
.row.space { margin-top: 10px; }
.textarea { resize: vertical; line-height: 1.65; min-height: 90px; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.7; }
.hint { color: var(--muted); font-size: 11px; margin: 6px 0 0; }
.tabs { display: flex; gap: 4px; background: var(--paper); padding: 4px; border-radius: 10px; margin-bottom: 9px; }
.tab { flex: 1; border: 0; background: transparent; color: var(--muted); padding: 8px 4px; border-radius: 8px; font-size: 13px; font-family: inherit; }
.tab.active { background: #fff; color: var(--seal); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.capture { width: 100%; border: 1px dashed #cdbda6; background: var(--paper); border-radius: 12px; padding: 20px 12px; font-size: 15px; color: var(--seal); font-weight: 700; font-family: inherit; }
.capture.recording { background: #fbe8df; border-color: var(--seal); }
.preview { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin-top: 8px; }
.source-preview { width: 100%; max-height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); margin-top: 6px; }
.link-btn { border: 0; background: transparent; color: var(--muted); text-decoration: underline; font-size: 12px; padding: 4px 0; font-family: inherit; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.chip { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px; color: var(--ink); font-family: inherit; }
.chip b { display: block; font-size: 13px; }
.chip small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.chip.active { border-color: var(--seal); background: var(--seal-soft); color: var(--seal); }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.5; padding: 7px 0; color: var(--ink-soft); }
.check input { width: 18px; height: 18px; accent-color: var(--seal); margin-top: 1px; flex: none; }
.btn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; padding: 10px 14px; font-size: 14px; font-family: inherit; }
.btn.primary { background: var(--seal); border-color: var(--seal); color: #fff; font-weight: 700; }
.btn:disabled { opacity: .45; }
.submit-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(248, 244, 235, .95); backdrop-filter: blur(8px); border-top: 1px solid var(--line); z-index: 5; }
.submit { width: 100%; max-width: 532px; margin: 0 auto; display: block; padding: 13px; font-size: 15px; }
.bottom-space { height: 82px; }
.gate { margin-top: 30px; }
.gate .input { margin: 10px 0; }
.error { color: #9b2c1f; font-size: 12px; background: #fbedeb; border-radius: 8px; padding: 8px 10px; margin: 8px 0 0; }
.success { text-align: center; padding: 30px 20px; margin-top: 20px; }
.checkmark { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; background: var(--jade-soft); color: #2f5947; display: grid; place-items: center; font-size: 26px; }
.success h2 { font-family: var(--serif); font-size: 25px; margin-bottom: 6px; }
.success .btn { margin-top: 14px; }
.footnote { color: var(--muted); font-size: 10px; text-align: center; line-height: 1.6; margin: 10px 0 90px; }
@media (min-width: 700px) { .shell { padding-top: 26px; } }
