/* 911 Buyers seller form (/sell?t=…, sell-page.js). Colors, corners and fonts come only from the stored theme (Admin › Design,
   rule 65) through app.css's names (--black, --panel, --ink, --orange …, all var(--hbi-…)). Phone first (390 px), two columns of
   photo boxes on a phone, five on a wide screen. */
.sf-body { background: var(--black); color: var(--ink); }
.sf-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: var(--bar); color: var(--bar-ink); border-bottom: 2px solid var(--orange); }
.sf-logo { height: 30px; width: auto; max-width: 200px; object-fit: contain; }
.sf-tag { font-family: var(--f-display); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--bar-muted); white-space: nowrap; }
.sf { max-width: 760px; margin: 0 auto; padding: 16px 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
.sf-form { display: grid; gap: 14px; }
.sf-form > * { min-width: 0; }
.sf-head h1 { font-size: 22px; }
.sf-head .note { margin: 6px 0 0; font-size: 14px; }
.sf-sec, .sf-msg { padding: 14px 16px; display: grid; gap: 12px; }
.sf-sec h2 { font-size: 16px; }
.sf-msg h1 { font-size: 22px; }
.sf-done { border-color: var(--orange); }
.sf-done p { margin: 0; }
/* after sending: the brand's photo on top and the car (Billy, Nov 15 2026 1:43 AM "use our photo ... at the top") */
.sf-hero { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 380px; object-fit: cover; border-radius: var(--hbi-radius, 3px); }
.sf-car { margin: 0; font-size: 16px; }
/* after sending: the steps that come next and the website links (Billy, Nov 14 2026 8:43 PM "4 yes ... more detail") */
.sf-nx-h { font-size: 16px; margin: 4px 0 0; }
.sf-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sf-nx { display: flex; gap: 10px; align-items: flex-start; }
.sf-nx-n { flex: 0 0 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; line-height: 1; }
.sf-nx-t { display: grid; gap: 1px; min-width: 0; }
.sf-nx-t .note { margin: 0; font-size: 14px; }
.sf-nx-done .sf-nx-n, .sf-nx-now .sf-nx-n { border-color: var(--orange); }
.sf-nx-done .sf-nx-n { background: var(--orange); color: var(--accent-ink); }
.sf-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.sf-links .btn { min-height: 44px; display: grid; place-items: center; text-align: center; text-decoration: none; }
.sf-row { display: flex; gap: 8px; }
.sf-row input { flex: 1 1 auto; min-width: 0; font-family: var(--f-mono); letter-spacing: .04em; }
.sf-row .btn { flex: 0 0 auto; min-height: 44px; }
/* A phone never zooms by itself on this form (Billy, Nov 14 2026 8:21 PM: "when you click any form entry it zooms in. turn that shit off"):
   no box under 16 px, no double-tap zoom, text not resized when the phone turns. sell.html also caps the page's own zoom (a pinch still works). */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.sf, .sf button, .sf label, .sf input, .sf textarea, .sf select { touch-action: manipulation; }
.sf input, .sf textarea, .sf select { font-size: max(16px, 1em); }
.sf .field input, .sf .field textarea, .sf-ask input { min-height: 44px; font-size: 16px; }   /* 16 px: no zoom on iPhone */
.sf-ask input { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--hbi-radius, 3px); padding: 8px 12px; background: var(--panel2); color: var(--ink); font-family: var(--f-mono); font-size: 22px; min-height: 52px; }
.sf input[aria-invalid="true"] { border-color: var(--bad); }
.sf-dec { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.sf-dec b { color: var(--ink); }
.sf-bad { color: var(--bad); }
.sf-more { display: grid; gap: 12px; }
.sf-more[hidden] { display: none; }
.sf-q { border: 0; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line); min-width: 0; }
.sf-q:first-of-type { border-top: 0; padding-top: 0; }
.sf-q legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.sf-q legend .note { display: block; font-weight: 400; }
.sf-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-opt { position: relative; flex: 1 1 auto; min-width: 84px; }
.sf-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sf-opt span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: var(--hbi-radius, 3px); background: var(--panel2); }
.sf-opt input:checked + span { background: var(--orange); border-color: var(--orange); color: var(--accent-ink); font-weight: 600; }
.sf-opt input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.sf-opt input:disabled + span { opacity: .75; }
.sf-opt input:disabled:checked + span { opacity: 1; }
.sf-ph-hint { margin: 0; font-size: 14px; }
.sf-phs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sf-ph { position: relative; min-width: 0; }
.sf-ph-in { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 4 / 3; border: 2px dashed var(--line-strong); border-radius: var(--hbi-radius, 3px); background: var(--panel2); color: var(--muted); cursor: pointer; overflow: hidden; text-align: center; padding: 6px; }
.sf-ph-in input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.sf-ph.has .sf-ph-in { border-style: solid; border-color: var(--orange); padding: 0; }
.sf-ph.has img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sf-cam { color: var(--orange); line-height: 0; }
.sf-ph-l { font-family: var(--f-display); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.sf-ph-l em { display: block; font-style: normal; font-family: var(--f-body); font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 12px; }
.sf-ph.has .sf-ph-l, .sf-ph.has .sf-ph-re { position: absolute; left: 0; right: 0; padding: 4px 6px; background: color-mix(in srgb, var(--shade) 65%, transparent); color: var(--on-dark); }
.sf-ph.has .sf-ph-l { bottom: 0; }
.sf-ph.has .sf-ph-l em { display: none; }
.sf-ph-re { top: 0; font-size: 11px; }
.sf-ph-st { font-size: 12px; color: var(--muted); }
.sf-ph.has .sf-ph-st:empty { display: none; }
.sf-ph.busy .sf-ph-in { opacity: .6; }
.sf-send { display: grid; gap: 8px; }
.sf-send .btn { min-height: 52px; font-size: 17px; width: 100%; }
.sf-msgline { margin: 0; color: var(--bad); font-weight: 600; }
.sf-msgline:empty { display: none; }
.sf-send .note { margin: 0; text-align: center; }
/* website mode (911buyers.com/sell): the "You" section on top */
.sf-two { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.sf-you-n { margin: -4px 0 0; font-size: 13px; }
.sf .field select { min-height: 44px; font-size: 16px; }
.sf-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); }
.sf-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--orange); }
.sf-consent a { color: var(--orange); }
.sf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* walk-around photos (Evan, Nov 4 3:15 PM): the strip, the Outside / Inside groups, the angle's outline in an empty box */
.sf-walk { display: grid; gap: 6px; }
.sf-walk-t { margin: 0; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.sf-walk-t span { color: var(--muted); font-family: var(--f-mono); }
.sf-walk-s { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 3px; }
.sf-walk-s li { height: 6px; border-radius: var(--hbi-radius, 3px); background: var(--line-strong); }
.sf-walk-s li[data-g="int"] { opacity: .8; }
.sf-walk-s li.on { background: var(--orange); opacity: 1; }
.sf-ph-g { margin: 4px 0 0; font-size: 14px; font-family: var(--f-display); text-transform: uppercase; letter-spacing: .05em; }
.sf-ph-g .note { display: block; margin-top: 2px; font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13px; }
.sf-guide { display: block; width: 88%; max-height: 58%; color: var(--muted); line-height: 0; }
.sf-guide .sfg { width: 100%; height: 100%; max-height: 100%; }
.sf-guide { display: flex; align-items: center; justify-content: center; min-height: 0; }
.sf-guide .sfg-pic { display: block; width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.sf-ph-n { position: absolute; top: 4px; left: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--hbi-radius, 3px); background: var(--orange); color: var(--accent-ink); font: 600 12px/20px var(--f-mono); text-align: center; }
.sf-ph.has .sf-ph-n { top: auto; bottom: 30px; }
.sfg .sfg-ground { stroke-dasharray: 3 4; opacity: .6; }
/* the camera guide (seller-camera.js): full screen, the live camera, the outline over it */
html.sfc-open, html.sfc-open body { overflow: hidden; }
.sfc { position: fixed; inset: 0; z-index: 90; background: var(--shade); color: var(--on-dark); overflow: hidden; touch-action: manipulation; }
.sfc [hidden] { display: none !important; }
.sfc-v, .sfc-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--shade); }
.sfc-g { position: absolute; inset: 64px 12px 104px; display: grid; place-items: center; pointer-events: none; color: var(--on-dark); opacity: .85; }
.sfc-g .sfg { width: 100%; height: 100%; filter: drop-shadow(0 0 2px var(--shade)); }
.sfc-g .sfg-line { object-fit: contain; min-width: 0; min-height: 0; }
.sfc[data-kind="ext"] .sfc-g .sfg g { stroke-width: 2; }
.sfc-shot:not([hidden]) ~ .sfc-g { opacity: .35; }
.sfc-off .sfc-g { opacity: .7; }
.sfc-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; background: color-mix(in srgb, var(--shade) 60%, transparent); }
.sfc-step { font: 600 12px/1 var(--f-mono); padding: 5px 8px; border-radius: var(--hbi-radius, 3px); background: var(--orange); color: var(--accent-ink); white-space: nowrap; }
.sfc-l { flex: 1 1 auto; min-width: 0; font-family: var(--f-display); font-size: 17px; text-transform: uppercase; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sfc-x { min-height: 44px; min-width: 64px; border: 1px solid var(--on-dark); border-radius: var(--hbi-radius, 3px); background: transparent; color: var(--on-dark); font: inherit; font-weight: 600; }
/* the camera's light, only on a phone that reports one (Billy, Nov 14 2026 8:43 PM "5 yes") */
.sfc-light[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--accent-ink); }
.sfc-off .sfc-light { display: none; }
.sfc-hint, .sfc-msg, .sfc-turn { position: absolute; left: 12px; right: 12px; margin: 0; text-align: center; font-size: 15px; text-shadow: 0 1px 3px var(--shade); }
.sfc-hint { top: calc(66px + env(safe-area-inset-top, 0px)); }
.sfc-msg { bottom: calc(104px + env(safe-area-inset-bottom, 0px)); font-weight: 600; }
.sfc-msg:empty { display: none; }
.sfc-turn { display: none; top: 45%; padding: 12px; border-radius: var(--hbi-radius, 3px); background: color-mix(in srgb, var(--shade) 70%, transparent); font-weight: 600; font-size: 18px; }
@media (orientation: portrait) { .sfc[data-kind="ext"]:not(.sfc-off) .sfc-turn { display: block; } }
.sfc-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 12px calc(14px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--shade) 60%, transparent); }
.sfc-shut { width: 72px; height: 72px; border-radius: 50%; border: 4px solid var(--on-dark); background: var(--orange); box-shadow: inset 0 0 0 3px var(--shade); }
.sfc-shut:active { transform: scale(.94); }
.sfc-lib { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--on-dark); border-radius: var(--hbi-radius, 3px); font-weight: 600; cursor: pointer; }
.sfc-lib input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.sfc-off .sfc-lib { min-height: 56px; padding: 0 24px; background: var(--orange); color: var(--accent-ink); border-color: var(--orange); font-size: 17px; }
.sfc-off .sfc-hint { top: auto; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
.sfc .btn { min-height: 52px; padding: 0 22px; font-size: 17px; }
.sfc .sfc-re { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
@media (orientation: landscape) and (max-height: 520px) {
  /* the column is 96 px plus the notch side (it was 96 px minus it: Retake and Use photo came out about 35 px wide; Billy, Nov 14 2026 8:21 PM) */
  .sfc-g { inset: 50px calc(96px + env(safe-area-inset-right, 0px)) 12px calc(12px + env(safe-area-inset-left, 0px)); }
  .sfc-top { right: calc(96px + env(safe-area-inset-right, 0px)); padding-top: 6px; padding-bottom: 6px; }
  .sfc-hint { top: 52px; right: calc(108px + env(safe-area-inset-right, 0px)); font-size: 14px; }
  .sfc-msg { bottom: 12px; right: calc(108px + env(safe-area-inset-right, 0px)); }
  .sfc-bar { left: auto; top: 0; width: calc(96px + env(safe-area-inset-right, 0px)); flex-direction: column; padding: 8px calc(8px + env(safe-area-inset-right, 0px)) 8px 8px; }
  .sfc .btn { padding: 0 6px; font-size: 15px; width: 100%; min-width: 80px; white-space: nowrap; }
  .sfc-lib { padding: 0 8px; font-size: 14px; }
  .sfc-off .sfc-hint { bottom: 60px; }
}
@media (min-width: 560px) { .sf-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 720px) {
  .sf { padding-top: 24px; }
  .sf-head h1 { font-size: 26px; }
  .sf-phs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-send .btn { width: auto; justify-self: end; padding: 0 28px; }
}
@media (min-width: 1100px) { .sf { max-width: 980px; } .sf-phs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Ask for more (Evan Wiles, COO, Nov 6 2026): the note box at the top and every requested item outlined (theme colors only) */
.sf-asked { border: 2px solid var(--orange); background: var(--accent-soft); }
.sf-asked:focus { outline: none; }
.sf-asked h2 { color: var(--orange); }
.sf-asked-n { margin: 0; font-size: 16px; white-space: pre-line; overflow-wrap: anywhere; color: var(--ink); }
.sf-asked-l { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.sf-asked-l a { display: inline-block; min-height: 32px; padding: 4px 0; color: var(--orange); font-weight: 600; }
.sf-asked .note { margin: 0; }
.sf .field .sf-cnt { display: block; margin-top: 4px; text-align: right; font-size: 13px; }   /* how much of a box with a limit is used */
.sf-sec.sf-want, .sf-q.sf-want, .field.sf-want { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: var(--hbi-radius, 3px); }
.sf-q.sf-want { padding-left: 6px; padding-right: 6px; }
.sf-ph.sf-want .sf-ph-in { border-color: var(--orange); border-style: solid; box-shadow: 0 0 0 2px var(--orange); }
[id^="sf-p-"], [id^="sf-q-"], #sf-vin, #sf-miles, #sf-h-pay, #sf-h-mod, #sf-ask { scroll-margin-top: 80px; }
/* Steps (Evan Wiles, COO, Nov 12 2026 10:26 AM: "Add a step indicator and Back/Next buttons to the form on both sites"): the numbered
   indicator (current step outlined, finished steps filled) and the Back / Next row. Theme colors and corners only (rule 65). */
.sf-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.sf-steps li { position: relative; display: grid; justify-items: center; gap: 4px; min-width: 0; padding-top: 2px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.25; }
.sf-steps li::before { content: ''; position: absolute; top: 14px; left: calc(-50% + 16px); right: calc(50% + 16px); height: 2px; background: var(--line-strong); }
.sf-steps li:first-child::before { display: none; }
.sf-steps li.done::before, .sf-steps li[aria-current="step"]::before { background: var(--orange); }
.sf-st-n { display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--line-strong); border-radius: var(--hbi-radius, 3px); background: var(--panel2); font: 600 13px/1 var(--f-mono); color: var(--muted); }
.sf-st-l { max-width: 100%; overflow-wrap: anywhere; }
.sf-steps li.done .sf-st-n { background: var(--orange); border-color: var(--orange); color: var(--accent-ink); }
.sf-steps li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.sf-steps li[aria-current="step"] .sf-st-n { border-color: var(--orange); color: var(--orange); }
.sf-step { display: grid; gap: 14px; min-width: 0; }
.sf-step[hidden] { display: none; }
.sf-step h2:focus { outline: none; }
.sf-nav { display: flex; gap: 8px; }
.sf-nav .btn { flex: 1 1 0; min-width: 0; }
.sf-nav .btn[hidden] { display: none; }
@media (min-width: 720px) {
  .sf-steps li { font-size: 13px; }
  .sf-nav { justify-content: flex-end; }
  .sf-nav .btn { flex: 0 0 auto; padding: 0 28px; }
  .sf-nav [data-sf="back"] { margin-right: auto; }
}
/* Steps to get your appraisal (Billy Wenk, Nov 18 2026 11:30 PM; the CRM ship-gate look, mock_gate.png). Theme variables only (app.css aliases). */
.sf-gate .sf-gl{list-style:none;margin:8px 0 0;padding:0}
.sf-gate .sf-gl li{display:flex;align-items:center;gap:10px;padding:7px 0;border-top:1px solid var(--line)}
.sf-gate .sf-gl li:first-child{border-top:0}
.sf-gate .sf-gi{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800;flex:none;border:2px solid var(--line);color:var(--muted)}
.sf-gate .s-ok .sf-gi{background:var(--good);border-color:var(--good);color:var(--bg)}
.sf-gate .s-missing .sf-gi{border-style:dashed;border-color:var(--orange);color:var(--orange)}
.sf-gate .sf-gn{flex:1;min-width:0}
.sf-gate .sf-gn small{display:block;color:var(--muted);font-size:12px}
.sf-gate .s-missing small b{color:var(--orange)}
.sf-gate .sf-gl a{color:var(--orange);font-weight:700;text-decoration:none;padding:6px 4px}
.sf-gate .sf-gl a:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
