/* Estimate Builder: mobile first */
:root {
  --brand: #0f3d5e;
  --brand-2: #1667a3;
  --accent: #1a8f5a;
  --bg: #f3f5f8;
  --card: #ffffff;
  --text: #17212b;
  --muted: #5b6875;
  --line: #d9e0e7;
  --error: #b42318;
  --error-bg: #fdecea;
  --warn-bg: #fff6d6;
  --warn-line: #f1d27a;
  --radius: 14px;
  --tap: 52px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  overflow-x: hidden;
}
[hidden] { display: none !important; }

/* Top bar */
.topbar {
  background: var(--brand);
  color: #fff;
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top);
}
.topbar-inner {
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
}
.brand-logo { height: 36px; width: auto; max-width: 90px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }
.brand-text { flex: 1; min-width: 0; }
.brand-name { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 13px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
.bottom-space { height: 96px; }

/* Steps */
.step { margin-bottom: 28px; animation: reveal .3s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step, .svc-extra, .row-result { animation: none !important; } }
.step-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; }
.step-head h2 { margin: 0; font-size: 21px; }
.step-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-2); color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex: none;
}

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.helper { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.helper.small { font-size: 14px; margin-bottom: 10px; }
.muted { color: var(--muted); font-weight: 400; font-size: 14px; }
.optional { color: var(--muted); font-weight: 400; font-size: 14px; }

.notice {
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 15px;
}

/* Forms */
.field { margin-bottom: 14px; }
.field label, .label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
input, textarea, select {
  width: 100%; font: inherit; font-size: 17px; /* 16px+ stops iOS zoom */
  color: var(--text); background: #fff;
  border: 1.5px solid #b9c4cf; border-radius: 10px;
  min-height: var(--tap); padding: 12px 14px;
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(22, 103, 163, .22); }
input.invalid { border-color: var(--error); background: #fffafa; }
.error { color: var(--error); font-size: 14px; margin-top: 4px; min-height: 0; }
.error:empty { display: none; }
.error.block { background: var(--error-bg); padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 480px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--tap); padding: 0 20px;
  font: inherit; font-weight: 600; font-size: 17px;
  border-radius: 12px; border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:focus-visible, .link-btn:focus-visible, .chip:focus-visible, .icon-btn:focus-visible, .switch input:focus-visible + .slider {
  outline: 3px solid #f0b429; outline-offset: 2px;
}
.btn-primary { background: var(--brand-2); color: #fff; }
.btn-primary:active { background: var(--brand); }
.btn-secondary { background: #fff; color: var(--brand-2); border-color: var(--brand-2); }
.btn-ghost { background: transparent; color: var(--brand-2); border-color: var(--line); }
.topbar .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-small { min-height: 40px; padding: 0 12px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-large { min-height: 60px; font-size: 19px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn {
  background: none; border: 0; color: var(--brand-2); font: inherit; font-weight: 600;
  text-decoration: underline; cursor: pointer; padding: 10px 6px; min-height: 44px;
}
.link-btn.danger { color: var(--error); }
.icon-btn {
  background: none; border: 1.5px solid var(--line); border-radius: 10px;
  min-width: 44px; min-height: 44px; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer;
}

/* Saved customer summary */
.saved-summary {
  display: flex; align-items: center; gap: 12px;
  background: #eaf6ef; border: 1px solid #b9e1c9; border-radius: var(--radius);
  padding: 12px 14px;
}
.saved-summary::before { content: "✓"; color: var(--accent); font-weight: 700; font-size: 20px; }
.saved-text { flex: 1; min-width: 0; }
.saved-name { font-weight: 700; }
.saved-line { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }

/* Empty state */
.empty {
  text-align: center; color: var(--muted); padding: 22px 16px; margin-bottom: 14px;
  border: 2px dashed var(--line); border-radius: var(--radius); background: #fafbfc;
}

/* Service picker */
.picker { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-top: 10px; animation: reveal .2s ease-out; }
.picker-title { font-weight: 700; margin-bottom: 10px; }
.picker-list { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 10px; }
@media (min-width: 480px) { .picker-list { grid-template-columns: 1fr 1fr; } }
.chip {
  text-align: left; background: #f6f9fc; border: 1.5px solid var(--line); border-radius: 12px;
  min-height: 56px; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--text); cursor: pointer;
}
.chip small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.chip:active { border-color: var(--brand-2); background: #eef5fb; }

/* Service card */
.svc { padding: 0; overflow: hidden; }
.svc-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px;
  background: #f6f9fc; border-bottom: 1px solid var(--line);
}
.svc-title { flex: 1; font-weight: 700; font-size: 18px; min-width: 0; }
.svc-title small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.svc-body { padding: 14px 16px 16px; }

.mrow { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; background: #fff; }
.mrow-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mrow-head .mrow-num { font-weight: 700; color: var(--muted); font-size: 14px; flex: none; }
.mrow-head input { min-height: 44px; padding: 8px 12px; font-size: 16px; }
.dim { margin-bottom: 8px; }
.dim-label { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.dim-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.unit { position: relative; }
.unit input { padding-right: 44px; text-align: left; }
.unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.row-result {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: #eef5fb; border-radius: 10px; padding: 10px 12px; margin-top: 6px; font-weight: 600;
  animation: reveal .2s ease-out;
}
.row-result .amt { color: var(--brand); }
.row-hint { color: var(--muted); font-size: 14px; margin-top: 4px; }

.svc-extra { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 14px; animation: reveal .25s ease-out; }
.option-box { background: #fafbfc; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.option-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.option-title { font-weight: 700; }
.option-note { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 60px; height: 34px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; min-height: 0; }
.slider { position: absolute; inset: 0; background: #b9c4cf; border-radius: 34px; transition: background .2s; }
.slider::before { content: ""; position: absolute; width: 26px; height: 26px; left: 4px; top: 4px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(26px); }

/* Discount */
.seg { display: inline-flex; border: 1.5px solid var(--brand-2); border-radius: 10px; overflow: hidden; flex: none; }
.seg button { background: #fff; color: var(--brand-2); border: 0; font: inherit; font-weight: 700; min-width: 52px; min-height: var(--tap); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--brand-2); color: #fff; }
.discount-inputs { display: flex; gap: 10px; margin-top: 8px; }
.discount-inputs .unit { flex: 1; }

.lines { margin-top: 4px; }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 16px; }
.line.discount { color: var(--accent); }
.line.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 800; font-size: 19px; }
.svc-subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding: 12px 14px; background: var(--brand); color: #fff; border-radius: 12px; font-weight: 700; }
.svc-subtotal .v { font-size: 20px; }

/* Custom line items */
.citem { display: grid; grid-template-columns: 1fr 120px 44px; gap: 8px; align-items: start; margin-bottom: 8px; }
.citem .error { grid-column: 1 / -1; margin-top: -4px; }
@media (max-width: 360px) { .citem { grid-template-columns: 1fr 96px 44px; } }

/* Totals */
.totals-title { font-weight: 700; margin-bottom: 6px; }
.totals .line.total { font-size: 22px; }

.pdf-result { text-align: center; }
.pdf-ready { font-weight: 700; margin-bottom: 10px; color: var(--accent); }
.pdf-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }

/* Sticky bar */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 14px rgba(16, 24, 40, .08);
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
.sticky-label { font-size: 13px; color: var(--muted); }
.sticky-total { font-size: 22px; font-weight: 800; color: var(--brand); }

/* Confirmation box */
.btn-danger { background: var(--error); color: #fff; }
.modal {
  position: fixed; inset: 0; z-index: 50; background: rgba(15, 25, 35, .55);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom));
  animation: reveal .15s ease-out;
}
@media (min-width: 560px) { .modal { align-items: center; } }
.modal-card { background: var(--card); border-radius: var(--radius); padding: 20px; width: 100%; max-width: 420px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.modal-text { margin: 0 0 16px; font-size: 18px; font-weight: 600; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- With the customer: choose, preview, approve ---------- */
.handoff { border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 14px; text-align: left; }
.cust-title { margin: 4px 0 6px; font-size: 24px; }
.cust-title:focus { outline: none; }
.staff-link { text-align: center; margin-top: 8px; }
.btn-gap { margin-top: 10px; }
.btn-approve { background: var(--accent); color: #fff; }
.btn-approve:active { background: #137148; }

.pick { padding: 0; overflow: hidden; transition: opacity .15s; }
.pick-head {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  cursor: pointer; -webkit-tap-highlight-color: transparent; min-height: 64px;
}
.pick-row { padding: 10px 0; min-height: 56px; border-bottom: 1px solid var(--line); }
.pick-row:last-child { border-bottom: 0; }
.pick-box {
  flex: none; width: 30px; height: 30px; min-height: 0; padding: 0; margin: 0;
  border: 2px solid #8a99a8; border-radius: 8px; background: #fff; cursor: pointer;
  display: inline-grid; place-content: center;
}
.pick-box::after { content: ""; width: 9px; height: 16px; border: solid #fff; border-width: 0 3.5px 3.5px 0; transform: rotate(45deg) translate(-1px, -2px); opacity: 0; }
.pick-box:checked { background: var(--accent); border-color: var(--accent); }
.pick-box:checked::after { opacity: 1; }
.pick-box:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; box-shadow: none; }
.pick-name { flex: 1; min-width: 0; font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.pick-row .pick-name { font-size: 16px; font-weight: 600; }
.pick-name small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.pick-amt { flex: none; font-weight: 800; font-size: 18px; color: var(--brand); }
.off .pick-name, .off .pick-amt { color: var(--muted); }
.off .pick-amt { text-decoration: line-through; font-weight: 600; }
.pick-option { margin: 0 16px 14px; background: #fafbfc; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.off .pick-option { opacity: .5; }
.switch input:disabled { cursor: not-allowed; }
.pick-note { margin: -4px 16px 14px; font-size: 14px; color: var(--muted); }
.pick-note.discount { color: var(--accent); }
.line.muted-line { color: var(--muted); font-size: 14px; }

.label-sm { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.pv-name { font-weight: 700; font-size: 18px; min-width: 0; overflow-wrap: anywhere; }
.pv-name small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.line.small { font-size: 14px; color: var(--muted); }
.line.small.discount { color: var(--accent); }

.approved-card { text-align: center; }
.approved-check {
  width: 56px; height: 56px; border-radius: 50%; margin: 4px auto 6px;
  background: var(--accent); color: #fff; font-size: 30px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.send-placeholder { border-style: dashed; border-width: 2px; background: #fafbfc; }
.send-status:empty { display: none; }
.send-status { margin: 10px 0 0; }

/* Step 3: cleaning option checkboxes, waste factor, ranges */
.check-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 0; min-height: 56px;
  border-bottom: 1px solid var(--line); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.check-row:last-of-type { border-bottom: 0; }
.check-name { flex: 1; min-width: 0; font-weight: 600; }
.check-name small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.check-amt { flex: none; font-weight: 700; color: var(--brand); }
.unit.wide input { padding-right: 64px; }
.seg-wide { display: flex; width: 100%; }
.seg-wide button { flex: 1; min-width: 0; }
.seg-wide button + button { border-left: 1.5px solid var(--brand-2); }
.calc-box { background: #eef5fb; border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; animation: reveal .2s ease-out; }
.calc-box .line.small { color: var(--ink, #17212b); }
.pick-static { cursor: default; }
.pick-opts { margin: -6px 16px 8px; padding-left: 4px; border-top: 1px solid var(--line); }
.pick-opts .pick-head { padding-left: 0; padding-right: 0; }
.pv-note { margin: 6px 0 0; }
.sticky-total.is-range { font-size: 17px; }
.line.total.is-range { font-size: 18px; flex-wrap: wrap; }
.totals .line.total.is-range { font-size: 19px; }
/* A price range needs its own line on a phone */
.has-range { flex-wrap: wrap; }
.has-range .pick-name, .has-range .pv-name { flex: 1 1 60%; }
.has-range .pick-amt { flex: 1 1 100%; text-align: right; font-size: 17px; }
.svc-subtotal.has-range, .line.has-range { flex-wrap: wrap; }
.svc-subtotal.has-range .v, .line.has-range > span:last-child { flex: 1 1 100%; text-align: right; }
.svc-subtotal.has-range .v { font-size: 18px; }

/* Subtract (negative) measurements */
.neg-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 15px; font-weight: 600; cursor: pointer; }
.neg-row small { font-weight: 400; color: var(--muted); font-size: 13px; }
.pick-box.small { width: 26px; height: 26px; }
.mrow.is-neg { border-color: #e3b5ae; background: #fff8f7; }
.mrow.is-neg .row-result { background: #fbe9e6; }
.mrow.is-neg .row-result .amt { color: var(--error); }

/* ---------- Employee login (auth.js) ---------- */
/* Nothing of the estimator shows until an employee is signed in */
body.locked .topbar, body.locked #main, body.locked #stickyBar, body.locked #confirmBox { display: none !important; }
.auth-screen {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: flex-start; justify-content: center;
  padding: max(32px, env(safe-area-inset-top)) 16px 32px;
  background: linear-gradient(180deg, var(--brand) 0, var(--brand) 180px, var(--bg) 180px);
}
body:not(.locked) .auth-screen { display: none; }
.auth-card {
  width: 100%; max-width: 420px; background: var(--card);
  border-radius: var(--radius); box-shadow: 0 10px 30px rgba(15, 61, 94, .18);
  padding: 24px 20px 20px;
}
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 18px; text-align: center; }
.auth-logo { max-height: 72px; max-width: 200px; width: auto; object-fit: contain; }
.auth-company { font-weight: 700; font-size: 19px; color: var(--brand); }
.auth-title { font-size: 22px; margin: 0 0 14px; }
.auth-panel input { width: 100%; }
.auth-loading { text-align: center; color: var(--muted); padding: 24px 0; }
.auth-msg { color: var(--error); font-size: 15px; margin: -4px 0 12px; }
.auth-msg:empty { display: none; }
.auth-msg.ok { color: var(--accent); }
.auth-link { display: block; margin: 8px auto 0; }
.auth-ask { text-align: center; margin: 8px 0 0; }
.notice.small { font-size: 14px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 72px; }
.pw-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--brand-2); font: inherit; font-weight: 600;
  min-height: 44px; padding: 0 12px; cursor: pointer;
}

/* "Signed in as" strip above the estimate (salesperson screens only) */
.who-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 8px;
  font-size: 14px; color: var(--muted); margin: -6px 0 10px;
}
.who-bar strong { color: var(--text); }
.who-actions { display: inline-flex; }
.who-actions .link-btn { font-size: 14px; padding: 8px 6px; min-height: 40px; }

/* ---------- Step 5: Doors / Estimate tabs and door knocking ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rep-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #e4e9ef; border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.rep-tab {
  min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--muted);
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
}
.rep-tab[aria-pressed="true"] { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.rep-tab:focus-visible, .outcome:focus-visible, .knock-btn:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
body.tab-doors #stepCustomer, body.tab-doors #stepServices, body.tab-doors #stepReview,
body.tab-doors #stickyBar, body.tab-doors #priceWarning { display: none !important; }

.today-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.today-num { display: block; font-size: 30px; font-weight: 800; color: var(--brand); line-height: 1.1; }
.today-lbl { display: block; font-size: 13px; color: var(--muted); }

.knock-last-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 700; margin-bottom: 8px; }
.outcome-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.outcome {
  min-height: 52px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--text);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; padding: 4px;
}
.outcome[aria-pressed="true"] { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.knock-geo { margin: 10px 0 0; }
.undo-note { text-align: center; }

/* Door knock feedback (knock.js) */
.knock-toast {
  margin: -8px auto 14px; max-width: 420px; padding: 12px 14px; border-radius: 12px; text-align: center;
  background: #e7f6ee; border: 1.5px solid var(--accent); color: #0d5c39; font-weight: 700; font-size: 16px;
}
.knock-toast.bad { background: var(--error-bg); border-color: var(--error); color: var(--error); }
.knock-toast.pop { animation: toastPop .3s ease-out; }
@keyframes toastPop { 0% { transform: scale(.92); opacity: .4; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .knock-toast.pop { animation: none; } }

/* Door visits: typed address, then what happened (knock.js) */
.door-num-row { display: grid; grid-template-columns: 64px 1fr 64px; gap: 10px; align-items: end; }
.door-num-field { margin-bottom: 0; }
.door-num-field input { font-size: 28px; font-weight: 800; text-align: center; letter-spacing: .5px; min-height: 60px; }
.step-btn {
  min-height: 60px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--brand-2);
  font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; touch-action: manipulation;
}
.step-btn:active { background: #eef3f8; }
.door-num-row + .field { margin-top: 14px; }
.door-city-row { grid-template-columns: 1.6fr 1fr; }
.door-history { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); border: 1px solid var(--warn-line); font-size: 14px; font-weight: 600; }
.door-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.door-btn {
  min-height: 64px; border-radius: 14px; border: 0; font: inherit; font-size: 19px; font-weight: 800; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.door-btn:active { transform: scale(.97); }
.door-yes { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(26, 143, 90, .3); }
.door-no { background: #e4e9ef; color: var(--text); }
.door-btn:focus-visible, .step-btn:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.visit-card.open { border: 2px solid var(--accent); }
.door-declined { color: var(--error); border-color: #f0c4c0; }
