/* On the Level design system (redesign 2026-11-12).
   "Expensive through restraint": a well-made tool, an estimate pad, not a dashboard.
   Jeff picked this look on Nov 12 ("The new one"): slab headings, ruled rows, one yellow action.

   FONTS ARE NAMED HERE AND ONLY HERE: the two --font-* lines, and the font files just below.
   The font files live on our own site, in /fonts (Jeff, 2026-11-13: a customer's quote, invoice or
   pay page contacts no outside host, so nothing is fetched from Google). Six files, one for each
   weight and style this sheet really uses: body 400, 400 italic, 600, 700; headings 600, 700.
   They are the latin files Google Fonts serves (Barlow v13, Zilla Slab v12), both under the SIL
   Open Font License: /fonts/OFL-Barlow.txt and /fonts/OFL-ZillaSlab.txt. A letter outside the latin
   range falls back, letter by letter, to the next font in the --font-* lists.
   test/fonts.test.js holds every page and this sheet to that. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/barlow-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/barlow-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/barlow-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/barlow-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Zilla Slab"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/zilla-slab-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Zilla Slab"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/zilla-slab-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font-display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --font-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Jobsite palette (brand guide, Nov 3) */
  --yellow: #FFC20E;
  --ink: #1C1F23;
  --bg: #FFFFFF;
  --card: #F2F3F5;          /* quiet fill: pills, inactive chips, input-adjacent areas */
  --text: #1C1F23;
  --muted: #4A4F55;         /* steel: secondary text and line items */
  --placeholder: #6E747B;   /* hint text in empty boxes: clearly lighter than typed text (2026-11-12) */
  --line: #4A4F55;          /* input borders */
  --rule: #1C1F23;          /* the 2px estimate-pad rule */
  --hair: #D9DCE0;          /* the 1px row divider */
  --green: #1B7F3B;
  --green-ink: #14632F;     /* green text on the light green tint (4.5:1) */
  --red: #A51C1C;
  --good-bg: #E6F3EA;
  --bad-bg: #FBEAEA;
  --warn-bg: #FFF4CC;
  --on-ink: #FFFFFF;
  --shadow: 0 1px 2px rgba(28, 31, 35, 0.08), 0 6px 20px rgba(28, 31, 35, 0.10);
  --radius: 12px;
  --nav-h: 72px;
  --app-w: 520px;
  --gutter: 20px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #121416;
  --card: #1C1F23;
  --text: #F7F8F9;
  --muted: #D0D4D8;
  --placeholder: #8C939A;
  --line: #9AA1A8;
  --rule: #F7F8F9;
  --hair: #3A3F45;
  --green-ink: #8FDDAE;
  --good-bg: #14301F;
  --bad-bg: #3A1616;
  --warn-bg: #3A3010;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
/* No sideways scroll. `clip` on the body (not `hidden`) so the sticky top bar still sticks. */
html { overflow-x: hidden; }
body { overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: #E9EBEE;
  color: var(--text);
  font-size: 17px;
  line-height: 1.45;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
}
[data-theme="dark"] body { background: #0B0C0D; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
p { margin: 0; }

#app {
  max-width: var(--app-w);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
}
@media (max-width: 520px) {
  body { background: var(--bg); }
  #app { max-width: none; }
}

/* ---------- Money: one line, always ---------- */
.money, .amt, .pair strong, .pair .v, .total strong, .num, .strip .fig, .doc-total, .hl {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  font-variant-numeric: tabular-nums lining-nums;
}
.money {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

/* ---------- Top bar ---------- */
.top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: calc(8px + env(safe-area-inset-top)) 8px 8px var(--gutter);
  background: var(--ink);
  color: var(--on-ink);
  position: sticky;
  top: 0;
  z-index: 5;
}
/* A long title takes a second line and a slightly smaller size before it is ever cut off
   (independent review R15: "Custo…", "Profile and setti…"). */
