body { -webkit-tap-highlight-color: transparent; }
.boot { text-align: center; padding: 40vh 0 0; color: var(--ink-2); }
.shell { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: calc(96px + env(safe-area-inset-bottom)); overflow-x: hidden; }
main { padding: 12px 16px 24px; }
h1 { font-size: 22px; line-height: 1.25; margin: 8px 0 14px; }
h2 { font-size: 18px; margin: 4px 0; }
.sect { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin: 22px 0 10px; }
small { color: var(--ink-2); display: block; font-size: 14px; }

.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--brand); color: var(--brand-ink); }
.shop { font-weight: 700; font-size: 16px; line-height: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-left { min-width: 0; flex: 1; display: grid; gap: 2px; justify-items: start; }
.demo-tag { display: inline-block; max-width: 100%; padding: 0 10px; border-radius: 99px; background: rgba(255,255,255,.2); color: var(--brand-ink); font-size: 14px; font-weight: 600; line-height: 22px; white-space: nowrap; }
.pill { flex: none; padding: 8px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.pill.ok { background: #fff; color: var(--brand); } .pill.off { background: var(--accent); color: var(--ink); }

.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 6; }
.tabbar a { position: relative; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 12px; letter-spacing: -.01em; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.tabbar a.on { color: var(--brand); font-weight: 700; box-shadow: inset 0 3px 0 var(--brand); }
.tabbar .ico { font-size: 22px; line-height: 1; }
.badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 22px; height: 22px; border-radius: 11px; background: var(--bad); color: #fff; font: 700 14px/22px var(--font); text-align: center; font-style: normal; padding: 0 5px; }

.btn { display: block; width: 100%; padding: 12px 16px; font-weight: 700; font-size: 17px; text-align: center; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.big { min-height: 60px; font-size: 19px; }
.btn.ghost { background: var(--paper); color: var(--ink); border: 2px solid var(--line); margin-top: 10px; }
.btn.link { background: none; color: var(--brand); width: auto; margin: 6px auto 0; font-weight: 600; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.back { margin: 0 0 0 -8px; text-align: left; }

.list { display: grid; gap: 12px; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.card.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; min-height: 72px; color: var(--ink); }
.card.row.static { cursor: default; } .chev { font-size: 28px; color: var(--ink-2); }
.meta { color: var(--ink-2); font-size: 14px; }
.right { text-align: right; display: grid; gap: 4px; }
.tag { font-size: 14px; font-weight: 700; padding: 2px 8px; border-radius: 99px; justify-self: end; }
.tag.paid { background: #e3f4e8; color: var(--ok); } .tag.pending { background: #fff1d6; color: var(--warn); }
.offer h2 { cursor: pointer; }
.countdown { display: inline-block; font-size: 14px; color: var(--ink-2); background: var(--bg); border-radius: 99px; padding: 4px 12px; margin-bottom: 6px; }
.countdown b { font-variant-numeric: tabular-nums; font-size: 16px; }
.countdown.urgent { background: #fde8e6; color: var(--bad); }

.deal { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; padding: 12px; background: var(--bg); border-radius: var(--radius); }
.deal b { font-size: 17px; } .pay { color: var(--ok); }
.offer-actions { display: grid; gap: 4px; margin-top: 12px; }
.offer-actions .btn.ghost { margin-top: 6px; color: var(--bad); border-color: #f0c9c5; }
.offer-actions.compact { margin-top: 4px; }

.detail .artwork { width: 100%; max-width: 280px; display: block; margin: 8px auto 16px; }
.facts { margin: 0 0 14px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border: 0; } .facts dt { color: var(--ink-2); } .facts dd { margin: 0; font-weight: 600; text-align: right; }
.next { margin-top: 16px; } .hint { color: var(--warn); font-size: 14px; text-align: center; margin: 8px 0 0; }
.proof { background: var(--paper); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.proof img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 8px; }
.done-note { margin-top: 16px; padding: 16px; border-radius: var(--radius); background: #e3f4e8; color: var(--ok); font-weight: 700; text-align: center; }
.done-note.warn { background: #fff1d6; color: var(--warn); }

.progress { display: flex; list-style: none; margin: 0 0 12px; padding: 0; }
.progress li { flex: 1; min-width: 0; display: grid; justify-items: center; gap: 4px; position: relative; font-size: 12px; color: var(--ink-2); }
.progress li + li::before { content: ''; position: absolute; top: 13px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.progress li.done::before, .progress li.now::before { background: var(--brand); }
.progress .dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.progress .done .dot { background: var(--brand); color: #fff; } .progress .now .dot { background: var(--accent); color: var(--ink); } .progress .now .lbl { color: var(--ink); font-weight: 700; }

.totals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .totals b { font-size: 20px; display: block; }
.status { font-weight: 600; margin-bottom: 8px; } .status.ok { background: #e3f4e8; color: var(--ok); } .status.off { background: #fff1d6; color: var(--warn); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.chip { background: var(--paper); border: 2px solid var(--line); font-size: 22px; min-height: 64px; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.other { display: grid; gap: 10px; margin: 8px 0; } .other label { display: grid; gap: 6px; font-weight: 600; }
.other input { min-height: 52px; font-size: 20px; padding: 0 12px; border-radius: var(--radius); border: 2px solid var(--line); }

.state { text-align: center; padding: 48px 16px; color: var(--ink-2); } .state .big { font-size: 56px; } .state h2 { color: var(--ink); }
.spinner { width: 36px; height: 36px; margin: 0 auto 12px; border: 4px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: calc(100% - 32px); max-width: 448px; padding: 14px 16px; border-radius: var(--radius); color: #fff; font-weight: 600; box-shadow: var(--shadow); z-index: 20; }
.toast.ok { background: var(--ok); } .toast.err { background: var(--bad); }
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 30; }
.sheet { background: var(--paper); width: 100%; max-width: 480px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ---- Trabajos cerca (components/nearby.js + shared/location.js) ---- */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--line); border-radius: var(--radius); margin: 0 0 12px; }
.seg a { min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; padding: 0 6px; }
.seg a.on { background: var(--paper); color: var(--brand); font-weight: 700; box-shadow: var(--shadow); }
.seg a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.loc { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 10px; display: grid; gap: 10px; }
.loc-state { display: flex; gap: 10px; align-items: flex-start; } .loc-ico { font-size: 22px; line-height: 1.2; }
.loc-txt { display: grid; gap: 2px; min-width: 0; flex: 1; } .loc-sub { color: var(--ink-2); font-size: 14px; }
.loc-live { background: #e3f4e8; color: var(--ok); font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.loc.granted { border-left: 4px solid var(--ok); } .loc.denied, .loc.unavailable { border-left: 4px solid var(--accent); }
.loc-note { margin: 0; color: var(--ink-2); font-size: 14px; }
.loc-btn { width: 100%; min-height: 48px; }
.from { margin: 0 0 4px; }
.nj-dist { margin: 0 0 6px; font-size: 14px; color: var(--ink-2); } .nj-dist .dist { font-size: 20px; color: var(--brand); font-variant-numeric: tabular-nums; }
.nj-note { margin: 18px 4px 0; font-size: 14px; }

/* ---- Alta de taller (components/alta.js): phone-first onboarding, one step per screen ---- */
.alta-link { margin: 0 0 12px; padding: 4px 14px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-height: 52px; }
.alta-link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.alta { padding-bottom: 8px; } .alta h1:focus { outline: none; }
.aprog { margin: 0 0 14px; } .abars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.abars i { height: 6px; border-radius: 3px; background: var(--line); } .abars i.done { background: var(--brand); } .abars i.now { background: var(--accent); }
.atitle { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); } .atitle b { color: var(--ink); }
.astep-intro { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.af { margin: 0 0 16px; display: grid; gap: 6px; }
.af label, .al { font-weight: 700; font-size: 15px; }
.ah { color: var(--ink-2); font-size: 14px; } .ah.center { text-align: center; margin-top: 6px; }
.ai { width: 100%; min-height: 52px; padding: 0 14px; font: inherit; font-size: 17px; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); }
select.ai { appearance: auto; }
.ai:focus-visible, .achip:focus-visible, .ag:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.af.bad .ai, .ag.bad { border-color: var(--bad); } .ag.bad { border: 2px solid var(--bad); border-radius: var(--radius); padding: 10px; }
.ae { color: var(--bad); font-size: 14px; font-weight: 600; }
.ag { display: grid; gap: 8px; } .ag:focus { outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.achip { min-height: 48px; padding: 0 16px; background: var(--paper); border: 2px solid var(--line); border-radius: 99px; font-size: 16px; font-weight: 600; color: var(--ink); }
.achip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.atime { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .atime .af { margin: 0 0 16px; min-width: 0; }
.alta-loc { margin: 4px 0 16px; }
.acheck { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; position: relative; min-height: 56px; padding: 12px; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.acheck input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.abox { width: 28px; height: 28px; border: 2px solid var(--ink-2); border-radius: 8px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--paper); }
.acheck.on { border-color: var(--brand); } .acheck.on .abox { background: var(--brand); border-color: var(--brand); }
.acheck.miss { border-color: var(--bad); }
.acheck:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.atxt { font-size: 16px; } .anote { margin-top: 4px; color: var(--warn); font-size: 14px; }
.aactions { margin-top: 20px; display: grid; gap: 6px; }
.alta-done { text-align: center; padding: 24px 4px 8px; } .alta-done .big { font-size: 56px; line-height: 1; } .alta-done h1 { margin: 10px 0 8px; } .alta-done h1:focus { outline: none; }
.alta-done > p { color: var(--ink-2); margin: 0 0 16px; }
.alta-badge { display: inline-block; padding: 4px 14px; border-radius: 99px; font-size: 14px; font-weight: 800; background: #fff1d6; color: var(--warn); } .alta-badge.ok { background: #e3f4e8; color: var(--ok); }
.anext { list-style: none; counter-reset: n; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; text-align: left; }
.anext li { counter-increment: n; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; }
.anext li::before { content: counter(n); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-weight: 800; color: var(--ink-2); }
.anext li.now::before { background: var(--accent); color: var(--ink); }
.anext li span { color: var(--ink-2); font-size: 14px; }
.alta-note { background: #fff1d6; color: var(--warn); border-radius: var(--radius); padding: 10px 14px; font-weight: 600; }

/* ---- Hand-over: carrier + tracking number (components/jobcard.js HandoverForm) ---- */
.ship-note { margin: 0 0 12px; padding: 12px 14px; background: #fff1d6; color: var(--warn); border-radius: var(--radius); font-weight: 600; font-size: 15px; }
.handover { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.handover .ah { margin: 0 0 12px; }
.handover .af:last-child { margin-bottom: 0; }
.handover select.ai, .handover .ai { min-width: 0; }
.done-track { color: var(--ok); font-weight: 600; margin-top: 6px; overflow-wrap: anywhere; }

/* ---- Sign-in (components/login.js), Cuenta tab, held jobs, links styled as buttons. New surfaces use 8 px corners. ---- */
a.btn { display: flex; align-items: center; justify-content: center; min-height: var(--tap); text-decoration: none; margin-top: 10px; }
a.btn.primary { color: var(--brand-ink); } a.btn.link { background: none; }
.lg-shell { padding-bottom: 24px; }
.lg { padding: calc(28px + env(safe-area-inset-top)) 20px 24px; text-align: center; }
.lg form { text-align: left; }
.lg-mark { display: block; margin: 0 auto 6px; } .lg-brand { margin: 0 0 22px; font-weight: 700; color: var(--brand); letter-spacing: .02em; }
.lg h1 { font-size: 24px; margin: 0 0 8px; } .lg h1:focus { outline: none; }
.lg-sub { margin: 0 0 18px; color: var(--ink-2); font-size: 16px; } .lg-sub b { color: var(--ink); }
.lg-big { font-size: 48px; line-height: 1; text-align: center; margin-bottom: 6px; } .lg form .lg-big + h1 { text-align: center; }
.lg .ai { border-radius: 8px; } .lg .btn { border-radius: 8px; margin-top: 10px; } .lg .btn.link { margin-top: 4px; }
.lg-phonerow { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: stretch; }
.lg-cc { display: grid; place-items: center; min-height: 52px; border: 2px solid var(--line); border-radius: 8px; background: var(--bg); font-weight: 700; font-size: 17px; color: var(--ink-2); }
.lg-code { text-align: center; font-size: 28px; letter-spacing: .4em; font-variant-numeric: tabular-nums; padding-left: .4em; }
.lg-err { margin: 4px 0 10px; padding: 10px 12px; background: #fde8e6; color: var(--bad); border-radius: 8px; font-weight: 600; font-size: 15px; }
.lg-alta { margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.lg-alta a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.acct h1 { margin-top: 4px; } .acct-card { display: grid; gap: 2px; margin-bottom: 14px; border-radius: 8px; } .acct-card b { font-size: 17px; margin-bottom: 8px; } .acct-card b:last-child { margin-bottom: 0; }
.acct .btn.ghost { border-radius: 8px; } .acct .alta-note { border-radius: 8px; } .acct code { background: var(--line); padding: 1px 6px; border-radius: 4px; }
.acct-foot { text-align: center; margin-top: 22px; } .acct-foot a { color: var(--brand); display: inline-flex; align-items: center; min-height: 44px; }
.noshop .btn { max-width: 320px; margin-left: auto; margin-right: auto; border-radius: 8px; }
.hold { margin-top: 16px; padding: 18px 16px; background: #fff1d6; border: 2px solid var(--accent); border-radius: 8px; text-align: center; color: var(--ink); }
.hold-ico { font-size: 40px; line-height: 1; } .hold h2 { margin: 6px 0 6px; font-size: 20px; color: var(--warn); }
.hold p { margin: 0 0 8px; font-size: 16px; } .hold p:last-child { margin-bottom: 0; } .hold-why { font-weight: 700; }
.meta.held { color: var(--warn); font-weight: 700; }
.alta-wa { margin: 0 0 8px; color: var(--ink); } .alta-zone { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; }
.earn-note { margin: 10px 2px 0; }

/* ---- Demo story polish: real photos, print file, cross-border pill, mobile fixes ---- */
.jhead { display: flex; gap: 12px; align-items: flex-start; margin: 2px 0 0; }
.jtxt, .rtxt { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.jtxt h2 { margin-top: 0; }
.jtxt .meta { margin: 2px 0 0; }
.thumb { flex: none; display: inline-block; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: #eef1ee; border: 1px solid var(--line); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--brand); font-weight: 800; font-size: 22px; }
.card.row .thumb { align-self: center; }
.card.row .rtxt .meta { margin-top: 2px; }
.xb-pill { display: inline-block; margin-top: 6px; padding: 2px 12px; border-radius: 99px; background: #e4edfb; color: #17408f; font-size: 14px; font-weight: 700; line-height: 22px; white-space: nowrap; }
.xb-card { margin: 0 0 12px; padding: 12px 14px; background: var(--paper); border-radius: 8px; border-left: 4px solid #17408f; box-shadow: var(--shadow); }
.xb-card .xb-pill { margin-top: 0; }
.xb-card p { margin: 8px 0 0; font-size: 15px; }
.jphoto { margin: 4px 0 16px; }
.jphoto img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: var(--radius); background: #eef1ee; }
.pf { margin: 0 0 4px; }
.pf .sect { margin: 6px 0 8px; }
.pf-tile { display: grid; place-items: center; min-height: 140px; padding: 14px; border-radius: var(--radius); background: #1b1d21; background-image: linear-gradient(45deg, #25282d 25%, transparent 25%, transparent 75%, #25282d 75%), linear-gradient(45deg, #25282d 25%, transparent 25%, transparent 75%, #25282d 75%); background-size: 20px 20px; background-position: 0 0, 10px 10px; }
.pf-tile img { display: block; max-width: 100%; max-height: 220px; object-fit: contain; }
.pf-miss { color: #cfd3d8; font-size: 14px; text-align: center; }
.pf-name { margin: 8px 2px 0; color: var(--ink-2); font-size: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.detail > .btn.ghost { margin-bottom: 4px; }
.facts dd { min-width: 0; overflow-wrap: anywhere; }
.facts dt { flex: none; }
.card.row { overflow-wrap: anywhere; }
.alta-link { overflow-wrap: anywhere; }
/* catalog v2: a product printed on several areas (job card: the list, the confirm-each-area step) */
.areas { margin: 0 0 12px; } .areas .sect { margin: 6px 0 8px; }
.alist { list-style: none; margin: 0 0 8px; padding: 0; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.alist li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.alist li:last-child { border: 0; } .alist li span { flex: none; color: var(--ink-2); font-weight: 600; }
.area-check { display: grid; gap: 10px; margin: 0 0 12px; } .area-check h2 { margin: 0; font-size: 18px; } .area-check .ah { margin: 0; }
.amethod { display: block; margin-top: 2px; color: var(--ink-2); font-size: 14px; }
