:root { --fg:#1a1d21; --muted:#5c6670; --bg:#f6f7f9; --card:#fff; --line:#dde1e6; --primary:#0b63ce; --ok:#137333; --warn:#9a5b00; --bad:#b3261e; }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif; color:var(--fg); background:var(--bg); }
main { max-width: 640px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.4rem; margin: .5rem 0 1rem; } h2 { font-size: 1.1rem; margin: .25rem 0 .5rem; }
a { color: var(--primary); }
nav.top { display:flex; gap:12px; align-items:center; padding:10px 16px; background:#fff; border-bottom:1px solid var(--line); overflow-x:auto; white-space:nowrap; }
nav.top .brand { font-weight:700; color:var(--fg); text-decoration:none; margin-right:auto; }
.devbar { background:#5b2a86; color:#fff; font-weight:700; font-size:.85rem; text-align:center; padding:6px 16px; letter-spacing:.02em; }
.banner { padding:8px 16px; font-size:.9rem; } .banner.trial { background:#eef4ff; } .banner.expired { background:#fdecea; color:var(--bad); } .banner.test { background:#fff4e0; }
.pill { display:inline-block; padding:1px 8px; border-radius:999px; background:#e8eaed; font-size:.8rem; }
.pill.test { background:#fff4e0; color:var(--warn); font-weight:600; } .pill.completed { background:#e6f4ea; color:var(--ok); }
.card { display:block; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:12px; margin:0 0 10px; color:inherit; text-decoration:none; }
.card.job { display:flex; flex-direction:column; } .card.job.completed { border-left:4px solid var(--ok); } .card.highlight { border-color:var(--primary); }
.muted { color:var(--muted); font-size:.9rem; }
.stack { display:flex; flex-direction:column; gap:12px; }
label { display:flex; flex-direction:column; gap:4px; font-weight:500; }
label.check { flex-direction:row; align-items:flex-start; gap:8px; font-weight:400; }
input, select, textarea { font:inherit; padding:10px; border:1px solid var(--line); border-radius:8px; background:#fff; width:100%; }
input[type=checkbox] { width:auto; margin-top:4px; }
fieldset { border:1px solid var(--line); border-radius:8px; padding:8px 12px; display:flex; flex-direction:column; gap:8px; }
button, .btn { font:inherit; display:inline-block; padding:10px 14px; border-radius:8px; border:1px solid var(--line); background:#fff; color:var(--fg); text-decoration:none; cursor:pointer; text-align:center; min-height:44px; }
.primary { background:var(--primary); color:#fff; border-color:var(--primary); }
.block { display:block; width:100%; margin:8px 0; } .big { font-size:1.15rem; padding:16px; }
button.link { background:none; border:none; color:var(--primary); padding:0; min-height:0; text-decoration:underline; }
.row { display:flex; gap:8px; align-items:center; } .row.wrap { flex-wrap:wrap; } .between { justify-content:space-between; }
.inline { display:inline; }
.flash { padding:10px 12px; border-radius:8px; } .flash.error { background:#fdecea; color:var(--bad); } .flash.ok { background:#e6f4ea; color:var(--ok); } .flash.info { background:#eef4ff; }
.testmode-box { border:2px dashed var(--warn); background:#fff8eb; padding:12px; border-radius:10px; margin:0 0 12px; }
.checklist { list-style:none; padding:0; } .checklist li { padding:10px 0; border-bottom:1px solid var(--line); } .checklist li.done { color:var(--ok); }
table.items { width:100%; border-collapse:collapse; margin:8px 0; } table.items td, table.items th { padding:8px 4px; border-bottom:1px solid var(--line); text-align:left; } .num { text-align:right !important; white-space:nowrap; }
dl.money { display:grid; grid-template-columns:1fr auto; gap:4px 12px; } dl.money dd { margin:0; text-align:right; }
canvas#sig { width:100%; height:160px; border:1px solid var(--line); border-radius:8px; background:#fff; touch-action:none; }
.photos { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; } .photos img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:6px; }
header.shop { padding-bottom:8px; border-bottom:1px solid var(--line); margin-bottom:8px; }
input.copy { font-family:ui-monospace,monospace; font-size:.85rem; }
ul.plain { padding-left:18px; }

/* Mobile usability fixes: everything reachable without sideways scrolling,
   and every tap target at least 44px. */
nav.top { flex-wrap: wrap; overflow-x: visible; white-space: normal; row-gap: 0; padding: 4px 16px; }
nav.top a, nav.top button.link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 2px; }
main > a:first-child { display: inline-flex; align-items: center; min-height: 44px; }
.btn, button { min-width: 44px; }
button.link { min-height: 44px; padding: 10px 0; }
input[type=checkbox] { width: 24px; height: 24px; flex: none; }
label.check { min-height: 44px; align-items: center; }
input, select { min-height: 44px; }
a[href^="tel:"] { white-space: nowrap; }
main > p > a:only-child { display: inline-flex; align-items: center; min-height: 44px; }
/* Technician progress */
.pill.on_my_way { background:#e8f0fe; color:#1a4fb4; } .pill.arrived { background:#fff4e0; color:var(--warn); }
.card.job.on_my_way { border-left:4px solid #1a73e8; } .card.job.arrived { border-left:4px solid var(--warn); }
.card.job.just-updated { box-shadow: 0 0 0 3px #fbbc04; }
dl.timeline { display:grid; grid-template-columns:auto 1fr; gap:2px 12px; font-size:.9rem; color:var(--muted); margin:0 0 12px; } dl.timeline dd { margin:0; }
/* Good / Better / Best */
fieldset.option { gap:10px; } .section h3 { margin:6px 0 4px; font-size:1rem; }
/* Phone: item name on its own full-width line, qty + rate below. Wider: one line. */
.item-row { display:grid; grid-template-columns: 1fr 1fr; gap:6px; margin-bottom:10px; padding-bottom:10px; border-bottom:1px dashed var(--line); }
.item-row label.mini { font-size:.78rem; font-weight:500; color:var(--muted); gap:2px; }
.item-row label.mini:first-child { grid-column: 1 / -1; }
@media (min-width: 600px) {
  .item-row { grid-template-columns: 1fr 80px 120px; padding-bottom:0; border-bottom:0; }
  .item-row label.mini:first-child { grid-column: auto; }
}
label.starter { flex:1; min-width:0; font-weight:400; font-size:.85rem; }
/* On phones each picker gets its own full-width line instead of two squeezed selects. */
@media (max-width: 600px) { label.starter { flex: 1 1 100%; } label.starter select { width: 100%; } }
/* Price-book search (quote and invoice editors): results open below the box, in the page flow,
   so nothing floats over the fixed bottom bar; every row and star is a 44px touch target. */
.book-results { margin:6px 0 4px; border:1px solid var(--line); border-radius:8px; background:#fff; max-height:320px; overflow-y:auto; }
.book-item { display:flex; align-items:stretch; border-bottom:1px solid var(--line); }
.book-item:last-child { border-bottom:0; }
.book-pick { flex:1; min-width:0; text-align:left; border:0; border-radius:0; background:none; overflow-wrap:anywhere; }
.book-fav { flex:none; border:0; border-radius:0; background:none; color:var(--warn); font-size:1.2rem; padding:6px 10px; }
.book-head, .book-none { margin:0; padding:6px 10px; font-size:.78rem; color:var(--muted); background:var(--bg); }
.draft-restored { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; }
/* Share buttons in the "Customer link" card: recipient first; long names and addresses wrap. */
.share { display:grid; gap:8px; margin-top:12px; }
.share-to { margin:0; overflow-wrap:anywhere; }
.share-btn[aria-disabled="true"] { opacity:.6; pointer-events:none; }
.option-card { padding:0; overflow:hidden; } .option-body { padding:0 12px 4px; }
.option-head { display:flex; flex-direction:row; align-items:center; gap:10px; padding:12px; min-height:52px; background:#f1f4f8; font-weight:600; cursor:pointer; }
.option-head .num { margin-left:auto; } .option-head input[type=radio] { width:24px; height:24px; min-height:0; flex:none; }
.option-card.selected { border-color:var(--primary); box-shadow:0 0 0 2px var(--primary); }
.option-card h4 { margin:10px 0 0; font-size:.95rem; } .option-card .total { border-top:1px solid var(--line); padding-top:8px; }
p.row.between { margin:6px 0; }

/* DoneBoss shell: top bar, bottom tabs, language switch */
body.has-tabs { padding-bottom: 72px; }
nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
nav.tabs a { display: flex; align-items: center; justify-content: center; min-height: 56px; font-size: .82rem; font-weight: 600; color: var(--muted); text-decoration: none; text-align: center; padding: 0 2px; }
nav.tabs a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 3px 0 var(--primary); }
@media (min-width: 900px) { nav.tabs { position: static; max-width: 640px; margin: 0 auto; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; } body.has-tabs { padding-bottom: 0; } }
nav.top .bell { position: relative; font-size: 1.2rem; text-decoration: none; margin-left: auto; }
nav.top .brand { margin-right: 0; }
.bell .badge { position: absolute; top: 4px; right: -4px; background: var(--bad); color: #fff; border-radius: 999px; font-size: .7rem; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
nav.lang { display: flex; gap: 8px; justify-content: flex-end; align-items: center; max-width: 640px; margin: 0 auto; padding: 4px 16px; font-size: .9rem; }
nav.lang a, nav.lang button.link, nav.lang strong { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; }
header.brandhead { display: flex; flex-direction: column; margin: 8px 0 4px; } header.brandhead strong { font-size: 1.6rem; } header.brandhead span { color: var(--muted); }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
ul.today li { padding: 2px 0; } a.today-item { display: flex; flex-direction: column; min-height: 44px; justify-content: center; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
nav.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; } nav.filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--fg); background: #fff; }
nav.filters a[aria-current="page"] { background: var(--primary); color: #fff; border-color: var(--primary); }
ul.menu { list-style: none; padding: 0; } ul.menu li a { display: flex; align-items: center; min-height: 52px; padding: 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; text-decoration: none; color: var(--fg); font-weight: 500; }
ul.notifications { list-style: none; padding: 0; } ul.notifications li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); } ul.notifications li.unread a, ul.notifications li.unread { font-weight: 600; }
ul.notifications li a { display: inline-flex; min-height: 44px; align-items: center; }
.table-wrap { overflow-x: auto; } tr.duplicate td, tr.invalid td { color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
img.logo { max-height: 48px; max-width: 160px; display: block; margin-bottom: 4px; }
.prewrap { white-space: pre-wrap; } dd.bad { color: var(--bad); }
.pill.overdue { background: #fdecea; color: var(--bad); } .pill.paid { background: #e6f4ea; color: var(--ok); } .pill.cancelled { background: #eee; }
.card.job.cancelled { opacity: .6; } li.unread a { font-weight: 600; }
label.share-location { font-size: .9rem; }
.price-item input[name=name] { flex: 2; } .price-item input[name=rate] { width: 100px; }

/* "See all" links at the end of a card: full-size tap target on phones. */
a.more-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }

/* Draft comparison table: scrolls sideways inside its box on phones, never the page. */
.table-scroll { overflow-x: auto; max-width: 100%; }
table.compare { border-collapse: collapse; min-width: 640px; }
table.compare th, table.compare td { border-bottom: 1px solid #e3e6ee; padding: 8px; text-align: left; vertical-align: top; }
.pill.yes { background: #e3f6e8; } .pill.partial { background: #fff4d6; } .pill.no { background: #fde4e4; } .pill.verify { background: #eceff5; }

/* Shop branding in the owner top bar (branding rule: the shop's own name and logo only). */
nav.top .brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
nav.top .brand .logo-mini { height: 28px; width: auto; max-width: 96px; object-fit: contain; }
nav.top .brand { flex: 1 1 auto; min-width: 0; }
nav.top .brand .shop-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
nav.top { flex-wrap: nowrap; }
nav.top .brand { justify-content: flex-start; }

/* =====================================================================
   Design v3 (DoneBoss_Screens_v3): blue header, yellow primary actions,
   rounded white cards, icon tab bar. Overrides the earlier rules above.
   No phone status bar is drawn: the OS provides it.
   ===================================================================== */
:root { --fg:#0f1b3d; --muted:#5b6782; --bg:#f2f5fb; --line:#dfe5f0; --primary:#1557e6; --primary-2:#0d3fb8; --navy:#0a1a4f; --accent:#ffc21a; --accent-2:#f2b300; --ok:#14804a; --bad:#c62828; --warn:#a15c00; --radius:14px; }
body { background: var(--bg); color: var(--fg); font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
h1 { font-size: 1.5rem; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
h2 { font-size: 1.05rem; font-weight: 700; }
.card { border-radius: var(--radius); border-color: var(--line); box-shadow: 0 1px 2px rgba(10,26,79,.04); padding: 14px; }
input, select, textarea { border-radius: 12px; border-color: var(--line); padding: 12px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
label { font-size: .9rem; font-weight: 600; color: var(--fg); }
button, .btn { border-radius: 12px; font-weight: 700; border-color: #c9d2e3; color: var(--navy); }
.primary, button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.primary:hover { background: var(--accent-2); }
button:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: #fff; border: 2px solid var(--navy); color: var(--navy); }
.btn.ghost-light { background: transparent; border: 2px solid #fff; color: #fff; }
a { color: var(--primary); }

/* Top bar: shop avatar + shop name + bell (white on blue) */
nav.top { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%); border-bottom: 0; color: #fff; padding: 6px 16px; gap: 10px; }
nav.top a, nav.top button.link { color: #fff; }
nav.top .brand { color: #fff; font-weight: 700; text-decoration: none; }
.avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--navy); font-weight: 800; font-size: .8rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
nav.top .bell { width: 40px; height: 40px; min-width: 44px; border-radius: 999px; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; }
nav.top .bell svg { width: 20px; height: 20px; }
nav.top .logout { font-size: .85rem; opacity: .9; }
nav.top .back { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.bell .badge { background: #e53935; border: 2px solid var(--primary); }

/* Banners */
.banner { font-size: .85rem; } .banner.trial { background: #fff7d6; color: #5a4300; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.banner.trial a { font-weight: 700; color: var(--primary); white-space: nowrap; }
.banner.trial .pill.test { display: none; }
.banner.expired { background: #fdecea; }

/* Bottom tabs with icons */
nav.tabs { box-shadow: 0 -2px 10px rgba(10,26,79,.06); }
nav.tabs a { flex-direction: column; gap: 2px; font-size: .72rem; color: var(--muted); font-weight: 600; min-height: 60px; }
nav.tabs a svg { width: 22px; height: 22px; }
nav.tabs a[aria-current="page"] { color: var(--primary); box-shadow: none; }

/* Greeting + stat tiles */
.greet { margin: 4px 0 12px; } .greet .date { color: var(--muted); font-size: .85rem; margin: 0; } .greet h1 { margin: 2px 0 0; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; text-decoration: none; color: inherit; min-width: 0; }
.tile .k { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.tile .v { display: block; font-size: 1.35rem; font-weight: 800; margin-top: 2px; color: var(--primary); }
.tile .note { display: block; font-size: .72rem; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.pill.review { background: #fff4e0; color: var(--warn); }
.tile.wide { grid-column: 1 / -1; }
.tile .v.money-due { color: var(--bad); } .tile .v.money-in { color: var(--ok); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 6px; } .section-head h2 { margin: 0; }
.section-head a { font-weight: 700; font-size: .85rem; display: inline-flex; min-height: 44px; align-items: center; }

/* Job cards */
.card.job { gap: 2px; border-left-width: 1px; }
.card.job .when { color: var(--primary); font-weight: 700; font-size: .85rem; }
.card.job .who { font-weight: 700; }
.card.job .what { color: var(--muted); font-size: .85rem; }
.status-pill, .pill.scheduled { background: #e5edff; color: var(--primary); font-weight: 700; }
.job-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }

/* Setup checklist (Today) */
.progress { height: 6px; background: #e3e8f2; border-radius: 99px; overflow: hidden; } .progress > span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.setup-card { display: flex; flex-direction: column; gap: 10px; }
.setup-card .head { display: flex; gap: 12px; align-items: flex-start; }
.icon-box { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #e8efff; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.icon-box svg { width: 22px; height: 22px; }
.setup-card.done { opacity: .7; } .setup-card.done .icon-box { background: #e3f6ea; color: var(--ok); }

/* Segmented tabs (Jobs: Today / Upcoming / Done) */
nav.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #e7ecf5; border-radius: 12px; padding: 4px; gap: 4px; margin: 0 0 12px; }
nav.segmented a { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .9rem; text-align: center; padding: 0 4px; }
nav.segmented a[aria-current="page"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(10,26,79,.12); }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .title-row h1 { margin: 6px 0 12px; }
.fab { width: 44px; height: 44px; border-radius: 999px; background: var(--accent); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1.6rem; font-weight: 700; border: 0; flex: none; }

/* Chips, switches, radio cards */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--navy); }
.chip.on, .chip.selected { background: var(--accent); border-color: var(--accent); }
.chip button.x { min-height: 32px; min-width: 32px; padding: 0; border: 0; background: transparent; font-size: 1rem; line-height: 1; }
label.chip { flex-direction: row; } label.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.chip:has(input:checked) { background: #fff3c4; border-color: var(--accent-2); }
.radio-card { display: flex; flex-direction: row; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); margin: 0 0 8px; font-weight: 700; cursor: pointer; }
.radio-card small { display: block; font-weight: 500; color: var(--muted); }
.radio-card input { width: 22px; height: 22px; flex: none; }
.radio-card:has(input:checked) { border-color: var(--accent-2); background: #fff8dc; box-shadow: 0 0 0 1px var(--accent-2); }
.switch { position: relative; flex: none; width: 48px; height: 28px; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; min-height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #cfd7e6; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 99px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + span { background: var(--primary); } .switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Setup steps */
.steps { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 6px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.step-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 14px; } .step-bar span { height: 5px; border-radius: 99px; background: #dfe5f0; } .step-bar span.on { background: var(--primary); }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 18%); padding: 16px 0 8px; display: flex; flex-direction: column; gap: 4px; }
.sticky-actions .link { text-align: center; }
.svc-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 8px; }
.svc-row .name { font-weight: 700; font-size: .9rem; overflow-wrap: anywhere; }
.svc-row .price { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.svc-row .price input { width: 110px; min-height: 40px; padding: 8px; }
.svc-row .price label.ask { flex-direction: row; align-items: center; gap: 6px; font-weight: 600; font-size: .8rem; color: #6b4e00; background: #fff6d6; border-radius: 99px; padding: 4px 10px; min-height: 36px; }
.svc-row .price label.ask input { width: 18px; height: 18px; min-height: 0; margin: 0; }
.group-head { color: var(--primary); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin: 14px 0 6px; }
.check-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.check-list label { flex-direction: row; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.check-list label:last-child { border-bottom: 0; }
.check-list label[hidden] { display: none; }
.search { position: relative; } .search input { padding-left: 40px; } .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.count-line { text-align: center; color: var(--muted); font-size: .85rem; font-weight: 600; margin: 4px 0; }

/* Welcome / auth pages: DoneBoss brand ONLY here (Welcome, Create account, Login) */
body.auth { background: linear-gradient(180deg, var(--primary) 0%, var(--primary-2) 100%); color: #fff; min-height: 100vh; }
body.auth main { padding-top: 8px; }
body.auth h1, body.auth h2, body.auth label { color: #fff; }
body.auth .muted { color: rgba(255,255,255,.85); }
body.auth a { color: var(--accent); }
body.auth nav.lang { justify-content: flex-end; }
body.auth .devbar { background: rgba(0,0,0,.25); }
.lang-pill { display: inline-flex; background: rgba(255,255,255,.18); border-radius: 99px; padding: 3px; }
.auth-logo { display: flex; justify-content: center; margin: 8px 0 4px; min-height: 40px; }
.auth-logo img { max-width: 260px; width: 72%; height: auto; }
.auth-logo .wordmark-fallback { font-size: 2.1rem; font-weight: 900; letter-spacing: -.02em; color: #fff; }
.tagline { text-align: center; font-weight: 800; font-size: 1.15rem; margin: 8px 0 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.feature-grid div { background: rgba(10,26,79,.35); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 10px; min-width: 0; }
.feature-grid strong { display: block; font-size: .95rem; } .feature-grid span { font-size: .8rem; opacity: .9; overflow-wrap: anywhere; }
.trial-note { text-align: center; color: var(--accent); font-weight: 800; font-size: .9rem; margin: 6px 0; }
.trial-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--navy); border-radius: 99px; padding: 4px 12px; font-weight: 800; font-size: .8rem; }
.social { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .social button { background: #fff; color: var(--navy); border: 0; }
.or-line { text-align: center; font-size: .8rem; opacity: .85; margin: 6px 0; }
.pw { position: relative; } .pw input { padding-right: 72px; } .pw button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 10px; border: 0; background: transparent; color: var(--primary); font-size: .8rem; }
.fineprint { font-size: .75rem; text-align: center; opacity: .85; }

/* Empty states */
.empty { text-align: center; padding: 36px 12px; }
.empty .icon-box { width: 72px; height: 72px; border-radius: 20px; margin-bottom: 12px; } .empty .icon-box svg { width: 34px; height: 34px; }
.empty h2 { font-size: 1.25rem; margin: 0 0 6px; } .empty p { color: var(--muted); margin: 0 0 16px; }

/* Lists with avatars (customers) */
.list-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; text-decoration: none; color: inherit; }
.list-row .avatar { width: 40px; height: 40px; border-radius: 999px; background: #e7eeff; color: var(--primary); }
.list-row .main { flex: 1; min-width: 0; } .list-row .main strong { display: block; } .list-row .main span { color: var(--muted); font-size: .85rem; }
.list-row .chev { color: #9aa6bf; }

/* Money: invoice rows */
.inv-row { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.inv-row .amt { font-weight: 800; text-align: right; white-space: nowrap; }
.pill.partly { background: #fff3c4; color: #6b4e00; } .pill.sent { background: #e5edff; color: var(--primary); } .pill.draft { background: #eceff5; }

/* Plan cards */
.plan-card { display: flex; gap: 12px; align-items: flex-start; }
.plan-card .price { margin-left: auto; font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.plan-card .price small { font-size: .75rem; color: var(--muted); font-weight: 600; }

/* Schedule */
.day-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; }
.day-picker a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; text-decoration: none; color: var(--fg); font-size: .75rem; font-weight: 600; background: #fff; border: 1px solid var(--line); }
.day-picker a b { font-size: 1.1rem; } .day-picker a[aria-current="date"] { background: var(--primary); color: #fff; border-color: var(--primary); }
/* Week view: one column per technician, each job a card (whole card is the link). */
.sched { display: grid; gap: 14px; }
.sched-col { min-width: 0; }
.sched-col h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .85rem; color: var(--fg); margin: 0 0 8px; padding: 0 2px; }
.sched-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sched-count { flex: none; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: #e5edff; color: var(--primary); font-size: .75rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.sched-item { display: flex; flex-direction: column; gap: 3px; min-height: 44px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 12px; padding: 10px 12px; margin: 0 0 8px; color: var(--fg); text-decoration: none; box-shadow: 0 1px 2px rgba(15, 27, 61, .06); transition: box-shadow .15s, border-color .15s; }
.sched-item:hover { box-shadow: 0 4px 12px rgba(15, 27, 61, .12); border-color: #c8d3ea; border-left-color: var(--primary); }
.sched-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sched-item.on_my_way, .sched-item.arrived { border-left-color: var(--accent-2); }
.sched-item.completed { border-left-color: var(--ok); }
.sched-item .job-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.sched-item time { color: var(--primary); font-weight: 800; font-size: .85rem; }
.sched-item .pill { font-size: .7rem; }
.sched-item b { font-size: .95rem; line-height: 1.25; overflow-wrap: anywhere; }
.sched-what { color: var(--muted); font-size: .82rem; line-height: 1.3; overflow-wrap: anywhere; }
.sched-free { margin: 0; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .82rem; text-align: center; }
@media (min-width: 480px) { .sched { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }

/* Technician */
.shift { display: flex; align-items: center; gap: 12px; background: #fff7d6; border: 1px solid #f2d27a; border-radius: var(--radius); padding: 12px 14px; margin: 0 0 14px; }
.shift .txt { flex: 1; min-width: 0; } .shift strong { display: block; } .shift span { font-size: .8rem; color: #6b4e00; }
.big-actions { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.big-actions button, .big-actions a.btn { min-height: 56px; font-size: 1.05rem; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
.big-actions .done-step { background: #fff; border: 2px solid #c9d2e3; color: var(--muted); }
.consent { text-align: center; }
.consent ul { list-style: none; padding: 0; text-align: left; } .consent li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-weight: 600; }
.consent li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 99px; background: #e3f6ea; color: var(--ok); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.info-row { display: flex; align-items: center; gap: 10px; min-height: 44px; } .info-row .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; } .info-row a.act { font-weight: 700; }

/* Customer pages (shop branding only) */
.pay-bar { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 20%); padding: 14px 0 10px; }
.pay-bar button, .pay-bar .btn { width: 100%; min-height: 54px; font-size: 1.05rem; }
.sig-box { border: 2px dashed #b8c3da; border-radius: var(--radius); background: #fff; }

/* Keep long Spanish text inside the screen at 360px */
.card, .tile, .chip, .radio-card, button, .btn { overflow-wrap: anywhere; }
@media (max-width: 380px) { main { padding: 12px; } .tile .v { font-size: 1.15rem; } nav.tabs a { font-size: .66rem; } }
[hidden] { display: none !important; }
.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; }
.svc-row .price input { flex: 1 1 120px; width: auto; min-width: 0; }
.svc-row .price label.ask { white-space: nowrap; }
.svc-row.custom .name input { min-height: 44px; padding: 8px; }
.feature-grid span { line-height: 1.35; display: block; margin-top: 2px; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.center { text-align: center; }
.step-bar.three { grid-template-columns: repeat(3, 1fr); }
.section-head a { gap: 4px; text-align: right; } .section-head a svg { width: 18px; height: 18px; flex: none; }
.section-head h2 { min-width: 0; }
svg.i { flex: none; }
.btn svg.i, button svg.i { width: 20px; height: 20px; vertical-align: middle; }
:where(svg.i) { width: 20px; height: 20px; }
.list-row .chev { width: 18px; height: 18px; }
.menu-list { padding: 0; } .menu-list .list-row { border-bottom: 1px solid var(--line); } .menu-list .list-row:last-child { border-bottom: 0; }
.shop-card .avatar { width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: var(--navy); }
.list-row .main span { overflow-wrap: anywhere; }
.logout-btn { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--bad); }
header.shop { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; margin: -16px -16px 16px; padding: 14px 16px; flex-wrap: wrap; }
header.shop a { color: #fff; } header.shop .logo { max-height: 40px; background: #fff; border-radius: 8px; padding: 2px; }
.option-card:has(input:checked) { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2); }
canvas.sig-box { width: 100%; height: auto; touch-action: none; }
@media (max-width: 380px) { header.shop { margin: -12px -12px 12px; } }
/* 44px tap targets on phones */
.switch { width: 52px; height: 44px; }
.switch span { inset: 8px 2px; }
.svc-row .price input, input, select { min-height: 44px; }
.svc-row .price label.ask { min-height: 44px; }
.pw button { min-height: 44px; min-width: 44px; }
nav.segmented a { min-height: 44px; }
.banner.trial a, header.shop a { display: inline-flex; align-items: center; min-height: 44px; }
input[type=checkbox], input[type=radio] { min-height: 0; }
.icon-box.big { width: 72px; height: 72px; border-radius: 20px; margin: 8px auto 12px; display: flex; } .icon-box.big svg { width: 34px; height: 34px; }
.shift.on { background: #e3f6ea; border-color: #9ad5b2; } .shift.on span { color: #0d5c33; }
.shift .btn { white-space: nowrap; }
.info-row { margin: 0 0 6px; } .info-row .icon-box { width: 36px; height: 36px; }
p.small, .muted.small { font-size: .8rem; }
.plan-card { align-items: flex-start; }
.plan-card .plan-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.plan-card .plan-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.plan-card .plan-head strong { font-size: 1.15rem; }
.plan-card .price { margin: 0; }
.launch-offer { background: #fff3c4; border: 1px solid #f2d27a; color: #5a4300; border-radius: 12px; padding: 12px; font-weight: 700; }
.muted.strong { font-weight: 700; }
.auth-logo img { max-width: 280px; width: 78%; height: auto; border-radius: 14px; }
.section-head a { min-width: 48px; justify-content: flex-end; padding-left: 6px; }
.sticky-actions a.link { display: flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 700; }
/* Plan screen: billing status card */
.billing-status .row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.billing-status h2 { margin: 0; }
/* Consent checkbox: the whole label is the tap target. */
label.check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 10px 0; font-weight: 600; cursor: pointer; }
label.check input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.plan-card .per-month { display: block; color: #0f7a3a; font-weight: 700; }
.plan-card .users { display: block; color: var(--navy); font-weight: 700; margin-top: 4px; }
nav.segmented.billing-interval a { min-height: 44px; }
nav.segmented.billing-interval .save { background: var(--accent-2, #ffc21a); color: #1a1a1a; border-radius: 99px; padding: 1px 8px; font-size: .75rem; margin-left: 6px; }

/* v6 onboarding */
.step-bar.seven { grid-template-columns: repeat(7, 1fr); }
.step-bar.four { grid-template-columns: repeat(4, 1fr); flex: 1; margin: 0; }
.progress-line { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.trade-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding-right: 10px; }
.trade-row:last-child { border-bottom: 0; }
.trade-row[hidden] { display: none; }
.check-list .trade-row label { border-bottom: 0; }
.trade-row label.t { flex: 1; min-width: 0; }
.trade-row label.main { flex-direction: row; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.trade-row label.main input { width: 20px; height: 20px; min-height: 0; margin: 0; }
.trade-row label.main:has(input:disabled) { opacity: .4; }
.slides { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.slides .slide { flex: 0 0 100%; scroll-snap-align: start; text-align: center; min-height: 220px; }
.demo-banner, .demo-strip { display: flex; align-items: center; gap: 10px; background: #fff3c4; border: 1px solid #f3d36b; border-radius: 12px; padding: 10px 12px; font-weight: 600; color: #5c4300; }
.demo-strip a { flex: 1; color: inherit; }
.demo-tag { background: var(--navy); color: #ffc61a; font-weight: 800; font-size: .75rem; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; flex: none; }
.list-card { padding: 0; }
.check-item { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.check-item:last-child { border-bottom: 0; }
.check-item.done strong { text-decoration: line-through; color: var(--muted); }
.notify-samples li { align-items: center; gap: 12px; }
.demo-line .grow { flex: 1 1 160px; }
/* Onboarding and Home chips are tap targets: 44 px. */
body.setup .chip, .finish .chip { min-height: 44px; }
body.setup .chip button.x { min-height: 44px; min-width: 44px; }

/* Public demo: label + "Start free trial", always visible */
.demo-bar { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 16px; background: #fff3c4; border-bottom: 1px solid #f3d36b; color: #5c4300; font-weight: 600; font-size: .85rem; }
.demo-bar .demo-text { flex: 1 1 180px; min-width: 0; }
.demo-bar .demo-cta { min-height: 44px; white-space: nowrap; }

/* ===== Tablet and desktop (v6 web check). Phones (< 768 px) keep the layout above. =====
   Owner and staff screens: the bottom tabs become a left side navigation, content widens
   and stays centered. Customer pages (quote, invoice, booking, portal) and sign-in/setup
   screens: a centered document column, never a stretched phone screen. */
@media (min-width: 768px) {
  body.has-tabs { padding-bottom: 0; padding-left: 184px; }
  nav.tabs { position: fixed; top: 0; bottom: 0; left: 0; right: auto; width: 184px; max-width: none; margin: 0; z-index: 20;
    display: flex; flex-direction: column; grid-template-columns: none; gap: 4px; padding: 16px 10px;
    border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; background: #fff; }
  nav.tabs a { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 48px; padding: 0 12px; font-size: .95rem; border-radius: 10px; }
  nav.tabs a svg { width: 20px; height: 20px; flex: none; }
  nav.tabs a[aria-current="page"] { background: #eef3ff; color: var(--primary); }
  body.has-tabs main { max-width: 860px; padding: 24px 32px; }
  body.has-tabs nav.top, body.has-tabs .banner { padding-left: 32px; padding-right: 32px; }
  body:not(.has-tabs) main { max-width: 760px; padding: 24px 32px; }
  .demo-bar { padding-left: 32px; padding-right: 32px; }
  .sched { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .slides .slide { flex-basis: calc((100% - 24px) / 3); }
  .item-row { grid-template-columns: minmax(0, 1fr) 90px 130px; }
  table.items td, table.items th { padding: 10px 8px; }
}
@media (min-width: 1280px) {
  body.has-tabs { padding-left: 232px; }
  nav.tabs { width: 232px; padding: 20px 14px; }
  body.has-tabs main { max-width: 1080px; padding: 32px 48px; }
  body.has-tabs nav.top, body.has-tabs .banner { padding-left: 48px; padding-right: 48px; }
  body:not(.has-tabs) main { max-width: 820px; }
  /* Wider lists: two columns where a list is a set of cards. */
  ul.plain.today, .tiles { gap: 12px; }
}

/* Today / week job rows: one line per field, no list bullets (all widths). */
ul.plain.today { list-style: none; padding-left: 0; margin: 0; }
.card.jobrow { display: flex; flex-direction: column; gap: 2px; }
.card.jobrow .job-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card.jobrow .who { display: block; font-weight: 700; }
.card.jobrow .what { display: block; color: var(--muted); font-size: .85rem; }
/* Money tiles: amounts never break in the middle on phones. */
.tile .v { white-space: nowrap; }
@media (max-width: 420px) { .tile .v { font-size: 1.12rem; } }
/* Feature 2: the customer screen */
.customer-name, .customer-head .address, .docs li { overflow-wrap: anywhere; }
.customer-head .btn.call { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 6px 0; }
.job-group { border-top: 1px solid var(--line); padding: 8px 0; } .job-group:first-of-type { border-top: 0; }
.job-group .docs li.doc.quote, .job-group .docs li.doc.invoice { padding-left: 12px; }
.docs li { padding: 6px 0; line-height: 1.4; }
details.card > summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; }
details.card > summary h2 { margin: 0; } details.card > summary::after { content: '▸'; margin-left: auto; } details.card[open] > summary::after { content: '▾'; }
#address-selector select { max-width: 100%; }
.customer-head .row.between { align-items: flex-start; gap: 8px; } .customer-head .customer-name { min-width: 0; flex: 1 1 auto; }
.customer-head .row.between > .btn { flex: 0 0 auto; white-space: nowrap; }
/* Job stage chip (read-only; services/jobStage.js) */
/* Batch D Part 5: one color and icon per job stage (src/views/stagePalette.js; text/background >= 4.5:1). */
.pill.stage{margin-left:6px;font-weight:600;display:inline-flex;align-items:center;gap:4px}
.pill.stage .stage-icon{flex:none}
.stage-legend li{margin:6px 0}
.pill.stage.stage-scheduled { background:#dbeafe; color:#1e3a8a; border:1.5px solid #93c5fd; }
.pill.stage.stage-quoted { background:#ffffff; color:#0a1a4f; border:1.5px solid #0a1a4f; }
.pill.stage.stage-approved { background:#dcfce7; color:#14532d; border:1.5px solid #86efac; }
.pill.stage.stage-invoiced { background:#fde68a; color:#713f12; border:1.5px solid #f5c518; }
.pill.stage.stage-paid { background:#166534; color:#ffffff; border:1.5px solid #166534; }
.pill.stage.stage-overdue { background:#b42318; color:#ffffff; border:1.5px solid #b42318; }
.pill.stage.stage-completed { background:#ccfbf1; color:#134e4a; border:1.5px solid #5eead4; }
.pill.stage.stage-cancelled { background:#e5e7eb; color:#374151; border:1.5px solid #9ca3af; }
/* Batch C Part A: materials (the CSP allows no inline styles). */
.material-thumb{width:44px;height:44px;object-fit:cover;border-radius:8px;flex:none}
.receipt-photo{max-width:100%;max-height:240px;border-radius:8px}
.material-line{font-weight:600;white-space:nowrap}
.btn.danger-outline{color:#b42318;border-color:#b42318}
button.danger{background:#b42318;border-color:#b42318;color:#fff}
/* Batch C Part B: the CLASSIC invoice layout (approved v3 mockups). Layout only. */
.invoice-classic .inv-shop { display:flex; gap:14px; align-items:flex-start; padding-bottom:10px; margin-bottom:12px; border-bottom:3px solid #f5c518; }
.invoice-classic .inv-logo { max-width:120px; max-height:64px; object-fit:contain; flex:none; }
.invoice-classic .inv-shop-name { font-size:1.35rem; font-weight:800; line-height:1.15; margin:0 0 4px; color:#0a1a4f; overflow-wrap:anywhere; }
.invoice-classic address { font-style:normal; color:#33404f; line-height:1.35; overflow-wrap:anywhere; }
.customer-invoice { background:transparent; border:0; padding:0; margin:0 0 6px; }
.inv-items { width:100%; border-collapse:collapse; margin:4px 0 10px; }
.inv-items th, .inv-items td { padding:6px 8px; border:1px solid #c9d2e3; vertical-align:top; overflow-wrap:anywhere; }
.inv-items thead th { background:#0a1a4f; color:#fff; text-align:left; font-weight:700; border-color:#0a1a4f; }
.inv-items .num { text-align:right; white-space:nowrap; }
.inv-items .inv-section-title th { background:#eef2fa; text-align:left; color:#0a1a4f; }
.inv-items .inv-subtotal td { font-weight:600; background:#fafbfd; }
.inv-items .desc { font-weight:600; }
.inv-totals .inv-total { background:#fde68a; border-radius:8px; padding:8px 10px; font-size:1.15rem; margin-top:6px; }
/* Batch D: the other invoice layouts, by a modifier class on the Classic markup (presentation only). */
/* Modern (mockup 02): the shop header in a rounded blue frame, light blue line bands, a framed Total. */
.layout-modern .inv-shop { border:2px solid #1d4fbf; border-radius:14px; padding:12px; }
.layout-modern .inv-items { border-collapse:separate; border-spacing:0 4px; }
.layout-modern .inv-items th, .layout-modern .inv-items td { border:0; }
.layout-modern .inv-items thead th { background:transparent; color:#0a1a4f; border-top:2px solid #f5c518; }
.layout-modern .inv-items tr.inv-line td { background:#e3edfc; }
.layout-modern .inv-items tr.inv-line td:first-child { border-radius:8px 0 0 8px; }
.layout-modern .inv-items tr.inv-line td:last-child { border-radius:0 8px 8px 0; }
.layout-modern .inv-items .inv-section-title th { background:transparent; }
.layout-modern .inv-items .inv-subtotal td { background:transparent; border-top:1px solid #c9d2e3; }
.layout-modern .inv-totals .inv-total { background:#eef4fe; border:2px solid #1d4fbf; border-radius:14px; }
/* Bold (mockup 03): the shop header in a navy block with white text and a gold rule, navy-ruled rows,
   a full-width gold Total bar. */
.layout-bold .inv-shop { background:#0a1a4f; color:#fff; padding:14px; border-radius:6px; border-bottom:4px solid #f5c518; }
.layout-bold .inv-shop-name { color:#fff; }
.layout-bold .inv-shop address, .layout-bold .inv-shop address a { color:#e8ecf5; }
.layout-bold .inv-logo { background:#fff; border-radius:6px; padding:4px; }
.layout-bold .inv-items th, .layout-bold .inv-items td { border:1.5px solid #0a1a4f; }
.layout-bold .inv-items thead th { background:transparent; color:#0a1a4f; border:0; }
.layout-bold .inv-totals .inv-total { background:#f5c518; border-radius:4px; font-size:1.3rem; }
/* Minimal (mockup 04): no boxes or fills; thin grey rules, hairlines between rows, a gold rule over the Total. */
.layout-minimal .inv-shop { border-bottom:1px solid #9aa6b8; }
.layout-minimal .inv-items th, .layout-minimal .inv-items td { border:0; border-bottom:1px solid #c9d2e3; }
.layout-minimal .inv-items thead th { background:transparent; color:#0a1a4f; border-top:1px solid #9aa6b8; border-bottom:1px solid #9aa6b8; }
.layout-minimal .inv-items .inv-section-title th, .layout-minimal .inv-items .inv-subtotal td { background:transparent; }
.layout-minimal .inv-totals .inv-total { background:transparent; border-radius:0; border-top:3px solid #f5c518; }
@media (max-width: 600px) {
  .inv-items thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .inv-items, .inv-items tbody, .inv-items tr, .inv-items td, .inv-items th { display:block; width:auto; }
  .inv-items { border:0; }
  .inv-items tr.inv-line { display:grid; grid-template-columns:max-content max-content 1fr auto; gap:2px 6px; border:1px solid #c9d2e3; border-radius:8px; padding:8px 10px; margin:0 0 8px; }
  .inv-items tr.inv-line td { border:0; padding:0; }
  .inv-items tr.inv-line .desc { grid-column:1 / 4; grid-row:1; }
  .inv-items tr.inv-line .amount { grid-column:4; grid-row:1 / span 2; align-self:center; font-weight:700; }
  .inv-items tr.inv-line .qty, .inv-items tr.inv-line .unit { text-align:left; color:var(--muted); font-size:.9rem; font-weight:400; }
  .inv-items tr.inv-line .qty { grid-column:1; grid-row:2; }
  .inv-items tr.inv-line .unit { grid-column:2; grid-row:2; }
  .inv-items tr.inv-line .qty::before { content: attr(data-label) ": "; }
  .inv-items tr.inv-line .unit::before { content: "× "; }
  .inv-items .inv-section-title th { border:0; background:none; padding:6px 0 4px; }
  .inv-items .inv-subtotal { display:flex; justify-content:space-between; border-top:1px solid #c9d2e3; padding:6px 2px; }
  .inv-items .inv-subtotal td { border:0; padding:0; background:none; }
}
@media (max-width: 600px) {
  .layout-modern .inv-items tr.inv-line { border:0; background:#e3edfc; border-radius:10px; }
  .layout-modern .inv-items tr.inv-line td, .layout-modern .inv-items tr.inv-line td:first-child, .layout-modern .inv-items tr.inv-line td:last-child { background:transparent; border-radius:0; }
  .layout-modern .inv-items .inv-subtotal td { border-top:0; }
  .layout-bold .inv-items tr.inv-line { border:1.5px solid #0a1a4f; }
  .layout-bold .inv-items tr.inv-line td, .layout-bold .inv-items .inv-subtotal td { border:0; }
  .layout-minimal .inv-items tr.inv-line { border:0; border-bottom:1px solid #c9d2e3; border-radius:0; margin:0; padding:8px 2px; }
  .layout-minimal .inv-items tr.inv-line td { border:0; }
}
@media print {
  @page { size: letter; margin: 0.5in; }
  .devbar, nav.top, nav.tabs, .plan-banner, .trade-banner, .lang-toggle, form, button, .btn, .flash, .copy, .no-print { display:none !important; }
  body.has-tabs { padding-bottom:0; }
  .card { border:0; padding:0; }
  .inv-items thead { display:table-header-group; }
  .inv-items tr, .inv-items td, .inv-items th { break-inside:avoid; page-break-inside:avoid; }
  .inv-items tbody.inv-section { break-inside:auto; }
  .inv-items thead th { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .inv-totals .inv-total { -webkit-print-color-adjust:exact; print-color-adjust:exact; break-inside:avoid; }
  .layout-modern .inv-items td, .layout-modern .inv-shop { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .layout-bold .inv-shop, .layout-bold .inv-logo { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}
/* Batch D Part 6: the read-only money summary. */
.summary-badge { display: inline-block; margin: 0 0 6px; padding: 2px 10px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.summary-asof { margin: 0 0 4px; }
.summary-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 14px; }
@media (max-width: 600px) { .summary-cards { grid-template-columns: minmax(0, 1fr); } }
.summary-refund-note { font-size: .85rem; color: var(--muted); }
/* Batch E Part 1: the invoice accent color control. The preset chips' colors are fixed here (no inline styles). */
/* Batch E2 Part D: larger swatches, each with its name and hex code (three per row on a phone). */
.invoice-accent-setting .accent-presets { display:grid; grid-template-columns:repeat(auto-fill, minmax(88px, 1fr)); gap:8px; margin:6px 0; }
.invoice-accent-setting .accent-preset { display:flex; flex-direction:column; align-items:center; gap:3px; min-width:0; min-height:44px; padding:8px 4px; font-size:.85rem; line-height:1.2; }
.invoice-accent-setting .accent-chip { display:block; width:40px; height:40px; border-radius:8px; border:1px solid #1a1d21; }
.invoice-accent-setting .accent-preset-name { font-weight:700; max-width:100%; overflow-wrap:anywhere; }
.invoice-accent-setting .accent-preset-hex { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:.78rem; font-weight:400; color:var(--muted); }
.accent-preset[data-color="#142d4e"] .accent-chip { background:#142d4e; }
.accent-preset[data-color="#166344"] .accent-chip { background:#166344; }
.accent-preset[data-color="#f97316"] .accent-chip { background:#f97316; }
.accent-preset[data-color="#7a1f3d"] .accent-chip { background:#7a1f3d; }
.accent-preset[data-color="#0f766e"] .accent-chip { background:#0f766e; }
.accent-preset[data-color="#374151"] .accent-chip { background:#374151; }
.invoice-accent-setting .accent-inputs label { flex:1 1 140px; }
.invoice-accent-setting .accent-picker { min-height:44px; padding:2px; width:100%; }
.accent-reset { margin-top:6px; }
/* Batch E Part 2: the "Your accent" / "Readable text" swatches (colors from /accent/<hex>.css, no inline styles). */
.accent-confirm { border:1px solid var(--line); border-radius:8px; padding:8px 10px; margin-top:8px; }
.accent-confirm[hidden] { display:none; }
.accent-swatches { display:flex; flex-wrap:wrap; gap:12px; }
.accent-swatch { display:inline-flex; align-items:center; gap:6px; }
.accent-swatch .swatch { display:inline-block; width:22px; height:22px; border-radius:4px; border:1px solid #1a1d21; }
.accent-on .swatch-accent { background:var(--accent); }
.accent-on .swatch-text { background:var(--accent-text); }
/* Batch E Part 3: the invoice accent on Modern, Bold and Minimal (never Classic). Every rule requires .accent-on,
   which the server adds only when the shop has a valid accent, so a shop without one renders exactly as before.
   The colors come from /accent/<hex>.css: --accent (bars, rules, fills), --accent-text (the readable variant, for
   text and meaningful outlines), --accent-tint (light backgrounds behind dark text), --accent-band (the Bold
   band behind white text). Body text stays the layout's normal dark text. */
/* Batch E2 Part C: thin accent rules beneath the header block and beneath the column headings (the heading rule
   moves from above the headings to beneath them); the left bar and the Total rule are unchanged. */
.invoice-classic.accent-on.layout-modern .inv-shop { border:0; border-left:6px solid var(--accent); border-bottom:1px solid var(--accent); border-radius:0; padding:4px 0 8px 12px; }
.invoice-classic.accent-on.layout-modern .inv-items thead th { border-top:0; border-bottom:1px solid var(--accent); }
.invoice-classic.accent-on.layout-modern .inv-items tr.inv-line td { background:#f6f7f9; }
.invoice-classic.accent-on.layout-modern .inv-totals .inv-total { background:transparent; border:0; border-top:2px solid var(--accent); border-radius:0; }
.money.accent-balance-modern dt:last-of-type, .money.accent-balance-modern dd:last-of-type,
.money.accent-balance-bold dt:last-of-type, .money.accent-balance-bold dd:last-of-type { background:var(--accent-tint); padding:4px 6px; }
/* Batch E2 Part A: "Balance due" and its amount in the readable variant (>= 4.5:1 on the tint and on white). Minimal
   carries its one discreet emphasis here, on a white strip: never on the grey page background, where the readable
   variant is not guaranteed 4.5:1. */
.money.accent-balance-modern dt:last-of-type, .money.accent-balance-modern dd:last-of-type,
.money.accent-balance-bold dt:last-of-type, .money.accent-balance-bold dd:last-of-type,
.money.accent-balance-minimal dt:last-of-type, .money.accent-balance-minimal dd:last-of-type { color:var(--accent-text); font-weight:700; }
.money.accent-balance-modern dd:last-of-type strong, .money.accent-balance-bold dd:last-of-type strong, .money.accent-balance-minimal dd:last-of-type strong { color:var(--accent-text); }
.money.accent-balance-minimal dt:last-of-type, .money.accent-balance-minimal dd:last-of-type { background:#ffffff; padding:4px 6px; }
.invoice-classic.accent-on.layout-bold .inv-shop { background:var(--accent-band); border-bottom:4px solid var(--accent); }
.invoice-classic.accent-on.layout-bold .inv-shop address, .invoice-classic.accent-on.layout-bold .inv-shop address a { color:#ffffff; }
/* Batch E2 Part B: no accent outline around the rows (neutral hairlines); the column headings on a light-grey band. */
.invoice-classic.accent-on.layout-bold .inv-items th, .invoice-classic.accent-on.layout-bold .inv-items td { border:0; border-bottom:1px solid #c9d2e3; }
.invoice-classic.accent-on.layout-bold .inv-items thead th { border:0; background:#f1f3f5; color:#0a1a4f; }
.invoice-classic.accent-on.layout-bold .inv-totals .inv-total { background:transparent; border:2px solid var(--accent-text); }
.invoice-classic.accent-on.layout-minimal .inv-shop { border-bottom:1px solid var(--accent); }
.invoice-classic.accent-on.layout-minimal .inv-totals .inv-total { border-top:3px solid var(--accent); }
@media (max-width: 600px) {
  .invoice-classic.accent-on.layout-modern .inv-items tr.inv-line { background:#f6f7f9; }
  .invoice-classic.accent-on.layout-bold .inv-items tr.inv-line { border:1px solid #c9d2e3; }
  .invoice-classic.accent-on.layout-bold .inv-items tr.inv-line td, .invoice-classic.accent-on.layout-bold .inv-items .inv-section-title th, .invoice-classic.accent-on.layout-bold .inv-items .inv-subtotal td { border:0; }
}
@media print {
  /* Printed with or without background graphics: the Bold header never relies on its fill. Dark text on white in
     a readable-variant border; small fills only (no large ink-heavy areas). */
  .invoice-classic.accent-on.layout-bold .inv-shop { background:#ffffff; color:#1a1d21; border:3px solid var(--accent-text); }
  .invoice-classic.accent-on.layout-bold .inv-shop-name, .invoice-classic.accent-on.layout-bold .inv-shop address, .invoice-classic.accent-on.layout-bold .inv-shop address a { color:#1a1d21; }
  .money.accent-balance-modern dd:last-of-type, .money.accent-balance-bold dd:last-of-type,
  .money.accent-balance-modern dt:last-of-type, .money.accent-balance-bold dt:last-of-type { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}
/* Batch E Part 5: the accent preview in Settings -> Invoices (the real invoice markup at a smaller size). */
.accent-preview-frame { border:1px dashed var(--line); border-radius:8px; padding:8px; margin:6px 0; font-size:.85rem; }
.accent-preview-frame .card { margin:0; }

/* Batch G: request form, request list and detail, request link QR code. */
.qr-box { margin: 12px 0; } .qr-box svg { display: block; width: 176px; height: 176px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.filters { margin: 8px 0 12px; gap: 6px; } .filters .pill { text-decoration: none; color: var(--navy); padding: 6px 12px; min-height: 36px; display: inline-flex; align-items: center; }
.filters .pill.on { background: var(--navy); color: #fff; font-weight: 700; }
a.card.block-link { display: block; color: inherit; text-decoration: none; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 6px 0 0; }
dl.facts { display: grid; grid-template-columns: minmax(7rem, max-content) 1fr; gap: 4px 12px; } dl.facts dt { color: var(--muted); } dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; } .photo-grid img { width: 100%; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; } fieldset legend { font-weight: 700; color: var(--navy); }

/* Batch G Part 2c: the selected accent preset, marked by more than color: an outline, a check mark and (for screen
   readers) text and aria-pressed. */
.invoice-accent-setting .accent-preset.selected { outline: 3px solid var(--navy); outline-offset: 2px; border-color: var(--navy); }
.invoice-accent-setting .accent-check { display: none; color: var(--navy); font-weight: 800; }
.invoice-accent-setting .accent-preset.selected .accent-check { display: inline; }

/* Batch H: the guided walkthrough (public/tour.js). Navy, blue and gold; every control at least 44 px; the ring never
   takes the pointer, so the page under it stays usable. */
.tour-help { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px; margin-left: auto; background: #fff; border: 2px solid var(--navy); border-radius: 12px; color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.tour-help svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Batch Q A5: never wrap or squeeze the Help pill (on narrow phones it became a tall pill with the letters stacked); the shop name ellipsizes instead. */
nav.top .tour-help, .tour-help { flex: 0 0 auto; white-space: nowrap; min-width: max-content; }
.tour-help span { white-space: nowrap; }
nav.top .tour-help + .bell { margin-left: 0; }
nav.top .tour-help + .lang { margin-left: 0; }
.tour-help:focus-visible, .tour-card button:focus-visible, .tour-pill button:focus-visible, .tour-menu button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.tour-card:focus { outline: 3px solid var(--primary); outline-offset: 2px; }
.tour-ring { position: absolute; z-index: 1000; border: 3px solid var(--accent); border-radius: 12px; box-shadow: 0 0 0 4px var(--navy), 0 0 0 9999px rgba(10, 26, 79, .38); pointer-events: none; }
.tour-card { position: absolute; z-index: 1001; background: #fff; color: var(--fg); border: 2px solid var(--navy); border-radius: 14px; padding: 16px; box-shadow: 0 8px 24px rgba(10, 26, 79, .25); }
.tour-card .tour-count { margin: 0 0 4px; font-size: .85rem; font-weight: 700; color: #3d4a66; }
.tour-card .tour-title { margin: 0 0 6px; font-size: 1.1rem; color: var(--navy); }
.tour-card .tour-text { margin: 0; color: var(--fg); }
.tour-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tour-actions button { min-height: 44px; min-width: 44px; padding: 0 14px; border: 2px solid var(--navy); border-radius: 12px; background: #fff; color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.tour-actions button.primary { background: var(--accent); border-color: var(--navy); color: var(--navy); }
.tour-actions .tour-skip { border-color: transparent; text-decoration: underline; margin-left: auto; }
.tour-pill { position: fixed; z-index: 1001; left: 16px; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); max-width: 608px; margin: 0 auto; background: var(--navy); color: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 8px 24px rgba(10, 26, 79, .3); }
.tour-pill .tour-pill-text { margin: 0; font-weight: 700; }
.tour-pill .tour-actions { margin-top: 8px; }
.tour-pill .tour-actions button { background: transparent; color: #fff; border-color: #fff; }
.tour-pill .tour-actions button.primary { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.tour-menu { position: absolute; z-index: 1002; background: #fff; border: 2px solid var(--navy); border-radius: 12px; padding: 8px; box-shadow: 0 8px 24px rgba(10, 26, 79, .25); }
.tour-menu .tour-state { margin: 4px 8px 8px; font-size: .9rem; color: #3d4a66; }
.tour-menu .tour-item { display: block; width: 100%; min-height: 44px; padding: 0 12px; text-align: left; background: #fff; border: 0; border-radius: 8px; color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.tour-menu .tour-item:hover, .tour-menu .tour-item:focus { background: #eef3fd; }
.tour-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: no-preference) { .tour-ring, .tour-card { transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease; } }
@media (max-width: 380px) { .tour-help { padding: 0 8px; } }

/* Batch I: Schedule time grid (wide screens; phones keep the list). Rows are 15 minutes; blocks are placed by
 * classes (no inline styles: CSP style-src 'self'). tg-rN = starting row, tg-hN = rows spanned. */
.tgrid { display: none; }
@media (min-width: 600px) {
  .tgrid { display: flex; gap: 4px; margin: 0 0 16px; }
  .sched.has-grid { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.tg-hours { flex: 0 0 44px; display: grid; grid-auto-rows: 12px; padding-top: 28px; }
.tg-hour { grid-column: 1; font-size: .7rem; color: var(--muted); line-height: 1; transform: translateY(-4px); }
.tg-col { flex: 1 1 0; min-width: 0; }
.tg-head { height: 28px; font-size: .8rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 2px; }
.tg-body { display: grid; grid-auto-rows: 12px; grid-template-columns: 1fr; background: repeating-linear-gradient(to bottom, #fff 0 47px, var(--line) 47px 48px); border: 1px solid var(--line); border-radius: 8px; }
.tg-fill { grid-column: 1; }
.tg-off { grid-column: 1; z-index: 0; background: repeating-linear-gradient(135deg, #e9edf3 0 6px, #dfe4ec 6px 12px); color: #3d4757; font-size: .7rem; padding: 2px 4px; overflow: hidden; }
.tg-item { grid-column: 1; z-index: 1; min-width: 0; overflow: hidden; margin: 1px 2px; padding: 2px 4px; border-radius: 6px; background: #e5edff; border-left: 4px solid var(--primary); color: var(--fg); font-size: .72rem; line-height: 1.2; text-decoration: none; }
.tg-item.marked { border-left-color: var(--warn); background: #fff4e0; }
.tg-item.lanes2.lane0 { margin-right: 50%; } .tg-item.lanes2.lane1 { margin-left: 50%; }
.tg-item.lanes3.lane0 { margin-right: 66.6%; } .tg-item.lanes3.lane1 { margin-left: 33.3%; margin-right: 33.3%; } .tg-item.lanes3.lane2 { margin-left: 66.6%; }
.tg-item.lanes4.lane0 { margin-right: 75%; } .tg-item.lanes4.lane1 { margin-left: 25%; margin-right: 50%; } .tg-item.lanes4.lane2 { margin-left: 50%; margin-right: 25%; } .tg-item.lanes4.lane3 { margin-left: 75%; }
.tg-time { font-weight: 800; color: var(--primary); }
.tg-what { color: var(--muted); }
.pill.marker { font-size: .7rem; background: #fff4e0; color: #7a4600; font-weight: 700; }
.slot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { min-height: 44px; border-color: var(--muted); }
select.duration { border-color: var(--muted); }
.hours-row input[type=time] { width: auto; }
.hours-edit li { flex-wrap: wrap; }
.hours-row { flex-wrap: wrap; flex: 1 1 100%; min-width: 0; }
.add-hours { flex-wrap: wrap; align-items: flex-end; }
.add-hours label { flex: 1 1 120px; }
.tg-r1 { grid-row-start: 1; }
.tg-r2 { grid-row-start: 2; }
.tg-r3 { grid-row-start: 3; }
.tg-r4 { grid-row-start: 4; }
.tg-r5 { grid-row-start: 5; }
.tg-r6 { grid-row-start: 6; }
.tg-r7 { grid-row-start: 7; }
.tg-r8 { grid-row-start: 8; }
.tg-r9 { grid-row-start: 9; }
.tg-r10 { grid-row-start: 10; }
.tg-r11 { grid-row-start: 11; }
.tg-r12 { grid-row-start: 12; }
.tg-r13 { grid-row-start: 13; }
.tg-r14 { grid-row-start: 14; }
.tg-r15 { grid-row-start: 15; }
.tg-r16 { grid-row-start: 16; }
.tg-r17 { grid-row-start: 17; }
.tg-r18 { grid-row-start: 18; }
.tg-r19 { grid-row-start: 19; }
.tg-r20 { grid-row-start: 20; }
.tg-r21 { grid-row-start: 21; }
.tg-r22 { grid-row-start: 22; }
.tg-r23 { grid-row-start: 23; }
.tg-r24 { grid-row-start: 24; }
.tg-r25 { grid-row-start: 25; }
.tg-r26 { grid-row-start: 26; }
.tg-r27 { grid-row-start: 27; }
.tg-r28 { grid-row-start: 28; }
.tg-r29 { grid-row-start: 29; }
.tg-r30 { grid-row-start: 30; }
.tg-r31 { grid-row-start: 31; }
.tg-r32 { grid-row-start: 32; }
.tg-r33 { grid-row-start: 33; }
.tg-r34 { grid-row-start: 34; }
.tg-r35 { grid-row-start: 35; }
.tg-r36 { grid-row-start: 36; }
.tg-r37 { grid-row-start: 37; }
.tg-r38 { grid-row-start: 38; }
.tg-r39 { grid-row-start: 39; }
.tg-r40 { grid-row-start: 40; }
.tg-r41 { grid-row-start: 41; }
.tg-r42 { grid-row-start: 42; }
.tg-r43 { grid-row-start: 43; }
.tg-r44 { grid-row-start: 44; }
.tg-r45 { grid-row-start: 45; }
.tg-r46 { grid-row-start: 46; }
.tg-r47 { grid-row-start: 47; }
.tg-r48 { grid-row-start: 48; }
.tg-r49 { grid-row-start: 49; }
.tg-r50 { grid-row-start: 50; }
.tg-r51 { grid-row-start: 51; }
.tg-r52 { grid-row-start: 52; }
.tg-r53 { grid-row-start: 53; }
.tg-r54 { grid-row-start: 54; }
.tg-r55 { grid-row-start: 55; }
.tg-r56 { grid-row-start: 56; }
.tg-r57 { grid-row-start: 57; }
.tg-r58 { grid-row-start: 58; }
.tg-r59 { grid-row-start: 59; }
.tg-r60 { grid-row-start: 60; }
.tg-r61 { grid-row-start: 61; }
.tg-r62 { grid-row-start: 62; }
.tg-r63 { grid-row-start: 63; }
.tg-r64 { grid-row-start: 64; }
.tg-r65 { grid-row-start: 65; }
.tg-r66 { grid-row-start: 66; }
.tg-r67 { grid-row-start: 67; }
.tg-r68 { grid-row-start: 68; }
.tg-r69 { grid-row-start: 69; }
.tg-r70 { grid-row-start: 70; }
.tg-r71 { grid-row-start: 71; }
.tg-r72 { grid-row-start: 72; }
.tg-r73 { grid-row-start: 73; }
.tg-r74 { grid-row-start: 74; }
.tg-r75 { grid-row-start: 75; }
.tg-r76 { grid-row-start: 76; }
.tg-r77 { grid-row-start: 77; }
.tg-r78 { grid-row-start: 78; }
.tg-r79 { grid-row-start: 79; }
.tg-r80 { grid-row-start: 80; }
.tg-r81 { grid-row-start: 81; }
.tg-r82 { grid-row-start: 82; }
.tg-r83 { grid-row-start: 83; }
.tg-r84 { grid-row-start: 84; }
.tg-r85 { grid-row-start: 85; }
.tg-r86 { grid-row-start: 86; }
.tg-r87 { grid-row-start: 87; }
.tg-r88 { grid-row-start: 88; }
.tg-r89 { grid-row-start: 89; }
.tg-r90 { grid-row-start: 90; }
.tg-r91 { grid-row-start: 91; }
.tg-r92 { grid-row-start: 92; }
.tg-r93 { grid-row-start: 93; }
.tg-r94 { grid-row-start: 94; }
.tg-r95 { grid-row-start: 95; }
.tg-r96 { grid-row-start: 96; }
.tg-h1 { grid-row-end: span 1; }
.tg-h2 { grid-row-end: span 2; }
.tg-h3 { grid-row-end: span 3; }
.tg-h4 { grid-row-end: span 4; }
.tg-h5 { grid-row-end: span 5; }
.tg-h6 { grid-row-end: span 6; }
.tg-h7 { grid-row-end: span 7; }
.tg-h8 { grid-row-end: span 8; }
.tg-h9 { grid-row-end: span 9; }
.tg-h10 { grid-row-end: span 10; }
.tg-h11 { grid-row-end: span 11; }
.tg-h12 { grid-row-end: span 12; }
.tg-h13 { grid-row-end: span 13; }
.tg-h14 { grid-row-end: span 14; }
.tg-h15 { grid-row-end: span 15; }
.tg-h16 { grid-row-end: span 16; }
.tg-h17 { grid-row-end: span 17; }
.tg-h18 { grid-row-end: span 18; }
.tg-h19 { grid-row-end: span 19; }
.tg-h20 { grid-row-end: span 20; }
.tg-h21 { grid-row-end: span 21; }
.tg-h22 { grid-row-end: span 22; }
.tg-h23 { grid-row-end: span 23; }
.tg-h24 { grid-row-end: span 24; }
.tg-h25 { grid-row-end: span 25; }
.tg-h26 { grid-row-end: span 26; }
.tg-h27 { grid-row-end: span 27; }
.tg-h28 { grid-row-end: span 28; }
.tg-h29 { grid-row-end: span 29; }
.tg-h30 { grid-row-end: span 30; }
.tg-h31 { grid-row-end: span 31; }
.tg-h32 { grid-row-end: span 32; }
.tg-h33 { grid-row-end: span 33; }
.tg-h34 { grid-row-end: span 34; }
.tg-h35 { grid-row-end: span 35; }
.tg-h36 { grid-row-end: span 36; }
.tg-h37 { grid-row-end: span 37; }
.tg-h38 { grid-row-end: span 38; }
.tg-h39 { grid-row-end: span 39; }
.tg-h40 { grid-row-end: span 40; }
.tg-h41 { grid-row-end: span 41; }
.tg-h42 { grid-row-end: span 42; }
.tg-h43 { grid-row-end: span 43; }
.tg-h44 { grid-row-end: span 44; }
.tg-h45 { grid-row-end: span 45; }
.tg-h46 { grid-row-end: span 46; }
.tg-h47 { grid-row-end: span 47; }
.tg-h48 { grid-row-end: span 48; }
.tg-h49 { grid-row-end: span 49; }
.tg-h50 { grid-row-end: span 50; }
.tg-h51 { grid-row-end: span 51; }
.tg-h52 { grid-row-end: span 52; }
.tg-h53 { grid-row-end: span 53; }
.tg-h54 { grid-row-end: span 54; }
.tg-h55 { grid-row-end: span 55; }
.tg-h56 { grid-row-end: span 56; }
.tg-h57 { grid-row-end: span 57; }
.tg-h58 { grid-row-end: span 58; }
.tg-h59 { grid-row-end: span 59; }
.tg-h60 { grid-row-end: span 60; }
.tg-h61 { grid-row-end: span 61; }
.tg-h62 { grid-row-end: span 62; }
.tg-h63 { grid-row-end: span 63; }
.tg-h64 { grid-row-end: span 64; }
.tg-h65 { grid-row-end: span 65; }
.tg-h66 { grid-row-end: span 66; }
.tg-h67 { grid-row-end: span 67; }
.tg-h68 { grid-row-end: span 68; }
.tg-h69 { grid-row-end: span 69; }
.tg-h70 { grid-row-end: span 70; }
.tg-h71 { grid-row-end: span 71; }
.tg-h72 { grid-row-end: span 72; }
.tg-h73 { grid-row-end: span 73; }
.tg-h74 { grid-row-end: span 74; }
.tg-h75 { grid-row-end: span 75; }
.tg-h76 { grid-row-end: span 76; }
.tg-h77 { grid-row-end: span 77; }
.tg-h78 { grid-row-end: span 78; }
.tg-h79 { grid-row-end: span 79; }
.tg-h80 { grid-row-end: span 80; }
.tg-h81 { grid-row-end: span 81; }
.tg-h82 { grid-row-end: span 82; }
.tg-h83 { grid-row-end: span 83; }
.tg-h84 { grid-row-end: span 84; }
.tg-h85 { grid-row-end: span 85; }
.tg-h86 { grid-row-end: span 86; }
.tg-h87 { grid-row-end: span 87; }
.tg-h88 { grid-row-end: span 88; }
.tg-h89 { grid-row-end: span 89; }
.tg-h90 { grid-row-end: span 90; }
.tg-h91 { grid-row-end: span 91; }
.tg-h92 { grid-row-end: span 92; }
.tg-h93 { grid-row-end: span 93; }
.tg-h94 { grid-row-end: span 94; }
.tg-h95 { grid-row-end: span 95; }
.tg-h96 { grid-row-end: span 96; }
/* Batch J: online booking (customer pages and the owner's booking block). Text on light backgrounds keeps 4.5:1. */
.choice-list { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:8px; }
.choice-list .pill { padding:8px 12px; font-size:.95rem; text-decoration:none; color:var(--primary); background:#fff; border:1.5px solid var(--muted); }
.choice-list .pill.on { background:var(--navy, #0a1a4f); color:#fff; border-color:var(--navy, #0a1a4f); }
.choice-list .pill.off { color:var(--muted); background:#f2f4f7; }
.time-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(8.5rem, 1fr)); gap:8px; }
.time-grid form, .time-grid button { width:100%; margin:0; }
.time-grid button { min-height:44px; border:1.5px solid var(--muted); }
.booking-block .facts, .card .facts { overflow-wrap:anywhere; }
.pill.booking { background:#e5edff; color:#0a1a4f; font-weight:600; }
.flash.booked-online { background:#eef4ff; color:#0a1a4f; }
form.inline { display:inline; }
.actions { display:flex; flex-wrap:wrap; gap:8px; }
.hours-list { padding-left:1.2rem; }
/* Batch K: retention screens. A message's exact text wraps (never sideways scrolling at 360 px). */
.message-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: .95rem; background: #f4f6fb; color: #1b2a4a; padding: .5rem .6rem; border-radius: 6px; margin: .4rem 0; }
.retention-tabs { flex-wrap: wrap; }
.retention-box details form { margin-top: .5rem; }
/* Batch R: technician clock panel (one tap each; large targets at 320-390 px) */
.clock { display: grid; gap: 10px; margin: 0 0 14px; }
.clock .clock-btn, .clock .arrived-btn { min-height: 56px; font-size: 1.15rem; width: 100%; overflow-wrap: anywhere; white-space: normal; }
.clock .clock-running { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0; }
.clock .clock-timer { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.clock .clock-status:empty { display: none; }
.clock .arrived-done { margin: 0; color: #0d5c33; overflow-wrap: anywhere; }
.clock form { margin: 0; }
.clock-shift { overflow-wrap: anywhere; }
/* Batch T: address suggestions (public/places.js). The list sits under its field, never wider than it (320 px phones). */
.places-wrap { position: relative; display: block; width: 100%; }
.row .places-wrap { flex: 1 1 12rem; min-width: 0; }
.places-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 2px 0 0; padding: 0; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 60vh; overflow-y: auto; }
.places-list [role="option"] { display: block; padding: 10px 12px; min-height: 44px; box-sizing: border-box; cursor: pointer; border-bottom: 1px solid var(--line); }
.places-list [role="option"][aria-selected="true"], .places-list [role="option"]:hover { background: #eef3fd; }
.places-main { display: block; font-weight: 600; overflow-wrap: anywhere; }
.places-secondary { display: block; font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.places-attr { padding: 6px 12px; font-size: .75rem; color: var(--muted); text-align: right; }
/* Batch U (U1): Google's official attribution file at its own size (never stretched), with clear space around it, on the
   list's white background. */
.places-attr { background: #fff; }
.places-mark { display: inline-block; width: auto; height: auto; max-width: 100%; margin: 4px 0; vertical-align: middle; }

/* Batch W (B2): the control a Getting started step points at (?guide=...), outlined for a few seconds. */
.guide-hl { outline: 3px solid #f5b400; outline-offset: 3px; border-radius: 10px; transition: outline-color .3s; }
.tech-guide ol { margin: 6px 0 10px; padding-left: 22px; }
.tech-guide li { margin: 4px 0; }
/* Batch X (R-08): a missing signature or choice, reported next to the signature box (not in a pop-up). */
.sig-error { color: var(--bad); font-weight: 600; margin: 4px 0 0; }
