:root { color-scheme: light; --ink: #1d1d1f; --sub: #6e6e73; --line: #d2d2d7; --blue: #0071e3; --bg: #f5f5f7; --err: #c62828; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
main { max-width: 560px; margin: 0 auto; padding: 20px 18px calc(32px + env(safe-area-inset-bottom)); }
.brand { margin: 0 0 12px; color: var(--sub); font-size: 17px; }



.page { background: #fff; border-radius: 18px; padding: 24px 20px; }
h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.3; }
.lead { margin: 0 0 20px; color: var(--sub); }
.field { display: block; margin: 0 0 22px; }
.field > span { display: block; margin-bottom: 8px; font-weight: 600; }
input[type=text], input:not([type]), input[type=time], select { width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: #fff; color: var(--ink); }
input:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid rgba(0, 113, 227, .45); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.chip { min-height: 48px; min-width: 76px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 24px; background: #fff; color: var(--ink); font: inherit; }
.chip[aria-pressed=true] { border-color: var(--blue); background: var(--blue); color: #fff; }
.check { display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 4px 0; }
.check input { width: 26px; height: 26px; flex: none; accent-color: var(--blue); }
.legal { margin: 0 0 10px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.legal summary { min-height: 52px; display: flex; align-items: center; color: var(--blue); cursor: pointer; }
.legal pre { margin: 0 0 14px; white-space: pre-wrap; font: 16px/1.7 inherit; color: var(--ink); max-height: 50vh; overflow: auto; }
.error { min-height: 1.6em; margin: 8px 0; color: var(--err); }
button.primary, button.ghost { width: 100%; min-height: 54px; border-radius: 14px; font: inherit; font-weight: 600; }
button.primary { border: 0; background: var(--blue); color: #fff; }
button.primary:disabled { opacity: .5; }
button.ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.row { display: flex; gap: 12px; }
.row button.ghost { flex: 0 0 34%; }
.summary { margin: 0 0 20px; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--sub); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .chip, button { transition: background-color .15s, color .15s; } }


.bar { height: 6px; border-radius: 3px; background: var(--line); margin: 0 0 20px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--blue); }
#progress { float: right; }
#nav { margin-top: 16px; }
#nav[hidden] { display: none; }
.pair { display: flex; gap: 10px; }
.follow { margin: -12px 0 22px; }
.hint { margin: 6px 0 0; color: var(--sub); font-size: 17px; }
.upload { display: flex; align-items: center; justify-content: center; min-height: 54px; border: 1px dashed var(--blue); border-radius: 14px; color: var(--blue); font-weight: 600; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload:focus-within { outline: 3px solid rgba(0, 113, 227, .45); outline-offset: 2px; }
.files { list-style: none; margin: 10px 0 0; padding: 0; }
.files li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--line); word-break: break-all; }
.files button { min-height: 48px; min-width: 64px; border: 0; background: none; color: var(--blue); font: inherit; }
.swatch { width: 22px; height: 22px; border-radius: 50%; display: inline-block; vertical-align: -4px; margin-right: 6px; border: 1px solid rgba(0,0,0,.1); }
