:root { --text:#101B3B; --text-2:#3F4B66; --muted:#6B7690; --line:#E2E8F2; --brand:#0B2A8C; --li:#0A66C2; --li-dark:#004182; --accent:#F68020; --ok:#067647; --bad:#B42318; color-scheme: light; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #F5F7FB; color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.45;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }
a { color: var(--li); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bar { background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bar img { height: 34px; width: auto; display: block; }
.event { font-size: 12.5px; font-weight: 700; color: var(--brand); text-align: right; }
main { max-width: 560px; margin: 0 auto; padding: 18px 14px 10px; }
.intro h1 { margin: 2px 0 4px; font-size: 24px; line-height: 1.2; color: var(--brand); letter-spacing: -.3px; }
.intro p { margin: 0 0 16px; color: var(--text-2); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(16,27,59,.05); }
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step-head h2 { margin: 0; font-size: 16px; flex: 1; }
.num { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.picker { position: relative; display: block; border: 2px dashed #B9C7E6; border-radius: 14px; background: #F8FAFF; cursor: pointer; overflow: hidden; min-height: 170px; transition: border-color .15s, background .15s; }
.picker:hover { border-color: var(--li); background: #F1F6FF; }
.picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.picker-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 170px; color: var(--li); text-align: center; padding: 16px; pointer-events: none; }
.picker-empty strong { font-size: 16px; color: var(--brand); }
.picker-empty span { font-size: 13px; color: var(--muted); }
.picker.has-photo { border-style: solid; border-color: var(--line); background: #000; }
#preview { display: block; width: 100%; max-height: 420px; object-fit: contain; pointer-events: none; }
textarea { width: 100%; border: 1.5px solid #CBD5E6; border-radius: 12px; padding: 12px; font: inherit; font-size: 15px; line-height: 1.5; color: var(--text); resize: vertical; min-height: 180px; }
textarea:focus { outline: none; border-color: var(--li); box-shadow: 0 0 0 4px rgba(10,102,194,.12); }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.chip { border: 1.5px solid #CBD5E6; background: #fff; color: var(--li); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.chip:hover { border-color: var(--li); }
.link { background: none; border: 0; color: var(--li); font-weight: 700; font-size: 14px; padding: 8px 0 0; cursor: pointer; font-family: inherit; }
.actions { padding: 6px 0 0; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 18px; border-radius: 999px; border: 0; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; text-decoration: none; margin-top: 10px; transition: background .15s, transform .1s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn.li { background: var(--li); color: #fff; box-shadow: 0 4px 14px rgba(10,102,194,.3); }
.btn.li:hover { background: var(--li-dark); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--li); border: 1.5px solid #CBD5E6; font-size: 15px; }
.fine { font-size: 12.5px; color: var(--muted); text-align: center; margin: 10px 4px 0; }
.note.err { background: #FEF3F2; color: var(--bad); border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.done { text-align: center; }
.done h1, .done h2 { color: var(--brand); margin: 4px 0 8px; }
.done p { color: var(--text-2); }
.tick { width: 64px; height: 64px; border-radius: 50%; margin: 6px auto 10px; background: #ECFDF3; color: var(--ok); display: grid; place-items: center; font-size: 32px; font-weight: 800; }
.tick.bad { background: #FEF3F2; color: var(--bad); }
.busy { position: fixed; inset: 0; background: rgba(16,27,59,.45); display: grid; place-items: center; z-index: 30; padding: 20px; }
.busy[hidden] { display: none; }
.busy-box { background: #fff; border-radius: 16px; padding: 18px 22px; display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--brand); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(10,102,194,.2); border-top-color: var(--li); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.foot { text-align: center; font-size: 12.5px; color: var(--muted); padding: 18px 16px 28px; }
.foot a { color: var(--li); font-weight: 700; text-decoration: none; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
