:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --ink: #16202e;
  --muted: #5d6878;
  --line: #dde1e7;
  --brand: #1f4fd8;
  --brand-ink: #ffffff;
  --ok: #157f3d;
  --warn: #b42318;
  --star: #f5b301;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
header.bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: var(--ink); color: #fff;
}
header.bar h1 { font-size: 18px; margin: 0; display: flex; align-items: center; gap: 8px; }
header.bar h1 .star { color: var(--star); }
header.bar button { background: transparent; border: 1px solid #ffffff55; color: #fff; padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 14px; }
main { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
h2 { font-size: 20px; margin: 4px 0 12px; }
h3 { font-size: 15px; margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
p.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 6px; }
input[type=text], input[type=tel], input[type=url], textarea {
  width: 100%; padding: 12px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px 16px; font: inherit; font-weight: 700; font-size: 17px;
  border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  text-decoration: none;
}
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.big { padding: 22px 16px; font-size: 20px; }
.btn.small { width: auto; padding: 8px 12px; font-size: 14px; font-weight: 600; }
.btn:disabled { opacity: .55; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.photo-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 190px; border: 2px dashed var(--line); border-radius: var(--radius); background: #fafbfc;
  color: var(--muted); font-weight: 600; cursor: pointer; overflow: hidden; position: relative;
}
.photo-drop img { width: 100%; height: 100%; max-height: 360px; object-fit: cover; display: block; }
.photo-drop .cam { font-size: 40px; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 15px; }
.check input { width: 22px; height: 22px; }
.jobs { list-style: none; margin: 0; padding: 0; }
.jobs li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.jobs li:first-child { border-top: 0; }
.jobs img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: #eee; }
.jobs .meta { flex: 1; min-width: 0; }
.jobs .meta strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jobs .meta span { color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); text-align: center; padding: 18px 0 6px; }
.preview { white-space: pre-wrap; background: #f0f4ff; border-radius: 10px; padding: 12px; font-size: 15px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 15px; z-index: 20; max-width: 90vw; text-align: center; }
.error { color: var(--warn); font-size: 14px; margin-top: 8px; }
.hidden { display: none !important; }
.center { text-align: center; }
.hero { text-align: center; padding: 28px 8px 8px; }
.hero .logo { font-size: 54px; }
.hero h2 { font-size: 26px; }
.done { text-align: center; }
.done .tick { font-size: 52px; color: var(--ok); }
a { color: var(--brand); }
.steps-box { background: #f0f4ff; border-radius: 10px; padding: 12px; margin-top: 10px; font-size: 14px; }
.steps-box ol, ol.how { margin: 8px 0 12px; padding-left: 20px; }
.steps-box li, ol.how li { margin: 6px 0; }
.steps-box .row { gap: 8px; }
.steps-box .btn.small { flex: 1; font-size: 13px; }