.top h1 {
  font-size: clamp(20px, 5.9vw, 24px);
  line-height: 1.15;
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: break-word;
}
.top-wrap { position: sticky; top: 0; z-index: 5; }
.top-wrap > .top { position: static; }
.top .icon-btn { border-color: transparent; background: transparent; color: var(--on-ink); }
.top a, .top .btn-link { color: var(--on-ink); }
.top .pill { margin-right: 8px; }
.top .pill-tap .pill { margin-right: 0; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.logo svg, .logo img { width: 36px; height: 36px; display: block; border-radius: 8px; }
.signin-logo { display: block; width: min(260px, 76%); height: auto; border-radius: 12px; margin: 4px 0 8px; }
/* Turnstile's check is 65px tall; hold its space so the button does not jump when it draws. */
#turnstile-box { min-height: 65px; }
.brand-bar { height: 6px; background: var(--yellow); }
.owner-bar { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: space-between; padding: 10px var(--gutter); background: var(--ink); color: #fff; font-size: 16px; }
.owner-bar a { color: var(--yellow); font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

main { padding: 18px var(--gutter) 28px; }
main.with-nav { padding-bottom: calc(var(--nav-h) + 44px + env(safe-area-inset-bottom)); }

/* ---------- Bottom tabs ---------- */
.nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--app-w), 100%);
  bottom: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  background: var(--bg);
  border-top: 1px solid var(--hair);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 6;
}
.nav button {
  min-height: var(--nav-h);
  border: 0;
  border-top: 4px solid transparent;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  padding: 6px 2px;
}
.nav button svg { width: 24px; height: 24px; }
.nav button.on { color: var(--text); font-weight: 700; border-top-color: var(--yellow); }
.nav button.cta { color: var(--text); }

.row .next { display: block; margin-top: 4px; font-size: 16px; font-weight: 600; color: var(--muted); }
.row .next.todo { color: var(--text); font-weight: 700; }
.row .next.todo::before { content: "→ "; }
.next-step { margin: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--warn-bg); font-weight: 700; font-size: 17px; }

