/* Countryside Costing. Look and feel: DESIGN.md (F + G, Oct 23 2026). */
:root {
  --deep: #0E4F2C; --green: #046939; --tint: #E7F0EA; --yellow: #FCD002;
  --bg: #F2F2F7; --card: #FFFFFF; --ink: #1F2421; --muted: #555E59; --hair: #E5E5EA; --fill: #E9E9EF;
  --bad: #B3261E; --r: 12px; --row: 48px;
  --font: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 17px/1.45 var(--font); -webkit-text-size-adjust: 100%; }
@media (min-width: 1200px) { html, body { font-size: 16px; } }
button, input, select { font: inherit; color: inherit; }
a { color: var(--green); }
.muted { color: var(--muted); font-size: .88rem; }

/* ---------- Shell: sidebar | (topbar / form | preview) ---------- */
.shell { display: grid; grid-template-columns: 1fr; min-height: calc(100% - var(--vah, 0px)); }
.side { display: none; }
.work { min-width: 0; display: flex; flex-direction: column; }
.panes { flex: 1; min-height: 0; }
.preview { display: none; }
@media (min-width: 1024px) {
  .shell { grid-template-columns: 264px 1fr; height: calc(100vh - var(--vah, 0px)); }   /* minus the rep-view bar: no page scroll under it (Nov 11 2026) */
  .side { display: flex; flex-direction: column; background: #FAFAFC; border-right: 1px solid var(--hair); min-height: 0; }
  .work { height: calc(100vh - var(--vah, 0px)); }
  .panes { display: grid; grid-template-columns: minmax(400px, 1fr) minmax(360px, 44%); min-height: 0; }
  .form { overflow-y: auto; }
  .preview { display: block; overflow-y: auto; background: #E9ECEA; border-left: 1px solid var(--hair); }
}

/* Sidebar */
.side .head { padding: 16px 16px 10px; }
.side .logo { display: block; width: 168px; height: auto; margin-bottom: 14px; }
.search { width: 100%; height: 38px; border: 0; border-radius: 10px; background: var(--fill); padding: 0 12px 0 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555E59' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 11px center; background-size: 16px; font-size: .94rem; }
/* drawn inside the box, so a sheet or card edge never cuts it off (Trey, Nov 13 2026) */
.search:focus { outline: none; box-shadow: inset 0 0 0 2px rgba(4,105,57,.35); }
.newbtn { width: 100%; margin-top: 10px; height: 40px; border-radius: 999px; border: 1px solid var(--hair); background: #fff; font-weight: 600; color: var(--deep); cursor: pointer; }
.list { flex: 1; overflow-y: auto; padding: 4px 8px 16px; }
.list .cap { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 12px 10px 6px; }
.est { display: block; width: 100%; text-align: left; border: 0; background: none; border-radius: 10px; padding: 10px 10px; cursor: pointer; }
.est:hover { background: #EFEFF4; }
.est.on { background: var(--tint); }
/* the picked estimate's highlight fades across as soon as it is tapped (Nov 17 2026) */
#side .est, #side .estline { transition: background-color .22s ease; }
@media (prefers-reduced-motion: reduce) { #side .est, #side .estline, #side .homeacts .row, .homeacts .hico { transition: none; } }
.est b { display: block; font-size: .94rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est span { display: block; font-size: .8rem; color: var(--muted); }

/* Top bar */
.topbar { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hair);
  display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; min-height: 56px; position: sticky; top: 0; z-index: 4; }
.topbar .who { flex: 1; min-width: 0; }
.topbar .who b { display: block; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .who span { font-size: .8rem; color: var(--muted); }
.topbar .mlogo { height: 30px; width: auto; }
.tbtn { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--hair); background: #fff; font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; color: var(--deep); }
.tbtn.primary { background: var(--green); color: #fff; border-color: var(--green); }
/* ROUND_12 0a: "Send to JobNimbus" stays on one line on a 360 px phone: the font shrinks, never wraps or cuts */
.btn.primary, .tbtn.primary { white-space: nowrap; }
@media (max-width: 400px) { #bar .btn.primary:not(.nextbtn) { font-size: clamp(.8rem, 4.2vw, 1rem); padding-left: 10px; padding-right: 10px; } }
.tbtn:disabled { background: var(--fill); color: var(--muted); border-color: var(--fill); cursor: default; }
.tbtn.icon { width: 38px; padding: 0; display: grid; place-items: center; }
@media (min-width: 1024px) { .topbar .mlogo, .topbar .narrow { display: none; } }
/* the logo goes home (no estimate open) */
.logobtn { border: 0; background: none; padding: 0; margin: 0; cursor: pointer; display: block; line-height: 0; border-radius: 8px; }
.logobtn:focus-visible { outline: 2px solid rgba(4,105,57,.35); outline-offset: 3px; }
@media (min-width: 1024px) { .topbar .logobtn { display: none; } }
@media (max-width: 559px) { .topbar .logobtn { display: none; } }
/* Home: no estimate, so no preview pane and no step bar */
body.home #preview, body.home #bar { display: none; }
@media (min-width: 1024px) { body.home .panes { grid-template-columns: 1fr; } }
.homeview .newbtn { margin-bottom: 4px; }
/* Home is the rep's day (Nov 10 2026): wide enough for its two columns on a computer */
.form-in.homeview { max-width: 1120px; }
.dash .dsay { margin: 10px 0 0; color: var(--muted); font-size: 1rem; }
.dash .dstart { display: flex; align-items: center; gap: 18px; margin: 16px 0 6px; flex-wrap: wrap; }
.dash .dstart .btn { width: auto; padding-left: 26px; padding-right: 26px; }
/* Home (Trey, Nov 10 2026: reference 7's layout with reference 1's look, kept to the app's iPhone feel) */
.homeview .dash .dhead { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: end; padding: 6px 4px 22px; }
.homeview .dash .dhead > span { grid-row: 1; grid-column: 1; text-transform: uppercase; font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.homeview .dash .dhead > b { grid-row: 2; grid-column: 1; font-family: 'Lora', Georgia, serif; font-weight: 500; font-size: 2.25rem; line-height: 1.15; letter-spacing: -.005em; margin-top: 2px; }
.homeview .dash .dsay { grid-row: 3; grid-column: 1; margin: 6px 0 0; }
.homeview .dash .dstart { grid-row: 1 / 4; grid-column: 2; align-self: end; margin: 0; }
@media (max-width: 767px) { .homeview .dash .dhead { grid-template-columns: minmax(0, 1fr); } .homeview .dash .dstart { grid-row: 4; grid-column: 1; margin-top: 16px; } .homeview .dash .dhead > b { font-size: 1.9rem; } }
.homeview .dash .dsec { background: var(--card); border-radius: 20px; padding: 14px 0 6px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(20,32,24,.06); overflow: hidden; }
.homeview .dash .dsec > .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 18px 6px; padding: 0; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--ink); }   /* a heading, not all caps (Trey, Nov 10 2026) */
.homeview .dash .dsec > .cap .muted { color: var(--green, #046939); font-weight: 600; letter-spacing: .02em; text-transform: none; font-size: .8125rem; }
.homeview .dash .dsec > .dcard { background: none; border-radius: 0; border: 0; margin: 0; box-shadow: none; position: relative; }
.homeview .dash .dsec > .dcard + .dcard::before { content: ""; position: absolute; top: 0; left: 64px; right: 0; border-top: .5px solid var(--hair); }
.homeview .dash .dsec > .group { background: none; box-shadow: none; margin: 0; }
.homeview .dash .dlinks { border-top: 0; padding: 0 16px 6px 62px; }
.dash .dico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-right: 12px; background: #E3EFE6; color: var(--green, #046939); }
.dash .dico svg { width: 18px; height: 18px; }
.dash .dico-sign { background: #FFF1D6; color: #8A5A00; }
.dash .dico-wait { background: #E7EFFA; color: #1F4E8C; }
.dash .dico-draft, .dash .dico-cal { background: #EEEEF1; color: #555E59; }
.dash .dtl { list-style: none; margin: 0; padding: 0; }
.dash .dtl-day { padding: 8px 18px 4px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.dash .dtl-item { display: grid; grid-template-columns: 84px minmax(0, 1fr); position: relative; }
.dash .dtl-item + .dtl-item::before { content: ""; position: absolute; top: 0; left: 18px; right: 0; border-top: .5px solid var(--hair); }
.dash .dtl-time { padding: 13px 0 0 18px; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; display: flex; flex-direction: column; gap: 3px; }
.dash .dtl-next { font-style: normal; font-size: .8125rem; font-weight: 600; color: var(--green, #046939); }
.dash .dtl-dot { display: none; }
.dash .dtl-body { padding: 10px 16px 2px 0; min-width: 0; }
.dash .dtl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.dash .dtl-main { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dash .dtl-main b { font-weight: 600; }
.dash .dtl-main small { color: var(--muted); }
.dash .dtl-acts { display: flex; flex-wrap: wrap; gap: 0 18px; }
.dash .dtl-acts .dlink:first-child, .homeview .dash .dlinks .dlink:first-child { color: var(--green, #046939); font-weight: 600; }   /* the main action green, the rest gray, in every card */
@media (max-width: 559px) { .dash .dtl-item { grid-template-columns: 74px minmax(0, 1fr); } .homeview .dash .dhead > b { font-size: 1.85rem; } }
@media (max-width: 1023px) { .topbar .wide { display: none; } }
/* the "..." sits after Send in the markup so it keeps one place with or without Send; on a phone it is put back before Estimates (Nov 23 2026) */
@media (max-width: 1023px) { .topbar [data-act="estmore"] { order: 1; } .topbar [data-act="estimates"] { order: 2; } }

/* ---------- Form column ---------- */
.form-in { max-width: 640px; margin: 0 auto; padding: 22px 16px 120px; }
@media (min-width: 1024px) { .form-in { padding: 26px 28px 40px; } }
.stepno { font-size: .82rem; color: var(--muted); font-weight: 600; }
.track { height: 4px; background: var(--fill); border-radius: 4px; margin: 8px 0 18px; overflow: hidden; }
.track i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
h1 { font-size: 1.9rem; line-height: 1.15; margin: 0; color: var(--deep); font-weight: 800; letter-spacing: -.02em; }
.help { color: var(--muted); margin: 6px 0 4px; }
.cap { font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 26px 16px 7px; }
.foot { font-size: .82rem; color: var(--muted); margin: 7px 16px 0; }

/* Grouped rows (iOS Settings style) */
.group { background: var(--card); border-radius: var(--r); overflow: hidden; overflow: clip; }   /* clip: rounded corners without stopping sticky headers */
.row { display: flex; align-items: center; gap: 12px; min-height: var(--row); padding: 8px 16px; position: relative; background: #fff; width: 100%; border: 0; text-align: left; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--hair); }
.row > .lbl { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row > .lbl small { display: block; width: 100%; color: var(--muted); font-size: .82rem; }
.row input.val { flex: 0 1 40%; min-width: 0; border: 0; text-align: right; background: none; padding: 6px 0; color: var(--ink); }
.row input.val.wide { flex: 1 1 auto; text-align: left; }
.row input.val::placeholder { color: #A5ACA8; }
.row .unit { flex: 0 0 auto; margin-left: 4px; color: #8A918D; font-size: .9em; white-space: nowrap; pointer-events: none; }
.row .unit.pre { margin: 0 2px 0 auto; }
.row .unit[hidden] { display: none; }
.row input.val:focus { outline: none; }
.row:focus-within { background: #FBFBFD; }
.row.stack { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 16px; }
.row.stack input.full { width: 100%; border: 0; background: var(--bg); border-radius: 9px; padding: 10px 12px; }
.row.tap { cursor: pointer; }
.row.tap::after { content: ""; width: 8px; height: 8px; border-right: 2px solid #B8BDBA; border-top: 2px solid #B8BDBA; transform: rotate(45deg); margin-left: 4px; flex: none; }
.row .valtxt { color: var(--muted); text-align: right; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .valtxt.set { color: var(--ink); }
.row select.val { flex: 0 1 60%; border: 0; background: none; text-align: right; text-align-last: right; color: var(--ink); padding: 6px 0; cursor: pointer; }
.row .money { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.row .money.muted { font-weight: 400; }
/* a roof line waiting for W valley pieces says so where its price goes (two short lines at most, so the row keeps its height) */
.row .money.wait { white-space: normal; text-align: right; max-width: 8.5em; color: var(--muted); font-size: .82rem; line-height: 1.25; }
.row.sel { background: var(--tint); }
.row .check { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid #C7CCC9; }
.row .check.on { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; }
.row .fix { border: 0; background: none; color: var(--green); font-weight: 600; cursor: pointer; padding: 6px 0 6px 8px; }

/* Segmented control */
.seg { display: flex; background: var(--fill); border-radius: 9px; padding: 2px; gap: 2px; width: 100%; }
.seg button { flex: 1; min-height: 40px; border: 0; background: none; border-radius: 7px; font-weight: 600; font-size: .92rem; color: var(--ink); cursor: pointer; padding: 4px 6px; }
.seg button.on { background: #fff; color: var(--deep); box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }
.seg button small { display: block; font-weight: 400; font-size: .72rem; color: var(--muted); }
.row .lbl, .row .lbl > b { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }   /* long file names break instead of running off the screen */
.seg.wrap { flex-wrap: wrap; } .seg.wrap button { flex: 1 1 64px; }   /* trades and brands wrap to two rows in a narrow column */

/* Big cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 560px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; background: #fff; border: 1.5px solid #fff; border-radius: var(--r); padding: 12px 34px 12px 14px; text-align: left; cursor: pointer; min-height: 64px; }
.card b { display: block; font-weight: 700; }
.card span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.card.on { border-color: var(--ink); }
.card.on::after { content: ""; position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.card:disabled { cursor: default; color: var(--muted); }

/* Switch */
.sw { position: relative; width: 51px; height: 31px; flex: none; }
.sw input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.sw i { position: absolute; inset: 0; background: #E3E3E8; border-radius: 31px; transition: background .2s; }
.sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.sw input:checked + i { background: var(--green); }
.sw input:checked + i::after { transform: translateX(20px); }
.sw input:focus-visible + i { outline: 2px solid rgba(4,105,57,.4); outline-offset: 2px; }

/* From report tag (yellow is an accent only) */
.tag { border: 0; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 1px 8px; font-size: .68rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
button.tag { position: relative; }
button.tag::after { content: ""; position: absolute; inset: -10px -4px; }   /* a finger-size tap area without moving the row */

/* Upload */
.drop { display: block; background: #fff; border: 1.5px dashed #C2C7C4; border-radius: var(--r); padding: 30px 18px; text-align: center; cursor: pointer; }
.drop.on { border-color: var(--green); background: var(--tint); }
.drop input { display: none; }
.drop b { display: block; font-size: 1.06rem; color: var(--deep); margin-top: 8px; }
.drop .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; margin: 0 auto; }
.ok { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Swatches */
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 560px) { .swatches { grid-template-columns: repeat(4, 1fr); } }
.swt { border: 1.5px solid #fff; border-radius: 10px; background: #fff; padding: 6px 6px 8px; cursor: pointer; text-align: center; }
.swt.on { border-color: var(--deep); }
.swt img, .swt .ph { width: 100%; aspect-ratio: 4/3; border-radius: 7px; display: block; object-fit: cover; }
.swt .ph { background: var(--fill); display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.swt span { display: block; font-size: .78rem; line-height: 1.25; margin-top: 6px; font-weight: 600; }

/* Pitch rows */
.pitch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 8px; align-items: center; }
.pitch > label { min-width: 0; }
.pitch label { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 9px; padding: 0 10px; min-height: 40px; }
.pitch label span { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.pitch input { border: 0; background: none; width: 100%; min-width: 4ch; flex: 1 1 0; text-align: right; padding: 8px 0; }   /* never squeezed to nothing by its label (Nov 11 2026: 0 px on a phone) */
.pitch label > span:first-child { white-space: normal; line-height: 1.15; min-width: 0; flex: 0 1 auto; }
.pitch input:focus { outline: none; }
.x { border: 0; background: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; height: 40px; }
.linkbtn { border: 0; background: none; color: var(--green); font-weight: 600; cursor: pointer; padding: 0; }

/* Notes */
.note { border-radius: 10px; padding: 12px 14px; margin: 14px 0 0; font-size: .92rem; background: #fff; }
.note.warn { box-shadow: inset 3px 0 0 var(--yellow); }
.note.bad { box-shadow: inset 3px 0 0 var(--bad); color: var(--bad); }
.busy { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 12px 16px; }
.spin { display: inline-block; width: 18px; height: 18px; flex: none; border: 2.5px solid var(--fill); border-top-color: var(--green); border-radius: 50%; animation: s .8s linear infinite; }
@keyframes s { to { transform: rotate(360deg); } }
/* a busy line's small spinner, before its words (Nov 17 2026: nothing loads with words alone) */
.spin.sm { width: 12px; height: 12px; border-width: 2px; vertical-align: -1px; margin-right: 7px; }
.toast .spin, .btn.primary .spin, .tbtn.primary .spin { border-color: rgba(255,255,255,.3); border-top-color: #fff; }
select.val.waiting, .valtxt.waiting { padding-right: 0; }
.valtxt.waiting .spin { margin-right: 6px; }
select.val.waiting { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6' fill='none' stroke='%23E9E9EF' stroke-width='2'/%3E%3Cpath d='M8 2a6 6 0 0 1 6 6' fill='none' stroke='%23046939' stroke-width='2'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 8 8' to='360 8 8' dur='.8s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 12px 12px; background-position: left center; padding-left: 18px; }

/* Step buttons: in the form on wide screens, a fixed bar on narrow ones */
.nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 28px; }
.btn { min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0; font-weight: 700; cursor: pointer; }
.btn.primary { background: var(--green); color: #fff; }
.btn.plain { background: none; color: var(--deep); }
.btn:disabled, .btn.wait { opacity: .45; }
.note.practice { background: #E8F1FB; color: #1C4E80; border: 1px solid #C9DDF2; margin-bottom: 10px; }
.note.practice b { margin-right: 6px; }
.tbtn.primary.wait { background: var(--fill); border-color: var(--hair); color: var(--muted); }   /* grey until ready to send */
html.big, html.big body { font-size: 19.5px; }   /* Admin: Bigger text */
.bar { display: none; }
@media (max-width: 1023px) {
  .form .nav { display: none; }
  .bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: rgba(242,242,247,.94); backdrop-filter: blur(12px);
    border-top: 1px solid var(--hair); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .bar:empty { display: none; }
  .bar .in { max-width: 640px; margin: 0 auto; display: flex; gap: 10px; }
  .bar .btn.primary { flex: 1; }
}

/* ---------- Proposal preview ---------- */
.pv { padding: 22px; }
.pv .tools { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: .82rem; color: var(--muted); }
.draft { background: #fff; color: #9A5B00; border: 1px solid #F1D9A8; border-radius: 999px; padding: 3px 10px; font-weight: 700; font-size: .72rem; }
.draft.ready { color: var(--green); border-color: #BFD9C9; }
/* the preview is catching up with a change (paintPvState) */
/* a small capsule beside the title, the iOS way, so it is seen (Nov 5 2026 live check: the plain gray text was missed) */
.pvstate { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; color: var(--ink); margin-left: auto; flex: none; white-space: nowrap;
  background: rgba(255,255,255,.92); border: 1px solid var(--hair); border-radius: 999px; padding: 3px 10px 3px 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pvstate[hidden] { display: none; }
.pvstate .spin { width: 12px; height: 12px; border-width: 2px; }
.pvbox iframe { transition: opacity .25s ease; }
.pvbox.stale iframe { opacity: .55; }
.page { background: #fff; aspect-ratio: 8.5 / 11; width: 100%; max-width: 640px; margin: 0 auto; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 28px rgba(0,0,0,.08);
  padding: 7% 8%; display: flex; flex-direction: column; }
.page .lh { width: 46%; height: auto; }
.page .rule { height: 3px; background: var(--yellow); margin: 5% 0 6%; width: 18%; }
.page h2 { font-family: var(--serif); font-weight: 700; color: var(--deep); font-size: 1.5rem; margin: 0 0 6px; }
.page p { color: var(--muted); font-size: .9rem; margin: 0 0 6px; }
.page .soon { margin-top: auto; border-top: 1px solid var(--hair); padding-top: 14px; font-size: .82rem; color: var(--muted); }

/* Sheets (picker lists, estimates list and full screen preview on narrow screens) */
.sheet-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.32); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet-wrap[hidden] { display: none; }
.sheet { background: var(--bg); width: 100%; max-width: 640px; max-height: 86vh; border-radius: 14px 14px 0 0; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.sheet .grab, .sheet .sh { touch-action: none; }
.sheet .body { overscroll-behavior: contain; }
.sheet .grab { width: 36px; height: 5px; border-radius: 5px; background: #C7C7CC; margin: 8px auto 2px; }
.sheet .sh { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 10px; }
.sheet .sh h3 { margin: 0; font-size: 1.06rem; }
.sheet .done { border: 0; background: none; color: var(--green); font-weight: 700; cursor: pointer; font-size: 1rem; }
.sheet .body { overflow-y: auto; padding: 0 16px 16px; }
.sheet.full { max-width: none; height: 100vh; max-height: 100vh; border-radius: 0; }
.sheet .group { margin-top: 8px; }
.viewer canvas { width: 100%; height: auto; display: block; border-radius: 6px; }

.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: #1F2421; color: #fff; padding: 11px 16px;
  border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; z-index: 30; font-size: .92rem; }
.toast.show { opacity: 1; }
@media (min-width: 1024px) { .narrow-only { display: none; } }
.topbar .who span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Nov 20 2026 (Trey: "any time I do anything the page moves"): the rule above made the little spinner in "Saving..." a block of
   its own, so on a laptop the save line was two lines tall while saving and the whole page dropped 12 px, then came back
   when it said Saved. The spinner stays inline, and the save line keeps one fixed line whatever it says. */
.topbar .who .saveline .spin { display: inline-block; }
.topbar .who .saveline { height: 1.15rem; line-height: 1.15rem; }
@media (max-width: 559px) { .topbar .mlogo { display: none; } }
.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { min-width: 0; overflow-wrap: break-word; }
@media (max-width: 559px) { .card b { font-size: .95rem; } }
.winhead { display: flex; align-items: center; gap: 10px; }
.winhead b { flex: 1; font-weight: 600; }
.winhead select { border: 0; background: none; color: var(--ink); text-align: right; padding: 4px 0; cursor: pointer; }
.pitch.two { grid-template-columns: 1fr 1fr; }
.pitch.three { grid-template-columns: 1fr 1fr 74px; }
.pitch.capline { grid-template-columns: 1fr 40px; }
.pitch.capline input { text-align: left; }
.pitch label select.val { flex: 1 1 auto; text-align: left; text-align-last: left; padding: 8px 0; }
/* House walk, search, live price (KEITH_PARITY.md section 7) */
.usual { display: inline-block; margin-left: 6px; font-size: .68rem; font-weight: 700; color: var(--muted); background: var(--fill); border-radius: 999px; padding: 1px 7px; }
.fx { display: block; width: 100%; color: var(--muted); font-size: .78rem; font-weight: 600; }
.fx:empty { display: none; }
/* ROUND_8 section 11, ROUND_9 section 4: the tag line is kept on every row that can show one, answered or not */
.row > .lbl small.fx { display: block; line-height: 1.25; }
.row > .lbl small.fx:empty { display: none; }   /* Nov 5 2026: an empty price line takes no room; it grows in when it has words (fxSet) */
.row[hidden] { display: none; }
.row.stack textarea.grow { resize: none; overflow: hidden; min-height: 76px; }
.live { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: rgba(255,255,255,.96);
  border: 1px solid var(--hair); border-radius: 12px; padding: 10px 14px; margin: 14px 0 4px; font-size: .9rem; color: var(--muted); backdrop-filter: blur(8px); }
.live b { color: var(--ink); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.walkq { position: relative; }
.walkq + .walkq::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--hair); z-index: 1; }
.walkq.yes { background: #FBFCFB; }
.walkq.yes .row:not(:first-child) { padding-left: 28px; }
.walkq .q { font-weight: 600; }
.walkq.yes { box-shadow: inset 3px 0 0 var(--green); }
.moreRow .lbl small { display: inline; width: auto; margin-left: 6px; }
.searchwrap { position: relative; margin-top: 12px; }
.searchwrap .results { position: absolute; left: 0; right: 0; top: 44px; z-index: 6; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.searchwrap .results[hidden] { display: none; }
.flash { animation: flash 1.6s ease-out; }
.blocker { outline: 3px solid var(--yellow); outline-offset: -2px; border-radius: 6px; }
@keyframes flash { 0%, 40% { background: #FFF6CC; } 100% { background: #fff; } }
.row > .lbl small.fx { color: var(--muted); font-weight: 600; }
/* Real proposal preview (shared template in an iframe) */
.pv { padding: 0 0 24px; }
.pv .tools { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; background: rgba(233,236,234,.95); backdrop-filter: blur(8px); margin: 0; }
.pv .pvtitle { font-weight: 600; color: var(--ink); font-size: .88rem; flex: 1; }
.pv .pvswitch .seg { width: auto; }
.pv .pvswitch .seg button { min-height: 32px; padding: 2px 12px; font-size: .82rem; white-space: nowrap; }
.pv .pvmsg { padding: 0 16px; }
.pvbox { position: relative; overflow: hidden; margin: 0 auto; }
.pvbox:not(.drawn) { height: 0 !important; visibility: hidden; }   /* no blank white bar before the first page is drawn */
#pvframe { width: 860px; border: 0; display: block; transform-origin: top left; background: transparent; }
@media (min-width: 1024px) { .pv .narrow { display: none; } }
/* ROUND_12 0d: the full-screen proposal view, every screen size; Close only shows in it */
.pv .pvpapers { display: none; }
body.pv-open .pv .pvpapers { display: block; }
.pv.hasver .pvpapers { display: none !important; }   /* a sent version carries its own Print and Download */
.pv .pvdone { display: none; }
body.pv-open .pv .pvdone { display: inline-block; }
body.pv-open #preview { display: block; position: fixed; inset: 0; z-index: 25; overflow-y: auto; background: #E9ECEA; width: auto; max-width: none; }
body.pv-open { overflow: hidden; }
@media (min-width: 1024px) { body.pv-open .pvbox { margin: 0 auto; } }
/* Cover photo */
.coverimg { width: 100%; max-height: 360px; object-fit: cover; border-radius: 10px; display: block; }
.sugg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sugg .swt img { aspect-ratio: 4/3; object-fit: cover; }
a.row { color: inherit; text-decoration: none; }

/* Customer step: address suggestions under the street row */
#addrsugg { margin: 0; border-radius: 0; box-shadow: none; background: var(--bg); }
#addrsugg .row { padding-left: 22px; }

/* Gutter Custom Build lines: one small field per column, wrapping on a phone */
.customline { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin-top: 6px; }
.customline label { display: flex; flex-direction: column; background: var(--bg); border-radius: 9px; padding: 4px 8px; }
.customline label span { font-size: .72rem; color: var(--muted); }
.customline input { border: 0; background: none; padding: 4px 0; min-width: 0; }
.customline input:focus { outline: none; }

/* ---------- Live app (NEXT_ROUND.md section 6): status, filters, lead source ---------- */
.estctl { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.estctl .seg button { min-height: 32px; font-size: .82rem; }
.estctl select.val { height: 34px; border: 1px solid var(--hair); border-radius: 9px; background: #fff; padding: 0 8px; font: inherit; font-size: .85rem; color: var(--ink); }
.estctl .linkbtn { text-align: left; font-size: .82rem; }
.est em.st, .row.est em.st { display: inline-block; margin-top: 3px; font-style: normal; font-size: .72rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--fill); color: var(--muted); }
.row.est { display: block; }
.row.est b { display: block; font-weight: 600; }
.row.est span { display: block; font-size: .82rem; color: var(--muted); }
em.st-sent, em.st-quote { background: #FFF6CC; color: #6B5500; }
em.st-on_jobnimbus, em.st-quoted { background: var(--tint); color: var(--deep); }
em.st-sold { background: var(--deep); color: #fff; }
em.st-held { background: #FBE9E7; color: var(--bad); }
em.st-notsent { background: #FFF1D6; color: #9A5B00; }
em.st-lost { background: var(--fill); color: var(--muted); text-decoration: line-through; }
.topbar .who em.unsaved { font-style: normal; color: #9A5B00; font-weight: 600; }   /* amber: red is for delete only */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; width: 100%; }
.chip { border: 1px solid var(--hair); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .85rem; cursor: pointer; color: var(--ink); }
.chip.on { background: var(--tint); border-color: var(--deep); color: var(--deep); font-weight: 600; }   /* picked: a light green fill so it reads as picked on a white card (Oct 29 2026) */
.est span.why, .row.est span.why { color: var(--bad); font-size: .76rem; margin-top: 2px; white-space: normal; }
.row.stack textarea.full { width: 100%; border: 0; background: var(--bg); border-radius: 9px; padding: 10px 12px; font: inherit; font-size: .92rem; resize: vertical; }
.fix:disabled { opacity: .45; cursor: default; }
.pitch.dims { grid-template-columns: 1fr 1fr .7fr; }
.tbtn.icon.trash { color: var(--bad); }
.pvbtn svg { display: none; }
/* ROUND_8 section 13: below desktop width the header icons carry a one-word label under them */
.tbtn .nlab { display: none; }
@media (max-width: 1023px) { .tbtn.icon:has(.nlab) { width: auto; min-width: 44px; padding: 0 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; } .tbtn .nlab { display: block; font-size: .62rem; line-height: 1; font-weight: 600; } .tbtn.icon:has(.nlab) svg { width: 16px; height: 16px; } }
@media (max-width: 480px) { .pvbtn { min-width: 44px; padding: 0 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; } .pvbtn svg { display: block; width: 16px; height: 16px; } .pvbtn span { font-size: .62rem; line-height: 1; } }   /* a phone keeps room for the customer's name */
.sheet #estsearch2 { margin-bottom: 10px; }
.topbar .who .saveline { display: block; font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .who .saveline.off { color: #8A6500; }
.topbar .who .saveline.bad { color: var(--bad); font-weight: 600; }
.topbar .who .saveline .long { display: inline; }
.topbar .who .saveline .short { display: none; }
@media (max-width: 1300px) { .topbar .who .saveline .long { display: none; } .topbar .who .saveline .short { display: inline; } }   /* a phone shows the short form; Review says the rest */

/* ROUND_10 section 10: the alerts button with its explanation; section 1: a returning customer card */
.linkbtn.alerts small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
/* ROUND_12 0b: a person is a plain row; the open one shows its actions under it */
.row.person { min-height: 44px; }
.linkbtn.quiet { color: var(--muted); font-weight: 400; }
/* ROUND_12 0c: a rare escape, not a suggested answer: small light gray, no row of its own, still a 44 px tap target */
.quietlink { border: 0; background: none; color: var(--muted); font-size: .85rem; font-weight: 400; cursor: pointer; padding: 0 16px; min-height: 44px; text-decoration: none; text-align: left; }
.quietlink:hover, .quietlink:focus-visible { text-decoration: underline; }
.quietlink.under { display: block; margin-top: -6px; }
.itemhead { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.quietlink.rm { padding: 0 0 0 12px; }
/* ROUND_12 0m: the small "?" and its one-line hint */
.hint { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--hair); background: #fff; color: var(--muted); font-size: .75rem; font-weight: 700; margin-left: 6px; cursor: pointer; vertical-align: middle; position: relative; }
.hint::after { content: ""; position: absolute; inset: -11px; }   /* 44 px tap area */
.hinttxt { margin: 2px 0 6px; }
/* ROUND_12 0v: the section name gets its own full-width row under the pitch, nothing cut off at 360 px */
.pitchname { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; margin-top: 8px; }
.pitchname span { font-size: .82rem; color: var(--muted); }
.pitchname input { width: 100%; box-sizing: border-box; min-height: 44px; border: 0; border-radius: 9px; background: var(--bg); padding: 8px 10px; font: inherit; text-overflow: ellipsis; }
.pitchname input:focus { outline: 2px solid var(--green, #0E4F2C); outline-offset: -2px; }
/* ROUND_12 0s: the step bar (a dot on every step with open items), "2 left", the Needed tag, a half answer's note */
.stepbar { display: flex; gap: 4px; margin: 8px 0 18px; }
.stepbar .stp { flex: 1; height: 22px; border: 0; padding: 0; background: none; position: relative; cursor: pointer; }
.stepbar .stp::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 4px; background: var(--fill); transition: background-color .25s cubic-bezier(.2,.8,.2,1); }
.stepbar .stp.on::before { background: var(--green); }
.stepbar .stp .dot { position: absolute; right: 2px; top: 1px; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--bg); }
.leftcount { font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--fill); border-radius: 999px; padding: 2px 9px; vertical-align: middle; margin-left: 6px; }
/* the step's count jumps to its first open item: a button that looks the same, with a 44 px tap area */
button.leftcount { border: 0; font-family: inherit; line-height: inherit; cursor: pointer; position: relative; transition: background-color .2s; }
button.leftcount::after { content: ''; position: absolute; inset: -12px -6px; }
button.leftcount:active { background: var(--line, #d1d1d6); }
/* a list's own count under its caption is words, not a button: only the heading's count is tapped (Nov 12 2026 hunt) */
.cap span.leftcount { background: none; padding: 0; margin-left: 4px; font-weight: 500; }
.cap span.leftcount::before { content: '·'; margin-right: 6px; }
.needtag { display: inline-block; font-size: .7rem; font-weight: 700; color: #7A5A00; background: #FFF3BF; border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
small.needtxt { color: #7A5A00; }
/* the repair description's line count says something only when it is too long; empty it takes no room (Nov 11 2026: a
   stray circle sat under the box) */
small.descnote { display: block; margin-top: 6px; }
small.descnote:empty { display: none; }
small.needtxt::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); margin-right: 6px; vertical-align: 1px; }
/* ROUND_12 0w: one easing, 180 to 300 ms, transform and opacity only; nothing moves under reduced motion */
.seg { position: relative; }
.seg .pill { position: absolute; left: 0; border-radius: 7px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); pointer-events: none; transform-origin: left top; will-change: transform; }
.seg.haspill button { position: relative; z-index: 1; }
.seg.haspill button.on { background: transparent; box-shadow: none; }
.chip, .row, .seg button { transition: background-color .25s ease-out, color .25s ease-out, border-color .25s ease-out; }
.sw i::after { transition: transform .28s cubic-bezier(0.32, 0.72, 0, 1); }
.sw i { transition: background-color .28s cubic-bezier(0.32, 0.72, 0, 1); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* ROUND_12 0z rule 10: every tap target at least 44 px (the visible size stays; the touch area grows) */
.seg button { min-height: 44px; }
.pitch label { min-height: 44px; }
.search, .tbtn { height: 44px; }
.sw input { top: -7px; bottom: -7px; height: auto; }
.pv .pvswitch .seg button, .estctl .seg button { min-height: 36px; position: relative; }
.pv .pvswitch .seg button::after, .estctl .seg button::after { content: ""; position: absolute; inset: -4px 0; }
.estctl select.val { height: 44px; }
.chip { position: relative; } .chip::after { content: ""; position: absolute; inset: -6px -2px; }
.note.real { box-shadow: inset 3px 0 0 var(--yellow); }
/* ROUND_12 sections 2 and 3: the email sheet */
.mail textarea, .mail .mailbody { width: 100%; box-sizing: border-box; border: 0; border-radius: 9px; background: var(--bg); padding: 10px 12px; font: inherit; line-height: 1.45; resize: vertical; min-height: 44px; }
.mail .mailbody { min-height: 260px; }
.mail input.val.left { text-align: left; width: 100%; }
.mail .row.stack .lbl { margin-bottom: 6px; }
.mailpages { margin-top: 12px; }
.mailpages .pdfpage { display: block; width: 100%; height: auto; margin: 0 0 12px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.18); background: #fff; }
.pdfph { min-height: 220px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); background: var(--card); border-radius: var(--r); }
.btn.wide { width: 100%; min-height: 48px; }
/* ROUND_12 section 5: the template editor, wording and preview side by side on a computer */
.tpl2 { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 1024px) { .tpl2 { grid-template-columns: 1fr 1fr; } }
.tplout pre { white-space: pre-wrap; font: inherit; margin: 8px 0 0; }
/* ROUND_12 0b: iOS selection, a checkmark on the picked row, nothing filled */
.row .chk { margin-left: auto; padding-left: 10px; color: var(--green); display: inline-flex; align-items: center; flex: none; }
.inset .row { padding-left: 34px; }
.inset .row .lbl { font-size: .95rem; }
.row.person::after, .inset .row::after { display: none; }   /* a selection list: the checkmark, no chevron */
/* ROUND_12 0w2: a row turns gray the moment it is pressed; on release the gray fades out (about 250 ms) */
.row.tap:active, button.row:active, label.row.tap:active { background-color: #D1D1D6; transition: none; }
.ghost { will-change: transform; }
#app { overflow-x: clip; }

/* ROUND_14 8e: a viewer (Ken, Keith) looking at another rep's estimate: everything shows, nothing can be changed or sent */
.ro #app input, .ro #app select, .ro #app textarea, .ro #app .seg button, .ro #app .card, .ro #app .fix, .ro #app .btn, .ro #app label.row, .ro #app button.row.tap, .ro #app .x { pointer-events: none; }
.ro #app input, .ro #app select, .ro #app textarea, .ro #app .btn, .ro #app .fix { opacity: .6; }
.robanner { display: none; } .ro #app > .robanner { display: block; margin: 8px 16px; padding: 10px 12px; border-radius: 10px; background: #FFF4D6; color: #5C4400; font-size: 14px; }

/* ROUND_14 9a: appointment prep */
.appt + .appt { border-top: .5px solid var(--sep, #C6C6C8); }
.appt .chip { font-size: 12px; padding: 3px 8px; border-radius: 999px; margin-right: 8px; white-space: nowrap; }
.appt .chip.ok { background: #E3F4E8; color: #1B6B3E; }
.appt .chip.wait { background: #FFF1D6; color: #7A5200; }
.appt-links { display: flex; gap: 18px; padding: 0 16px 12px; font-size: 15px; }
.appt-links a { color: var(--accent, #0E4F2C); text-decoration: none; }
.cap.sub { text-transform: none; font-size: 13px; margin-top: 4px; }
/* typing on a production form (Oct 27 2026): one row per line of the form, a small box per cell, typed cells marked */
.egrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px 10px;   /* each box gets at least 240 px, a whole line on a phone, so a name, a phone number or an address is not cut off while typing (Nov 20 2026) */ width: 100%; margin-top: 6px; }
.ecell { display: flex; flex-direction: column; gap: 3px; font-size: .75rem; color: var(--muted); }
.ecell input { font: inherit; font-size: .95rem; color: var(--ink); padding: 8px 10px; border: 1px solid var(--hair); border-radius: 8px; background: var(--card); min-width: 0; }
.ecell.typed input { border-color: #C9A400; background: #FFF8D6; }
.ecell.typed span::after { content: ' typed'; color: #7A5A00; font-weight: 700; }
.erow[hidden] { display: none; }
/* Send as sold: a real button, with the send steps under it while it works (Oct 27 2026) */
.soldsend { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.soldsend .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.soldsend small { padding: 0 4px; }
/* Disclosure rows (Oct 27 2026, Trey: "I don't think Apple would have a Close button"): tap the row to open or close,
   the chevron turns down when open, as in iOS Settings */
.disc .chev { flex: none; width: 8px; height: 8px; margin: 0 4px 0 auto; border-right: 2px solid #C4C4C7; border-bottom: 2px solid #C4C4C7; transform: rotate(-45deg); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.disc[aria-expanded="true"] .chev { transform: rotate(45deg); margin-top: -4px; }
@media (prefers-reduced-motion: reduce) { .disc .chev { transition: none; } }
/* Send as sold: an iOS tinted button; while it sends it fills from left to right with the step written inside */
.sendbtn { position: relative; overflow: hidden; background: var(--tint); color: var(--deep); border: 0; border-radius: 999px; min-height: 52px; font-weight: 700; font-size: 1rem; }
.sendbtn:not([disabled]):hover { background: #DCEBE1; }
.sendbtn:not([disabled]):active { transform: scale(.985); }
.sendbtn .fill { position: absolute; inset: 0 auto 0 0; background: rgba(4,105,57,.18); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.sendbtn .txt { position: relative; display: inline-flex; align-items: center; gap: 10px; }
.sendbtn.busy[disabled], .sendbtn.done[disabled] { opacity: 1; cursor: default; }
.sendbtn.done { background: transparent; box-shadow: inset 0 0 0 1px var(--hair); color: var(--deep); }
.sendbtn .tick { display: inline-block; width: 6px; height: 11px; margin-right: 10px; border-right: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(45deg) translateY(-2px); }
/* An open section keeps its header (and its chevron) on screen while you are inside it, so one tap folds it from
   anywhere (Oct 27 2026, Trey: "everything needs the navigation option to go back or collapse", no Close rows) */
:root { --stick-top: 0px; --key-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 18px rgba(0, 0, 0, .08); --key-radius: 16px; }
@media (max-width: 1023px) { :root { --stick-top: calc(56px + env(safe-area-inset-top)); } }
.discsec { position: relative; }
.discsec > .discsticky { position: sticky; top: var(--stick-top); z-index: 3; }
.discsec > .discbody { margin-top: 10px; }
.group > .disc[aria-expanded="true"] { position: sticky; top: var(--stick-top); z-index: 2; }
.sheet .discsec > .discsticky, .sheet .group > .disc[aria-expanded="true"] { top: 0; }
/* disclosure rows use the row's own arrow: it points right when folded, down when open (one arrow, not two) */
.row.tap.disc .chev { display: none; }
.row.tap.disc::after { margin-left: auto; transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.row.tap.disc[aria-expanded="true"]::after { transform: rotate(135deg); }
@media (prefers-reduced-motion: reduce) { .row.tap.disc::after { transition: none; } }

/* ---------- Email: Outlook's new message (Oct 27 2026) ---------- */
@media (min-width: 1024px) {
  /* desktop: a compose window, not the whole screen (Trey: "on desktop the email look is too big") */
  .sheet-wrap:has(.mail) { align-items: center; }
  .sheet.full:has(.mail) { max-width: 760px; height: min(900px, 92vh); max-height: 92vh; border-radius: 12px; box-shadow: 0 18px 50px -12px rgba(0,0,0,.35); }
  .mail { font-size: .94rem; }
}
.mail .compose { padding: 0; overflow: visible; }
.mail .rcpt { display: flex; align-items: flex-start; gap: 10px; min-height: 46px; padding: 8px 14px; }
.mail .rcpt .rl { flex: none; width: 58px; padding-top: 6px; color: var(--muted); font-size: .9rem; }
.mail .rbox { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mail .rin { flex: 1; min-width: 140px; border: 0; outline: 0; background: transparent; padding: 6px 0; font: inherit; }
.mail .subj .rin { width: 100%; font-weight: 600; }
.mail .rfrom { padding-top: 6px; min-width: 0; flex: 1; overflow-wrap: anywhere; }
/* a long name or address wraps instead of pushing the sheet sideways on a phone (Nov 11 2026 audit) */
.mail .rcpt, .mail .rbox { min-width: 0; } .sheet .body:has(.mail) { overflow-x: hidden; }
/* the reason under the check box takes no room once there is nothing to say (one Send, at the top) */
.row.mailwhy:has(> small:empty) { display: none; }
 .mail .rfrom small { color: var(--muted); margin-left: 6px; font-size: .85rem; }
.mail .rchip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; background: #E8EEF9; color: #1F3B73; border-radius: 4px; padding: 3px 4px 3px 8px; font-size: .9rem; line-height: 1.3; }
.mail .rchip.bad { background: #FFF3BF; color: #7A5A00; }
.mail .rchip .rx { position: relative; width: 20px; height: 20px; border: 0; background: none; border-radius: 3px; cursor: pointer; flex: none; }
.mail .rchip .rx::before, .mail .rchip .rx::after { content: ""; position: absolute; left: 5px; right: 5px; top: 9.5px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.mail .rchip .rx::after { transform: rotate(-45deg); }
.mail .rchip .rx:hover { background: rgba(0,0,0,.08); }
.mail .rcc { flex: none; border: 0; background: none; color: var(--green); font-weight: 600; cursor: pointer; padding: 6px 2px; }
.mail .pplist { position: relative; z-index: 4; margin: -2px 14px 6px 82px; background: #fff; border: 1px solid var(--hair); border-radius: 8px; box-shadow: 0 8px 24px -10px rgba(0,0,0,.3); overflow: hidden; }
.mail .pplist[hidden] { display: none; }
.mail .ppl { display: flex; flex-direction: column; align-items: flex-start; width: 100%; border: 0; background: #fff; padding: 9px 12px; text-align: left; cursor: pointer; font: inherit; }
.mail .ppl + .ppl { border-top: 1px solid var(--hair); }
.mail .ppl:hover, .mail .ppl:focus { background: #F3F6FB; }
.mail .ppl small { color: var(--muted); font-size: .82rem; }
.mail .atts { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--hair); }
.mail .att { display: flex; align-items: center; gap: 10px; width: 270px; max-width: 100%; padding: 6px 10px 6px 6px; border: 1px solid var(--hair); border-radius: 6px; background: #fff; text-align: left; cursor: pointer; font: inherit; }
.mail .att:hover { border-color: #C9CDD3; background: #FAFBFC; }
.mail .att .attthumb { width: 40px; height: 52px; flex: none; object-fit: cover; object-position: top; border: 1px solid var(--hair); border-radius: 3px; background: var(--fill); display: flex; align-items: center; justify-content: center; }
.mail .att .attthumb .spin { width: 14px; height: 14px; border-width: 2px; }
.mail .att .atxt { min-width: 0; display: flex; flex-direction: column; }
.mail .att .attname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .88rem; font-weight: 600; }
.mail .att .attmeta { color: var(--muted); font-size: max(13px, .8rem); }
.mail .compose .mailbody { background: #fff; border-radius: 0 0 var(--r) var(--r); padding: 12px 14px; min-height: 240px; resize: none; overflow: hidden; }   /* grows with the message: no box scrolling inside the sheet */
/* an attachment opened full size, over the email */
.attview { position: fixed; inset: 0; z-index: 40; background: rgba(32,33,36,.94); display: flex; flex-direction: column; }
.attview .avbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; color: #fff; }
.attview .avname { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.attview .avname small { margin-left: 8px; opacity: .7; font-weight: 400; }
.attview .tbtn { background: #fff; color: var(--ink); border: 0; border-radius: 8px; padding: 7px 14px; min-height: 44px; font-weight: 700; cursor: pointer; }
.attview .avpages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 12px 24px; }
.attview .pdfpage { display: block; height: auto; background: #fff; border-radius: 2px; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.attview .pdfph { min-height: 200px; width: min(900px, 100%); }
/* the last repair estimate stays on screen, faded, while the new one prints (Oct 27 2026) */
.reppv canvas { transition: opacity .25s ease; }
.reppv.stale canvas { opacity: .55; }
/* Keith's Repair Estimate, drawn live in the preview (Oct 27 2026): a letter page, sized to the pane */
.reppv .rpage { container-type: inline-size; background: #fff; aspect-ratio: 8.5 / 11; width: 100%; box-shadow: 0 1px 4px rgba(0,0,0,.18); border-radius: 2px; color: #111; font-family: Calibri, Carlito, Arial, sans-serif; transition: opacity .25s ease; }
.reppv.stale .rpage { opacity: .55; }
.reppv .rpin { position: relative; height: 100%; padding: 6.5% 8% 5%; font-size: 1.62cqw; line-height: 1.35; display: flex; flex-direction: column; }
.reppv .rphead { display: flex; justify-content: space-between; align-items: flex-start; }
.reppv .rphead img { width: 41%; height: auto; }
.reppv .rpdate { margin-top: 2.5%; } .reppv .rpdate u { display: inline-block; min-width: 13em; text-align: center; text-decoration: none; border-bottom: 1px solid #222; }
.reppv .rpco { margin-top: 2%; }
.reppv .rptitle { text-align: center; font: 700 1.25em Calibri, Carlito, Arial, sans-serif; text-decoration: underline; margin: -1.6em 0 2.2em; }
.reppv .rpcust { display: grid; grid-template-columns: 1.4fr 1fr; row-gap: .25em; margin-left: 6%; }
.reppv .rpcust > div { display: flex; gap: .4em; align-items: baseline; }
.reppv .rpcust span { min-width: 3.6em; text-align: right; }
.reppv .rpcust u { flex: 1; text-decoration: none; border-bottom: 1px solid #222; max-width: 18em; }
.reppv .rpcust .rpph2 { justify-content: flex-end; } .reppv .rpcust .rpph2 u { max-width: 9em; text-align: center; }
.reppv .rpdesc { margin-top: 2.6em; } .reppv .rpdesc > div { min-height: 1.35em; }
.reppv .rpfoot { margin-top: auto; }
.reppv .rpwarr { font-family: "Times New Roman", serif; font-size: 1.12em; }
.reppv .rpmoney { margin-left: auto; width: 82%; }
.reppv .rpmoney > div { display: flex; justify-content: flex-end; align-items: baseline; gap: .4em; }
.reppv .rpmoney span:first-child { text-align: right; }
.reppv .rpmoney > div > span + span, .reppv .rpmoney b, .reppv .rpmoney .rpw { border-bottom: 1px solid #222; }
.reppv .rpmoney b { font-weight: 400; min-width: 8.5em; text-align: right; }
.reppv .rpmoney > div > span:nth-child(2) { width: 1.2em; }
.reppv .rpw { color: #8a8f8c; font-size: .9em; min-width: 18em; text-align: right; }
.reppv .rpph { color: #9AA3A0; }
.reppv .rpsign { display: grid; grid-template-columns: 1fr 1.3fr; margin-top: 3em; }
.reppv .rpline { border-bottom: 1px solid #222; height: 2.2em; }
.reppv .rpsys { margin-top: 1.6em; font: .72em Arial, sans-serif; }
.reppv .rpmoney { width: 96%; } .reppv .rpmoney > div > span:first-child { white-space: nowrap; }

/* Review, Scope of work: the line buttons under each line (Oct 27 2026) */
.srow { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.ibtn { flex: none; border: 0; background: none; width: 40px; height: 40px; margin: -6px -4px -6px 2px; display: inline-flex; align-items: center; justify-content: center; color: #8E8E93; border-radius: 10px; cursor: pointer; transition: background-color .2s; }
.ibtn:active { background: var(--fill); }
.ibtn.rm { color: var(--bad); }
.ibtn.add { color: var(--green); }   /* colors carry meaning only: green plus adds, red minus removes, the rest is gray (Trey, Oct 29 2026) */
.ibtn.add { margin: -6px 6px -6px -8px; }
.ro #app .ibtn { pointer-events: none; }
.ibtn.soft { color: #8E8E93; }
.row.reset .lbl { color: var(--green); }
/* scope line being edited: full width, readable, grows with the words */
.scopebox { width: 100%; min-height: 92px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--ink); line-height: 1.45; text-align: left; border: 1px solid var(--hair); border-radius: 10px; background: var(--card); resize: none; overflow: hidden; }
.scopebox:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(4,105,57,.12); }
.scopebox.bad { border-color: #D9AE00; box-shadow: 0 0 0 3px rgba(252,208,2,.3); }   /* a hint, so the Needed yellow (Nov 3 2026) */
/* email attachments: an x takes one off this email (Oct 27 2026) */
.mail .attwrap { position: relative; display: inline-block; max-width: 100%; }
.mail .attx { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #8E8E93; cursor: pointer; }
.mail .attx::before, .mail .attx::after { content: ""; position: absolute; left: 6px; top: 10px; width: 10px; height: 2px; background: #fff; border-radius: 1px; transform: rotate(45deg); }
.mail .attx::after { transform: rotate(-45deg); }
.toast.act { pointer-events: auto; display: flex; align-items: center; gap: 14px; }
.toast .tundo { border: 0; background: none; color: var(--yellow); font: inherit; font-weight: 700; padding: 8px 4px; margin: -8px 0; cursor: pointer; }
/* bigger tap areas on small buttons (Oct 27 2026 audit: several tries on a phone); the look stays the same */
.linkbtn, .row .fix { position: relative; }
.linkbtn::after, .row .fix::after { content: ""; position: absolute; inset: -10px -6px; }
.mail .rchip .rx { width: 28px; height: 28px; margin: -4px -4px -4px 0; }
.mail .rchip .rx::before, .mail .rchip .rx::after { left: 9px; right: 9px; top: 13.25px; }
.mail .attx { width: 28px; height: 28px; top: -10px; right: -10px; }
.mail .attx::before, .mail .attx::after { left: 8px; top: 13px; width: 12px; }
/* the delete icon sits a little apart from the others, so a mis-tap meant for Estimates does not land on it (Oct 27 2026) */
.tbtn.icon { min-width: 44px; }
.tbtn.icon.trash { margin-right: 10px; }
/* the step bar segments look 22 px tall; the touch area is 44 (Oct 27 2026 phone sweep) */
.stepbar .stp { height: 44px; margin: -11px 0; }
.stepbar .stp::before { top: 20px; }
.stepbar .stp .dot { top: 12px; }
/* Today, follow-ups, Add a customer (Oct 27 2026) */
.linkbtn.today { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .95rem; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--yellow); color: var(--ink); font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; animation: badgein .35s cubic-bezier(.2,.8,.2,1); }
@keyframes badgein { from { transform: scale(.4); opacity: 0; } }
.dot-due, .dot-warn, .dot-none { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-due { background: var(--green); } .dot-warn { background: var(--yellow); } .dot-none { background: var(--hair); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 16px; text-align: center; }
.empty b { font-size: 1.1rem; } .empty span { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .badge { animation: none; } }
.note-row .lbl { white-space: normal; line-height: 1.35; }
#joblive.fresh small { animation: freshin .4s ease; }
@keyframes freshin { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #joblive.fresh small { animation: none; } }
/* change orders */
.coline { gap: 8px; }
.corow { display: flex; align-items: center; gap: 8px; width: 100%; }
.corow .seg.sm { width: auto; flex: none; } .corow .seg.sm button { min-height: 34px; padding: 4px 12px; position: relative; }
.corow .seg.sm button::after { content: ""; position: absolute; inset: -5px 0; }   /* 44 px to the finger (Nov 3 2026 audit) */
.coamt { flex: 1; min-width: 0; text-align: right; }
/* Switch product: what they had and what they want, one picker each (Nov 3 2026) */
.coswitch .corow .lbl { flex: 1; min-width: 0; }
.cosel { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; border-top: 1px solid var(--hair); }
.cosel > span { flex: none; color: var(--muted); }
.cosel select.val { flex: 1 1 auto; min-width: 0; min-height: 44px; border: 0; background: none; text-align: right; text-align-last: right; font-size: 16px; color: var(--ink); cursor: pointer; }
.cosel select.val:disabled { opacity: .5; cursor: default; }
.homeacts { margin-top: 10px; text-align: left; }
.homeacts .row .badge { margin-left: auto; margin-right: 6px; }
/* Ease-of-use pass, Oct 27 2026: nothing under 13px, readable placeholders, 44px tap targets, a mark on failed checks */
.cap, .list .cap { font-size: .8125rem; }
.seg button small, .swt span, .fx, .customline label span, .linkbtn.alerts small, .ecell, .topbar .who .saveline, .pvstate { font-size: .8125rem; }
.tag, .usual, .needtag, .draft, .est em.st, .row.est em.st, .est span.why, .row.est span.why, .appt .chip, .tbtn .nlab, .hint { font-size: .8125rem; }
.row input.val::placeholder, input::placeholder, textarea::placeholder { color: #767E7A; }
.sheet .done { min-height: 44px; padding: 0 4px 0 12px; }
.newbtn { height: 44px; }
.ibtn, .x { min-width: 44px; min-height: 44px; }
.corow .seg.sm button { min-height: 44px; }
.mail .rcc { min-height: 44px; padding: 0 8px; }
.ecell input { min-height: 44px; }
.appt-links a { display: inline-flex; align-items: center; min-height: 44px; }
span.warn:empty { width: 24px; height: 24px; flex: none; border-radius: 50%; background: #F5B400 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v8' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='18.5' r='1.8' fill='%23fff'/%3E%3C/svg%3E") center/16px no-repeat; }
.seg button:disabled, .cards .card:disabled { opacity: .45; cursor: not-allowed; }
.seg button.locked { opacity: .45; }

/* the reason the bottom button is waiting, shown under it (Oct 28 2026) */
.barwhy { margin: 0 auto 6px; max-width: 720px; padding: 0 16px; font-size: .8125rem; color: var(--muted); text-align: center; }
/* My numbers, the month at a glance (Oct 28 2026) */
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.fig { background: var(--card); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; }
.fig b { font-size: 1.75rem; line-height: 1.15; font-weight: 700; font-variant-numeric: tabular-nums; }
.fig span { font-size: .8125rem; color: var(--muted); }
.fig.hi b { color: var(--green); }
/* add, remove, reset and cancel rows act in place, so no chevron (Oct 28 2026) */
.row.tap.sline::after, .row.tap[data-cancel]::after { content: none; }
.row.tap[data-cancel] .lbl b { font-weight: 600; }
.navwhy { margin: 28px 0 -18px; text-align: right; padding: 0; }
@media (max-width: 1023px) { .navwhy { display: none; } }
/* the row under the mouse is lit, as on the Mac (Oct 28 2026): a neutral gray darker than the page (#F2F2F7) so it never
   blends into the background; phones keep the tap highlight only */
@media (hover: hover) and (pointer: fine) { .row.tap:not(:disabled):hover, button.row:not(:disabled):hover, label.row.tap:hover { background-color: #E8E8ED; } }
/* a proposal line's price, edited in place (Oct 28 2026) */
.poprice { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.poprice span { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.poprice input { max-width: 150px; text-align: right; }
/* a row with its own radio or switch shows that control only, no arrow (Oct 28 2026) */
.row.tap:has(input[type="radio"])::after, .row.tap:has(.sw)::after { content: none; }
/* the Sold step's parts, numbered in order (Oct 28 2026) */
.cap.flowcap { display: flex; align-items: center; gap: 8px; }
.capn { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--deep); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: 0; }
/* Full sheets are cards, not the whole screen (Oct 28 2026, Trey: "it should pop up like a card so its easier to understand
   whats happening"). Phone: the iOS large sheet, the page dimmed behind it at the top. Bigger screens: a centered card
   as tall as its content needs, up to 90% of the screen (the email compose keeps its own size). */
.sheet.full { height: calc(100dvh - 44px - env(safe-area-inset-top)); max-height: calc(100dvh - 44px - env(safe-area-inset-top)); border-radius: 14px 14px 0 0; }
@media (min-width: 768px) {
  .sheet-wrap:has(.sheet.full) { align-items: center; padding: 24px; }
  .sheet.full { max-width: 880px; height: auto; max-height: 90vh; border-radius: 14px; box-shadow: 0 18px 50px -12px rgba(0,0,0,.35); padding-bottom: 0; }
  .sheet.full .body { padding-bottom: 20px; }
}
/* the sold checkmark (Oct 28 2026) */
.soldcheck { display: flex; align-items: center; gap: 14px; }
.soldcheck .big { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #C7C7CC; display: inline-flex; align-items: center; justify-content: center; transition: background-color .25s, border-color .25s; }
.soldcheck .big svg { opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s cubic-bezier(0.32, 0.72, 0, 1); color: #fff; }
.soldcheck.on .big { background: var(--green); border-color: var(--green); }
.soldcheck.on .big svg { opacity: 1; transform: scale(1); }
/* Apple alert for confirmations: centered, small, title and message, buttons stacked under hairlines (Oct 28 2026) */
.sheet-wrap.alertwrap { align-items: center; padding: 24px; }
.sheet.alert { width: 300px; max-width: 100%; max-height: none; border-radius: 14px; background: rgba(250,250,250,.97); backdrop-filter: blur(20px); padding: 0; box-shadow: 0 18px 50px -12px rgba(0,0,0,.35); overflow: hidden; }
.alerttext { padding: 20px 18px 16px; text-align: center; }
.alerttext h3 { margin: 0; font-size: 1.06rem; font-weight: 600; }
.alerttext p { margin: 6px 0 0; font-size: .875rem; line-height: 1.38; color: var(--ink); }
.alertbtns { display: flex; flex-direction: column; }
.alertbtns button { border: 0; border-top: 1px solid rgba(60,60,67,.18); background: none; min-height: 46px; font: inherit; font-size: 1.03rem; color: var(--green); cursor: pointer; }
.alertbtns button.danger { color: var(--bad); }   /* only a yes that removes or clears something */
.alertbtns button:active { background: rgba(0,0,0,.06); }
@media (hover: hover) and (pointer: fine) { .alertbtns button:hover { background: rgba(0,0,0,.04); } }
/* Send as sold is a solid button, never see-through (Oct 28 2026, Trey) */
.sendbtn { background: var(--green); color: #fff; }
.sendbtn:not([disabled]):hover { background: #03592F; }
.sendbtn .fill { background: rgba(255,255,255,.22); }
.sendbtn[disabled] { opacity: 1; }
.sendbtn[disabled]:not(.busy):not(.done) { background: #D1D1D6; color: #6E6E73; }
.sendbtn.busy { background: var(--green); color: #fff; }
.sendbtn.done { background: var(--card); box-shadow: none; color: var(--deep); }
/* change order: the amount sits on the line, next to what changes (Oct 28 2026) */
.corow .coamt { flex: 0 0 110px; }
/* the change order page, shown in its sheet (Oct 28 2026) */
.copv { background: #fff; border-radius: 10px; overflow: hidden; margin-top: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.copv .pdfph { padding: 40px 16px; text-align: center; color: var(--muted); }
/* the change order page, live under its lines (Oct 28 2026) */
.colive { position: relative; transition: height .2s ease; }
.coscale { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.coscale .copage { background: #fff; padding: .4in .45in; box-sizing: content-box; }
/* undo and redo in the top bar (Oct 28 2026) */
.tbtn.icon.undo { color: var(--ink, #1F2421); }
.tbtn.icon.undo:disabled { background: transparent; border-color: transparent; color: var(--muted); opacity: .45; }
.topbar .undos { display: flex; gap: 2px; margin-right: 4px; }
/* undo and redo right after the name, the rest of the bar pushed right (Docs/Word online layout, Oct 28 2026) */
.topbar .who { flex: 0 1 auto; }
.topbar .undos { margin-right: auto; margin-left: 6px; align-self: center; }
.corow-item { cursor: pointer; }
.corow-item .ibtn.rm { margin: -6px 4px -6px -6px; }
/* Today, the rep's dashboard (Oct 28 2026): a bigger card, two columns on a big screen, one on a phone */
@media (min-width: 1024px) {
  .sheet-wrap:has(.sheet.full .body.dash) { padding: 24px; }
  .sheet.full:has(.body.dash) { max-width: 1120px; height: min(920px, 92vh); max-height: 92vh; }
  .dash .dcols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0 28px; align-items: start; }
}
.dash .dhead { display: flex; flex-direction: column; gap: 2px; padding: 6px 4px 4px; }
.dash .dhead > b { font-size: 1.45rem; letter-spacing: -.01em; }
.dash .dhead > span { color: var(--muted); }
.dash .dchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dash .dchip { border: 0; background: var(--fill, #F2F2F7); color: inherit; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .9rem; cursor: pointer; }
.dash .dchip b { color: var(--green, #0E4F2C); }
.dash .dsec { scroll-margin-top: 8px; }
.dash .dcard { background: var(--card, #fff); border-radius: 12px; margin-bottom: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--hair, #E5E5EA); }
.dash .dcard > .row { border: 0; }
.dash .dlinks { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0 16px 8px; border-top: 1px solid var(--hair, #E5E5EA); }
.dash .dlink { border: 0; background: none; padding: 0; font: inherit; font-size: .95rem; color: var(--green, #0E4F2C); text-decoration: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.dash .dpill { flex: none; font-size: .78rem; font-weight: 600; border-radius: 999px; padding: 3px 9px; margin-left: 8px; background: var(--fill, #F2F2F7); color: #555E59; }
.dash .dpill.ok { background: #E3F1E8; color: #0E4F2C; }
.dash .dpill.sent { background: #E8F0FB; color: #1F4E8C; }
.dash .dpill.lost { background: var(--fill, #F2F2F7); color: #6E6E73; }   /* Lost is not red (Nov 3 2026 audit) */
.dash .dpill.none { background: #FFF4D6; color: #7A5A00; }
.dash .dmore { width: 100%; border: 0; background: none; color: var(--green, #0E4F2C); font: inherit; padding: 12px; cursor: pointer; display: flex; justify-content: center; gap: 8px; }
/* "Not in JobNimbus? Add a new customer": a plain text link under the search, like "Forgot your password?" (Oct 28 2026) */
#jnnone { padding: 0 16px; }
#jnnone:empty { display: none; }
.tlink { border: 0; background: none; padding: 10px 0 2px; font: inherit; font-size: .95rem; color: var(--green, #0E4F2C); cursor: pointer; min-height: 44px; }
.tlink:hover { text-decoration: underline; }
/* trades on a phone: 3 on top, 2 below sharing the row evenly, so no one trade is the biggest (Oct 28 2026) */
@media (max-width: 767px) {
  .seg.wrap.trades { display: grid; grid-template-columns: repeat(6, 1fr); }
  .seg.wrap.trades button { grid-column: span 2; }
  .seg.wrap.trades button:nth-of-type(4), .seg.wrap.trades button:nth-of-type(5) { grid-column: span 3; }
}
.tlink { color: #6E6E73; }
/* the estimates list with its own filters; Practice as a quiet link under New estimate (Oct 28 2026) */
.estcap { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 6px; }
.estcap .cap { margin: 0; }
.estcap select.val { width: auto; max-width: 60%; height: 32px; border: 1px solid var(--hair); border-radius: 8px; background: #fff; padding: 0 6px; font: inherit; font-size: .8125rem; color: var(--ink); }
.estwho { margin: 0 0 8px; }
.estwho button { min-height: 32px; font-size: .82rem; }
.tlink.pracl { display: block; width: 100%; text-align: center; padding: 8px 0 0; min-height: 0; color: #6E6E73; font-size: .9rem; }
.tlink.pracl small { display: block; font-size: .75rem; color: #8E8E93; }
@media (pointer: coarse) { .estcap select.val { height: 44px; } .tlink.pracl { padding: 10px 0 4px; } }
/* "From report" is information, not something to do: the gray fill; yellow stays for what needs the rep (Oct 28 2026) */
.tag { background: var(--fill); color: var(--ink); }
.tag.act { background: var(--yellow); color: var(--ink); }
/* phones: delete from the Estimates list, so the top bar has room for the customer's name (Oct 28 2026) */
.estline { display: flex; align-items: center; }
.estline > .ibtn.del { margin: 0 6px 0 2px; flex: none; color: var(--bad); }
/* the highlight (selected, hover) covers the whole line, trash can included */
.estline { border-radius: 10px; }
.estline:has(> .est.on) { background: var(--tint); }
.estline > .est.on { background: none; }
@media (hover: hover) { .estline:hover { background: #EFEFF4; } .estline > .est:hover { background: none; } .estline:has(> .est.on):hover { background: var(--tint); } }
.estline > .ibtn.del.in { animation: delin .24s cubic-bezier(.2,.8,.2,1) both; }
.estline > .ibtn.del.out { animation: delin .2s cubic-bezier(.4,0,.6,1) reverse both; }
@keyframes delin { from { width: 0; margin: 0; opacity: 0; transform: scale(.6); } to { width: 40px; margin: 0 6px 0 2px; opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .estline > .ibtn.del.in, .estline > .ibtn.del.out { animation: none; } }
.estcapr { display: flex; align-items: center; gap: 6px; flex: none; }
.estcapr select.val { max-width: none; }
.ibtn.estedit { color: #8E8E93; flex: none; margin: 0; }   /* neutral: a mode switch, not an action or a state to flag */
.estline > .row.est, .estline > .est { flex: 1; min-width: 0; }
@media (max-width: 1023px) { .tbtn.icon.trash { display: none; } }
/* take a photo / choose from library, side by side with their icons, everywhere a photo is added (Oct 28 2026) */
.photopair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.ptile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 12px 8px; border-radius: 12px; background: var(--fill, #F2F2F7); color: var(--deep); font-weight: 600; font-size: .9rem; cursor: pointer; text-align: center; }
.ptile svg { width: 28px; height: 28px; }
.ptile:active { background: #E5E5EA; }
.pnote { margin: 8px 2px 0; font-size: .8125rem; color: var(--muted); }
/* the kept calendar shown with no signal: one small line over it (Nov 18 2026) */
.calasof { margin: 0 2px 8px; font-size: .8125rem; color: var(--muted); animation: calasof-in .28s ease both; }
.calasof .fix { margin-left: 6px; }
@keyframes calasof-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* whose photos (Nov 17 2026): the name, then the street, like the calendar row */
.phwho { margin: 0 2px 12px; display: flex; flex-direction: column; gap: 1px; }
.phwho b { font-size: 1.0625rem; color: var(--ink); }
.phwho span { font-size: .8125rem; color: var(--muted); }
.ptile { color: var(--ink, #1C1C1E); }
.ptile svg { color: #6E6E73; }

.side .estcapr { flex: 0 1 auto; min-width: 0; }
.side .estcapr select.val { min-width: 0; max-width: 132px; }
[data-stale][hidden] { display: none !important; }
.fix.view { color: #8E8E93; }   /* View is a look, not the action: gray; Load stays the action color */
.coverwrap { position: relative; width: 100%; }
.coverx { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; cursor: pointer; }   /* on a photo: dark circle, the iPhone way */
.ibtn.emagain.busy svg { animation: s .8s linear infinite; }   /* turning while it checks */
@media (min-width: 1024px) { .sheet.full:has(#rrlist) { height: min(820px, 90vh); } }   /* Recent reports keeps its size while the list narrows */
/* A rep's sign-off: a square agreement box on the left (green once ticked: the one state that matters), the statement
   in the body text a touch heavier, who signed off and when underneath (Oct 29 2026) */
.row.attest { align-items: flex-start; gap: 14px; padding-top: 14px; padding-bottom: 14px; cursor: pointer; }
.row.attest .lbl { font-weight: 500; line-height: 1.4; }
.row.attest .lbl small { font-weight: 400; margin-top: 4px; }
.row.attest .lbl small.by { color: var(--muted); font-weight: 500; }   /* gray: a quiet record, not a loud state */
.abox { position: relative; flex: none; width: 24px; height: 24px; margin-top: 1px; }
.abox input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.abox i { position: absolute; inset: 0; border: 2px solid #AEAEB2; border-radius: 6px; background: #fff; transition: background-color .15s, border-color .15s; pointer-events: none; }
.abox input:checked + i { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; border-color: var(--green); }
.abox input:focus-visible + i { outline: 2px solid rgba(4,105,57,.35); outline-offset: 2px; }
.abox input:disabled + i { background: var(--fill); border-color: var(--hair); }
.attestby { margin: 6px 4px 0; font-size: .78rem; color: var(--muted); }   /* who signed off, under the card */

/* Back and Next (Oct 29 2026, Apple capsule): a round grey Back, a dark green capsule with one centered label */
.btn.nextbtn { min-height: 52px; border-radius: 26px; padding: 0 26px; min-width: 200px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .12s ease, opacity .2s; }
.btn.nextbtn:active { transform: scale(.98); }
.btn.backbtn { width: 52px; min-width: 52px; min-height: 52px; padding: 0; border-radius: 26px; background: var(--fill); color: var(--deep); display: grid; place-items: center; transition: transform .12s ease; }
.btn.backbtn:active { transform: scale(.94); }
.bar .btn.backbtn { flex: none; }
.tbtn.sendtop { border-radius: 22px; padding: 0 16px; display: inline-flex; align-items: center; gap: 7px; }
.tbtn.sendtop svg { width: 16px; height: 16px; }
@media (max-width: 1023px) { .bar .btn.nextbtn { min-height: 46px; border-radius: 23px; font-size: 1rem; min-width: 0; padding: 0 18px; } .bar .btn.backbtn { width: 46px; min-width: 46px; min-height: 46px; border-radius: 23px; } }   /* phones: a slimmer capsule (Oct 29 2026, Trey: "the next buttons on mobile are huge") */
/* phone and tablet header (Oct 29 2026, Trey: "Estimates and preview look huge and do not fit"): borderless icons with an
 11 px word under them, the iOS toolbar way, so the customer name keeps its room */
@media (max-width: 1023px) {
  .topbar .tbtn.icon, .topbar .tbtn.narrow { border: 0; background: transparent; min-width: 40px; height: 44px; padding: 0 4px; gap: 2px; }
  .topbar .tbtn .nlab, .topbar .pvbtn span { font-size: .6875rem; font-weight: 600; line-height: 1; }
  .topbar .tbtn.icon svg, .topbar .pvbtn svg { width: 20px; height: 20px; }
  .topbar .tbtn.icon.trash { margin-right: 2px; }
}

/* every button and row changes colour smoothly (Oct 29 2026: grey to green, picked, disabled and hover states snapped) */
.btn, .tbtn, .newbtn, .ibtn, .linkbtn, .est, .estline, .card, .row.tap, button.row, .seg button, .dchip, .sendbtn, .draft, .chip, .check { transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, opacity .25s ease, transform .12s ease; }
/* the preview toolbar stays on one row on a phone: the Ready pill gives way, Edit pages is a short pill (Oct 30 2026) */
@media (max-width: 480px) { .pv .tools .draft { display: none; } .pv .tools .pvedit { padding: 0 12px; } .pv .tools .pvtitle { font-size: .9rem; } }
.pv .tools .pvedit { display: inline-flex; align-items: center; gap: 6px; }
.pv .tools .pvedit svg { width: 17px; height: 17px; }
.pv .tools .pvedit.on { background: var(--tint); color: var(--deep); border-color: var(--deep); }

/* the full-screen preview on a computer reads like a PDF viewer: gray around a centered page, zoom on the toolbar (Oct 30 2026) */
.pvzoom { display: none; align-items: center; gap: 4px; }
.pvzoom b { min-width: 46px; text-align: center; font-size: .85rem; font-weight: 600; color: var(--muted); }
@media (min-width: 1024px) { body.pv-open .pvzoom { display: inline-flex; } body.pv-open .pvbox { box-shadow: 0 2px 12px rgba(0,0,0,.12); margin: 16px auto 40px; } }
/* the preview toolbar, the way a Mac or iPhone app draws one (Oct 30 2026, Trey: "think about how apple would usually do
   their tool bar"): the title with its state in small text under it, then borderless buttons that only show a soft fill
   on hover, the zoom as one grouped control, and Done on the right */
.pv .tools { gap: 6px; padding: 10px 14px; flex-wrap: nowrap; }
.pv .tools .pvhead { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.pv .tools .pvtitle { flex: none; font-size: .92rem; font-weight: 600; color: var(--ink); }
.pv .tools .draft { all: unset; display: block; font-size: .75rem; font-weight: 500; color: var(--muted); margin-top: 2px; }
.pv .tools .draft.ready { color: var(--deep); }
.pv .tools .tbtn { border: 0; background: transparent; height: 32px; border-radius: 8px; color: var(--deep); font-weight: 600; padding: 0 10px; box-shadow: none; }
.pv .tools .tbtn:hover { background: rgba(0,0,0,.06); }
.pv .tools .tbtn.icon { width: auto; min-width: 32px; }
.pv .tools .pvzoom { background: rgba(0,0,0,.06); border-radius: 9px; padding: 2px; gap: 0; }
.pv .tools .pvzoom .tbtn { height: 28px; min-width: 28px; padding: 0 8px; font-size: 1rem; }
.pv .tools .pvzoom .tbtn[data-z="fit"] { font-size: .82rem; }
.pv .tools .pvzoom .tbtn:hover { background: rgba(255,255,255,.8); }
.pv .tools .pvedit.on { background: var(--tint); }
.pv .tools .pvdone { font-weight: 700; }
@media (max-width: 480px) { .pv .tools .draft { display: block; } .pv .tools .pvedit { padding: 0 8px; } }

/* the preview toolbar: a hidden button stays hidden (the .tbtn display rule had shown the close Done next to the edit Done); while editing the edit button reads Done, bold, no pencil (Oct 30 2026) */
.pv .tools [hidden] { display: none !important; }
.pv .tools .pvedit.on svg { display: none; }
.pv .tools .pvedit.on { font-weight: 700; background: transparent; }
.pspick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 0 0 10px; }
.pspick button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); cursor: pointer; }
.pspick img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* the Sold step's ticks: the app's green check circle, not the browser's box (Oct 30 2026, Trey) */
.row input[data-soldver], .row input[data-tick] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
/* the tick fills and the check mark grows in, the same feel as the big Signed check (Oct 30 2026, Trey: "too fast and jumpy") */
.row input[data-soldver] + .check, .row input[data-tick] + .check { position: relative; transition: background-color .28s ease, border-color .28s ease; }
.row input[data-soldver] + .check::after, .row input[data-tick] + .check::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .32s cubic-bezier(0.32, 0.72, 0, 1); }
.row input[data-soldver]:checked + .check, .row input[data-tick]:checked + .check { border-color: var(--green); background-color: var(--green); }
.row input[data-soldver]:checked + .check::after, .row input[data-tick]:checked + .check::after { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .row input[data-soldver] + .check::after, .row input[data-tick] + .check::after { transition: none; } }
.row input[data-tick]:focus-visible + .check { outline: 2px solid rgba(4,105,57,.4); outline-offset: 2px; }
.row:has(input[data-tick]), .row:has(input[data-soldver]) { position: relative; }

/* a row's label never folds to a letter-wide column: a long picked value (Cedar Impressions Series) gives way first and
   shows cut short (Oct 30 2026, Trey: "words are typing vertically") */
.row > select.val, .row > input.val { min-width: 0; max-width: 62%; text-overflow: ellipsis; }
.row > .lbl { min-width: min(38%, 8.5em); }

/* warnings and hints use the Needed yellow; red means only remove or delete (Trey, Nov 3 2026, replaces Oct 30 "warnings read red").
   Dark gold text (the .needtag ink, readable on white) with a yellow mark at the left. Real failures (.note.bad, held, could not save) stay red. */
.warntxt, .warntxt small, .warntxt b { color: #7A5A00; }
p.warntxt, .lbl.warntxt { box-shadow: inset 3px 0 0 var(--yellow); padding-left: 10px; }
.note.warn, .note.warn small, .note.warn b { color: var(--ink); }

/* green sparingly (Trey, Oct 30 2026: "The green text gets confusing. Only use it sparingly"): titles, text buttons, links,
   picked segments and sheet Done read in plain ink; green stays for checkmarks, the plus that adds, and the main Send */
h1, .newbtn, .tbtn, .linkbtn, .seg button.on, .row .fix, .btn.plain, .drop b, .sheet .done, .mail .rcc, .row.reset .lbl,
.fig.hi b, .chip.on, .btn.backbtn, .pv .tools .tbtn, em.st-on_jobnimbus, em.st-quoted { color: var(--ink); }
.draft.ready, .pv .tools .draft.ready { color: var(--muted); }
.tbtn.primary { color: #fff; }
/* the first of two override prompts removes nothing: plain ink like every Fix link (round-3 UI audit, Nov 3 2026) */

/* two cards in a row never touch (Trey, Oct 30 2026: the scope check sat flush under Proposal options) */
.group + .group, .discsec + .group, .group + .discsec > .group:first-child, .discsec + .discsec > .group:first-child, .group + section > .group:first-child { margin-top: 10px; }

/* hidden means hidden, whatever display a class sets (Oct 30 2026: the sold line cards showed under the checkmarks) */
[hidden] { display: none !important; }

/* signed: the locked answers read as a record, not as controls (Oct 30 2026) */
.note.lock { background: #F2F2F7; border: 1px solid var(--hair); color: var(--ink); }
.note.lock .fix { margin-left: 6px; }
.lockset input:read-only, .lockset input:disabled, .lockset select:disabled, .lockset textarea:read-only, .lockset button:disabled { opacity: .7; cursor: default; }
.lockset .sw, .lockset .seg, .lockset .check, .lockset .ibtn { opacity: .7; }
/* Nov 2 2026 iPhone audit: no zoom on focus (16px inputs), the bottom of sheets and the toast clear Safari's bar and the
   home indicator, the full-screen preview's toolbar clears the notch, and read-only controls look read-only */
.search, .estctl select.val, .estcap select.val, .row.stack textarea.full { font-size: 1rem; }
.sheet { max-height: 86dvh; }
.toast { bottom: calc(110px + env(safe-area-inset-bottom)); }
body.pv-open #preview .pv .tools { padding-top: max(10px, env(safe-area-inset-top)); padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
.ro #app .ibtn, .ro #app .sw, .ro #app .chip, .ro #app .row.tap.sline { opacity: .6; }

/* Nov 2 2026 iPhone audit: every tap target at least 44 pt, and color only for primary, destructive or Needed */
.estwho button { min-height: 44px; }
.topbar .tbtn.icon, .topbar .tbtn.narrow { min-width: 44px; }
.pv .tools .tbtn { position: relative; }
.pv .tools .tbtn::after, .coverx::after { content: ''; position: absolute; inset: -8px; }
.appt-links a, .dash .dchip b, .dash .dlink, .dash .dmore { color: var(--ink); }
.dash .dpill.sent { background: var(--fill); color: var(--muted); }
/* text buttons in ink, not green (Trey, Nov 2 2026) */
.alertbtns button, .sheet .done, .row .fix, .linkbtn, .mail .rcc, .row.reset .lbl, .tlink { color: var(--ink); }
.alertbtns button.danger { color: var(--bad); }
/* Nov 2 2026 audit: the zoom buttons keep their own taps; links in ink like the other text controls */
/* round-3 UI audit (Nov 3 2026): iPad landscape is a touch screen, so each zoom button is 44 px wide and its tap area
   reaches 44 px tall without moving the bar */
.pv .tools .pvzoom .tbtn { position: relative; min-width: 44px; }
.pv .tools .pvzoom .tbtn::after { content: ""; position: absolute; inset: -8px 0; }
a { color: var(--ink); }

/* seeing the app as a rep (Admin): a bar on top with the way back */
.viewas { position: sticky; top: 0; z-index: 15;   /* under sheets and viewers, so their Done stays reachable (Nov 3 2026) */ display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: #FFF4D6; color: #5C4400; font-size: 14px; border-bottom: 1px solid #EAD9A6; }
.viewas .fix { flex: 0 0 auto; }
/* demo (Nov 16 2026): the same calm bar, the Needed yellow, on every screen; it slides down once when the app opens */
.demobar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: #FFF4D6; color: #5C4400; font-size: 14px; border-bottom: 1px solid #EAD9A6; animation: demoin .32s cubic-bezier(.2, .8, .2, 1) both; }
.demobar .fix { flex: 0 0 auto; }
.demo-on .viewas { top: var(--dmh, 0px); }
/* Admin in demo: the real settings look off and cannot be tapped (the gray line under each says why) */
.group.demolock { opacity: .5; pointer-events: none; }
.demolocknote { color: #6b756b; }
@keyframes demoin { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .demobar { animation: none; } }

/* a switch: the sliding pill is the only thing that moves; the picked button never fades its own white background and
   shadow in or out under it (that showed as a second white shape, a slight bounce, on the trades; Trey, Nov 2 2026) */
.seg button { transition: color .25s ease; }

/* Nov 2 2026 screens audit: 44 px touch targets and no iOS zoom (16 px) on the email and form inputs at every width */
/* Nov 3 2026: the tap area grows with the button itself (its ::before and ::after are the two strokes of the x) */
.mail .rchip .rx { width: 44px; height: 44px; margin: -12px -12px -12px -8px; }
.mail .rchip .rx::before, .mail .rchip .rx::after { left: 17px; right: 17px; top: 21.25px; }
.mail .attx { width: 44px; height: 44px; top: -18px; right: -18px; background: transparent; }   /* Nov 3 2026 audit: its ::after is the x's second stroke, so the button itself is the 44 px area; the gray dot stays 22 px */
.mail .attx::before, .mail .attx::after { left: 16px; top: 21px; width: 12px; }
.mail .attx { background: radial-gradient(circle at center, #8E8E93 0 11px, transparent 11.5px); }
.toast .tundo { min-height: 44px; }
.winhead select { min-height: 44px; }
.mail .rin, .mail textarea, .ecell input { font-size: max(16px, 1rem); }

/* read only: moving between steps still works (Next and Back only go somewhere; nothing is changed) */
.ro #app :is(.nextbtn, .backbtn, [data-go], [data-stepgo], .disc, [data-more], [aria-expanded], [data-act="custpage"], [data-act="agview"], [data-act="prodopen"], [data-act="seepage"], [data-hit], [data-wait], [data-soldstop], [data-viewag], [data-emview], [data-coopen], [data-act="print"], .stepsearch) { pointer-events: auto !important; opacity: 1 !important; }   /* moving around stays usable (Nov 3 2026) */

/* Nov 3 2026: blocked controls on someone else's estimate look blocked (the red trash and Edit proposal looked live) */
.ro button:disabled, .ro #topbar .ibtn:disabled { opacity: .38 !important; filter: grayscale(1); }
/* Nov 3 2026: read only reaches the sheets; a blocked control there is dimmed and a tap says "Read only" */
.ro #sheet[data-ro="1"] .rooff, .ro #sheet[data-ro="1"] select:disabled, .ro #sheet[data-ro="1"] input[aria-disabled="true"] { opacity: .38; filter: grayscale(1); }
/* Nov 3 2026: a section that can be removed carries its red minus on its heading (iPhone rule: no word buttons) */
.cap.caprow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cap.caprow .ibtn { min-width: 44px; min-height: 44px; margin: -10px -6px -10px 0; }
/* Round-2 UI audit, Nov 3 2026: later rules that went under 13px or 44px, raised with the same specificity (the phone
   top bar labels stay as they are until they are checked live at 375 px) */
.pv .tools .draft { font-size: .8125rem; }
.tlink.pracl small { font-size: .8125rem; }
.attestby { font-size: .8125rem; }
.dash .dpill { font-size: .8125rem; }
.dash .dchip { min-height: 44px; }
/* a phone shows the whole customer name: it wraps to two lines and the trade line shrinks (Nov 3 2026 ease-of-use test:
   "Zzq Ease3 ..." at 375 px, the rep could not tell which estimate was open) */
@media (max-width: 480px) { .topbar .who b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .92rem; line-height: 1.15; overflow-wrap: anywhere; } .topbar .who span { font-size: .8125rem; } }
/* round-3 UI audit, Nov 3 2026: the 13 px floor reaches the phone top bar labels too (same specificity as the 11 px rule,
   later in the file). At 375 px: Undo 44 + Redo 44 + Delete ~50 + Estimates ~70 + Preview ~58 is about 270 px, which
   leaves the customer name about 80 px on two lines; the buttons lose 1 px of side padding each to give some of it back */
@media (max-width: 1023px) { .topbar .tbtn .nlab, .topbar .pvbtn span { font-size: .8125rem; letter-spacing: -.01em; } }
@media (max-width: 480px) { .topbar .tbtn.icon, .topbar .tbtn.narrow { padding: 0 3px; } }
/* Nov 5 2026 live check at 390 px: the words under Estimates and Preview touched. Toolbar items keep air between them, the
   iOS way (about 8 px), and the name gives up those few pixels */
@media (max-width: 1023px) { .topbar .tbtn.narrow + .tbtn.narrow { margin-left: 8px; } .topbar .tbtn.narrow { flex: none; } }
.leadhints { display: block; margin-top: 8px; color: var(--muted); font-size: .8125rem; line-height: 1.45; }   /* lead source meanings (Nov 3 2026) */

/* Back to Review after a Fix or Answer from Review (Nov 3 2026 ease 7): a neutral capsule, since it only goes back.
   Phones: a line in the bottom bar above Back and Next. Big screens: it floats at the bottom of the form while you work. */
.backrev { display: flex; align-items: center; gap: 6px; min-height: 44px; margin: 0 auto 8px; padding: 0 16px 0 10px; border: 0; border-radius: 999px; background: var(--fill); color: var(--ink); font: inherit; font-weight: 600; font-size: .94rem; cursor: pointer; }
.backrev svg { width: 18px; height: 18px; flex: none; }
.bar .backrev { max-width: 640px; }
.form-in > .backrev { position: sticky; bottom: 16px; z-index: 3; margin-top: 18px; box-shadow: 0 6px 18px -8px rgba(0,0,0,.35); }
@media (max-width: 1023px) { .form-in > .backrev { display: none; } }
@media (min-width: 1024px) { .bar .backrev { display: none; } }

/* real failures (forms could not be made, could not look for the report): the red mark, not the yellow hint (round 4 audit, Nov 3 2026) */
span.warn.bad:empty { background-color: var(--bad); }

/* a price from before the last changes: greyed until the new one is in (round 4 ease of use) */
body.pricestale #app .money, body.pricestale #app [data-live] b { opacity: .4; transition: opacity .25s ease-out; }
#app .money, #app [data-live] b { transition: opacity .25s ease-out; }
/* the email sheet's header Send (Cancel | New message | Send), round 6 ease of use; Cancel stays gray, Send is the primary */
.sheet .sh .done:first-child { color: var(--muted); font-weight: 600; padding: 0 12px 0 4px; }
.sheet .sh .shsend { border: 0; background: none; color: var(--green); font-weight: 700; font-size: 1rem; min-height: 44px; min-width: 44px; padding: 0 4px 0 12px; cursor: pointer; transition: color .2s ease-out, opacity .2s ease-out; }
.sheet .sh .shsend[disabled] { color: #8E8E93; cursor: default; }
.sheet .sh .shsend.off { color: #8E8E93; }
/* key action rows: the status sits in the row's own small text, under the title (Nov 19 2026 phone audit and on-screen check) */
.row.keyact .lbl { min-width: 0; }
/* windows Install has six choices: two rows of three on a phone, never cut off (Nov 19 2026 phone audit) */
@media (max-width: 480px) { .row[data-fid$=":inst"] .seg { display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 4px; } }
/* an optional row on the Review list: a dashed circle, so it never reads as one more thing that blocks Send */
.check.opt { border-style: dashed; opacity: .55; }
/* a long key-action button wraps on a narrow phone, never runs out of its own edges */
/* the empty live strip under a tinted Send row showed as a white sliver */
.row.keyact + .busy-live:empty { display: none; }
/* nothing under 13 px (round 6 audit-ui): the left count, badges and step numbers join the floor */
.leftcount, .badge, .capn { font-size: .8125rem; }
/* Settings and the account card (Nov 4 2026, settings_spec.md): the initials circle at the far right of the top bar,
 a 44 px tap area; on a phone only on the home screen (the estimate bar has no room), on a big screen on every screen */
.acctbtn { flex: none; border: 0; background: none; padding: 0; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.acctbtn.home { margin-left: auto; }
.acctbtn.wide { margin-left: 2px; }
@media (max-width: 1023px) { .topbar .acctbtn.wide { display: none; } }
.ini { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #E9E9EF; color: var(--ink); font-weight: 700; font-size: .8125rem; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); transition: background-color .2s ease, box-shadow .2s ease; }
.acctbtn:hover .ini { background: #DEDEE5; }
.acctbtn:focus-visible { outline: 2px solid rgba(4,105,57,.35); outline-offset: 1px; }
.acctbtn[aria-expanded="true"] .ini { box-shadow: inset 0 0 0 2px #8E8E93; }
.ini.big { width: 88px; height: 88px; font-size: 2rem; font-weight: 600; box-shadow: inset 0 0 0 1px #C7C7CC; flex: none; }
/* the card, measured from Outlook on the web (Nov 4 2026): 320 px, company left and Sign out right on top, then the big
 circle with the name and email, then Settings */
.acctcard { position: fixed; z-index: 60; width: 320px; max-width: calc(100vw - 16px); background: #fff; border-radius: 12px; box-shadow: 0 10px 34px rgba(0,0,0,.18), 0 0 0 .5px rgba(0,0,0,.08); overflow: hidden; transform-origin: top right; }
.acctcard .actop { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 16px; font-size: .8125rem; color: #333; }
.acctcard .aclink { border: 0; background: none; color: #333; font: inherit; font-size: .8125rem; min-height: 44px; padding: 0 10px; cursor: pointer; border-radius: 8px; }
.acctcard .aclink:hover { background: var(--fill); }
.acctcard .aclink[data-acct="signout"] { color: var(--bad); font-weight: 600; }   /* Sign out is red everywhere (Trey, Nov 4 2026) */
.acctcard .acbody { display: flex; align-items: center; gap: 16px; padding: 4px 16px 16px; }
.acctcard .acwho { min-width: 0; }
.acctcard .acwho b { display: block; font-size: 1.125rem; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acctcard .acwho span { display: block; font-size: .8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.acctcard .acwho small { display: block; font-size: .8125rem; color: #5C4400; margin-top: 4px; }
.acctcard .acrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 16px; border: 0; border-top: 1px solid var(--hair); background: #fff; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.acctcard .acrow svg { color: #8E8E93; flex: none; }
.acctcard .acrow:hover { background: #F7F7F9; }
/* Settings, the iPhone Settings look: the name header, grouped lists with captions, Sign out red and alone at the bottom */
.sheet.settings .sthead { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: var(--r); padding: 14px 16px; margin-top: 8px; }
.sheet.settings .sthead > div { min-width: 0; }
.sheet.settings .sthead .ini.big { width: 60px; height: 60px; font-size: 1.4rem; }
.sheet.settings .sthead b { display: block; font-size: 1.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet.settings .sthead > div span { display: block; font-size: .875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet.settings .stas { margin-top: 10px; }
.sheet.settings textarea#stprob { font-size: 16px; min-height: 88px; }
.sheet.settings #stcellin { font-size: 16px; min-width: 0; }
.sheet.settings .row.stact { cursor: pointer; font: inherit; }
.sheet.settings .stout { margin-top: 28px; margin-bottom: 24px; }
.sheet.settings #stsignout { justify-content: center; color: var(--bad); font: inherit; font-weight: 600; cursor: pointer; }
.sheet.settings .sw input:disabled + i { opacity: .5; }   /* waiting for the saved choices, or not possible on this device */

/* Nov 4 2026: "Show me how" for Add to Home Screen on iPhone and iPad (a page cannot open it, so point at Share) */
.homehow { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s ease; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); }
.homehow.top { justify-content: flex-start; align-items: flex-end; flex-direction: column-reverse; padding-top: calc(10px + env(safe-area-inset-top)); }
.homehow.on { opacity: 1; }
.homehow .hhcard { background: #fff; border-radius: 14px; padding: 16px 18px; max-width: 340px; display: grid; gap: 6px; font-size: 1rem; line-height: 1.4; transform: translateY(12px); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.homehow.on .hhcard { transform: none; }
.homehow .hhcard b { font-weight: 700; }
.homehow .hhcard small { color: var(--muted); font-size: .8125rem; }
.homehow .hharrow { width: 0; height: 0; margin-top: 10px; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 22px solid #fff; animation: hhbounce 1s ease-in-out infinite; }
.homehow.top .hharrow { margin: 0 18px 10px 0; border-top: 0; border-bottom: 22px solid #fff; }
@keyframes hhbounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.homehow.top .hharrow { animation-name: hhbounceup; }
@keyframes hhbounceup { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .homehow .hharrow { animation: none; } .homehow .hhcard { transition: none; } }

/* Nov 4 2026: the person's Microsoft photo in the account circle, faded in when it arrives */
.ini.photo { background-size: cover; background-position: center; background-color: #E9E9EF; animation: inifade .3s ease; }
@keyframes inifade { from { opacity: .4; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ini.photo { animation: none; } }

/* Nov 5 2026 (Trey): search boxes clear with the iPhone gray circle at the right end, not Chrome's blue X */
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 0 0 0 8px; border-radius: 50%; cursor: pointer;
  background: #AEAEB2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.5 2.5l5 5M7.5 2.5l-5 5' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 10px no-repeat; opacity: .9; transition: opacity .15s ease; }
input[type="search"]::-webkit-search-cancel-button:hover { opacity: 1; }
.row > input.val.wide, .row > input.val[type="search"] { flex: 1 1 auto; max-width: none; }   /* a full-width box reaches the row end, so its clear circle sits at the right edge */

/* Nov 5 2026 (Trey: mimic Apple): a choice dims the moment a finger touches it, like the iPhone segmented control, and
   comes back when released; a picked choice's pill shrinks a little under the finger */
.seg button { -webkit-tap-highlight-color: transparent; }
.seg button:active { opacity: .55; transition: opacity 0s; }
.seg button.on:active { opacity: 1; }
.seg:has(button.on:active) > .pill { transform-origin: center; scale: .96; }
.seg > .pill { transition: scale .2s cubic-bezier(0.32, 0.72, 0, 1); }
.seg button:not(:active) { transition: color .25s ease, opacity .2s ease; }

/* Nov 5 2026 (makes-sense pass): a picked chip stays exactly where it was. Its fill changes and a small check sits on its
   corner, outside the layout, and the text keeps its weight, so no chip after it shifts (iOS). */
.chip.on { font-weight: inherit; }
.chip.pk .cbadge { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--deep); color: #fff; display: flex; align-items: center; justify-content: center; pointer-events: none; margin: 0; padding: 0; box-shadow: 0 0 0 2px #fff; }
/* touch-down dim on the other tappable things, like the segmented control (Nov 5 2026) */
.chip, .row .fix, .tbtn, .card, .aclink, .shsend, .dchip { -webkit-tap-highlight-color: transparent; }
.chip:active, .row .fix:not(:disabled):active, .tbtn:not(:disabled):active, .card:not(:disabled):active, .aclink:active, .shsend:not([disabled]):active, .dchip:active { opacity: .55; transition: none; }
/* the live price keeps the last number, dimmed, with a small spinner while it prices (Nov 5 2026) */
.live b { transition: opacity .2s ease; }
.live.busy b { opacity: .4; }
.live .spin.sm { width: 12px; height: 12px; border-width: 2px; margin-left: auto; }
/* no box drawn around an empty answer: like iOS Settings, the gray placeholder on the right shows where to tap
   (Trey, Nov 5 2026: the outline added earlier the same day was not the Apple look) */
.row input.val[readonly] { outline: none; color: var(--muted); cursor: default; }   /* a worked-out total, not a box to type in (Nov 5 2026) */
/* a Fix on a roof line reads as a small green link, not a dark bold text button (Nov 5 2026 live check) */
.row .fix.lfix { color: var(--ink); font-weight: 500; font-size: .82rem; flex: none; }

/* Nov 5 2026 (Trey: "From 40 ft of valleys" looked squeezed on a phone): on a phone a worked-out tag beside a box drops
   onto its own small gray line under the label, like iOS secondary text, so the label, the tag and the box never crowd */
@media (max-width: 600px) { .row > .lbl > .usual { display: block; margin: 2px 0 0; padding: 0; background: none; border-radius: 0; font-weight: 600; } }

/* Nov 6 2026 (Trey: "my initials icon moves around on the top" when switching estimates): the account button is pinned
   to the top bar's right corner, outside the flow, so a top bar redraw (the "Opening" bar, the estimate bar, home) can
   never move it; the bar keeps room for it on the right */
.topbar { position: sticky; }
.topbar > .acctbtn { position: absolute; right: 12px; top: calc(50% + env(safe-area-inset-top) / 2 - 22px); margin: 0 !important; }
.topbar:has(> .acctbtn:not([hidden])) { padding-right: 64px; }
@media (max-width: 1023px) { .topbar:has(> .acctbtn.wide):not(:has(> .acctbtn.home)) { padding-right: 16px; } }

/* ---------- Sign-in page (Nov 9 2026): only when nobody is signed in on this device. Centered on the app's grey. ---------- */
body.signing-in { overflow: hidden; }
.signin { position: fixed; inset: 0; z-index: 1000; background: radial-gradient(50% 45% at 92% 96%, rgba(252,208,2,.16), transparent 70%), radial-gradient(45% 40% at 95% 10%, rgba(4,105,57,.07), transparent 70%), var(--bg); color: var(--ink); display: flex; align-items: center; justify-content: center; overflow-y: auto;
  padding: calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom)); }
.si-in { margin: auto; width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border-radius: 24px; padding: 36px 28px 22px; border: 1px solid rgba(14,79,44,.07); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 20px rgba(14,79,44,.08), 0 30px 70px rgba(14,79,44,.16); opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .5s ease, transform .7s cubic-bezier(0.32, 0.72, 0, 1); }
.signin.in .si-in { opacity: 1; transform: none; }
@media (max-width: 380px) { .si-in { padding: 30px 20px 18px; border-radius: 20px; } }
.si-in > * { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .55s cubic-bezier(0.32, 0.72, 0, 1); }
.signin.in .si-in > * { opacity: 1; transform: none; }
.signin.in .si-in > :nth-child(2) { transition-delay: .05s; } .signin.in .si-in > :nth-child(3) { transition-delay: .1s; }
.signin.in .si-in > :nth-child(4) { transition-delay: .15s; } .signin.in .si-in > :nth-child(n+5) { transition-delay: .2s; }
.si-icon { width: 76px; height: 76px; border-radius: 17px; box-shadow: 0 6px 18px rgba(14,79,44,.18); }
.si-title { margin: 20px 0 6px; font-size: 1.75rem; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.si-line { margin: 0 0 28px; color: var(--muted); font-size: .98rem; }
.si-remember { margin-top: 12px; width: 100%; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px; border-radius: var(--r); background: var(--bg); text-align: left; cursor: pointer; }
.si-rl { flex: 1; font-weight: 500; }
.si-rl small { display: block; font-size: .82rem; color: var(--muted); }
.si-ms { width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 999px; background: #1F1F1F; color: #fff; font: 600 1.02rem var(--font); cursor: pointer; transition: opacity .12s; }
.si-ms:active { opacity: .7; transition: none; }
.si-ms:disabled { cursor: default; }
.si-ms.busy span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: s .8s linear infinite; }
.si-ms:focus-visible { outline: 3px solid rgba(4,105,57,.45); outline-offset: 3px; }
.si-msg { margin: 12px 0 0; font-size: .9rem; color: var(--bad); }
.si-msg:empty { margin: 0; }
.si-trouble { min-height: 44px; margin-top: 16px; border: 0; background: none; color: var(--muted); font: 500 .9rem var(--font); padding: 10px 12px; cursor: pointer; }
.si-trouble:active { opacity: .6; }
/* the Trouble signing in form grows open in the card (grid rows 0fr to 1fr), the iOS way: nothing jumps */
.si-help { width: 100%; display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .32s cubic-bezier(0.32, 0.72, 0, 1), opacity .25s ease; }
.si-help.open { grid-template-rows: 1fr; opacity: 1; }
.si-help-in { min-height: 0; overflow: hidden; }
.si-form { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 4px; text-align: left; }
.si-field { width: 100%; border: 0; border-radius: var(--r); background: var(--bg); padding: 12px 14px; font: 1rem var(--font); color: var(--ink); resize: none; }
.si-field:focus { outline: 2px solid rgba(4,105,57,.35); }
.si-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.si-send { height: 46px; border: 0; border-radius: 999px; background: var(--tint); color: var(--deep); font: 600 1rem var(--font); cursor: pointer; transition: opacity .12s; }
.si-send:active { opacity: .7; transition: none; }
.si-send:disabled { cursor: default; }
.si-sent { margin: 2px 0 0; font-size: .88rem; text-align: center; color: var(--muted); }
.si-sent:empty { display: none; }
.si-sent.ok { color: var(--ink); }
.si-sent.need { color: #7A5A00; }
.si-sent.bad { color: var(--bad); }
@media (prefers-reduced-motion: reduce) { .si-help { transition: none; } .si-in { opacity: 1; transform: none; transition: none; } }
.si-acct { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: -12px 0 14px; border-radius: var(--r); background: var(--bg); text-align: left; }
.si-who { min-width: 0; display: flex; flex-direction: column; }
.si-who b { font-weight: 600; }
.si-who small { color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-acct .si-av { width: 40px; height: 40px; border-radius: 50%; background: #5B6460 center / cover no-repeat; color: #fff; font-size: .86rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.si-other { min-height: 44px; margin-top: 6px; border: 0; background: none; color: var(--muted); font: 500 .95rem var(--font); padding: 10px 12px; cursor: pointer; }
.si-other:active { opacity: .6; }
.si-ver { margin: 10px 0 0; min-height: 1.2em; font-size: .8125rem; color: #8A918D; }
@media (prefers-reduced-motion: reduce) { .si-in > * { transition: none; transform: none; } }

/* ---------- Welcome (Nov 9 2026): once per person after the first sign-in, iPhone "What's New" style ---------- */
.welcome { position: fixed; inset: 0; z-index: 1001; background: radial-gradient(50% 45% at 92% 96%, rgba(252,208,2,.16), transparent 70%), radial-gradient(45% 40% at 95% 10%, rgba(4,105,57,.07), transparent 70%), var(--bg); display: flex; align-items: center; justify-content: center; overflow-y: auto;
  padding: calc(28px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom)); transition: opacity .3s ease; }
.welcome.out { opacity: 0; }
.wl-in { margin: auto; width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; }
.wl-in > *, .wl-rows li { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .6s cubic-bezier(0.32, 0.72, 0, 1); }
.welcome.in .wl-in > *, .welcome.in .wl-rows li { opacity: 1; transform: none; }
.welcome.in .wl-title { transition-delay: .06s; } .welcome.in .wl-sub { transition-delay: .1s; }
.welcome.in .wl-rows li:nth-child(1) { transition-delay: .22s; } .welcome.in .wl-rows li:nth-child(2) { transition-delay: .32s; }
.welcome.in .wl-rows li:nth-child(3) { transition-delay: .42s; } .welcome.in .wl-rows li:nth-child(4) { transition-delay: .52s; }
.welcome.in .wl-go { transition-delay: .66s; }
.wl-icon { width: 64px; height: 64px; border-radius: 14px; box-shadow: 0 6px 18px rgba(14,79,44,.18); }
.wl-title { margin: 18px 0 4px; font-size: 1.85rem; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; text-align: center; }
.wl-sub { margin: 0 0 26px; color: var(--muted); text-align: center; }
.wl-rows { list-style: none; margin: 0 0 30px; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 20px; }
.wl-rows li { display: flex; gap: 16px; align-items: flex-start; }
.wl-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--deep); display: flex; align-items: center; justify-content: center; }
.wl-ic svg { width: 24px; height: 24px; }
.wl-rows b { display: block; font-weight: 600; line-height: 1.3; }
.wl-rows small { display: block; margin-top: 2px; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.wl-go { width: 100%; height: 52px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font: 600 1.05rem var(--font); cursor: pointer; transition: opacity .12s; }
.wl-go:active { opacity: .7; transition: none; }
.wl-go:focus-visible { outline: 3px solid rgba(4,105,57,.45); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .wl-in > *, .wl-rows li, .welcome { transition: none; transform: none; } }

/* ---------- Mesh gradient behind the sign-in and welcome cards (Trey, Nov 9 2026: "more interesting... like Apple or
   other big companies"). The technique of Apple's newer wallpapers and Stripe's homepage, in Countryside's own colours:
   five soft blobs (sage, mint, a deeper green, butter, cream) on two layers that drift slowly against each other, so it
   reads as one blended wash, never half green and half yellow. Still with Reduce Motion. ---------- */
.signin, .welcome { background: #EEF3EF; }
.signin::before, .signin::after, .welcome::before, .welcome::after { content: ""; position: fixed; inset: -25%; pointer-events: none; z-index: 0; filter: blur(48px); will-change: transform; }
.signin::before, .welcome::before {
  background: radial-gradient(circle at 18% 16%, #A8D3B7 0, transparent 30%), radial-gradient(circle at 84% 14%, #D2E8C6 0, transparent 28%),
    radial-gradient(circle at 52% 92%, #F4E6A8 0, transparent 30%), radial-gradient(circle at 10% 84%, #8CC19E 0, transparent 24%);
  animation: csMeshA 24s ease-in-out infinite alternate; }
.signin::after, .welcome::after {
  background: radial-gradient(circle at 88% 76%, #E8F1D6 0, transparent 26%), radial-gradient(circle at 40% 40%, rgba(193,224,203,.7) 0, transparent 24%),
    radial-gradient(circle at 70% 30%, rgba(246,232,170,.55) 0, transparent 20%);
  animation: csMeshB 30s ease-in-out infinite alternate; }
.si-in, .wl-in { position: relative; z-index: 1; }
@keyframes csMeshA { to { transform: translate(6%, 5%) rotate(8deg) scale(1.06); } }
@keyframes csMeshB { to { transform: translate(-7%, -4%) rotate(-10deg) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .signin::before, .signin::after, .welcome::before, .welcome::after { animation: none; } }

/* Call or Text on a computer shows the number (Nov 10 2026) */
.callnum { font-size: 1.9rem; font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; text-align: center; padding: 18px 0 6px; user-select: all; }
.callhelp { text-align: center; color: var(--muted); margin: 0 0 14px; }
.callacts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.callacts .btn { width: auto; display: inline-flex; align-items: center; text-decoration: none; }
.callacts .btn:not(.primary) { background: var(--fill); color: var(--ink); }
/* Home, Ready to estimate (Trey, Nov 10 2026: "more visually appealing than just lists"): each recent visit a tile in a
   soft sage tint inside the white card, the customer's initials, the visit day, and one capsule to start or open */
.homeview .dash .dtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; padding: 6px 14px 4px; }
.homeview .dash .dtile { background: #F3F6F2; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.homeview .dash .dtile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.homeview .dash .dtile-when { font-size: .8125rem; color: var(--muted); }
.homeview .dash .dtile-name { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.homeview .dash .dtile-sub { color: var(--muted); font-size: .875rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.homeview .dash .dtile-foot { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 12px; }
.homeview .dash .dtile-foot > span { align-self: flex-start; }
.homeview .dash .dtile-none { font-size: .8125rem; color: #7A5A00; font-weight: 600; }
.homeview .dash .dtile-foot .dpill { margin-left: 0; }
.homeview .dash .dcap { border: 0; border-radius: 999px; background: #DCEBE0; color: #04542E; font: inherit; font-weight: 600; font-size: .875rem; padding: 8px 14px; cursor: pointer; white-space: nowrap; }
.homeview .dash .dcap:active { opacity: .55; }
.homeview .dash .dmorebar { display: flex; justify-content: space-between; gap: 12px; padding: 8px 18px 4px; }
.homeview .dash .dmorebar .dlink { color: var(--muted); font-size: .875rem; min-height: 36px; }
.dash .dav { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; margin-right: 12px; background: #DCEBE0; color: #04542E; font-weight: 700; font-size: .875rem; letter-spacing: .02em; }
.homeview .dash .dtile .dav { margin-right: 0; width: 40px; height: 40px; background: #fff; }
@media (max-width: 559px) { .homeview .dash .dtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 6px 10px 4px; } .homeview .dash .dtile { padding: 12px; } .homeview .dash .dtile-foot { flex-direction: column; align-items: stretch; } }

/* Home, Your calendar: the iPhone Calendar day view (Nov 10 2026) */
.dash .dcal { position: relative; margin: 14px 16px 10px 12px; }
.dash .dcal-h { position: absolute; left: 0; right: 0; border-top: .5px solid var(--hair); }
.dash .dcal-h span { position: absolute; left: 0; width: 54px; top: -.62em; padding-right: 6px; text-align: right; font-size: .72rem; color: var(--muted); background: var(--card); font-variant-numeric: tabular-nums; }
.dash .dcal-evs { position: absolute; left: 62px; right: 0; top: 0; bottom: 0; }
.dash .dcal-ev { position: absolute; left: 0; right: 0; border: 0; border-left: 3px solid var(--green, #046939); border-radius: 6px; background: #E1EFE5; color: #04542E; font: inherit; text-align: left; padding: 4px 8px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; gap: 1px; z-index: 1; }
.dash .dcal-ev.has { background: #EDEFF2; color: var(--ink); border-left-color: #9AA39E; }
.dash .dcal-ev:active { opacity: .6; }
.dash .dcal-ev b { font-size: .85rem; font-weight: 600; }
.dash .dcal-ev small { font-size: .75rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash .dcal-now { position: absolute; left: 58px; right: 0; border-top: 2px solid #FF3B30; z-index: 2; pointer-events: none; }
.dash .dcal-now::before { content: ""; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: #FF3B30; }
.dash .dcal-tom { margin: 4px 18px 6px; }
.dash .dcal-tomh { font-size: .875rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.dash .dcal-row { display: flex; gap: 12px; width: 100%; border: 0; border-top: .5px solid var(--hair); background: none; font: inherit; color: inherit; text-align: left; padding: 9px 0; cursor: pointer; }
.dash .dcal-row span { width: 74px; flex: none; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.dash .dcal-row b { font-weight: 600; }

/* Home, round 3 (Trey, Nov 10 2026: "the cards are clunky", "the headers ... bigger"): the section title sits on the
   page in large bold type like Health and Settings; only its content goes in a light rounded box */
.homeview .dash .dsec { background: none; box-shadow: none; padding: 0; border-radius: 0; margin-bottom: 28px; overflow: visible; }
.homeview .dash .dsec > .cap { margin: 0 4px 10px; font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.homeview .dash .dsec > .cap .muted { font-size: .875rem; font-weight: 600; }
.homeview .dash .dbox { background: var(--card); border-radius: 18px; box-shadow: 0 1px 3px rgba(20,32,24,.06); overflow: hidden; padding: 4px 0; }
.homeview .dash .dbox > .dcard { background: none; border-radius: 0; border: 0; margin: 0; box-shadow: none; position: relative; }
.homeview .dash .dbox > .dcard + .dcard::before { content: ""; position: absolute; top: 0; left: 66px; right: 0; border-top: .5px solid var(--hair); }
.homeview .dash .dbox > .group { background: none; box-shadow: none; margin: 0; }
.homeview .dash .drow { display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.homeview .dash .drow .dav { margin-right: 2px; }
.homeview .dash .drow .lbl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.homeview .dash .drow .lbl b { font-weight: 600; }
.homeview .dash .drow .lbl small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.homeview .dash .dcap.soft { background: var(--fill); color: var(--ink); }
.dash .dwk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 10px 8px 2px; border-bottom: .5px solid var(--hair); }
.dash .dwk-d { border: 0; background: none; font: inherit; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0 8px; cursor: pointer; }
.dash .dwk-d span { font-size: .72rem; font-weight: 600; color: var(--muted); }
.dash .dwk-d b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 1rem; transition: background-color .2s, color .2s; }
.dash .dwk-d.today b { color: var(--green, #046939); }
.dash .dwk-d.on b { background: var(--green, #046939); color: #fff; }
.dash .dwk-d i { width: 5px; height: 5px; border-radius: 50%; }
.dash .dwk-d.has i { background: #9AA39E; }
.dash .dwk-d:active b { opacity: .6; }
.dash .dcal-empty { margin: 0; padding: 22px 18px; color: var(--muted); text-align: center; }
/* Home batch (Trey, Nov 10 2026): initials in neutral gray like iPhone Contacts; the Sold pill keeps its own size (the
   app-wide .ok check dot used to shrink it to a 24 px circle) */
.dash .dav, .homeview .dash .dtile .dav { background: #E5E5EA; color: #636366; }
.dash .dpill.ok { width: auto; height: auto; border-radius: 999px; background: #E3F1E8; background-image: none; color: #0E4F2C; }

/* Home on a phone: Your estimates and New estimate in the top bar (Nov 10 2026) */
.topbar .hometop { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.topbar .hometop + .acctbtn.home { margin-left: 8px; }

/* Sample Home banner (Admin, ?sample=1) */
.dash .dsample { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #FFF4D6; color: #5C4400; border-radius: 14px; padding: 10px 14px; margin: 0 0 16px; font-size: .9rem; }

/* Back to Home on a phone estimate (Nov 10 2026): the iPhone back control, green chevron and word, top left */
.topbar .backhome { display: none; align-items: center; gap: 4px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 1.0625rem; font-weight: 500; padding: 6px 8px 6px 2px; margin-right: 6px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.topbar .backhome:active { opacity: .45; }
@media (max-width: 1023px) { .topbar .backhome { display: inline-flex; } .topbar .backhome ~ .who { min-width: 0; } }
/* the My Day row reads as where you are while Home is open (computer) */
body.home #side [data-act="today"] { background: #E4E5EA; }
body.home #side [data-act="today"].away { background: #fff; }
body.home #side [data-act="today"].away .hico { background: #EDEDF2; color: var(--ink); }
#side [data-act="today"].going { background: #E4E5EA; }
#side [data-act="today"].going .hico { background: var(--ink); color: #fff; }
/* Home as a place (Nov 17 2026): the house in a small rounded tile, gray until Home is open, then ink on white */
.homeacts .row { gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.homeacts .hico { flex: none; width: 34px; height: 34px; border-radius: 9px; background: #EDEDF2; color: var(--ink); display: flex; align-items: center; justify-content: center; transition: background-color .22s ease, color .22s ease; }
.homeacts .hico svg { width: 20px; height: 20px; stroke-width: 1.9; }
.homeacts .lbl { font-weight: 600; }
.homeacts .lbl small { font-weight: 400; }
body.home #side .homeacts .hico { background: var(--ink); color: #fff; }
/* more contrast (Trey, Nov 17 2026: "Should it have some more contrast"): the row stands off the near-white column with a
   hairline and a soft shadow; while Home is open the house tile turns dark and the row a clear gray */
#side .homeacts { box-shadow: 0 0 0 1px var(--hair), 0 1px 3px rgba(0,0,0,.06); }
#side .homeacts .row { transition: background-color .22s ease; }
.homeacts .row.tap::after { display: none; }   /* a place, not a menu: no chevron */
@media (max-width: 1023px) { .topbar:has(.backhome) .logobtn { display: none; } }
/* a narrow phone keeps the customer's name: just the chevron, like iPhone when the bar is full */
@media (max-width: 559px) { .topbar .backhome span { display: none; } .topbar .backhome { padding: 8px 10px 8px 4px; margin-right: 2px; } .topbar .backhome ~ .who { min-width: 72px; flex: 1 1 auto; } }

/* 2 weeks | Month, the iPhone segmented control (Nov 10 2026) */
.dash .dseg { display: inline-flex; background: var(--fill); border-radius: 9px; padding: 2px; gap: 2px; }
.dash .dseg button { border: 0; background: none; font: inherit; font-size: .8125rem; font-weight: 600; color: var(--ink); padding: 4px 12px; border-radius: 7px; cursor: pointer; transition: background-color .25s, box-shadow .25s; }
.dash .dseg button.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.dash .dseg button:active { opacity: .55; }
@media (max-width: 559px) { .topbar:has(.backhome) .nlab { display: none; } }   /* Estimates as its icon, so Preview fits beside the back chevron */
/* phone: the switch and the title stay on one line; addresses get two lines instead of being cut short */
.dash .dseg button { white-space: nowrap; }
.homeview .dash .dsec > .cap { white-space: nowrap; }
@media (max-width: 559px) {
  .homeview .dash .dsec > .cap { font-size: 1.2rem; }
  .dash .dseg button { padding: 4px 9px; font-size: .78rem; }
  .homeview .dash .drow .lbl small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* Home rows (Trey, Nov 10 2026): the status tag right after the name; Needs you uses a round phone icon and "…" */
.homeview .dash .drow .lbl b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.homeview .dash .drow .lbl b .dpill { font-size: .7rem; padding: 2px 8px; margin-left: 0; }
.homeview .dash .drow .dname { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.homeview .dash .drow .dname:active { opacity: .55; }
.dash .dibtn { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--fill); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.dash .dibtn.go { color: var(--green, #046939); }
.dash .dibtn svg { width: 18px; height: 18px; }
.dash .dibtn:active { opacity: .55; }
.dash .dcal-ev { padding: 3px 8px; line-height: 1.2; justify-content: flex-start; }   /* both lines fit in an hour block */

/* the iPhone pop-up menu (Nov 10 2026) */
.dmenu { position: fixed; z-index: 2000; min-width: 230px; max-width: calc(100vw - 16px); background: rgba(250,250,252,.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.18), 0 0 0 .5px rgba(0,0,0,.08); padding: 4px 0; overflow: hidden; }
.dmenu-i { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; padding: 10px 16px; cursor: pointer; }
.dmenu-i + .dmenu-i { border-top: .5px solid rgba(0,0,0,.08); }
.dmenu-i span { display: flex; flex-direction: column; gap: 1px; }
.dmenu-i small { color: var(--muted); font-size: .78rem; }
.dmenu-i.danger { color: #D70015; }
.dmenu-i:active, .dmenu-i:hover { background: rgba(0,0,0,.05); }
.dmenu-gap { height: 6px; background: rgba(0,0,0,.05); }
.dmenu-i svg { color: var(--green, #046939); flex: none; }
/* Last 2 weeks ⌄ */
.dash .drange { display: inline-flex; align-items: center; gap: 4px; border: 0; background: var(--fill); color: var(--ink); font: inherit; font-size: .8125rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.dash .drange:active { opacity: .55; }
/* Needs you grouped by what to do */
.homeview .dash #d-need > .dbox:has(.dgrp) { background: none; box-shadow: none; padding: 0; overflow: visible; }
.homeview .dash .dgrp + .dgrp { margin-top: 14px; }
.homeview .dash .dgh { display: flex; justify-content: space-between; align-items: baseline; margin: 0 6px 6px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.homeview .dash .dgh span { color: var(--muted); font-weight: 500; font-size: .8125rem; }
.homeview .dash .dsub { background: var(--card); border-radius: 16px; box-shadow: 0 1px 3px rgba(20,32,24,.06); overflow: hidden; }
.homeview .dash .dsub > .dcard { position: relative; }
.homeview .dash .dsub > .dcard + .dcard::before { content: ""; position: absolute; top: 0; left: 66px; right: 0; border-top: .5px solid var(--hair); }
.homeview .dash .drow .dibtn + .dibtn { margin-left: -2px; }
.homeview .dash .dsub > .dcard { background: none; border-radius: 0; margin: 0; box-shadow: none; border: 0; }
.homeview .dash .dsub .drow .lbl small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* "Report in": the report for this appointment has arrived, so Start estimate fills the measurements (Nov 10 2026) */
.dash .dtag { display: inline-block; font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #E7EFFA; color: #1F4E8C; white-space: nowrap; }
.dash .dcal-ev b { display: flex; align-items: center; gap: 6px; }
.dash .dcal-ev .dtag { font-size: .65rem; padding: 1px 6px; }
/* Apple look, color only where it is needed (Trey, Nov 10 2026): "Last 2 weeks ⌄" is a plain pull-down, the section counts
   are gray, a menu's check is black like iPhone menus */
.dash .drange { background: none; color: var(--muted); padding: 4px 2px; border-radius: 6px; font-weight: 500; font-size: .875rem; }
.dash .drange svg { opacity: .8; }
.homeview .dash .dsec > .cap .muted { color: var(--muted); font-weight: 500; }
.dmenu-i svg { color: var(--ink); }
/* status colors (Trey, Nov 10 2026): Sold is the one green; Draft, Sent, Lost and the report tag are gray (yellow means
   Needed in the app, red means delete) */
.dash .dpill.draft, .dash .dpill.sent, .dash .dpill.lost { background: var(--fill); color: var(--muted); border: 0; box-shadow: none; }
.dash .dtag { background: var(--fill); color: var(--muted); }
/* status colors, Trey's call (Nov 10 2026, after seeing gray and color side by side: "color is easier to scan and know"):
   Sold green, Sent yellow, Lost red, Draft gray, a report ready blue. This replaces the Nov 3 audit's gray Lost on Home. */
.dash .dpill.sent { background: #FFF1CC; color: #7A5A00; }
.dash .dpill.lost { background: #FDE2E1; color: #B3261E; }
.dash .dpill.draft { background: var(--fill); color: var(--muted); }
.dash .dtag { background: #E7EFFA; color: #1F4E8C; }

.homeview .dash .dgmore { display: block; width: 100%; border: 0; border-top: .5px solid var(--hair); background: none; font: inherit; color: var(--muted); padding: 11px 16px; text-align: left; cursor: pointer; }
.homeview .dash .dgmore:active { background: rgba(0,0,0,.04); }

/* the calendar, fuller (Trey, Nov 10 2026): month and arrows, Today, faded other events, appointment details */
.dash .dwk-head { display: flex; align-items: center; gap: 6px; padding: 12px 14px 0; }
.dash .dwk-head b { font-size: 1rem; font-weight: 600; margin-right: auto; order: -1; padding-left: 4px; }
.dash .dwk-arrow { border: 0; background: none; color: var(--ink); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.dash .dwk-arrow:active, .dash .dtoday:active { opacity: .45; }
.dash .dtoday { border: 0; background: var(--fill); color: var(--ink); font: inherit; font-size: .8125rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; cursor: pointer; margin-left: 4px; }
.dash .dcal-day { touch-action: pan-y; }
.dash .dcal-ev.other { background: #F2F2F5; color: var(--muted); border-left-color: #C7C7CC; opacity: .85; }
.apptd { padding: 4px 2px 12px; }
.apptd-when { font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.apptd-row { margin-top: 6px; }
.apptd-row.muted { color: var(--muted); }
.apptd-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.apptd-tags .dpill { margin-left: 0; }
.apptd .dpill { font-size: .75rem; font-weight: 600; border-radius: 999px; padding: 3px 9px; background: var(--fill); color: var(--muted); }
.apptd .dpill.ok { background: #E3F1E8; color: #0E4F2C; width: auto; height: auto; background-image: none; }
.apptd .dpill.sent { background: #FFF1CC; color: #7A5A00; }
.apptd .dpill.lost { background: #FDE2E1; color: #B3261E; }
.apptd .dtag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #E7EFFA; color: #1F4E8C; }

/* the appointment's Outlook notes in its details (Nov 10 2026) */
.apptd-notes { margin-top: 12px; padding: 10px 12px; background: var(--fill); border-radius: 12px; line-height: 1.4; white-space: pre-wrap; }
.apptd-notes span { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); margin-bottom: 3px; }

.apptd-go .lbl { color: var(--green, #046939); font-weight: 600; }
/* a problem reads red in its heading; its button stays gray (Trey, Nov 10 2026: error buttons should not be green) */
.homeview .dash .dgh.bad { color: #D70015; }

/* what slipped reads red, what is coming gray (Nov 10 2026) */
.dash .dlate { font-style: normal; color: var(--muted); }
.dash .dlate.bad { color: #D70015; font-weight: 500; }

/* Home, after the rep-eye review (Nov 10 2026) */
.dash .dwk-head b { order: 0; }
.dash .dwk-tslot { min-width: 72px; display: flex; justify-content: flex-end; margin-right: 2px; }
.dash .dwk-arrow { width: 44px; height: 44px; }
.dash .drange { min-height: 44px; padding: 10px 4px; }
.dash .dibtn { width: 44px; height: 44px; }
.dash .dibtn-gap { flex: none; width: 44px; height: 44px; }
.homeview .dash .drow { gap: 6px; }
.homeview .dash .drow .dav { margin-right: 6px; }
.homeview .dash .dsub .drow .lbl small, .homeview .dash .drow .lbl small { white-space: normal; display: block; -webkit-line-clamp: unset; overflow: visible; }
.dmenu { max-height: calc(100vh - 72px); overflow-y: auto; }
.dmenu-info { padding: 10px 16px; color: var(--muted); }
.dmenu-info span { display: flex; flex-direction: column; gap: 1px; color: var(--ink); font-weight: 600; }
.dmenu-info small { color: var(--muted); font-weight: 400; font-size: .78rem; }
/* 2. a phone puts the day first: Pick up, your calendar, then recent appointments and Needs you */
@media (max-width: 1023px) {
  .homeview .dash .dcols { display: flex; flex-direction: column; }
  .homeview .dash .dcols > div { display: contents; }
  .homeview .dash #d-now { order: 0; } .homeview .dash #d-last { order: 1; } .homeview .dash #d-soon { order: 2; } .homeview .dash #d-ready { order: 3; } .homeview .dash #d-phwait { order: 4; } .homeview .dash #d-need { order: 4; } .homeview .dash #d-reports { order: 3; }
}
/* capsule buttons keep their look and get a 44pt touch area */
.dash .dcap { position: relative; }
.dash .dcap::after { content: ''; position: absolute; inset: -4px -2px; }
.dash .dwk-head b { flex: 1; min-width: 0; white-space: nowrap; }
@media (max-width: 559px) { .dash .dwk-tslot { min-width: 60px; } .dash .dwk-arrow { width: 40px; } }
/* a phone: icons look smaller and keep a 44pt touch area, so the reason gets the width */
@media (max-width: 559px) {
  .dash .dibtn, .dash .dibtn-gap { width: 34px; height: 34px; position: relative; }
  .dash .dibtn::after { content: ''; position: absolute; inset: -5px -3px; }
  .dash .drow .dav { width: 32px; height: 32px; font-size: .72rem; margin-right: 2px; }
}


/* "N things need you" jumps to Needs you: a plain link in the summary, not a button look */
.homeview .dash .dsay-go { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: #C7C7CC; text-underline-offset: 3px; cursor: pointer; }
.homeview .dash .dsay-go:active { opacity: .55; }
.homeview .dash #d-need { scroll-margin-top: 72px; }
.replogos { display: inline-flex; gap: 6px; vertical-align: -8px; } .replogos img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 .5px rgba(0,0,0,.12); }
.homeview .dash .dsec > .cap .replogos { margin: 0 auto 0 -4px; align-self: center; }   /* beside the words, not pushed to the far side */

/* Home, second rep-eye review (Nov 10 2026) */
.dash .dcal-ev.has { background: #E3F1E8; color: #0E4F2C; border-left-color: var(--green, #046939); }
.dash .dcal-ev .dpill { margin-left: 6px; font-size: .68rem; padding: 0 6px; vertical-align: 1px; }
.hw-lost .lbl { color: #D70015; }
/* a computer shows the Estimates list beside Home, so Pick up where you left off is a phone thing */
@media (min-width: 1024px) { .homeview .dash #d-last { display: none; } }
/* the Estimates list wears the same status colors as Home: Sold green, Sent yellow, Lost red, the rest gray */
em.st-sold { background: #E3F1E8; color: #0E4F2C; }
em.st-sent, em.st-on_jobnimbus, em.st-quote { background: #FFF1CC; color: #7A5A00; }
em.st-lost { background: #FDE2E1; color: #B3261E; text-decoration: none; }
/* the now line runs behind the appointment blocks, so it never strikes through a name; its dot stays in the margin */
.dash .dcal-now { z-index: 0; }
.dash .dcal-evs { z-index: 1; }
.dash .dcal-now::before { z-index: 2; }
/* every kind of sold reads green in the list; practice stays gray (it is not a real job) */
em.st-soldsent, em.st-soldorder { background: #E3F1E8; color: #0E4F2C; }
/* the list rows set em.st gray with a class in front; these win over it in both the sidebar and the phone Estimates sheet */
em.st.st-sold, em.st.st-soldsent, em.st.st-soldorder, em.st.st-signed { background: #E3F1E8; color: #0E4F2C; }
em.st.st-sent, em.st.st-on_jobnimbus, em.st.st-quote { background: #FFF1CC; color: #7A5A00; }
em.st.st-lost { background: #FDE2E1; color: #B3261E; text-decoration: none; }
.est em.st.st-sold, .row.est em.st.st-sold, .est em.st.st-soldsent, .row.est em.st.st-soldsent, .est em.st.st-soldorder, .row.est em.st.st-soldorder { background: #E3F1E8; color: #0E4F2C; }
.est em.st.st-sent, .row.est em.st.st-sent, .est em.st.st-on_jobnimbus, .row.est em.st.st-on_jobnimbus, .est em.st.st-quote, .row.est em.st.st-quote { background: #FFF1CC; color: #7A5A00; }
.est em.st.st-lost, .row.est em.st.st-lost { background: #FDE2E1; color: #B3261E; text-decoration: none; }

/* Nov 11 2026 audit: toasts take the width they need on a phone (they were squeezed to half and wrapped to 6 lines) */
.toast { width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; }
.dash .dcap .dl-short { display: none; }
@media (max-width: 559px) {
  .dash .dibtn::after { inset: -5px -5px; }          /* a full 44 pt to touch */
  .dash #d-ready .dcap .dl-long { display: none; } .dash #d-ready .dcap .dl-short { display: inline; }
}

/* Ready to estimate: the first line of the appointment's notes (Nov 11 2026) */
.dash .drow .lbl small.dnote { color: var(--muted); font-style: italic; margin-top: 2px; }

/* Home rows (Trey, Nov 11 2026): the buttons sit together at the end of the row; on a phone the name and reason take
   the whole width and the buttons go in a row under them, lined up with the text (like Mail's actions), so a reason
   reads in one or two lines and no row shows a gap for a button it does not have */
.homeview .dash .drow .dacts { display: flex; align-items: center; gap: 6px; flex: none; }
@media (max-width: 559px) {
  .homeview .dash .drow { flex-wrap: wrap; row-gap: 4px; align-items: flex-start; }
  .homeview .dash .drow .dav { margin-top: 2px; }
  .homeview .dash .drow .lbl.dname { flex: 1 1 0; min-width: 0; }
  .homeview .dash .drow .dacts { flex-basis: 100%; padding-left: 40px; margin-top: 2px; }
  .homeview .dash .drow .dacts .dibtn-gap { display: none; }
  .homeview .dash #d-ready .dcap .dl-long { display: inline; } .homeview .dash #d-ready .dcap .dl-short { display: none; }
}

/* the Estimates row "…": on a computer it shows on hover (Gmail's way); on a phone it always shows, and long-press works too (Nov 11 2026) */
.est { position: relative; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.est .estmore { display: none; }
@media (hover: hover) and (pointer: fine) {
  .est .estmore { display: grid; place-items: center; position: absolute; right: 6px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 8px; color: var(--muted); opacity: 0; transition: opacity .18s ease, background-color .18s ease; }
  .est:hover .estmore, .est:focus-visible .estmore { opacity: 1; }
  .est .estmore:hover { background: rgba(0,0,0,.06); color: var(--ink); }
  .est:has(.estmore) { padding-right: 40px; }
}
/* on a phone the dots always show (Trey, Nov 11 2026: reps won't know to long-press), the round gray More of Home's rows */
@media (hover: none), (pointer: coarse) {
  .est .estmore { display: grid; place-items: center; position: absolute; right: 8px; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%; background: var(--fill); color: var(--ink); }
  .est .estmore svg { width: 18px; height: 18px; }
  .est:has(.estmore) { padding-right: 54px; }
}

/* a 375 to 400 wide phone with an estimate open: Back, the name, Undo, Redo, …, ☰ and Preview came to 417 px and widened
   the whole page (Nov 11 2026 rep test: the list sheet's Done and dots were cut off). Tighter gaps and 40 px icons fit it. */
@media (max-width: 400px) {
  .topbar { gap: 4px; padding-left: 12px; padding-right: 12px; }
  .topbar .tbtn.icon, .topbar .tbtn.narrow { min-width: 40px; }
  .topbar .undos { margin-left: 2px; gap: 0; }
  .topbar .tbtn.narrow + .tbtn.narrow, .topbar .pvbtn { margin-left: 2px; }
}

/* the row a menu is open for stays pressed, so the rep sees which estimate Delete or Mark as lost is for */
.est.menuon, .estline:has(> .est.menuon) { background: var(--tint); }
.dibtn.menuon, .tbtn.menuon { opacity: .6; }

/* The welcome is a white card on the mesh, the same as sign-in (Trey, Nov 11 2026: "a little hard to read, should it be
   a card?"): its small gray lines sat right on the moving gradient. The card itself rises in like sign-in's. */
.wl-in { background: #fff; border-radius: 24px; padding: 32px 26px 22px; border: 1px solid rgba(14,79,44,.07);
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 20px rgba(14,79,44,.08), 0 30px 70px rgba(14,79,44,.16);
  opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .5s ease, transform .7s cubic-bezier(0.32, 0.72, 0, 1); }
.welcome.in .wl-in { opacity: 1; transform: none; }
.wl-title { margin-top: 16px; }
.wl-rows small { color: #5B655E; }
@media (max-width: 380px) { .wl-in { padding: 26px 18px 18px; border-radius: 20px; } .wl-rows { gap: 16px; margin-bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .wl-in { opacity: 1; transform: none; transition: none; } }

/* the note preview: two lines at most, "…" when there is more (Apple Mail's preview) */
.homeview .dash .drow .lbl small.dnote, .dash .drow .lbl small.dnote { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; text-overflow: ellipsis; }

/* the sample banner's two buttons sit together; on a phone they go under the words */
.dash .dsample .dsample-acts { display: flex; gap: 8px; flex: none; }
@media (max-width: 560px) { .dash .dsample { flex-wrap: wrap; } .dash .dsample .dsample-acts { width: 100%; } .dash .dsample .dsample-acts .dcap { flex: 1; } }

/* Home's cards get a soft lift, the way Apple's widgets and summary cards sit on gray; the rest of the app keeps the flat
   iPhone list look (Trey, Nov 11 2026: "maybe the home on the middle and the rest of the app as is") */
.homeview .dash .dbox, .homeview .dash .dsub { box-shadow: 0 1px 2px rgba(20,32,24,.06), 0 6px 18px rgba(20,32,24,.09); }
.homeview .dash #d-need > .dbox:has(.dgrp) { box-shadow: none; }
/* the "Last 2 weeks" button keeps its 44 px tap area without making Ready's heading taller, so Ready's card lines up with
   the calendar's beside it (Nov 11 2026) */
.homeview .dash .dsec > .cap .drange { margin: -8px 0; }

/* the follow-up day on a list row, quiet like the trade line */
.est .erem, .row.est .erem { display: block; margin-top: 3px; font-size: .78rem; color: var(--muted); }
/* round 20: changes only on this phone (no signal); Needed yellow, never red */
.est .erem.notup, .row.est .erem.notup, .dcard .notup { color: #7A5A00; font-weight: 600; }

/* the check-back choices stay on one line on a 375 wide phone */
.seg.lostback button { white-space: nowrap; padding-left: 6px; padding-right: 6px; }
/* a lost estimate's note at the top of each step: neutral, with Not lost after all */
.note.lostnote { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--fill); color: var(--ink); }
.note.lostnote .dcap { flex: none; border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; background: #fff; color: var(--ink); cursor: pointer; }

/* five follow-up choices fit a 375 wide phone; the date row under them */
.seg.follow button { white-space: nowrap; padding-left: 4px; padding-right: 4px; }
.row.fdate input[type="date"] { min-width: 0; max-width: 60%; text-align: right; }

/* the date field never cuts its placeholder; the five follow-up choices a touch smaller on Review's narrow card */
.row.fdate input[type="date"] { min-width: 150px; }
.seg.follow button { font-size: .8125rem; }


/* the customer row a read-only estimate shows on step 1 */
.row.custsum .lbl b { font-size: 1rem; }
.row.custsum .lbl small.custmiss { color: #8A5A00; }
.mail .rbox { flex: 1; } .mail .rchip { min-width: 0; overflow-wrap: anywhere; }   /* a long address wraps inside its chip on a phone (Nov 11 2026: 18 px past the card) */
/* the customer search reads as a search: a magnifier before it (Nov 12 2026 rep walk-through: it sat over First name and
   looked like the place to type the name) */
#jnq { padding-left: 26px; background: no-repeat left 2px center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8f8a' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m20 20-4.8-4.8'/%3E%3C/svg%3E"); }
/* step 1: a hint box between two rows (street, phone, email) keeps the divider line under the row above it (Nov 12 2026:
   no line between Phone and Email) */
#streethint + .row::before, #phonehint + .row::before, #emailhint + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--hair); }
/* the check and the lead source are their own cards, spaced like every section (Nov 12 2026: lead source looked joined to
   the card above) */
#custmatch > .group:first-child, #custlead > .group:first-child { margin-top: 26px; }

/* touch-down dim on every tappable that had none (Nov 12 2026 hunt): sheet Done and Cancel, wide buttons, Home's links,
   the estimate list, the mail sheet's cards and buttons, the step bar, the toast's Undo. Next, Back and Send keep their
   own press (a small shrink). */
.sheet .done:active, .btn:not(.nextbtn):not(.backbtn):not(.sendbtn):not(:disabled):active, .dash .dlink:active, .dash .dmore:active,
.linkbtn:active, .newbtn:active, .tlink:active, .backrev:active, .stepbar .stp:active, .hint:active, .tag.act:active, .swt:active,
.note .dcap:active, .est:active, .estmore:active, .mail .att:active, .mail .attx:active, .mail .rx:active, .mail .ppl:active,
.mail .rcc:active, .toast .tundo:active, .ibtn:active { opacity: .55; transition: none; }

/* color only where it means something (Trey, Nov 12 2026): the toast's Undo is white, the Needs you phone, links, Cc and
   the edit toggle are ink, a picked or pressed row and the house walk's answered bar are gray. Sheet Done stays green. */
.toast .tundo { color: #fff; font-weight: 700; }
.dash .dibtn.go { color: var(--ink); }
.linkbtn { color: var(--ink); }
.mail .rcc { color: var(--ink); }
.pv .tools .pvedit.on { color: var(--ink); border-color: var(--hair); background: var(--fill); }
.walkq.yes { box-shadow: inset 3px 0 0 #C7C7CC; }
.est.on, .estline:has(> .est.on), .est.menuon, .estline:has(> .est.menuon) { background: #E5E5EA; }
@media (hover: hover) { .estline:has(> .est.on):hover { background: #E5E5EA; } }

/* Home: Measurement reports, the page arrows in All reports (Nov 13 2026) */
.reppager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px 0 4px; color: var(--muted, #6b756b); font-size: .875rem; }
.reppager .tbtn[disabled] { opacity: .35; }
.reprow .repday { flex: none; align-self: flex-start; margin: 2px 6px 0 10px; font-size: .8125rem; color: var(--muted, #6b756b); white-space: nowrap; }
.reprow .repused { display: block; margin-top: 2px; color: var(--muted, #6b756b); }

/* Job photos (Nov 13 2026): the camera built into the app, iPhone Camera style */
.cam { position: fixed; inset: 0; z-index: 1000; background: #000; color: #fff; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.cam-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; min-height: 44px; }
.cam-x { background: none; border: 0; color: #fff; font: inherit; font-size: 1.0625rem; padding: 6px 0; }
.cam-title { flex: 1; text-align: center; font-weight: 600; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam-n { min-width: 64px; text-align: right; font-size: .875rem; color: #FFD60A; font-variant-numeric: tabular-nums; }
.cam-view { position: relative; flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cam-view video { width: 100%; height: 100%; object-fit: cover; }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam-msg { position: absolute; left: 24px; right: 24px; text-align: center; font-size: 1rem; line-height: 1.45; color: #fff; }
.cam-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px 28px 26px; }
.cam-thumb { justify-self: start; width: 52px; height: 52px; border-radius: 10px; border: 2px solid rgba(255,255,255,.85); background: #1c1c1e; padding: 0; overflow: hidden; opacity: 0; transition: opacity .2s; }
.cam-thumb.on { opacity: 1; }
.cam-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-shutter { width: 74px; height: 74px; border-radius: 50%; border: 4px solid #fff; background: transparent; padding: 4px; }
.cam-shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: transform .12s; }
.cam-shutter:active span { transform: scale(.88); }
.cam-shutter:disabled { opacity: .35; }
.cam-done { justify-self: end; background: none; border: 0; color: #FFD60A; font: inherit; font-size: 1.0625rem; font-weight: 600; padding: 8px 0; }
/* the photo viewer (Nov 17 2026): iPhone Photos style, full screen over the Photos sheet (web/js/viewer.js) */
.phv { position: fixed; inset: 0; z-index: 1000; background: #000; color: #fff; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); touch-action: none; -webkit-user-select: none; user-select: none; overscroll-behavior: contain; }
.phv [hidden] { display: none !important; }
.phv-top { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 52px; padding: 0 8px; }
.phv-done { grid-column: 3; justify-self: end; min-width: 44px; min-height: 44px; padding: 0 10px; background: none; border: 0; color: #FFD60A; font: inherit; font-size: 1.0625rem; font-weight: 600; cursor: pointer; }
.phv-done:active { opacity: .5; }
.phv-n { grid-column: 2; font-weight: 600; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.phv-rm { grid-column: 1; justify-self: start; position: relative; width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; }
.phv-rm::before { content: ''; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; box-sizing: border-box; border-radius: 50%; border: 2px solid #fff; background: #FF3B30; }
.phv-rm::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 1px; background: #fff; }
.phv-rm:active, .phv-rm:disabled { opacity: .5; }
.phv-view { position: relative; flex: 1; overflow: hidden; }
.phv-track { position: absolute; inset: 0; }
.phv-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.phv-slide img { width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 50%; pointer-events: none; -webkit-user-drag: none; }
.phv-slide img.ease { transition: transform .3s cubic-bezier(0.32, 0.72, 0, 1); }
.phv-slide .spin { position: absolute; width: 28px; height: 28px; border-color: rgba(255,255,255,.25); border-top-color: #fff; }
.phv-miss { position: absolute; left: 24px; right: 24px; margin: 0; text-align: center; font-size: 1rem; line-height: 1.45; }
.phv-arrow { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; padding: 0; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(44,44,46,.72); color: #fff; cursor: pointer; transition: background-color .15s, opacity .15s; }
.phv-arrow svg { width: 24px; height: 24px; }
.phv-prev { left: 12px; }
.phv-next { right: 12px; }
.phv-arrow:active { background: rgba(72,72,74,.9); }
@media (hover: hover) and (pointer: fine) { .phv-arrow:hover { background: rgba(72,72,74,.9); } }
@media (hover: none), (pointer: coarse) { .phv-arrow { opacity: .5; background: rgba(28,28,30,.4); } .phv-arrow:active { opacity: .8; } }
/* the arrows and the red minus fade in and out instead of popping (reduced motion: the rule at the top stops the transition) */
.phv-retry { grid-column: 1; grid-row: 1; justify-self: start; margin-left: 44px; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.phv-retry svg { width: 22px; height: 22px; }
.phv-retry:active, .phv-retry:disabled { opacity: .5; }
.phv-arrow, .phv-rm, .phv-retry { transition: background-color .15s, opacity .2s, visibility .2s; }
.phv-arrow.off, .phv-rm.off, .phv-retry.off { opacity: 0 !important; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .phv-retry { transition: none; } }
.phv-note { margin: 0; min-height: 20px; padding: 10px 20px 14px; text-align: center; font-size: .875rem; line-height: 1.4; color: rgba(255,255,255,.75); }
body.phvon .toast { z-index: 1100; }
/* the viewer inside the Photos sheet (Trey, Nov 17 2026: not full screen): it fills the sheet, in the sheet's own look,
   Done on the right in plain ink like every sheet's Done (green sparingly, Trey Oct 30 2026) */
.sheet.phvhost { position: relative; overflow: hidden; }
.phv.in { position: absolute; inset: 0; z-index: 5; background: var(--bg); color: var(--ink, #1c1c1e); border-radius: inherit; padding: 0 0 env(safe-area-inset-bottom); }
.phv.in .phv-top { min-height: 50px; padding: 4px 8px 2px; }
.phv.in .phv-done { color: var(--ink); font-weight: 700; font-size: 1rem; }
.phv.in .phv-view { margin: 0 12px; border-radius: 10px; background: #f2f2f4; }
.phv.in .phv-note { color: var(--muted, #6b756b); }
.phv.in .phv-miss { color: var(--ink, #1c1c1e); }
.phv.in .phv-slide .spin { border-color: rgba(0,0,0,.12); border-top-color: #6b756b; }
@media (min-width: 768px) { .sheet.full.phvhost { height: min(760px, 90vh); } }
/* the Photos sheet: a grid of the customer's photos, each with its upload state */
.phgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-top: 10px; }
.phgrid .ph { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #E5E5EA; }
.phgrid .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phgrid .ph i { position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.55); }
.phgrid .ph i.ok { background: #34C759; }
.phbadge { position: absolute; top: -2px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--ink, #1C1C1E); color: #fff; font-size: 10px; line-height: 16px; font-weight: 700; text-align: center; }
.tbtn.phbtn { position: relative; }
/* Home: the card for the appointment happening now */
.dnow { display: flex; align-items: center; gap: 12px; }
.dnow .lbl { flex: 1; min-width: 0; }
.homeview .dash .dcap.dcapicon { display: inline-flex; align-items: center; gap: 6px; }
.homeview .dash .dcap.dcapicon svg { width: 18px; height: 18px; }
/* the Now card keeps Take photos on the right, on a phone too (Trey, Nov 13 2026) */
.homeview .dash .drow.dnow { flex-wrap: nowrap; align-items: center; }
.homeview .dash .drow.dnow .dacts { flex-basis: auto; padding-left: 0; margin-top: 0; margin-left: auto; }
/* camera, audit fixes (Nov 13 2026): the picture as saved (not cropped), the last photo over it, plain messages */
.cam-view video { object-fit: contain; background: #000; }
.cam-look { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.cam-msg { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cam-msg p { margin: 0; }
.cam-again, .cam-pick { background: #fff; color: #000; border: 0; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 600; }
.cam-err { position: absolute; left: 16px; right: 16px; bottom: 12px; margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(255,59,48,.92); color: #fff; font-size: .9375rem; text-align: center; }
.cam-top { justify-content: center; }
.cam-top .cam-n { position: absolute; right: 16px; }
.cam-top { position: relative; }
/* Photos sheet (audit, Nov 13 2026): tap a photo to look at it; a red minus removes a waiting one, with Undo */
.phgrid .ph .phlook { all: unset; display: block; width: 100%; height: 100%; cursor: pointer; }
#sheet .phcap { margin: 20px 2px 2px; }   /* the Photos sheet's two parts: this device, then On the job (Nov 16 2026) */
.phgrid:empty { margin-top: 0; }
.phbig { margin: 0 -4px; }
.phbig img { width: 100%; height: auto; border-radius: 10px; display: block; }
/* the top bar's camera: turning while photos send, a check once all are on the job */
.tbtn.phbtn[data-state="sending"] .phbadge { animation: phpulse 1.2s ease-in-out infinite; }
.tbtn.phbtn[data-state="done"] .phbadge { background: #34C759; }
.tbtn.phbtn[data-state="failed"] .phbadge { background: #FF3B30; }
@keyframes phpulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .tbtn.phbtn[data-state="sending"] .phbadge { animation: none; } }
/* round 20 (Trey, Nov 16 2026): one grid; a photo still saving from this phone has a small turning mark, a saved or
   on-the-job photo has none (no green check), one that could not go stays red */
.phgrid .ph i.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; background: rgba(0,0,0,.35); box-shadow: 0 0 0 2px rgba(0,0,0,.25); }
@media (prefers-reduced-motion: reduce) { .phgrid .ph i.spin { animation-duration: 2.4s; } }
/* the one question on the camera (round 20: "You do not look to be at 12 Elm St. Are these photos for Smith?") */
.cam .cam-ask { position: relative; z-index: 2; margin: 6px 12px 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.94); color: #1C1C1E; font-size: .9375rem; }
.cam .cam-ask p { margin: 0 0 8px; }
.cam .cam-ask div { display: flex; gap: 8px; flex-wrap: wrap; }
.cam .cam-ask button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; font: inherit; font-weight: 600; background: #E5E5EA; color: #1C1C1E; }
.cam .cam-ask .cam-yes { background: #046939; color: #fff; }
/* the same question on the Photos sheet and step 1 */
.phask { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 2px; }
/* a phone's estimate top bar: Redo steps aside for the camera, so the customer's name keeps its room (photo audit) */
/* phones: Redo shows only once there is something to redo, as in iOS Notes (round 19 UI audit: it was never reachable) */
@media (max-width: 559px) { #topbar [data-act="redo"]:disabled { display: none; } }
/* round 20 (review #26): a finished window opening folds to one line with copy and change icons */
.row.wosum { gap: 4px; }
.row.wosum .lbl { flex: 1 1 auto; min-width: 0; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
/* the width, height and quantity boxes: the word above the box, so a Needed tag never sits on the number (375 px) */
.pitch.dims label { flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 10px; }
.pitch.dims label > span:first-child { white-space: normal; }
.pitch.dims input { text-align: left; min-height: 32px; width: 100%; }
.row.wosum .ibtn { flex: none; min-width: 44px; height: 44px; color: var(--muted); }
/* round 20 (review #25): the top bar on a phone keeps still while "Saving" comes and goes. The name block takes whatever is
   left (its width never follows its text), the icons never shrink or overlap and keep 44 px targets, the save line has a
   fixed one-line slot, and the name is two lines at most with an ellipsis. */
@media (max-width: 1023px) {
  .topbar .backhome ~ .who { flex: 1 1 0; min-width: 72px; }
  .topbar .undos, .topbar .tbtn, .topbar .backhome, .topbar .acctbtn { flex: none; }
  .topbar .undos { margin-left: 0; gap: 0; }
  .topbar .tbtn.icon, .topbar .tbtn.narrow { min-width: 44px; height: 44px; }
  .topbar .who .saveline { height: 1.15rem; line-height: 1.15rem; }
}
/* fix pass 2: the title and its status share Home's two-line height (name, then trade and save status on one line with an
   ellipsis); the icon slots keep their width, Redo keeps its slot when hidden, and the name block never animates its width */
.topbar .whosub { display: contents; }
@media (max-width: 1023px) {
  .topbar .who { contain: layout paint; transition: none; }
  .topbar .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; font-size: .95rem; line-height: 1.2; max-height: none; }
  .topbar .whosub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 1.15rem; line-height: 1.15rem; font-size: .78rem; color: var(--muted); }
  .topbar .whosub > span, .topbar .whosub .saveline { display: inline; height: auto; line-height: inherit; font-size: inherit; white-space: nowrap; }
  .topbar .whosub .saveline::before { content: ' \00b7  '; }
  .topbar .undos { width: 88px; justify-content: flex-start; }
  .topbar .tbtn.icon, .topbar .tbtn.narrow { width: 44px; }
}
/* Nov 16 2026 live check at 375 px: six 44 px slots plus Redo's kept slot made the bar 406 px wide (the whole page
   scrolled sideways). On a phone Redo shows only once there is something to redo (the decided rule), Undo takes one slot,
   and the name block may shrink to its ellipsis. */
@media (max-width: 559px) {
  #topbar [data-act="redo"]:disabled { display: none; }
  .topbar .undos { width: auto; }
  .topbar .backhome ~ .who { min-width: 0; }
  #topbar { max-width: 100vw; overflow: hidden; }
}
.phgrid .ph i.bad { background: #FF3B30; }
/* round 19 UI audit: a 44px finger target round the small red minus, the camera's Cancel and Done, a padded title */
.cam-x, .cam-done { min-height: 44px; min-width: 44px; }
.cam-title { padding: 0 72px; }
/* trade icons (Trey, Nov 16 2026): an icon over each trade name in place of the measuring line; the picked one takes the
   segment's ink like its name. Also on the Copy for another trade cards. */
.seg.trades button { padding-top: 8px; padding-bottom: 7px; min-height: 64px; }
.seg.trades button .tico { display: block; height: 26px; margin: 0 auto 3px; color: var(--muted); transition: color .25s ease; }
.seg.trades button.on .tico { color: currentColor; }
.tico svg { width: 26px; height: 26px; stroke-width: 1.8; display: block; margin: 0 auto; }
.card.tradecard { display: flex; align-items: center; gap: 10px; }
.card.tradecard .tico { display: block; flex: none; color: var(--muted); }
/* top bar order (Trey, Nov 16 2026): Photos with its label under the icon, then Preview, then the "...", then Estimates
   at the right on a phone; on a computer "Preview PDF" carries the same page icon. */
.topbar .tbtn.icon.phbtn { width: auto; min-width: 44px; padding: 0 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.topbar .tbtn.phbtn svg { width: 20px; height: 20px; }
.topbar .tbtn.phbtn .tlab { display: block; font-size: .6875rem; font-weight: 600; line-height: 1; }
@media (max-width: 1023px) { .topbar .tbtn.phbtn .tlab { font-size: .8125rem; letter-spacing: -.01em; } }
@media (max-width: 480px) { .topbar .tbtn.phbtn svg { width: 18px; height: 18px; } }
.topbar .tbtn.phbtn .phbadge { top: -2px; right: -2px; }
.tbtn.pvwide { display: inline-flex; align-items: center; gap: 6px; }
.tbtn.pvwide svg { flex: none; }
@media (max-width: 1023px) { .tbtn.pvwide { display: none; } }
/* on a computer Photos is a pill like Preview PDF: the icon then the word */
@media (min-width: 1024px) {
  .topbar .tbtn.icon.phbtn { flex-direction: row; gap: 6px; height: 44px; padding: 0 16px; border: 1px solid #E5E5EA; border-radius: 999px; background: #fff; color: var(--ink); }
  .topbar .tbtn.phbtn .tlab { font-size: .9rem; font-weight: 600; line-height: 1; }
  .topbar .tbtn.phbtn svg { width: 16px; height: 16px; }
  .topbar .tbtn.phbtn .phbadge { top: -4px; right: -4px; }
}
/* the Photos sheet's empty spot (Trey, Nov 16 2026: "We wouldn't have known it saves photos here. So something 'No photos
   yet'"): where the photos will be, shown until the first one is there */
.phgrid:empty { margin-top: 12px; }
.phgrid:empty::before {
  content: 'No photos yet\A Photos you take or choose are kept here.';
  white-space: pre-line; grid-column: 1 / -1; display: block; min-height: 150px; box-sizing: border-box;
  padding: 72px 16px 18px; border: 1.5px dashed #C7C7CC; border-radius: 12px; text-align: center;
  color: var(--muted); font-size: .9rem; line-height: 1.45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='none' stroke='%23AEAEB2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='m21 16-5-5-8 8'/%3E%3C/svg%3E") center 24px no-repeat;
  animation: phEmptyIn .3s ease both;
}
@keyframes phEmptyIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .phgrid:empty::before { animation: none; } }
#sheet .phlibhead { margin: 18px 0 0; }
.leadcal { display: block; margin: 0 2px 8px; font-size: .8125rem; color: var(--muted); }   /* the calendar's lead source word (Nov 17 2026) */
/* Nov 18 2026: photo labels (camera chips, viewer chips, tile caption) and camera zoom */
.cam-view { touch-action: none; }
.cam-view video { transform-origin: 50% 50%; transition: transform .18s ease-out; }
@media (prefers-reduced-motion: reduce) { .cam-view video { transition: none; } }
.cam-zoom { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.45); }
.cam-zb { min-width: 40px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font: inherit; font-size: .8125rem; font-weight: 600; transition: background .18s, color .18s, transform .12s; }
.cam-zb.on { background: rgba(255,255,255,.92); color: #000; }
.cam-zb:active { transform: scale(.94); }
.cam-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cam-chips::-webkit-scrollbar { display: none; }
.cam-chip { flex: none; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font: inherit; font-size: .875rem; font-weight: 600; transition: background .18s, color .18s, transform .12s; }
.cam-chip.on { background: #fff; color: #000; }
.cam-chip:active { transform: scale(.95); }
.cam-bottom { padding-top: 14px; }
.phgrid .ph .phtag { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 6px 4px; font-size: .6875rem; font-weight: 600; line-height: 1.1; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.55)); pointer-events: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phv-chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px 0; scrollbar-width: none; justify-content: flex-start; }
.phv-chips::-webkit-scrollbar { display: none; }
.phv-chips.off { display: none; }
.phv-chip { flex: none; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--fill, #F2F2F7); color: var(--ink, #1c1c1e); font: inherit; font-size: .875rem; font-weight: 600; transition: background .18s, color .18s, transform .12s; }
.phv-chip.on { background: var(--ink, #1c1c1e); color: #fff; }
.phv-chip:active { transform: scale(.95); }
.phv:not(.in) .phv-chip { background: rgba(255,255,255,.14); color: #fff; }
.phv:not(.in) .phv-chip.on { background: #fff; color: #000; }
.phv-label { margin: 0; min-height: 0; padding: 6px 20px 0; text-align: center; font-size: .9375rem; font-weight: 600; }
/* Key actions (Nov 19 2026): the few steps that move the job get an icon and a tint, so they never read as one more question */
/* Key actions as lifted tiles (Trey, Nov 19 2026: "keep it neutral colored and aesthetic"; "maybe a bigger icon and a squared shape"; "C looks good
   but no need for the black and white icons"). No colour: a white card that lifts off the page, a larger plain line icon, a bold title, the status
   under it. Rows (Send, Email, a change order) and buttons (Mark as sold, Check the forms, Send to Production) share the one shape, so a key
   action looks the same wherever it is. Green stays for Next. The tint, solid green, yellow and charcoal fills were each tried and dropped. */
.group:has(> .row.keyact) { box-shadow: var(--key-shadow); border-radius: var(--key-radius); }
.row.keyact { background: #fff; min-height: 76px; padding-top: 14px; padding-bottom: 14px; }
.row.keyact .lbl { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.row.keyact .lbl small { font-weight: 400; }
.row.keyact .lbl small .needtxt, .row.keyact .lbl small b { color: var(--ink); font-weight: 700; }
.row.keyact[disabled] { opacity: .5; }
.row.keyact:not([disabled]):active, .btn.keybtn:not([disabled]):active { transform: scale(.985); }
.row.keyact, .btn.keybtn { transition: transform .12s ease-out, box-shadow .2s ease-out; }
@media (prefers-reduced-motion: reduce) { .row.keyact, .btn.keybtn { transition: none; } }
.kico.done { border-color: var(--green); color: var(--green); }
/* the done check: the icon box fills, the check draws in, a tiny settle. Only a tile that turns done in front of the rep (kfx, put on by kfxPlay) */
.kico.done, .btn.keybtn.done .bico { background: var(--tint); }
.kico, .bico { position: relative; }
.kico .kchk, .bico .kchk { position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; stroke-width: 2.6; color: var(--green); pointer-events: none; opacity: 0; }
.kico .kchk path, .bico .kchk path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.kico.kfx, .bico.kfx { animation: kfxfill 200ms ease-out both, kfxsettle 300ms cubic-bezier(.2, .8, .2, 1) both; }
.kfx > .kchk { animation: kfxhold 900ms linear both; }
.kfx > .kchk path { animation: kfxdraw 300ms cubic-bezier(.22, .9, .3, 1) 100ms both; }
.kfx > svg:not(.kchk) { animation: kfxglyph 900ms linear both; }
.btn.keybtn.kfx:not(:has(.bico)) { animation: kfxtile 300ms cubic-bezier(.2, .8, .2, 1) both; }
@keyframes kfxfill { from { background-color: transparent; border-color: var(--ink); } to { background-color: var(--tint); border-color: var(--green); } }
@keyframes kfxsettle { from { transform: scale(.85); } to { transform: scale(1); } }
@keyframes kfxdraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes kfxhold { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes kfxglyph { 0%, 70% { opacity: 0; } 100% { opacity: 1; } }
@keyframes kfxtile { from { transform: scale(.97); background-color: var(--tint); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .kfx, .kfx > *, .kfx > .kchk path { animation: none !important; } .kchk { display: none; } }
/* a plain row's small icon: no box, muted, as wide as the key action's box so the labels line up */
.rico { flex: none; width: 48px; display: grid; place-items: center; margin-right: 14px; color: #8A8F8C; }
.rico svg { width: 22px; height: 22px; stroke-width: 1.7; }
.group.keygroup { box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 18px rgba(0, 0, 0, .08); border-radius: 16px; }
.kico { flex: none; width: 48px; height: 48px; border: 1.5px solid var(--ink); border-radius: 13px; color: var(--ink); display: grid; place-items: center; margin-right: 14px; }
.kico svg { width: 26px; height: 26px; stroke-width: 1.7; }
.btn.keybtn { display: flex; align-items: center; justify-content: flex-start; text-align: left; background: #fff; color: var(--ink); font-weight: 700; font-size: 1.05rem; min-height: 72px; padding: 14px 16px; border-radius: 16px; white-space: normal; line-height: 1.25; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 18px rgba(0, 0, 0, .08); }
.btn.keybtn:not([disabled]):hover { background: #FAFAFA; }
.btn.keybtn[disabled] { background: #F2F2F7; color: #8E8E93; box-shadow: none; }
.btn.keybtn.busy { background: var(--tint); color: var(--deep); box-shadow: none; justify-content: center; text-align: center; min-height: 52px; border-radius: 999px; font-size: 1rem; }
/* done keeps the tile: white, lifted, the icon and its outline green, a Done pill at the right */
.btn.keybtn.done, .btn.keybtn.done[disabled] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 18px rgba(0, 0, 0, .08); opacity: 1; }
.btn.keybtn.done .bico { color: var(--green); border-color: var(--green); }
.btn.keybtn .kpill { margin-left: auto; }
.bico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 1.5px solid currentColor; border-radius: 13px; margin-right: 14px; }
.bico svg { width: 26px; height: 26px; stroke-width: 1.7; }
.btn.keybtn[disabled] .bico { border-color: #C7C7CC; }
.btn.keybtn .klbl { flex: 1; min-width: 0; }
/* the state of a key action, at its right: gray while open, green once done */
.kpill { flex: none; font-size: .78rem; font-weight: 700; line-height: 1.2; padding: 4px 10px; border-radius: 999px; background: #F2F2F7; color: var(--ink); margin-left: 8px; white-space: nowrap; }
.kpill.done { background: var(--tint); color: var(--deep); }
/* a text box with nothing in it and no hint was invisible (gutter and downspout brand and color, repair's Area of work, the proposal cover note; Nov 19 2026 phone audit) */
.row input.val:not([placeholder]):not([type="checkbox"]):not([type="radio"]), .row input.val[placeholder=""] { border-bottom: 1px solid #D1D1D6; min-width: 96px; }
.row.keyact .lbl small { overflow-wrap: anywhere; }
/* on a phone the pill goes under the text, never beside it (it squeezed the title to two lines and broke the address mid-word) */
@media (max-width: 480px) {
  .row.keyact { display: grid; grid-template-columns: 62px minmax(0, 1fr) 16px; align-items: center; }
  .row.keyact .kico { grid-column: 1; grid-row: 1 / span 2; margin-right: 0; }
  .row.keyact .lbl { grid-column: 2; grid-row: 1; }
  .row.keyact .kpill { grid-column: 2; grid-row: 2; justify-self: start; margin: 6px 0 0; }
  .row.keyact.tap::after { grid-column: 3; grid-row: 1 / span 2; justify-self: end; margin-left: 0; }
  .row.keyact .fix { grid-column: 2; grid-row: 2; justify-self: start; padding-left: 0; }
  .btn.keybtn { flex-wrap: wrap; }
  .btn.keybtn .klbl { flex: 1 1 calc(100% - 62px); }
  .btn.keybtn .kpill { margin: 6px 0 0 62px; }
}

/* Menu icons, destructive rows and buttons, the Home viewed tag (Nov 19 2026) */
.dmenu-i .dmi { flex: none; display: grid; place-items: center; }
.dmenu-i .dmi svg { width: 19px; height: 19px; stroke-width: 1.7; color: #6b756b; }
.dmenu-i.danger .dmi svg { color: #D70015; }
.rico.dng, .lbl.dng { color: #D70015; }
.lbl.dng small { color: var(--muted); }
.btn.dangerbtn { background: #D70015; border-color: #D70015; color: #fff; }
.dash .dseen { font-style: normal; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #E3F1E8; color: #0E4F2C; white-space: nowrap; }
.est em.st.st-viewed, .row.est em.st.st-viewed { background: #E3F1E8; color: #0E4F2C; margin-left: 4px; }

/* The same rule by the tile's own width, not the screen's: beside the proposal preview on a tablet or computer the column is phone
   narrow and the pill squeezed the title to one word a line (Nov 19 2026) */
.group:has(> .row.keyact) { container-type: inline-size; }
@container (max-width: 440px) {
  .row.keyact { display: grid; grid-template-columns: 62px minmax(0, 1fr) 16px; align-items: center; }
  .row.keyact .kico { grid-column: 1; grid-row: 1 / span 2; margin-right: 0; }
  .row.keyact .lbl { grid-column: 2; grid-row: 1; }
  .row.keyact .kpill { grid-column: 2; grid-row: 2; justify-self: start; margin: 6px 0 0; }
  .row.keyact.tap::after { grid-column: 3; grid-row: 1 / span 2; justify-self: end; margin-left: 0; }
  .row.keyact .fix { grid-column: 2; grid-row: 2; justify-self: start; padding-left: 0; }
  /* the Emailed to row: the link goes under the text, not beside it squeezing the address to a few letters a line (Nov 20 2026, phone) */
  .row.sentrow { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; align-items: start; }
  .row.sentrow .ok { grid-column: 1; grid-row: 1; margin-top: 1px; }
  .row.sentrow .lbl { grid-column: 2; grid-row: 1; min-width: 0; }
  .row.sentrow .fix { grid-column: 2; grid-row: 2; justify-self: start; padding: 4px 0 2px; }
}
.row.sentrow .nw { white-space: nowrap; }

/* Night audit, Nov 19 2026: the Mark as sold tile follows its own width too, and its progress bar shows on the tint */
.soldsend { container-type: inline-size; }
@container (max-width: 440px) {
  .btn.keybtn { flex-wrap: wrap; }
  .btn.keybtn .klbl { flex: 1 1 calc(100% - 62px); }
  .btn.keybtn .kpill { margin: 6px 0 0 62px; }
}
.btn.keybtn.busy .fill { background: rgba(4,105,57,.18); }
/* a key action at work (Add to the file, Mark as sold): the tile keeps its shape and icon, the title is the step, the pill says Working and a thin fill grows along the bottom edge */
.row.keyact.working, .btn.keybtn.working { position: relative; overflow: hidden; }
.btn.keybtn.working, .btn.keybtn.working[disabled] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 18px rgba(0, 0, 0, .08); opacity: 1; cursor: default; }
.btn.keybtn.working .bico, .btn.keybtn.working[disabled] .bico { border-color: currentColor; }
.btn.keybtn.done[disabled] .bico { border-color: var(--green); color: var(--green); }
.kbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--tint); pointer-events: none; }
.kbar i { display: block; height: 100%; background: var(--green); border-radius: 0 3px 3px 0; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.soldsend .btn.keybtn { gap: 0; }   /* the icon and the words fit in one row on a phone (the 10 px gap pushed the words under the icon) */
.btn.keybtn .klbl small { display: block; margin-top: 2px; padding: 0; font-weight: 400; font-size: .82rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .kbar i { transition: none; } }

/* the pencil that opened a folded section stays dark while it is open (Nov 20 2026) */
.ibtn.soft.on { color: var(--ink); }



/* Nov 20 2026: the cover photo. The empty frame is one dashed tile like the report upload; Change sits under the picture at its width */
button.drop.coverdrop { width: 100%; font: inherit; color: inherit; }
button.drop.coverdrop .ico svg { width: 22px; height: 22px; stroke: #0E4F2C; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
button.drop.coverdrop .muted { display: block; margin-top: 2px; }
.coverimg[data-cpickopen] { cursor: pointer; }
.btn.sec { background: var(--fill, #F2F2F7); color: var(--ink); }

/* Nov 20 2026: the yes in a question sheet is a real button, not a plain row. Primary green, or red where it removes, undoes or cancels. */
.sheet.alert .alertbtns { padding: 6px 14px 8px; gap: 6px; }
.sheet.alert .alertbtns button { border-top: 0; }
.alertbtns button#cfyes, .alertbtns button#rsyes { background: var(--green); color: #fff; border-radius: 999px; min-height: 48px; font-weight: 700; margin-top: 4px; }
.alertbtns button#cfyes.danger { background: #D70015; color: #fff; }
.alertbtns button#cfyes:active, .alertbtns button#rsyes:active { filter: brightness(.92); background: var(--green); }
.alertbtns button#cfyes.danger:active { background: #D70015; }
@media (hover: hover) and (pointer: fine) { .alertbtns button#cfyes:hover, .alertbtns button#rsyes:hover { filter: brightness(.96); background: var(--green); } .alertbtns button#cfyes.danger:hover { background: #D70015; } }
/* Not sent: in the customer's file, nothing emailed. Neutral gray (Nov 20 2026). */
em.st.st-filed, em.st.st-practicefiled, .est em.st.st-filed, .row.est em.st.st-filed, .est em.st.st-practicefiled, .row.est em.st.st-practicefiled { background: var(--fill); color: var(--muted); text-decoration: none; }
/* the secondary way on from Review while Send the proposal is the main button (Nov 20 2026) */
.btn.nextsec { background: var(--fill); color: var(--ink); font-weight: 600; }
.bar .btn.nextsec, .nav .btn.nextsec { flex: 1; min-width: 0; }
@media (max-width: 400px) { .btn.nextsec { font-size: .85rem; padding-left: 8px; padding-right: 8px; } }
/* two buttons at the bottom of Review on a phone (Nov 20 2026): Send the proposal on its own row, Back and Next: Sold & production under it, so neither label is cut */
@media (max-width: 480px) {
  .bar .in:has(.nextsec) { flex-wrap: wrap; }
  .bar .in:has(.nextsec) > .btn.primary { order: 1; flex: 1 0 100%; }
  .bar .in:has(.nextsec) > .backbtn { order: 2; }
  .bar .in:has(.nextsec) > .nextsec { order: 3; flex: 1; font-size: 1rem; }
  .form-in:has(~ .bar .nextsec), body:has(.bar .nextsec) .form-in { padding-bottom: 180px; }
}


/* Print and Download on every paper: two square tiles side by side (Trey, Nov 23 2026) */
.group:has(> .gvtiles) { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.gvtiles { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 4px 2px 10px; }
.gvtile { width: min(112px, calc((100% - 20px) / 3)); min-width: 96px; height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: var(--key-radius); background: #fff; box-shadow: var(--key-shadow); color: var(--ink); font-weight: 600; font-size: .9375rem; white-space: nowrap; cursor: pointer; transition: transform .12s ease-out, box-shadow .2s ease-out, background-color .15s ease, opacity .2s ease; }
.gvtile svg { width: 28px; height: 28px; stroke-width: 1.7; }
.gvtile:active { background: #E5E5EA; transform: scale(.97); transition: transform .12s ease-out; }
.gvtile:disabled { opacity: .45; cursor: not-allowed; }
.gvtiles:has(#gvdl:disabled) #gvshare { opacity: .45; }
@media (prefers-reduced-motion: reduce) { .gvtile { transition: none; } }
.est em.st svg, .row.est em.st svg, .dash .dname small > svg, .est .erem svg { width: 1.05em; height: 1.05em; vertical-align: -.17em; margin-right: 3px; stroke-width: 2.2; }
.dash .dname small > svg, .est .erem svg { margin-right: 4px; }
.kpill svg, .dash .dseen svg { width: 1.05em; height: 1.05em; vertical-align: -.17em; margin-right: 3px; stroke-width: 2.2; }
.est em.st.st-viewed svg { width: 1.05em; height: 1.05em; vertical-align: -.17em; margin-right: 3px; stroke-width: 2.2; }

/* An add never shifts the page (Trey, Nov 23 2026): the line under the tile is hidden while it runs, and the step list keeps one height, one line per step */
.group.sending > .busy-live { display: none; }
.sendprog .row .lbl { display: flex; flex-direction: row; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; }
.sendprog .row .lbl small { display: inline; margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.soldsend > small.muted { display: block; min-height: 2.9em; }   /* the line under Mark as sold keeps two lines, so the page below does not move while it works */
/* Nov 23 2026: report side copies (pre-pitch, owner) and the follow-up row that says the customer has not looked yet */
.row .nopill { flex: none; font-size: .78rem; font-weight: 600; line-height: 1.2; padding: 4px 10px; border-radius: 999px; background: #ECEEEC; color: #6b756b; white-space: nowrap; }
.row.subrow { padding-left: 34px; min-height: 0; }
.row.subrow > .lbl { font-size: .9rem; }
.dash .dseen.none { background: #F2F2F7; color: var(--muted); }
.row .owncopy { flex: none; font-size: .85rem; white-space: nowrap; transition: opacity .15s ease; }
.row .owncopy:active { opacity: .45; }

/* Step 8 (Nov 23 2026): the indeterminate fill for a tile that works with no percent (making the production forms, sending them), and the muted Send the proposal first line */
/* the spinner at the right of a working tile, in place of its state pill */
.kspin { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin-left: 8px; }
.kspin .spin { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .kspin .spin { animation: kspinpulse 1.8s ease-in-out infinite; border-top-color: var(--green); } }
@keyframes kspinpulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.kbar.ind i { width: 38%; animation: kbarslide 1.4s ease-in-out infinite; }
@keyframes kbarslide { 0% { transform: translateX(-100%); } 100% { transform: translateX(270%); } }
@media (prefers-reduced-motion: reduce) { .kbar.ind i { animation: none; width: 100%; opacity: .5; } }
.row.sendfirst { min-height: 0; padding-top: 4px; padding-bottom: 8px; background: transparent; }
.row.sendfirst .lbl small { color: var(--muted); }
.btn.keybtn.working .kbar, .row.keyact.working .kbar { overflow: hidden; }

/* a made production form: a key-action document tile, the pencil before the chevron at its right */
.row.keyact.formtile { display: flex; align-items: center; gap: 4px; }
.formtile .ibtn { flex: none; }
/* the spinner of a working tile sits at its right on the phone grid too */
.row.keyact.working { grid-template-columns: 62px minmax(0, 1fr) auto; }
.row.keyact .kspin { grid-column: 3; grid-row: 1 / span 2; justify-self: end; }
.row.working::after, .row.keyact.working::after { content: none; }
.row.working { position: relative; }
.row.keyact.working > .kpill { display: none; }   /* a tile that waits shows the spinner in place of its pill */

/* Nov 23 2026: a fold that is a key tile (Sold, Production forms, Follow up) is the same row open or shut; its right chevron turns down, like every other fold */
.row.tap.keyact[aria-expanded]::after { transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.row.tap.keyact[aria-expanded="true"]::after { transform: rotate(135deg); }
@media (prefers-reduced-motion: reduce) { .row.tap.keyact[aria-expanded]::after { transition: none; } }
/* a locked row is greyed with its reason (Mark as lost on a sold estimate) */
.row.lockedrow[disabled] { opacity: .5; }
/* the one Send under the tick in the email sheet looks greyed until the tick is in, and still answers a tap with the reason */
.btn.keybtn.off { background: #F2F2F7; color: #8E8E93; box-shadow: none; }
.btn.keybtn.off .bico { border-color: #C7C7CC; }

/* Nov 23 2026: a greyed chip (a group item the house cannot have) */
.chip[disabled] { opacity: .45; cursor: default; }

/* Nov 23 2026 fix batch B (design rules from the audits) */
/* rule 2: a small action button in a white row is only a pill; the whole row presses it (one click listener in app.js) */
.row .fix { background: #F2F2F7; color: var(--ink); border-radius: 999px; padding: 4px 11px; font-size: .78rem; font-weight: 700; line-height: 1.2; margin-left: 8px; flex: none; white-space: nowrap; }
.row:has(> .fix:not(:disabled)) { cursor: pointer; }
.row:has(> .fix:not(:disabled)):active { background-color: #D1D1D6; transition: none; }
/* rule 4: a locked thing is greyed with its reason, never hidden */
.dmenu-i.off { opacity: .45; cursor: default; }
.dmenu-i.off:hover, .dmenu-i.off:active { background: none; }
.stepbar .stp.locked::before { background: #D1D1D6; opacity: .6; }
.stepbar .stp.locked.on::before { background: #D1D1D6; }
label.row.lockedrow .val { color: var(--muted); }
/* email sheet: the address under the name, so To shows who it really goes to */
.mail .rchip { flex-wrap: wrap; row-gap: 0; }
.mail .rchip .raddr { flex-basis: 100%; font-size: .75rem; opacity: .75; margin-top: -2px; }
/* a long step says what it is waiting for under its title */
.btn.keybtn .klbl small.knote, .row.keyact .lbl small.knote { display: block; font-weight: 400; }

/* Nov 24 2026 estimate-steps audit (FEATURES 26v): one fold (an empty card left by a fold drawn mid-card is hidden), the cover photo in its tile's icon box */
.group:empty { display: none; }
.kico.thumb { padding: 0; overflow: hidden; }
.kico.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row.keyact.working > .kpill { display: none; }      /* a tile waiting after a tap shows its spinner where the pill was */

/* Nov 24 2026 round 2: a window cost row keeps one height whatever is typed, so the next tap never moves (a $325,325 typo) */
.row.wcostrow { min-height: 80px; }
.row.wcostrow input.val { flex: 0 0 34%; }
.group.stalehold { min-height: 52px; max-height: 120px; overflow: hidden; transition: opacity .25s ease, max-height .3s cubic-bezier(.2,.8,.2,1), min-height .3s cubic-bezier(.2,.8,.2,1), margin .3s cubic-bezier(.2,.8,.2,1); }
.group.stalehold.idle { opacity: 0; pointer-events: none; min-height: 0; max-height: 0; margin-top: 0; margin-bottom: 0; border-width: 0; }
/* Nov 24 2026 round 2 (live finding 7): a label never sits on top of the typed number. The label keeps its whole word; when the box is too narrow for both, the number drops under it. */
.pitch label { flex-wrap: wrap; }
.pitch label > span:first-child { flex: 0 0 auto; min-width: max-content; white-space: nowrap; }
.pitch label input { flex: 1 1 4.5ch; min-width: 4.5ch; }
