@font-face {
  font-family: 'Vazirmatn';
  src: url('/static/fonts/Vazirmatn[wght].woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #0E2A5C;
  --navy-2: #163a78;
  --navy-ink: #c9d5ea;
  --yellow: #FFC531;
  --yellow-2: #ffd666;
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --ink: #0b1324;
  --muted: #4f5b6d;
  --line: #dde3eb;
  --primary: var(--navy);
  --primary-hover: #0a2048;
  --primary-ink: #ffffff;
  --primary-soft: #e6ecf6;
  --danger: #c0392b;
  --danger-soft: #fbeaea;
  --success: #1e7d4f;
  --success-soft: #e5f4ec;
  --warning-soft: #fdf3e0;
  --s-ok: #d3dcea;
  --s-painted: #FFC531;
  --s-replaced: #e5533d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(14, 42, 92, 0.06), 0 10px 28px rgba(14, 42, 92, 0.08);
  --shadow-lg: 0 2px 6px rgba(5, 16, 38, 0.18), 0 24px 60px rgba(5, 16, 38, 0.28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; color-scheme: light; -webkit-tap-highlight-color: transparent; }
a, button, input, select, [role="button"] { touch-action: manipulation; }
body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  font-size: 16px;
  caret-color: var(--navy);
  scrollbar-color: #b7c3d6 transparent;
}
::selection { background: var(--yellow); color: var(--navy); }
a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.4; margin: 0 0 0.5em; text-wrap: balance; }
.ltr { direction: ltr; unicode-bidi: plaintext; text-align: right; }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---- Header ---- */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: none; display: block; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.site-header .brand-mark svg rect:first-child { fill: var(--navy-2); }
.brand-name { font-weight: 900; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.85rem; color: var(--muted); border-right: 1px solid var(--line); padding-right: 10px; }
.header-call { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; padding: 8px 4px; }
.header-call svg { width: 18px; height: 18px; color: var(--yellow); }
.site-header.is-admin { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
.site-header.is-admin .brand-mark svg rect:first-child { fill: var(--navy); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 0.95rem; min-height: 44px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.1s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-accent { background: var(--yellow); color: var(--navy); box-shadow: 0 1px 0 #d9a40f, 0 6px 16px rgba(255, 197, 49, 0.35); }
.btn-accent:hover { background: var(--yellow-2); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: #cfd6e0; }
.btn-outline:hover { border-color: #9fabbd; }
.btn-ghost { background: transparent; color: var(--navy-2); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: #efc4bf; }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; min-height: 54px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---- Hero ---- */
.hero { background: var(--navy); color: #fff; padding: 40px 0 72px; position: relative; overflow: hidden; }
.hero::after {
  /* Road lane marking running under the fold. */
  content: ''; position: absolute; inset: auto 0 28px 0; height: 4px;
  background: repeating-linear-gradient(to left, rgba(255, 197, 49, 0.55) 0 44px, transparent 44px 88px);
}
.hero-grid { display: grid; grid-template-columns: 1fr minmax(360px, 460px); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 900; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 18px; }
.hero .lead { font-size: 1.12rem; color: var(--navy-ink); max-width: 33em; margin: 0 0 22px; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.checks svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--yellow); color: var(--navy); stroke-width: 3; flex: none; }
.hero-call { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; border-bottom: 2px solid rgba(255, 197, 49, 0.6); padding-bottom: 2px; }
.hero-call:hover { text-decoration: none; border-color: var(--yellow); }
.hero-call svg { width: 18px; height: 18px; color: var(--yellow); }

.request-card { background: var(--surface); color: var(--ink); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 28px; position: relative; }
.request-card h2 { font-size: 1.35rem; font-weight: 900; margin-bottom: 2px; }
.card-note { color: var(--muted); font-size: 0.9rem; margin: 0 0 18px; }
.request-card .btn-primary { background: var(--yellow); color: var(--navy); font-weight: 900; box-shadow: 0 1px 0 #d9a40f; }
.request-card .btn-primary:hover { background: var(--yellow-2); }
.form-foot { color: var(--muted); font-size: 0.85rem; margin: 10px 0 0; text-align: center; }

/* ---- Cards & forms ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card h2 { font-size: 1.25rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.field .req { color: var(--danger); }
.field .opt { color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.input, select.input, textarea.input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid #c9d1dc; border-radius: var(--radius-sm);
  padding: 11px 14px; min-height: 48px; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.input { min-height: 110px; resize: vertical; line-height: 1.8; }
.input:hover { border-color: #9fabbd; }
.input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(14, 42, 92, 0.15); }
.input.invalid { border-color: var(--danger); }
.input::placeholder { color: #8893a4; }
.picker-btn { display: flex; align-items: center; justify-content: space-between; cursor: pointer; text-align: right; }
.picker-btn .placeholder { color: #8893a4; }
.picker-btn svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.error-text { color: var(--danger); font-size: 0.85rem; margin-top: 4px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.95rem; }
.alert-error { background: var(--danger-soft); color: #8c2a1f; }
.alert-success { background: var(--success-soft); color: #145a39; }
.alert-warning { background: var(--warning-soft); color: #7a5208; }

/* ---- Sample report ---- */
.section { padding: 88px 0; }
.section-h { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; letter-spacing: -0.01em; margin-bottom: 36px; }
.report-grid { display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.2fr; gap: 56px; align-items: center; }
.report-copy h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; letter-spacing: -0.01em; }
.report-copy > p { color: var(--muted); font-size: 1.05rem; margin: 0 0 24px; }
.report-rows { margin: 0; display: grid; }
.report-rows div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.report-rows dt { font-weight: 800; color: var(--navy); }
.report-rows dd { margin: 0; color: var(--muted); }

.report-sheet { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 18px 24px; }
.sheet-label { font-size: 0.85rem; font-weight: 800; color: var(--navy); padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px dashed #c3cddc; }
.body-map { margin: 0; }
.scan-stage { position: relative; overflow: hidden; border-radius: 12px; }
.body-map svg { display: block; width: 100%; height: auto; }
.body-map .glass { fill: #9fb0c8; }
.body-map .shell { fill: #f4f6fa; stroke: #b9c6da; stroke-width: 2; }
.body-map .tyre { fill: #2a3448; }
.body-map .mirror { fill: #9fb0c8; }
.body-map .panel { stroke: #fff; stroke-width: 3; cursor: pointer; transition: filter 0.2s var(--ease), stroke 0.2s; outline: none; }
.body-map .panel:hover, .body-map .panel:focus-visible { filter: brightness(0.92); }
.body-map .panel.active, .body-map .panel:focus-visible { stroke: var(--navy); }
.s-ok { fill: var(--s-ok); background: var(--s-ok); }
.s-painted { fill: var(--s-painted); background: var(--s-painted); }
.s-replaced { fill: var(--s-replaced); background: var(--s-replaced); }
.scan-line { position: absolute; top: 0; bottom: 0; right: 0; width: 3px; background: var(--navy); box-shadow: 0 0 0 6px rgba(14, 42, 92, 0.12); opacity: 0; pointer-events: none; }
.body-map.scanning .scan-line { animation: scan 1.8s var(--ease) both; }
.body-map.scanning .panel.s-painted, .body-map.scanning .panel.s-replaced { animation: mark 0.5s ease-out both; animation-delay: var(--d); }
@keyframes scan { 0% { opacity: 1; transform: translateX(0); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateX(-100cqw); } }
@keyframes mark { from { fill: var(--s-ok); } }
.scan-stage { container-type: inline-size; }
.body-map figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 12px; font-size: 0.9rem; }
.readout { font-weight: 700; color: var(--navy); }
.legend { display: flex; gap: 14px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---- Steps ---- */
.steps-section { background: var(--surface); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 56px; display: grid; gap: 6px; }
.steps li::before {
  content: counter(step, persian); position: absolute; top: 0; right: 0;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--yellow); font-weight: 900; font-size: 1.1rem;
}
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 19px; right: 52px; left: -20px; border-top: 2px dashed #c3cddc; }
.steps strong { font-size: 1.15rem; font-weight: 900; }
.steps span { color: var(--muted); }

/* ---- Contact ---- */
.contact { background: var(--yellow); color: var(--navy); padding: 56px 0; }
.contact-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; }
.contact h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; margin-bottom: 4px; }
.contact p { margin: 0; color: #3a3110; }
.phones { display: flex; flex-wrap: wrap; gap: 12px; }
.phone-link { display: inline-flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.2rem; padding: 12px 22px; border-radius: 999px; transition: background 0.18s var(--ease); }
.phone-link:hover { background: var(--primary-hover); text-decoration: none; }
.phone-link svg { width: 20px; height: 20px; color: var(--yellow); }
.contact :focus-visible { outline-color: var(--navy); }

.site-footer { background: var(--navy); color: var(--navy-ink); padding: 28px 0 32px; font-size: 0.9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { width: 32px; height: 32px; }
.site-footer .brand-mark svg rect:first-child { fill: var(--navy-2); }
.site-footer .brand-name { font-size: 1.1rem; }

/* Sticky call bar on phones */
.call-bar { display: none; }

/* ---- Modal / bottom sheet (car picker) ---- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(15, 20, 30, 0.45); padding: 16px; }
.sheet { background: var(--surface); width: 100%; max-width: 520px; height: min(640px, 90vh); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.sheet-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.sheet-title { display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.icon-btn { background: none; border: 0; padding: 6px; border-radius: 8px; cursor: pointer; color: var(--muted); display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }
.search { position: relative; }
.search svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search .input { padding-right: 38px; }
.sheet-body { overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.option-list { list-style: none; margin: 0; padding: 0; }
.option-list li button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 18px; background: none; border: 0; border-bottom: 1px solid var(--line);
  font: inherit; text-align: right; cursor: pointer; color: var(--ink);
}
.option-list li button:hover, .option-list li button:focus-visible { background: var(--surface-2); outline: none; }
.option-list .sub { color: var(--muted); font-size: 0.85rem; }
.option-list svg { width: 16px; height: 16px; color: var(--muted); transform: scaleX(-1); }
.crumb { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.empty { padding: 30px; text-align: center; color: var(--muted); }
.free-text { padding: 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; }

/* ---- Jalali date picker ---- */
.date-wrap { position: relative; }
.datepicker { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; width: 300px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(16,24,40,0.15); padding: 12px; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 700; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-grid .wd { font-size: 0.78rem; color: var(--muted); padding: 4px 0; }
.dp-grid button { font: inherit; font-size: 0.92rem; border: 0; background: none; border-radius: 8px; height: 36px; cursor: pointer; color: var(--ink); }
.dp-grid button:hover:not([disabled]) { background: var(--primary-soft); }
.dp-grid button[disabled] { color: #c3c9d2; cursor: default; }
.dp-grid button.today { box-shadow: inset 0 0 0 1px var(--primary); }
.dp-grid button.selected { background: var(--primary); color: #fff; }
.dp-grid button.friday:not([disabled]):not(.selected) { color: var(--danger); }
.dp-foot { display: flex; justify-content: space-between; margin-top: 8px; }

/* ---- Done page ---- */
.done { max-width: 560px; margin: 48px auto; text-align: center; }
.done .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin: 0 auto 16px; }
.done .tick svg { width: 40px; height: 40px; }
.summary { text-align: right; margin: 20px 0; }
.done .actions .btn { min-width: 210px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }

/* ---- Admin ---- */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 64px); }
.admin-nav { background: var(--surface); border-left: 1px solid var(--line); padding: 16px 10px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 500; }
.admin-nav a svg { width: 20px; height: 20px; color: var(--muted); }
.admin-nav a:hover { background: var(--surface-2); text-decoration: none; }
.admin-nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.admin-nav a.active svg { color: var(--primary); }
.admin-main { padding: 24px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 1.4rem; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .label { color: var(--muted); font-size: 0.88rem; }
.stat .value { font-size: 1.7rem; font-weight: 800; }
.stat.ok .value { color: var(--success); }
.stat.bad .value { color: var(--danger); }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--surface-2); font-weight: 700; color: var(--muted); font-size: 0.85rem; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfc; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.badge-new, .badge-sending, .badge-pending { background: var(--warning-soft); color: #7a5208; }
.badge-done, .badge-sent, .badge-delivered { background: var(--success-soft); color: #145a39; }
.badge-cancelled, .badge-failed { background: var(--danger-soft); color: #8c2a1f; }
.badge-contacted, .badge-scheduled, .badge-draft { background: var(--primary-soft); color: var(--primary); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.toolbar .input { width: auto; min-width: 200px; min-height: 42px; padding: 8px 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tabs a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 0.9rem; }
.tabs a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs a:hover { text-decoration: none; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stack { display: grid; gap: 14px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.hint { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.sms-preview { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; white-space: pre-wrap; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.login-wrap { max-width: 400px; margin: 60px auto; padding: 0 16px; }
.dry-run-banner { background: var(--warning-soft); color: #7a5208; text-align: center; font-size: 0.88rem; padding: 6px 16px; }


/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero { padding: 28px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .report-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li { padding: 0 56px 0 0; min-height: 40px; }
  .steps li:not(:last-child)::after { top: 48px; bottom: -20px; right: 19px; left: auto; border-top: 0; border-right: 2px dashed #c3cddc; }
  .contact-inner { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { border-left: 0; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; padding: 8px; gap: 4px; }
  .admin-nav a { white-space: nowrap; }
  .admin-main { padding: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .site-header .container { min-height: 60px; }
  .brand-mark { width: 36px; height: 36px; }
  .header-call .num { display: none; }
  .hero h1 { font-size: 1.9rem; }
  .hero .lead { font-size: 1rem; }
  .request-card { padding: 20px; border-radius: 16px; }
  .card { padding: 18px; }
  .report-rows div { grid-template-columns: 1fr; gap: 0; }
  .report-sheet { padding: 16px; }
  .site-footer { padding-bottom: 96px; }
  .call-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(14, 42, 92, 0.08);
  }
  .call-bar { transition: transform 0.3s var(--ease); }
  .call-bar.away { transform: translateY(110%); }
  .call-bar .btn-outline { flex: none; }
  .call-bar .btn-primary { flex: 1; }
  .modal { padding: 0; align-items: flex-end; }
  .sheet { max-width: none; height: 88vh; border-radius: var(--radius) var(--radius) 0 0; }
  .kv { grid-template-columns: 110px 1fr; }
}
@media (max-width: 340px) { .form-grid { grid-template-columns: 1fr; } }

/* Phone sync setup guide */
.howto h3 { font-size: 1.05rem; margin: 8px 0 0; }
.howto ol, .howto ul { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.howto ul ul { margin-top: 6px; }
.copyable { user-select: all; word-break: break-all; }
details summary { cursor: pointer; color: var(--muted); }
.howto code, .copyable { font-family: ui-monospace, monospace; font-size: 0.85rem; background: var(--bg, #f3f5f9); padding: 1px 6px; border-radius: 6px; }