.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.tight { gap: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.schedule-when .grid2 { grid-template-columns: 1fr; }
@media (min-width: 420px) {
  .schedule-when .grid2 { grid-template-columns: 1fr 1fr; }
}
.schedule-when .field input[type="date"],
.schedule-when .field input[type="time"],
.field input[type="date"],
.field input[type="time"] {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* ---------- Buttons: three kinds, the same everywhere ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.btn.primary { background: var(--yellow); color: #1C1F23; min-height: 58px; }
.btn.primary:active { filter: brightness(0.94); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.secondary { background: var(--bg); color: var(--text); border-color: var(--rule); }
.btn.ghost { background: transparent; color: var(--text); border-color: transparent; text-decoration: underline; text-underline-offset: 4px; min-height: 48px; font-size: 17px; }
.btn.danger { background: var(--bg); color: var(--red); border-color: var(--red); }
.btn.xl { min-height: 68px; font-size: 22px; }
.btn.light { background: #FFFFFF; color: #1C1F23; }
.btn svg { width: 22px; height: 22px; flex: none; }
/* A plain text link that is still an easy tap (48px tall). */
.btn-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0; background: none; border: 0; color: var(--text); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.btn-link.plain { text-decoration: none; }
/* A link-style button inside a one-line note ("Picked up where you left off. Start over"): it reads as
   part of the sentence, and its tap area still reaches 48px by filling the note's own top and bottom
   padding (width sweep 2026-11-12; it was 25px tall). */
.btn-link.in-note { display: inline-block; min-height: 0; padding: 12px 0; margin: -12px 0; }
.btn-link svg { width: 20px; height: 20px; }

.icon-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius);
  border: 2px solid var(--rule);
  background: var(--bg);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Ruled sections (the estimate pad) ----------
   A "card" is a ruled block: a 2px charcoal rule on top, no gray box. */
.card {
  background: transparent;
  border-top: 2px solid var(--rule);
  border-radius: 0;
  padding: 12px 0 4px;
}
.card.link, button.card {
  width: 100%;
  text-align: left;
  border-left: 0; border-right: 0; border-bottom: 0;
  color: inherit;
  min-height: 56px;
}
.card.box {            /* the rare real card: money strip, callouts */
  background: var(--bg);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
[data-theme="dark"] .card.box { border: 1px solid var(--hair); }
.kicker {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.help { color: var(--muted); margin: 0; font-size: 17px; }
.help.small { font-size: 16px; }
.strong { font-weight: 700; }
.sec-h { margin: 0; padding: 10px 0 2px; border-top: 2px solid var(--rule); font-family: var(--font-body); font-size: 17px; font-weight: 700; line-height: 1.45; }

/* Money strip: the one card with a shadow */
.strip { background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
[data-theme="dark"] .strip { border: 1px solid var(--hair); }
.strip > div { padding: 14px 16px; min-width: 0; }
.strip > div + div { border-left: 1px solid var(--hair); }
/* Three figures across (the sign-up list): tighter cells so short labels stay on one line at phone width. */
.strip.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.strip.three > div { padding: 14px 12px; }
.strip .lbl { color: var(--muted); }
.strip .fig { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 7.2vw, 29px); line-height: 1.15; }
.strip .fig.good { color: var(--green-ink); }

/* ---------- Fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 17px; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
}
.field textarea { min-height: 104px; resize: vertical; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); font-style: italic; opacity: 1; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--rule); }

.banner {
  background: var(--warn-bg);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-weight: 600;
}
.banner.bad { background: var(--bad-bg); }
.banner.good { background: var(--good-bg); }
.banner a { color: var(--text); }

/* ---------- Status pills: an icon and a word, never color alone ---------- */
.status, .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
}
.status svg, .pill svg { width: 16px; height: 16px; flex: none; }
.status.good, .pill.good { background: var(--good-bg); color: var(--green-ink); }
.status.bad, .pill.bad { background: var(--bad-bg); color: var(--red); }
.pill.trial { background: var(--yellow); color: #1C1F23; font-weight: 700; }
/* The trial pill sits inside a button that is a full 48px tap target (team review finding 14: the pill
   itself is small, and its old tap area was an invisible layer a ruler could not see). */
.pill-tap { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px; padding: 0 4px; margin-right: 4px; background: none; border: 0; }
button.pill { border: 0; flex: none; }
[data-theme="dark"] .status.bad, [data-theme="dark"] .pill.bad { color: #FFB4B0; }

/* ---------- List rows: ruled, not boxed ---------- */
.row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  padding: 12px 0;
  min-height: 64px;
  color: inherit;
}
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
main, .card, .banner, .help, .pair span { overflow-wrap: break-word; word-break: break-word; }
.row .name { display: block; font-weight: 600; font-size: 17px; word-break: normal; overflow-wrap: break-word; }
/* A list row on a narrow phone: the name keeps room for its longest word, and what does not fit beside
   it (the status) drops to the next line, on the right (team review finding 44: "Testcustom / er"). */
.row:not(.jobrow):not(.setrow) { flex-wrap: wrap; }
.row:not(.jobrow):not(.setrow) > .grow { flex: 1 1 13ch; }
.row:not(.jobrow):not(.setrow) > .status, .row:not(.jobrow):not(.setrow) > .pill { margin-left: auto; }
.row .sub { display: block; color: var(--muted); font-size: 16px; }
.row .amt { font-weight: 700; font-size: 17px; flex: none; }
.row > svg, .nudge-card svg { width: 22px; height: 22px; flex-shrink: 0; }

.nudge-card { align-items: flex-start; gap: 12px; min-height: 64px; max-width: 100%; }
.nudge-card .nudge-icon {
  width: 28px; height: 28px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px; background: var(--card); color: inherit;
}
.nudge-card .nudge-icon.bad { background: var(--bad-bg); color: var(--red); }
.nudge-card .nudge-icon.good { background: var(--good-bg); color: var(--green-ink); }
.nudge-card .nudge-icon svg { width: 16px; height: 16px; }
.nudge-card .name { display: block; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.nudge-card .sub { display: block; margin-top: 2px; font-size: 16px; line-height: 1.35; }
.nudge-card .nudge-action { flex-shrink: 0; align-self: center; font-weight: 700; font-size: 16px; color: var(--text); white-space: nowrap; }

.empty { border-top: 2px solid var(--rule); padding: 18px 0; text-align: left; }
.empty p { margin: 6px 0 0; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  min-height: 48px;
  min-width: 48px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--bg);
  font-weight: 700;
}
.chips button.on { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
[data-theme="dark"] .chips button.on { background: var(--yellow); color: #1C1F23; border-color: var(--yellow); }

.line {
  background: var(--bg);
  border: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.line .grid2 input { min-height: 54px; }

.mic {
  width: 96px; height: 96px; border-radius: 50%; border: 0;
  background: var(--yellow); color: #1C1F23;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 4px auto;
}
.mic svg { width: 40px; height: 40px; }
.mic.rec { background: var(--red); color: #fff; }
.center { text-align: center; }

.dock {
  background: var(--bg);
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check { display: flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 600; }
.switch {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; background: transparent; border-bottom: 1px solid var(--hair);
  border-radius: 0; padding: 8px 0; font-weight: 600;
}
.check input, .switch input { width: 28px; height: 28px; min-width: 28px; min-height: 28px; accent-color: var(--ink); margin: 10px; }
[data-theme="dark"] .check input, [data-theme="dark"] .switch input { accent-color: var(--yellow); }
.check.agree { align-items: flex-start; }

.pair { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.pair:last-child { border-bottom: 0; }
.pair span:first-child { color: var(--muted); min-width: 0; }
.pair strong, .pair .v { flex: none; font-weight: 700; }
.total, .pair.total { border-top: 2px solid var(--rule); border-bottom: 0; margin-top: 0; padding-top: 12px; font-size: 19px; font-weight: 700; }
.pair.total span:first-child { color: var(--text); }

.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photos figure { margin: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.photos img { width: 100%; height: 120px; object-fit: cover; background: var(--hair); display: block; }
.photos figcaption { padding: 8px; font-weight: 700; }

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(440px, calc(100% - 24px));
  background: var(--ink);
  color: #fff;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 20;
  display: none;
  box-shadow: var(--shadow);
}
#toast.show { display: block; }

/* ---------- Progress: builder steps and the job line ---------- */
.steps-bar { display: flex; gap: 8px; }
.steps-bar span { height: 6px; flex: 1; border-radius: 3px; background: var(--hair); }
.steps-bar span.done { background: var(--rule); }
.steps-bar span.now { background: var(--yellow); }

.jobline { list-style: none; margin: 0; padding: 0; }
.jobline li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 0 0 16px 32px; color: var(--muted); }
.jobline li::before { content: ""; position: absolute; left: 6px; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--hair); background: var(--bg); }
.jobline li::after { content: ""; position: absolute; left: 12px; top: 20px; bottom: 0; width: 2px; background: var(--hair); }
.jobline li:last-child { padding-bottom: 0; }
.jobline li:last-child::after { display: none; }
.jobline li.done { color: var(--text); font-weight: 600; }
.jobline li.done::before { border-color: var(--green); background: var(--green); }
.jobline li.done::after { background: var(--green); }
.jobline li.now { color: var(--text); font-weight: 700; }
.jobline li.now::before { border-color: var(--rule); background: var(--yellow); }
.jobline li time { color: var(--muted); font-weight: 400; white-space: nowrap; }

/* ---------- The customer's document (quote, invoice) ---------- */
.doc { display: flex; flex-direction: column; padding: 28px var(--gutter) 20px; min-height: 100dvh; }
.doc-head { display: flex; align-items: center; gap: 16px; }
/* The first-open sample quote wears its label on the document itself. */
/* A demo account wears this on every screen, right under the top bar, so it is never taken for a real one. */
.demo-banner { margin: 0; padding: 6px var(--gutter, 16px); background: var(--yellow); color: #1C1F23; font-weight: 700; font-size: 15px; text-align: center; border-bottom: 2px solid #1C1F23; }
.doc-head .sample-tag { margin-left: auto; flex: none; align-self: flex-start; }
.doc .sample-approve { margin-top: 18px; }
.doc-mark { width: 64px; height: 64px; flex: none; border-radius: var(--radius); background: var(--ink); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 28px; }
[data-theme="dark"] .doc-mark { background: var(--yellow); color: #1C1F23; }
.doc-logo { width: auto; height: auto; max-width: 96px; max-height: 72px; flex: none; object-fit: contain; border-radius: 8px; }
.doc-biz { min-width: 0; }
.doc-biz .biz-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 7vw, 28px); line-height: 1.1; overflow-wrap: anywhere; }
.doc-biz .biz-line { color: var(--muted); overflow-wrap: anywhere; }
.doc-biz a { color: inherit; text-decoration: none; }
/* "Questions? Call (937) 555-0100" under a quote: the number never splits across two lines, and it is
   a 48px target (width sweep 2026-11-12). */
.contact-line a { display: inline-flex; align-items: center; min-height: 48px; white-space: nowrap; }
.doc-rule { height: 2px; background: var(--rule); margin: 22px 0; border: 0; }
.doc-title { font-size: clamp(24px, 7.2vw, 28px); line-height: 1.15; overflow-wrap: anywhere; }
.doc-meta { color: var(--muted); }
.doc-total-wrap { margin-top: 26px; }
.doc-total { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 16.5vw, 66px); line-height: 1; letter-spacing: -1px; }
.doc-total.range { font-size: clamp(30px, 10vw, 44px); }
/* 2026-11-12, width sweep at 320 and 360: the one big total always fits the box it is in, on the
   customer's page and in the narrower preview frame in the app. --n is the number of characters in
   the amount ("$109,426.30" is 11); the code that draws the total sets it on the wrap. A character of
   this font at this weight is at most 0.58 of the font size wide on average, so 100cqi / (n * 0.58) is
   the largest size that fits. An everyday total ("$1,850.00") keeps the size it had. With no --n, or
   in a browser without container units, the size is the old one. */
.doc-total-wrap { container-type: inline-size; }
@supports (width: 1cqi) {
  .doc-total { font-size: clamp(26px, min(16.5vw, calc(100cqi / (var(--n, 9) * 0.58))), 66px); }
}
/* A ballpark is two amounts. On a phone it takes two lines; neither amount is ever split (an amount
   has no space in it, and the money rule above still forbids breaking inside a word). */
.doc-total.range { white-space: normal; text-wrap: balance; line-height: 1.12; }
.doc-deposit { margin-top: 20px; padding: 14px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.doc-deposit .lbl { font-weight: 600; }
.hl { position: relative; display: inline-block; padding: 2px 12px; font-weight: 700; font-size: 24px; line-height: 1.3; color: #1C1F23; isolation: isolate; }
.hl::before { content: ""; position: absolute; inset: 0; background: var(--yellow); transform: skew(-8deg); border-radius: 3px; z-index: -1; }
.doc-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.doc-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); text-align: center; }
.doc-note svg { width: 18px; height: 18px; flex: none; }
.doc-sec { margin-top: 30px; }
.doc-sec .sec-h { padding-bottom: 6px; }
.doc-foot { margin-top: auto; padding-top: 24px; text-align: center; }
.doc-foot a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px; color: var(--muted); }
details.fold { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin-top: 8px; }
details.fold summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; list-style: none; cursor: pointer; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary svg { width: 20px; height: 20px; color: var(--muted); transition: transform 0.2s; flex: none; }
details.fold[open] summary svg { transform: rotate(180deg); }
details.fold .fold-body { margin: 0 0 16px; color: var(--muted); white-space: pre-wrap; }
@media (min-width: 521px) {
  body.doc-page #app { margin: 28px auto; min-height: 0; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
  body.doc-page .doc { min-height: 0; }
}

/* ---------- The "Paid" moment ---------- */
/* Money that came in while they were away: a card at the top of Home, never a screen over the app (2026-11-13). */
.card.box.paid-card { border-left: 6px solid var(--green); display: flex; flex-direction: column; gap: 10px; }
.paid-card-top { display: flex; align-items: flex-start; gap: 12px; }
.paid-card-top > div { min-width: 0; }
.paid-card-tick { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--good-bg); color: var(--green-ink); display: flex; align-items: center; justify-content: center; }
.paid-card-tick svg { width: 20px; height: 20px; }
.paid-card-fig { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.1; color: var(--green-ink); overflow-wrap: anywhere; }
.paid-card-acts { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.paid-card-acts .btn { width: auto; flex: none; min-height: 48px; padding: 8px 26px; margin-left: auto; }
.paid-card-acts .btn-link { align-self: center; }
/* The shape of Home while it loads. */
.skel { display: flex; flex-direction: column; gap: 14px; }
.skel span { display: block; border-radius: 12px; background: var(--hair); opacity: 0.7; }
.skel-strip { height: 84px; }
.skel-btn { height: 64px; }
.skel-line { height: 18px; }
.skel-line.short { width: 60%; }
@media (prefers-reduced-motion: no-preference) { .skel span { animation: skel-pulse 1.2s ease-in-out infinite alternate; } }
@keyframes skel-pulse { from { opacity: 0.45; } to { opacity: 0.8; } }
.paid-moment { position: fixed; inset: 0; z-index: 40; background: var(--green); color: #FFFFFF; display: flex; justify-content: center; }
.paid-moment .inner { width: min(var(--app-w), 100%); padding: calc(96px + env(safe-area-inset-top)) var(--gutter) calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.paid-moment .tick { width: 88px; height: 88px; border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; animation: tick-pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.paid-moment .tick svg { width: 50px; height: 50px; color: var(--green); }
.paid-moment .tick path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: tick-draw 0.35s 0.25s ease-out forwards; }
.paid-moment h2 { margin-top: 30px; font-size: 40px; line-height: 1.1; }
.paid-moment .fig { font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 21vw, 86px); line-height: 1; letter-spacing: -2px; white-space: nowrap; font-variant-numeric: lining-nums; }
.paid-moment .what { margin-top: 26px; padding-top: 18px; border-top: 2px solid #FFFFFF; }
.paid-moment .how { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.paid-moment .how svg { width: 22px; height: 22px; flex: none; }
.paid-moment .foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.paid-moment .foot .btn-link { color: #FFFFFF; align-self: center; }
@keyframes tick-pop { from { transform: scale(0.5); } to { transform: scale(1); } }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
/* The customer's Approved moment (2026-11-12): the same tick, smaller, on the customer's quote. It
   draws itself once, right after the tap (.fresh); opening the quote again shows it already drawn. */
.approved-note { display: flex; align-items: center; gap: 12px; }
.approved-note > span:last-child { min-width: 0; }
.approved-tick { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; }
.approved-tick svg { width: 26px; height: 26px; }
.approved-tick.fresh { animation: tick-pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
/* The check is drawn unless the animation is actually running: the undrawn start exists only inside
   the keyframes (and, with "backwards", during the short wait before them). So a browser that runs no
   animations at all still shows a whole check, never an empty circle (Codex polish r2). */
.approved-tick.fresh path { stroke-dasharray: 30; animation: tick-draw-in 0.35s 0.25s ease-out backwards; }
@keyframes tick-draw-in { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
/* A long quote: lines after the sixth wait behind "Show all N lines" (public.js). */
.rest-lines .pair:last-child { border-bottom: 1px solid var(--hair); }
#more-lines { align-self: flex-start; padding-left: 0; padding-right: 0; justify-content: flex-start; }

/* ---------- Bottom sheet (sign-up, pick a plan) ---------- */
.sheet-back { position: fixed; inset: 0; z-index: 30; background: rgba(28, 31, 35, 0.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: min(var(--app-w), 100%); max-height: 92dvh; overflow: auto; background: var(--bg); border-radius: 20px 20px 0 0; padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; animation: sheet-up 0.25s ease-out both; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- The sign-up sheet a signed-out builder opens at Send (2026-11-12, build spec 2 and 7) ----------
   The sign-in steps, drawn as a sheet over a short picture of the quote they are for. It sits in the
   page flow, not in a fixed layer, so a phone's keyboard pushes it up like any form and never covers
   the box being typed in. The colours are fixed (ink and white), like the top bar it stands in for. */
.send-under { background: #1C1F23; color: #FFFFFF; padding: calc(20px + env(safe-area-inset-top, 0px)) var(--gutter) 42px; }
.send-under .u-job { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.2; color: #C9CDD2; overflow-wrap: anywhere; }
.send-under .u-line { margin-top: 4px; font-size: 17px; color: #C9CDD2; overflow-wrap: anywhere; }
main.send-sheet { position: relative; margin-top: -22px; min-height: calc(100dvh - 112px); background: var(--bg); border-radius: 20px 20px 0 0; padding: 22px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; }
main.send-sheet.rise { animation: sheet-up 0.25s ease-out both; }
main.send-sheet h1 { font-size: 28px; }
main.send-sheet .kicker { margin: 0; }
main.send-sheet > .stack { gap: 14px; }
/* A guest's builder has no tab bar under it, so its button dock sits on the bottom edge. */
main:not(.with-nav) > .dock { bottom: env(safe-area-inset-bottom, 0px); }

/* ---------- Marketing / legal pages that share this sheet ---------- */
.public { max-width: var(--app-w); margin: 0 auto; min-height: 100dvh; background: var(--bg); }
.public .hero { padding: 28px var(--gutter) 16px; }
.public h1 { font-size: 30px; margin: 8px 0; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.price-table th { font-size: 16px; color: var(--muted); }
.legal h1 { font-size: 32px; margin: 8px 0; }
.legal h2 { font-size: 22px; margin: 22px 0 8px; }
.legal p, .legal li { font-size: 17px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.site-footer {
  max-width: var(--app-w);
  margin: 0 auto;
  background: var(--bg);
  padding: 8px var(--gutter) 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}
body.app-shell .site-footer { padding-bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); }
.site-footer a, a.text-link {
  min-height: 48px;
  min-width: 48px; /* "Terms" and "Plans" are short words: still a 48px target (width sweep 2026-11-12) */
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}

:focus-visible { outline: 3px solid var(--rule); outline-offset: 2px; }
.top :focus-visible, .paid-moment :focus-visible { outline-color: #FFFFFF; }
.btn.primary:focus-visible { outline-color: #1C1F23; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .paid-moment .tick path, .approved-tick.fresh path { stroke-dashoffset: 0; }
}
.page-logo { display: block; margin: 0 0 8px -4px; }
.page-logo img { display: block; width: min(100%, 240px); height: auto; border-radius: 8px; }
/* The contractor's own logo and details on quotes and invoices (2026-11-12). */
.biz-logo { display: block; align-self: flex-start; justify-self: start; width: auto; height: auto; max-width: min(60%, 220px); max-height: 72px; object-fit: contain; margin: 0 0 6px; }
.biz-lines { margin: 2px 0 0; overflow-wrap: anywhere; }
.logo-preview { display: block; align-self: flex-start; justify-self: start; width: auto; height: auto; max-width: min(70%, 220px); max-height: 72px; object-fit: contain; background: #fff; border-radius: 8px; padding: 6px; }

/* Print / Save PDF: clean home-printer sheet for quotes and invoices */
@media print {
  /* Collapse screen viewport mins so short quotes/invoices do not spill a blank page 2
     on iOS Safari US Letter. Long docs may still paginate naturally. */
  @page { margin: 0.5in; }
  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  .brand-bar,
  .owner-bar,
  .top,
  .nav,
  .dock,
  .site-footer,
  .no-print,
  .fee-est,
  button,
  .btn,
  .icon-btn,
  .chips,
  #toast,
  #form-error,
  .doc-foot,
  .banner:not(.print-keep) {
    display: none !important;
  }
  #app, main, main.with-nav, .public, .stack, .print-sheet, .doc {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-bottom: 0 !important;
    background: #fff !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
  }
  .print-sheet {
    display: block !important;
    color: #000 !important;
  }
  /* Prefer keeping a block together when it fits; oversized blocks may still break across pages. */
  .print-sheet .card, .print-sheet .doc-sec {
    background: #fff !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .print-sheet .pair,
  .print-sheet .pair.total {
    border-color: #999 !important;
  }
  .print-sheet a {
    color: #000 !important;
    text-decoration: none !important;
  }
  .doc-mark { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hl::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  details.fold { border: 0 !important; }
  details.fold summary svg { display: none !important; }
  .status, .pill {
    border: 1px solid #999;
    color: #000 !important;
    background: #fff !important;
  }
  .print-only { display: block !important; }
  /* A customer's printed quote carries no hosting badge. (Netlify adds one, in a frame of its own, to
     sites on its free tier: the private test copy. The live site has none.) Paper only: on screen it is left alone. */
  #nl-badge-frame { display: none !important; }
  /* Paper and PDF carry every line of a long quote, whether or not "Show all lines" was tapped. */
  .rest-lines, .rest-lines[hidden] { display: block !important; }
}
.print-only { display: none; }

/* ---------- Header extras ---------- */
.top.has-back { padding-left: 8px; }
.top-new { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px; margin-right: 4px; border: 2px solid var(--yellow); border-radius: var(--radius); background: transparent; color: var(--yellow); font-weight: 700; font-size: 16px; white-space: nowrap; }
.top-new svg { width: 18px; height: 18px; }
.top-link { flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; background: none; border: 0; color: var(--on-ink); font-weight: 700; font-size: 17px; text-decoration: none; }

/* ---------- The board (Quotes tab) ---------- */
.strip > button { all: unset; box-sizing: border-box; cursor: pointer; padding: 14px 16px; min-width: 0; display: flex; flex-direction: column; font-family: var(--font-body); border-radius: var(--radius); }
.strip > button + button { border-left: 1px solid var(--hair); border-radius: 0 var(--radius) var(--radius) 0; }
.strip > button:focus-visible { outline: 3px solid var(--rule); outline-offset: -3px; }
.jobrow { align-items: stretch; min-height: 0; padding: 12px 0; }
.jobrow .rtop, .jobrow .rbot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.jobrow .rbot { margin-top: 6px; align-items: center; }
.jobrow .name { min-width: 0; overflow-wrap: break-word; word-break: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.jobrow .when { color: var(--muted); font-size: 16px; text-align: right; flex: none; white-space: nowrap; }
.jobrow .next { margin-top: 6px; }
section > .sec-h + .row { border-top: 0; }
.callout { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; border-left: 6px solid var(--yellow) !important; border-radius: var(--radius); font-family: var(--font-body); }
.callout .go { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.callout .go svg { width: 18px; height: 18px; }
.links { display: flex; flex-wrap: wrap; gap: 0 22px; }

.strip .fig.na { font-family: var(--font-body); font-size: 19px; font-weight: 600; color: var(--muted); line-height: 1.6; }
details.more-nudges { margin-top: 0; border-top: 0; }
details.more-nudges summary svg { transform: rotate(90deg); }
details.more-nudges[open] summary svg { transform: rotate(-90deg); }

/* ---------- Quote builder: one step per screen ---------- */
.builder { gap: 18px; }
.step-h { font-size: 30px; line-height: 1.15; }
.step-h + .help { margin-top: 4px; }
.bstep[hidden] { display: none; }
.suggest { margin-top: 6px; border: 2px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.suggest button { display: flex; flex-direction: column; width: 100%; min-height: 56px; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--hair); background: var(--bg); text-align: left; }
.suggest button:last-child { border-bottom: 0; }
details.line { padding: 0; gap: 0; }
details.line summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; list-style: none; cursor: pointer; }
details.line summary::-webkit-details-marker { display: none; }
details.line .l-desc { color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
details.line .l-amt { font-weight: 700; flex: none; }
details.line[open] summary { border-bottom: 1px dashed var(--hair); }
details.line[open] .l-desc { color: var(--text); font-weight: 600; }
.line-edit { display: flex; flex-direction: column; gap: 10px; padding: 12px 0 14px; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choices button { display: flex; flex-direction: column; gap: 2px; width: 100%; min-height: 68px; padding: 12px 16px 12px 52px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--bg); text-align: left; position: relative; }
.choices button::before { content: ""; position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); box-sizing: border-box; }
.choices button.on { border-color: var(--rule); box-shadow: inset 0 0 0 1px var(--rule); }
.choices button.on::before { border: 7px solid var(--rule); background: var(--yellow); }
.choices .c-name { font-weight: 700; font-size: 19px; }
.choices .c-sub { color: var(--muted); font-size: 16px; }
.check.confirm { border: 2px solid var(--line); border-radius: var(--radius); padding: 6px 12px 6px 2px; min-height: 60px; }
.preview-frame { border: 2px solid var(--rule); border-radius: 16px; overflow: hidden; background: var(--bg); }
.preview-frame .doc { min-height: 0; padding: 22px 16px 18px; }
.preview-frame .doc-title { font-family: var(--font-display); }
.preview-frame .sec-h { font-family: var(--font-body); }
/* Correct an unsent quote (quote-edit.js): the builder's own boxes. Nothing runs off a 320px screen. */
.edit-form .grid2 > * { min-width: 0; }
.edit-form input, .edit-form select, .edit-form textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.edit-form select { min-height: 48px; }
#edit-summary { overflow-wrap: anywhere; line-height: 1.5; }
/* A visitor's preview has no business details yet: the place for them is a labelled, dashed strip. */
.doc-letterhead { margin: 0 0 14px; padding: 10px 12px; border: 2px dashed var(--hair); border-radius: 10px; color: var(--muted); font-size: 15px; text-align: center; }
.btn.fake { pointer-events: none; }
/* The review step shows a PICTURE of the customer's page. Its button must not read as this app's own
   yellow button (independent review R10: it was the only yellow button in view, and people tapped it).
   So the picture is tagged "Preview", and its button is pale and dashed. The real send buttons are the
   solid ones in the bar pinned to the bottom of the screen. */
.preview-frame { position: relative; }
.preview-frame::before { content: "Preview"; display: block; padding: 6px 16px; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); background: var(--card); border-bottom: 2px solid var(--rule); }
.preview-frame .btn.fake { background: var(--warn-bg); color: var(--text); border: 2px dashed var(--rule); box-shadow: none; min-height: 48px; }
main > .dock { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); margin: 18px calc(var(--gutter) * -1) 0; padding: 12px var(--gutter) 12px; border-top: 2px solid var(--rule); background: var(--bg); z-index: 4; }
.dock-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; font-weight: 600; }
.dock-total > span { flex: none; white-space: nowrap; } /* the label never stacks a letter a line beside a long range (R12) */
.dock-total .money { margin-left: auto; text-align: right; }
.dock-total .money { font-size: clamp(24px, 8vw, 34px); }
#mic.rec { background: var(--red); border-color: var(--red); color: #FFFFFF; }
#source-chips { padding-bottom: 14px; }
main > .dock.send .dock-total { display: none; } /* the preview above already shows the total */
/* The three ways to finish, in the pinned bar: Text is the main button, Email and Save as a draft share
   the row under it, so the bar stays short enough to see the preview above it. */
#send-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#send-actions[hidden] { display: none; }
#send-actions > #text-now, #send-actions > .help { grid-column: 1 / -1; }
#send-actions > .help { margin: 0; font-size: 15px; }
#send-actions > .btn { min-height: 52px; padding-left: 8px; padding-right: 8px; }
#send-actions > #email-now[hidden] + #save-quote { grid-column: 1 / -1; } /* no email to send to: the draft button takes the row */
.doc-biz .biz-line { font-size: 16px; }
.doc-mark svg { width: 30px; height: 30px; }
@media (max-width: 359px) { .doc-mark { width: 52px; height: 52px; font-size: 22px; } .doc-head { gap: 12px; } }

/* ---------- Settings tab ---------- */
.setrow { text-decoration: none; min-height: 68px; }
.setrow .set-ic { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--card); display: inline-flex; align-items: center; justify-content: center; }
.setrow .set-ic svg { width: 22px; height: 22px; }
.setrow > svg { color: var(--muted); }
section[id^="sec-"] { scroll-margin-top: 76px; }
.switch + .help { padding-top: 6px; }

/* ---------- Money tab ---------- */
.strip > div { display: flex; flex-direction: column; }
.payok { display: flex; align-items: center; gap: 8px; color: var(--green-ink); }
.payok svg { width: 22px; height: 22px; flex: none; }


/* The customer link on a quote: it wraps at its slashes, and only a part too long for the line may
   break inside (team review finding 48). */
#share-link { word-break: normal; overflow-wrap: anywhere; }
