/* Mobile sign-up (app.emlaktoolbox.com/m/): one column, the panel's sand/ink palette. */
:root {
  --yellow: #F3B942;
  --yellow-deep: #E9A933;
  --yellow-soft: #FCEBC7;
  --ink: #232427;
  --bg: #FFFDF6;
  --muted: #6B6453;
  --line: #E8DFC6;
  --green: #2E8B57;
  --err: #B3261E;
  --field: #FFFFFF;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
  padding-block: max(16px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-bottom, 0px));
}
.wrap { max-width: 440px; margin: 0 auto; display: grid; gap: 18px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }
.brand-mark { width: 24px; height: 24px; border-radius: 7px; background: var(--yellow); display: grid; place-items: center; font-size: 13px; }
.screen { display: flex; flex-direction: column; gap: 14px; }
.screen form { display: flex; flex-direction: column; gap: 14px; }
.title { font-size: 26px; line-height: 1.15; font-weight: 800; margin: 0; text-wrap: balance; }
.title.sm { font-size: 21px; }
.sub { margin: 0; color: var(--muted); font-size: 14.5px; }
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }
.gift { align-self: flex-start; background: var(--ink); color: var(--yellow); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 5px 12px; }

label.f { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
.f input { font: inherit; font-size: 16px; font-weight: 500; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); color: var(--ink); }
.f input:focus { outline: 2px solid var(--yellow); border-color: var(--yellow-deep); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.check a, .foot a { color: var(--ink); }

.btn { font: inherit; font-weight: 700; font-size: 15px; border: 0; border-radius: 12px; padding: 14px 16px; cursor: pointer; width: 100%; text-align: center; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.btn-main { background: var(--yellow); color: var(--ink); }
.btn-main:hover { background: var(--yellow-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn:disabled { opacity: .55; cursor: default; }
.btn:focus-visible, .link-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.wa { background: #25D366; color: #08361B; }
.link-btn { background: none; border: 0; font: inherit; font-size: 14px; color: var(--ink); text-decoration: underline; cursor: pointer; padding: 4px 0; align-self: center; }
.fine { font-size: 12px; color: var(--muted); text-align: center; margin: 0; }
.err { margin: 0; color: var(--err); font-size: 13.5px; font-weight: 600; }
.note-ok { margin: 0; background: #E3F2E8; color: #1E5E3A; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; }
.tip { font-size: 13px; background: var(--yellow-soft); border-radius: 12px; padding: 11px 13px; }
.mail-art { align-self: center; width: 88px; height: 88px; border-radius: 26px; background: var(--yellow-soft); display: grid; place-items: center; color: var(--ink); }

.hello { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.credits { background: var(--ink); color: #fff; border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.credits b { color: var(--yellow); }
.upload { border: 2px dashed var(--line); border-radius: 14px; padding: 16px; display: flex; gap: 12px; align-items: center; font-size: 14px; cursor: pointer; }
.upload .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--yellow-soft); display: grid; place-items: center; flex: none; }
.busy { display: grid; place-items: center; padding: 26px 0; }
.busy-pill { background: var(--yellow); color: var(--ink); font-weight: 700; border-radius: 999px; padding: 10px 18px; }

.ba { position: relative; border-radius: 14px; overflow: hidden; max-width: 100%; user-select: none; touch-action: none; background: #ddd; }
.ba img { display: block; width: 100%; height: auto; pointer-events: none; }
.after-clip { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split, 50%)); }
.after-clip img { width: 100%; height: 100%; object-fit: cover; }
.ba-lbl { position: absolute; bottom: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(35,36,39,.75); color: #fff; }
.ba-lbl.l { left: 8px; } .ba-lbl.r { right: 8px; background: rgba(46,139,87,.9); }
.grip { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 3px; margin-left: -1.5px; background: #fff; }
.grip::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 .btn { font-size: 13.5px; padding: 12px 8px; }

.send { display: grid; gap: 10px; }
.sent { margin: 0; font-size: 13px; color: var(--green); font-weight: 600; text-align: center; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; background: var(--field); }
.card p { margin: 0; }
.card-row { display: flex; gap: 12px; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-weight: 800; }
.foot { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }
