/* Remodel Suite v3 look (DRUBUILDS Brand folder, app-style-guide.md v3 section): neutral surfaces, 1px borders, indigo accent, Inter (self-hosted, SIL OFL 1.1).
   Tokens only: layout and components are restyled in later PRs. Light is the default.
   Theme: <html data-theme="light|dark|auto">, chosen in Settings (auto = match the phone). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/Inter-d740241675.woff2") format('woff2'); }
:root {
  --bg: #FAFAFA; --surface: #FFFFFF; --surface-2: #F4F4F5; --line: #E4E4E7;
  --fg: #18181B; --muted: #52525B; --faint: #71717A;
  --accent: #4C45B8; --accent-hover: #3D379A; --accent-soft: #EDECFA; --accent-fg: #FFFFFF;
  /* filled buttons: same as accent in light; deep indigo in dark (accent stays light for links/focus) */
  --btn: var(--accent); --btn-hover: var(--accent-hover); --btn-fg: var(--accent-fg); --btn-edge: var(--accent);
  /* sun yellow: small attention dot or count only. Never a text color, never a large fill. */
  --attention: #FFC857; --attention-fg: #3B2A00;
  --good: #15803D; --good-soft: #ECFDF3; --warn: #A15C07; --warn-soft: #FEF6E4; --bad: #B42318; --bad-soft: #FEF0EE;
  --info: #2B62B0; --info-soft: #EAF1FB;
  /* older names, still used by some screens */
  --amber: var(--attention); --amber-soft: var(--warn-soft); --warn-bg: var(--warn-soft); --bad-bg: var(--bad-soft); --good-bg: var(--good-soft);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: var(--font);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, Menlo, monospace;
  --radius: 4px; --radius-sm: 3px; --radius-card: 4px; --radius-pill: 999px; --radius-ctl: 4px; --ctl-h: 32px;
  --shadow-card: 0 1px 2px rgba(24, 24, 27, .06); --card-edge: var(--line);
  --float: 0 6px 20px rgba(24, 24, 27, .12);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #18181B; --surface: #1F1F23; --surface-2: #27272A; --line: #3F3F46;
  --fg: #F4F4F5; --muted: #A1A1AA; --faint: #8E8E98;
  --accent: #9F99F5; --accent-hover: #B9B4FA; --accent-soft: #27254F; --accent-fg: #14122E; --btn: #6C63E0; --btn-hover: #5F57D6; --btn-fg: #FFFFFF; --btn-edge: #8A83EC;
  --attention: #FFD27A; --attention-fg: #3B2A00;
  --good: #4ADE80; --good-soft: #12301F; --warn: #F0B45A; --warn-soft: #33260F; --bad: #F2867A; --bad-soft: #3A1A17;
  --info: #7FB0F0; --info-soft: #15263F;
  --shadow-card: none; --card-edge: var(--line);
  --float: 0 6px 20px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #18181B; --surface: #1F1F23; --surface-2: #27272A; --line: #3F3F46;
    --fg: #F4F4F5; --muted: #A1A1AA; --faint: #8E8E98;
    --accent: #9F99F5; --accent-hover: #B9B4FA; --accent-soft: #27254F; --accent-fg: #14122E; --btn: #6C63E0; --btn-hover: #5F57D6; --btn-fg: #FFFFFF; --btn-edge: #8A83EC;
    --attention: #FFD27A; --attention-fg: #3B2A00;
    --good: #4ADE80; --good-soft: #12301F; --warn: #F0B45A; --warn-soft: #33260F; --bad: #F2867A; --bad-soft: #3A1A17;
    --info: #7FB0F0; --info-soft: #15263F;
    --shadow-card: none; --card-edge: var(--line);
    --float: 0 6px 20px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 var(--font); padding-bottom: env(safe-area-inset-bottom, 0px); }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; font-family: var(--display); letter-spacing: -0.01em; }
h1 { font-weight: 700; }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.05rem; }
h3 { font-size: 0.95rem; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.num, td.num, th.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 0.85em; }

/* shell */
.top { background: var(--surface); color: var(--fg); position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgb(30 42 50 / 0.03); }
.top-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
.brand { color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.15rem; letter-spacing: -0.02em; }
.brand b { font-weight: 800; }
.brand span span, #brand span { color: var(--accent); font-weight: 500; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--muted); text-decoration: none; padding: 7px 11px; border-radius: 4px; white-space: nowrap; font-weight: 500; }
.nav a:hover { color: var(--fg); background: var(--surface-2); }
.nav a.on { color: var(--accent); background: var(--accent-soft); font-weight: 700; }
body.auth .top .nav, body.auth .subnav { display: none; }
.subnav { border-top: 1px solid var(--line); background: var(--surface-2); }
.subnav-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none;
  padding: 4px max(16px, env(safe-area-inset-right, 0px)) 4px max(16px, env(safe-area-inset-left, 0px)); }
.subnav .dept { font-family: var(--display); font-weight: 700; font-size: 0.82rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; margin-right: 10px; border-left: 3px solid var(--amber); padding-left: 8px; white-space: nowrap; }
.subnav a { color: var(--muted); text-decoration: none; padding: 5px 10px; border-radius: 4px; white-space: nowrap; font-size: 0.9rem; font-weight: 500; }
.subnav a:hover { color: var(--fg); background: var(--surface); }
.subnav a.on { color: var(--fg); background: var(--surface); font-weight: 700; box-shadow: inset 0 -2px 0 var(--amber); }
body.print-mode .subnav { display: none; }
/* Active jobs shortcut and search, set apart from the department tabs */
.quick { margin-left: 6px; padding: 7px 12px 7px 14px; border-radius: 4px; white-space: nowrap; font-weight: 700; text-decoration: none; color: var(--fg);
  border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; gap: 7px; }
.quick::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 2px var(--good-soft); }
.quick:hover { border-color: var(--accent); }
.quick.on { background: var(--btn); color: var(--btn-fg); border-color: var(--btn-edge); }
.gsearch { position: relative; margin-left: auto; width: 190px; }
@media (min-width: 761px) { body { font-size: 15px; } .top-inner { gap: 8px 14px; } .nav a { padding: 7px 10px; } }
.gsearch input { width: 100%; padding: 7px 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.gsearch input:focus { background: var(--surface); }
.gsearch-pop { position: absolute; right: 0; top: calc(100% + 6px); width: min(460px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; z-index: 40;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgb(30 42 50 / 0.16); padding: 6px; }
.gsearch-pop .list > a.sel, .gsearch-pop .list > a:hover { background: var(--accent-soft); }
.gsearch-pop .empty { padding: 12px; }
.gsearch-all { display: block; padding: 9px 10px; font-weight: 600; text-decoration: none; border-top: 1px solid var(--line); margin-top: 4px; }
.pill.kind { min-width: 84px; text-align: center; background: var(--accent-soft); color: var(--accent); }
body.auth .quick, body.auth .gsearch { display: none; }
.btn .count { opacity: .7; font-weight: 500; margin-left: 2px; }
/* field cards */
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.field-card { display: grid; gap: 10px; align-content: start; }
.field-head { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.field-head h2 { font-size: 1.2rem; } .field-head h2 a { color: var(--fg); text-decoration: none; }
.field-addr { font-weight: 600; }
.field-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.field-btns > * { min-height: 44px; }
@media (max-width: 760px) {
  .top-inner { gap: 8px 10px; }
  .brand { order: 1; }
  .gsearch { order: 2; flex: 1 1 0; min-width: 0; width: auto; margin-left: 0; }
  .quick { order: 3; margin-left: 0; padding: 7px 10px; }
  .nav { order: 4; flex: 1 1 100%; }
  .gsearch-pop { position: fixed; left: 12px; right: 12px; top: 58px; width: auto; }
  .field-grid { grid-template-columns: 1fr; }
}
.banner { background: var(--warn-bg); color: var(--warn); font-size: 0.88rem; }
.banner > div { max-width: 1180px; margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); }
.main { max-width: 1180px; margin: 0 auto; padding: 20px max(16px, env(safe-area-inset-right, 0px)) 60px max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 18px; }
.main > * { min-width: 0; }

/* blocks */
.page-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; justify-content: space-between; }
.page-head .sub { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; min-width: 0; align-content: start; }
.panel > h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.grid2 > * { min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.spacer { flex: 1; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--fg); display: grid; gap: 2px; }
.tile:hover { border-color: var(--accent); }
.tile { border-top: 3px solid var(--amber); }
.tile b { font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1.1; font-family: var(--display); }
.tile span { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.list { display: grid; gap: 0; }
.list > a, .list > div { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); color: var(--fg); text-decoration: none; min-width: 0; flex-wrap: wrap; }
.list > :first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 160px; }
.empty { color: var(--muted); font-size: 0.9rem; }

/* forms */
label.f { display: grid; gap: 4px; font-size: 0.8rem; color: var(--muted); min-width: 0; }
label.f > span { text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
input, select, textarea { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 9px; min-width: 0; width: 100%; }
textarea { min-height: 84px; resize: vertical; }
input[type=checkbox] { width: auto; accent-color: var(--accent); transform: scale(1.15); }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 0.9rem; color: var(--fg); }
button, .btn { font: inherit; font-size: 0.9rem; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--fg); padding: 7px 12px; border-radius: var(--radius); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
button:hover, .btn:hover { border-color: var(--accent); }
button.primary, .btn.primary { background: var(--btn); color: var(--btn-fg); border-color: var(--btn-edge); font-weight: 700; }
button.primary:hover, .btn.primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
button.danger { color: var(--bad); }
button.danger.confirm { background: var(--bad); color: var(--surface); border-color: var(--bad); }
button.link { border: 0; background: none; padding: 2px 4px; color: var(--accent); }
button.icon { padding: 6px 10px; }
button[disabled] { opacity: 0.45; cursor: default; }

/* pills and notices */
.pill { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.lead, .pill.estimating { background: var(--surface-2); color: var(--muted); }
.pill.client, .pill.sold { background: var(--accent-soft); color: var(--accent); }
.pill.warranty { background: var(--amber-soft); color: var(--warn); }
.pill.estimated, .pill.sent { background: var(--warn-bg); color: var(--warn); }
.pill.signed, .pill.accepted { background: var(--accent-soft); color: var(--accent); }
.pill.active { background: var(--good-bg); color: var(--good); }
.pill.closed { background: var(--surface-2); color: var(--fg); }
.pill.lost, .pill.declined { background: var(--bad-bg); color: var(--bad); }
.notes { display: grid; gap: 6px; }
.note { font-size: 0.88rem; padding: 8px 10px; border-radius: var(--radius); background: var(--warn-bg); color: var(--warn); }
.note.bad { background: var(--bad-bg); color: var(--bad); }
.note.info { background: var(--accent-soft); color: var(--accent); }
.var-up { color: var(--bad); }
.var-down { color: var(--good); }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
th, td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--surface-2); font-weight: 700; position: sticky; top: 0; }
tr.div-row td { background: var(--surface-2); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
tr.total td { font-weight: 700; border-top: 2px solid var(--line); }
td input, td select { padding: 4px 6px; font-size: 0.86rem; }
td select { min-width: 72px; }
td input.n { width: 76px; text-align: right; font-variant-numeric: tabular-nums; }
td input.w { min-width: 200px; }
td input.code { width: 78px; font-family: var(--mono); }
tr.inactive td { opacity: 0.5; }
.totals { display: grid; gap: 4px; max-width: 380px; margin-left: auto; width: 100%; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.totals .grand { font-size: 1.15rem; font-weight: 700; border-top: 2px solid var(--line); padding-top: 6px; }
.totals .meta { color: var(--muted); font-size: 0.85rem; }

/* scope helper */
.sugg { display: grid; gap: 8px; }
.sugg-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; display: grid; gap: 6px; }
.sugg-row.done { opacity: 0.55; }
.sugg-row .phrase { font-weight: 600; }
.sugg-row .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.picker-results { display: grid; gap: 4px; max-height: 280px; overflow-y: auto; }
.picker-results button { justify-content: flex-start; white-space: normal; text-align: left; }

/* auth */
.auth-card { max-width: 420px; margin: 40px auto; }

/* toast */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); background: var(--fg); color: var(--bg); padding: 9px 14px; border-radius: var(--radius); font-size: 0.9rem; z-index: 50; max-width: calc(100% - 32px); box-shadow: var(--shadow-card); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: toast-in .18s cubic-bezier(.16,1,.3,1); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast.error { background: var(--bad); color: var(--surface); }

/* client estimate (screen + print) */
.doc { background: #fff; color: #111; max-width: 820px; margin: 0 auto; padding: 36px 40px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; display: grid; gap: 18px; }
.doc a { color: #111; }
.doc .doc-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 2px solid #111; padding-bottom: 12px; }
.doc .co { font-size: 1.35rem; font-weight: 700; }
.doc .reg { font-size: 0.85rem; }
.doc .draft { color: #a33a2b; font-weight: 700; letter-spacing: 0.06em; }
.doc table { font-size: 13px; }
.doc th { background: #f1f1ee; color: #444; position: static; }
.doc td, .doc th { border-bottom: 1px solid #ddd; }
.doc tr.div-row td { background: #fafaf7; color: #444; }
.doc .totals .grand { border-top-color: #111; }
.doc .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 18px; }
.doc .sign div { border-top: 1px solid #111; padding-top: 4px; font-size: 12px; }
.doc .fine { font-size: 12px; color: #444; }
.doc-bar { max-width: 820px; margin: 0 auto; width: 100%; }
@media (max-width: 600px) { .doc { padding: 20px 16px; } }
body.print-mode .top, body.print-mode .banner { display: none; }
@media print {
  body { background: #fff; }
  .top, .banner, .doc-bar, .toast { display: none !important; }
  .main { padding: 0; max-width: none; }
  .doc { border: 0; padding: 0; max-width: none; }
}

@media (prefers-reduced-motion: no-preference) { button, .tile, .nav a { transition: border-color .15s ease-out, background .15s ease-out; } }

/* v0.2: documents, subs, photos, schedule */
.doc-brand { flex: 1; min-width: 0; }
.doc-brand .db-top { display: flex; gap: 10px; align-items: center; }
.doc-brand .db-top .co { line-height: 1.1; }
.doc .doc-brand .reg { font-size: 12px; color: #444; }
.doc .nw { white-space: nowrap; }
.doc .doc-head > div:last-child { flex: none; }
.doc h3 { break-after: avoid; }
.doc-logo { flex: none; }
.doc .doc-title { font-size: 1.25rem; margin: 4px 0 0; }
.doc h3 { font-size: 0.95rem; margin: 6px 0 0; }
.doc p { margin: 0; }
.doc .terms { display: grid; gap: 8px; font-size: 12.5px; line-height: 1.45; }
.doc .terms h3 { margin-top: 6px; }
.doc table.kv { font-size: 13px; }
.doc table.kv th { background: #f4f1ea; color: #333; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 700; width: 28%; vertical-align: top; }
.doc table.kv td { vertical-align: top; }
.doc .pre, .pre { white-space: pre-wrap; }
.doc .sign2 { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 10px; break-inside: avoid; }
.doc .sign2 .sl { border-top: 1px solid #111; margin-top: 30px; padding-top: 3px; font-size: 11.5px; color: #333; }
.doc .cancel-box { border: 2px solid #111; padding: 10px 12px; font-size: 13px; }
.doc .grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.doc .keep { break-inside: avoid; display: grid; gap: 8px; }
.doc .notice { display: grid; gap: 10px; font-size: 13px; }
.doc .pb { border-top: 1px dashed #bbb; padding-top: 18px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.thumbs figure { margin: 0; display: grid; gap: 4px; }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); display: block; background: var(--surface-2); }
.thumbs figcaption { font-size: 0.78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.thumbs figcaption button { padding: 1px 6px; font-size: 0.75rem; }
.list > div.log { align-items: flex-start; }
.day { display: grid; gap: 4px; }
.day + .day { margin-top: 10px; }
.pill.draft, .pill.void { background: var(--surface-2); color: var(--muted); }
.pill.complete { background: var(--good-bg); color: var(--good); }
@media print {
  .doc .pb { break-before: page; border-top: 0; padding-top: 0; }
  .doc .terms { font-size: 11px; }
}
@media (max-width: 600px) { .doc .sign2, .doc .grid-2col { grid-template-columns: 1fr; gap: 16px; } }

.jump { gap: 2px 6px; font-size: 0.88rem; }
.panel[id] { scroll-margin-top: 70px; }

/* brand touches */
.banner { border-bottom: 1px solid var(--line); }
.panel { box-shadow: 0 6px 24px rgb(30 42 50 / 0.04); }
.page-head h1 { font-size: 1.6rem; }
.auth-card h1 { font-size: 1.5rem; }
body.auth .main::before { content: ""; display: block; width: 64px; height: 64px; margin: 24px auto -20px; background: url(/icon.svg) center / contain no-repeat; }
.doc .co { font-family: Inter, Arial, sans-serif; }
.brand .logo-d { stroke: var(--accent); }

/* time clock */
.clock { border-left: 4px solid var(--amber); }
.clock.on { border-left-color: var(--good); background: linear-gradient(90deg, var(--good-bg), var(--surface) 60%); }
.clock-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.clock-time { font-family: var(--display); font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-what b { font-size: 1.05rem; }
.clock-form { display: grid; grid-template-columns: 2fr 2fr auto; gap: 8px; }
button.big { padding: 11px 22px; font-size: 1rem; justify-content: center; }
tr.editing td { background: var(--surface-2); }
@media (max-width: 640px) { .clock-form { grid-template-columns: 1fr; } .clock form.row > * { flex: 1 1 100%; } }

/* cost codes */
.divs { display: grid; gap: 8px; }
.div-group { padding: 0; gap: 0; overflow: hidden; }
.div-head { width: 100%; border: 0; border-radius: 0; background: none; padding: 12px 16px; display: flex; gap: 12px; align-items: baseline; text-align: left; white-space: normal; }
.div-head:hover { background: var(--surface-2); }
.div-head b { font-family: var(--display); font-size: 1rem; }
.div-head .chev { margin-left: auto; color: var(--muted); }
.div-group.open .div-head { border-bottom: 1px solid var(--line); }
.div-group .tbl-wrap { border: 0; border-radius: 0; }
td input.code { width: 92px; }
.ct { display: inline-flex; align-items: center; gap: 2px; font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-right: 6px; }
.ct input { transform: none; }
.nowrap { white-space: nowrap; }

/* Clock button: icon instead of the dot; turns green while you're on the clock */
.quick.clock-btn::before { display: none; }
.quick.clock-btn svg { flex: none; color: var(--accent); }
.quick.clock-btn.running { background: var(--good-bg); border-color: var(--good); color: var(--good); }
.quick.clock-btn.running svg { color: var(--good); }
.quick.clock-btn.on { background: var(--btn); color: var(--btn-fg); border-color: var(--btn-edge); }
.quick.clock-btn.on svg { color: var(--btn-fg); }
.clock-btn-time { font-variant-numeric: tabular-nums; }
/* Clock screen */
.clock-big { display: grid; gap: 14px; }
.clock-big.on { border-left: 4px solid var(--good); }
.clock-state { display: flex; align-items: center; gap: 14px; }
.clock-elapsed { font-family: var(--display); font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-on-what { font-size: 1.05rem; display: grid; gap: 2px; }
.clock-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.clock-actions form { display: grid; gap: 10px; align-content: start; }
button.big { min-height: 48px; font-size: 1rem; }
button.huge { min-height: 60px; font-size: 1.15rem; }
button.danger-solid { background: var(--bad); color: var(--surface); border-color: var(--bad); font-weight: 700; }
.team-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.team-row:last-child { border-bottom: 0; }
/* Employee accounts: owner-only controls hidden (the server refuses them anyway) */
body.emp .gsearch, body.emp [data-act=delLog], body.emp [data-act=delPhoto], body.emp [data-act=delEvent], body.emp [data-act=editTime],
body.emp form[data-sub=addTime], body.emp form[data-sub=newEvent], body.emp label.check:has(#log-actual) { display: none !important; }
@media (max-width: 760px) {
  .quick.clock-btn { order: 3; }
  .quick.clock-btn span { white-space: nowrap; }
  body:not(.emp) .quick.clock-btn:not(.running) span { display: none; }
}
body.emp .banner { display: none !important; }
@media (min-width: 761px) {
  .top-inner { gap: 8px 10px; }
  .nav a { padding: 7px 8px; }
  .quick { padding: 7px 10px; margin-left: 0; }
  .gsearch { width: 170px; }
}

/* Computer screens: search collapses to a magnifier and opens over the tabs when tapped */
@media (min-width: 761px) {
  .gsearch { width: 40px; height: 36px; }
  .gsearch input { position: absolute; right: 0; top: 0; width: 40px; height: 36px; padding: 7px 10px 7px 34px; color: transparent; cursor: pointer; z-index: 35;
    background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2355606A' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 12px center; transition: width .15s; }
  .gsearch input::placeholder { color: transparent; }
  .gsearch input:focus, .gsearch:focus-within input { width: 300px; color: var(--fg); cursor: text; background-color: var(--surface); box-shadow: 0 6px 20px rgb(30 42 50 / 0.15); }
  .gsearch:focus-within input::placeholder { color: var(--muted); }
}

/* Sign out, at the far right of the header */
.signout { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 4px; background: transparent; border: 1px solid transparent; color: var(--muted); font-weight: 600; white-space: nowrap; }
.signout:hover { color: var(--bad); border-color: var(--line); background: var(--surface); }
body.auth .signout { display: none; }
@media (max-width: 1400px) { .signout span { display: none; } }
@media (max-width: 760px) { .signout { order: 3; padding: 7px 8px; } }

/* Estimate templates */
.tpl details summary { cursor: pointer; color: var(--accent); font-weight: 600; margin: 4px 0 8px; }
.tpl tr.muted td { opacity: .55; }

/* Goal tracker */
.gbar { position: relative; height: 14px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: visible; margin: 10px 0 6px; }
.gbar-fill { height: 100%; border-radius: 99px; background: var(--accent); }
.gbar-mark { position: absolute; top: -5px; bottom: -5px; width: 3px; border-radius: 2px; background: var(--amber); transform: translateX(-1px); }
.gstat { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.gstat > div { display: grid; gap: 2px; }
.gstat b { font-family: var(--display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.gstat span { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
tr.cur td { background: var(--accent-soft); }
#pricing-guide details summary { cursor: pointer; color: var(--accent); font-weight: 600; margin-top: 8px; }

/* Home Care: inspection ratings (fixed colors so reports print the same in light and dark) */
.hcr { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
/* Home Care ratings use the v3 status colors. The words always show (Good, Watch, Plan for it, Fix this season, Safety: now), never color alone. */
.hcr-ok { background: var(--good-soft); color: var(--good); border-color: var(--good); }
.hcr-watch { background: var(--info-soft); color: var(--info); border-color: var(--info); }
.hcr-plan { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.hcr-fix { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.hcr-safety { background: var(--bad); color: var(--surface); border-color: var(--bad); font-weight: 700; }
.hcr-na, .hcr-undefined { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
/* The client report is paper: keep its own light colors in every theme. */
.doc .hcr-ok { background: #E1F0E4; color: #2F6B3F; border-color: transparent; }
.doc .hcr-watch { background: #E3EDF3; color: #1F4E6B; border-color: transparent; }
.doc .hcr-plan { background: #FBE8CF; color: #7A4410; border-color: transparent; }
.doc .hcr-fix { background: #FDDCC4; color: #9A3412; border-color: transparent; }
.doc .hcr-safety { background: #A33A2B; color: #fff; border-color: transparent; }
.doc .hcr-na, .doc .hcr-undefined { background: #EEEAE3; color: #55606A; border-color: transparent; }
details.hc-area > summary { cursor: pointer; list-style: none; }
details.hc-area > summary::-webkit-details-marker { display: none; }
details.hc-area > summary h2 { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
details.hc-area > summary h2::before { content: "▸"; color: var(--muted); font-size: 0.9em; }
details.hc-area[open] > summary h2::before { content: "▾"; }
details.hc-area[open] > summary { margin-bottom: 6px; }
.hc-item { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 6px 14px; padding: 10px 0; border-top: 1px solid var(--line); align-items: start; }
.hc-item .hc-extra, .hc-item .thumbs { grid-column: 1 / -1; }
.hc-q b { font-weight: 600; }
.hc-rate { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.hcb { padding: 5px 9px; font-size: 0.8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); min-height: 34px; }
.hcb.on { font-weight: 700; }
.hcb.on::before { content: "¹3 a0"; }
.hcb.on.hcb-ok { background: var(--good); border-color: var(--good); color: var(--surface); }
.hcb.on.hcb-watch { background: var(--info); border-color: var(--info); color: var(--surface); }
.hcb.on.hcb-plan { background: var(--warn); border-color: var(--warn); color: var(--surface); }
.hcb.on.hcb-fix { background: var(--bad); border-color: var(--bad); color: var(--surface); }
.hcb.on.hcb-safety { background: var(--bad); border-color: var(--bad); color: var(--surface); text-decoration: underline; }
.hcb.on.hcb-na { background: var(--muted); border-color: var(--muted); color: var(--surface); }
.hc-extra { display: flex; gap: 6px; align-items: center; }
.hc-extra input { flex: 1; min-width: 0; }
.hc-item.rated:not(.hcrow-ok):not(.hcrow-na) { border-left: 3px solid var(--warn); padding-left: 10px; }
.hc-item.hcrow-safety { border-left-color: var(--bad) !important; }
.hc-item.hcrow-ok .hc-q, .hc-item.hcrow-na .hc-q { opacity: 0.75; }
@media (max-width: 640px) {
  .hc-item { grid-template-columns: 1fr; }
  .hc-rate { display: grid; grid-template-columns: repeat(3, 1fr); justify-content: stretch; }
  .hcb { padding: 7px 4px; }
}
/* report */
.doc .hc-score { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.doc .hcs { border-radius: 4px; padding: 10px 8px; text-align: center; display: grid; gap: 2px; }
.doc .hcs b { font-size: 1.7rem; line-height: 1; }
.doc .hcs span { font-size: 11.5px; font-weight: 600; }
.doc .hcs-ok { background: #E1F0E4; color: #2F6B3F; }
.doc .hcs-watch { background: #E3EDF3; color: #1F4E6B; }
.doc .hcs-plan { background: #FBE8CF; color: #7A4410; }
.doc .hcs-fix { background: #FDDCC4; color: #9A3412; }
.doc .hcs-safety { background: #A33A2B; color: #fff; }
.doc .hc-finds { display: grid; gap: 8px; margin-top: 6px; }
.doc .hc-find { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 8px 10px; border: 1px solid #ddd; border-left: 4px solid #ccc; border-radius: 3px; break-inside: avoid; }
.doc .hcf-safety { border-left-color: #A33A2B; } .doc .hcf-fix { border-left-color: #C2410C; } .doc .hcf-plan { border-left-color: #C77A1E; } .doc .hcf-watch { border-left-color: #1F4E6B; }
.doc .hc-find .hcr { justify-self: start; align-self: start; }
.doc .hc-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin-top: 6px; }
.doc .hc-imgs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; }
.doc .hc-table { margin-top: 8px; width: 100%; table-layout: fixed; }
.doc .hc-table td:first-child { width: 38%; }
.doc .hc-table td:nth-child(2) { width: 130px; }
.doc ul { margin: 4px 0 0; padding-left: 20px; }
@media (max-width: 600px) { .doc .hc-score { grid-template-columns: repeat(3, 1fr); } .doc .hc-find { grid-template-columns: 1fr; } }
@media print { .doc .hcs, .doc .hcr, .doc .hc-find { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ---------- DRU Builds apps: launcher, app header, app tiles ---------- */
:root { --app: var(--accent); }
.top { border-top: 4px solid var(--app); }
.top .quick:not(.clock-btn) { display: none; }          /* Active jobs now lives in the Field app's tabs */
.waffle { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 4px; background: transparent; border: 1px solid transparent; color: var(--fg); padding: 0; flex: none; }
.waffle:hover, .waffle[aria-expanded=true] { background: var(--surface-2); border-color: var(--line); }
body.auth .waffle, body.emp .waffle { display: none; }
.brand { gap: 10px; }
.brand img { flex: none; border-radius: 4px; }
.app-title { display: grid; line-height: 1.05; }
.app-title small { font-family: var(--font); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.app-title small b, .app-title small span { font-weight: 600 !important; color: var(--muted) !important; }
.app-title #app-name { font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--fg); letter-spacing: -0.02em; white-space: nowrap; }
.nav a.on { color: var(--app); background: color-mix(in srgb, var(--app) 13%, transparent); }

.launcher { position: absolute; left: max(12px, calc((100vw - 1180px) / 2)); top: calc(100% + 6px); z-index: 45; }
.launcher-inner { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 16px 40px rgb(30 42 50 / 0.2); padding: 14px; width: min(360px, calc(100vw - 24px)); display: grid; gap: 10px; }
.launcher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px; }
.app-tile { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--fg); padding: 8px 4px; border-radius: 4px; text-align: center; }
.app-tile:hover { background: var(--surface-2); }
.app-tile b { font-size: 0.82rem; font-weight: 600; }
.app-tile img { border-radius: 4px; box-shadow: 0 3px 10px rgb(30 42 50 / 0.16); }
.launcher-all { font-size: 0.88rem; font-weight: 600; text-align: center; padding: 8px; border-top: 1px solid var(--line); text-decoration: none; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.app-tile.big { background: var(--surface); border: 1px solid var(--line); padding: 16px 10px 14px; box-shadow: 0 6px 24px rgb(30 42 50 / 0.04); }
.app-tile.big:hover { border-color: var(--accent); background: var(--surface); }
.app-tile.big b { font-family: var(--display); font-size: 1.05rem; font-weight: 700; }
.app-tile.big span { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 760px) {
  .waffle { order: 0; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .app-title #app-name { font-size: 1.05rem; }
}

/* ---------- Beta look: quiet frame and components (style guide) ---------- */
body { font-size: 15px; line-height: 1.5; }
@media (min-width: 761px) { body { font-size: 14px; } }
h1, .page-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: 17px; font-weight: 600; }
.panel > h2 { font-family: var(--font); font-size: 15px; font-weight: 600; }
.num, td.num, th.num, .tile b, .totals { font-variant-numeric: tabular-nums; }

/* top bar: white, hairline, sticky; app name with its color dot and a small Beta pill */
.top { border-top: 0; box-shadow: none; background: var(--surface); }
.brand img { display: none; }
.app-title { display: flex; align-items: center; gap: 8px; }
.app-title small { display: none; }
.app-title #app-name { font-size: 17px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.app-title #app-name::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--app); flex: none; }
.beta-pill { font: 600 11px/1 var(--font); letter-spacing: .02em; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 3px 7px; border-radius: 999px; }
body.auth .beta-pill { display: none; }
.nav a.on, :root[data-theme] .nav a.on { color: var(--accent); background: var(--accent-soft); }
.signout { border-radius: var(--radius-sm); }

/* section tabs: a quiet row under the top bar on computers; a bottom tab bar on phones */
.subnav { background: var(--surface); border-top: 1px solid var(--line); }
.subnav .dept { display: none; }
.subnav a { border-radius: var(--radius-sm); font-size: 14px; padding: 8px 12px; }
.subnav a.on { color: var(--accent); background: var(--accent-soft); box-shadow: none; font-weight: 600; }
@media (max-width: 760px) {
  .subnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; border-top: 1px solid var(--line); box-shadow: var(--float); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .subnav-inner { padding: 4px 6px; gap: 2px; justify-content: space-around; }
  .subnav a { flex: 1 0 auto; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 6px 8px; font-size: 13px; color: var(--muted); }
  body:not(.auth) .main { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* cards, lists, tiles: white, hairline border, no heavy fills */
.panel { box-shadow: none; border-radius: var(--radius); }
.tile, .tile:hover { border-top: 1px solid var(--line); }
.tile { border-radius: var(--radius); padding: 14px 16px; gap: 4px; }
.tile:hover { border-color: var(--accent); }
.tile b { font-size: 28px; font-weight: 700; }
.tile span { text-transform: none; letter-spacing: 0; font-size: 13px; }
.gstat span { text-transform: none; letter-spacing: 0; font-size: 13px; }
.list > a, .list > div { padding: 12px 0; min-height: 52px; }
.app-tile.big, .launcher-inner { box-shadow: var(--float); }
.app-tile.big { box-shadow: none; }

/* forms: labels above, sentence case; 44px inputs on a soft fill */
label.f { font-size: 13px; }
label.f > span { text-transform: none; letter-spacing: 0; font-weight: 500; }
input, select, textarea { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 11px; }
input:focus, select:focus, textarea:focus { background: var(--surface); border-color: var(--accent); outline: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 760px) { input:not([type=checkbox]):not([type=radio]), select { min-height: 44px; } }
td input, td select { min-height: 0 !important; padding: 5px 7px; }

/* buttons: navy primary, white secondary, text-only quiet */
button, .btn { border-radius: var(--radius-sm); padding: 8px 14px; font-weight: 500; }
@media (max-width: 760px) { button, .btn { min-height: 44px; } button.link, td button { min-height: 0; } }
button.primary, .btn.primary { font-weight: 600; }

/* status pills: small, soft fill, colored words */
.pill { font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 3px 8px; }
.note { border-radius: var(--radius-sm); }

/* tables: soft header, muted labels, tabular numbers right-aligned, bold total */
.tbl-wrap { border-radius: var(--radius); }
th { font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 600; }
th, td { padding: 9px 10px; }
tr.div-row td { text-transform: none; letter-spacing: 0; font-size: 13px; }
tfoot td, tr.total td { font-weight: 700; border-top: 1px solid var(--fg); }

/* version line (launcher footer, Settings, account) */
.version { font-size: 12px; color: var(--faint); text-align: center; }
.version b { color: var(--muted); font-weight: 600; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
/* In an app, its tabs sit in the top bar's .nav: on phones they become the bottom tab bar */
@media (max-width: 760px) {
  body:not(.auth) .top .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; order: 9; background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--float);
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)); gap: 2px; justify-content: space-around; }
  body:not(.auth) .top .nav a { flex: 1 0 auto; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 6px 8px; font-size: 13px; border-radius: var(--radius-sm); }
  body:not(.auth) .main { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
/* Settings gear (every app) and the extra links in the app switcher */
.gear { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); color: var(--muted); border: 1px solid transparent; flex: none; }
.gear:hover { color: var(--fg); background: var(--surface-2); border-color: var(--line); }
body.auth .gear, body.emp .gear { display: none; }
@media (max-width: 760px) { .gear { order: 3; } }
.launcher-links { display: flex; justify-content: center; gap: 18px; padding: 4px 0 2px; font-size: 14px; font-weight: 600; }
.launcher-links a { text-decoration: none; }
/* Alerts bell and job chip (top bar) and their sheets */
.bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: var(--radius-sm); color: var(--muted); border: 1px solid transparent; background: transparent; flex: none; }
.bell:hover { color: var(--fg); background: var(--surface-2); border-color: var(--line); }
.bell-n { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--attention); color: var(--attention-fg); font: 700 11px/17px var(--font); text-align: center; }
.jobchip { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg); font-weight: 600; font-size: 14px; }
.jobchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jobchip:hover { border-color: var(--accent); }
body.auth .bell, body.auth .jobchip, body.emp .bell, body[data-app=launcher] .jobchip { display: none; }
.sheet { position: absolute; right: max(12px, calc((100vw - 1180px) / 2)); top: calc(100% + 6px); z-index: 45; }
#chip-sheet { right: auto; left: max(12px, calc((100vw - 1180px) / 2 + 220px)); }
.sheet-inner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--float); padding: 12px 14px; width: min(420px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; display: grid; gap: 8px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-head input { max-width: 220px; }
.sheet-sub { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.sheet-foot { border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
@media (max-width: 760px) {
  .jobchip { order: 5; flex: 1 1 100%; max-width: none; justify-content: space-between; }
  .bell { order: 3; }
  .sheet, #chip-sheet { position: fixed; left: 12px; right: 12px; top: 60px; }
  .sheet-inner { width: auto; max-height: calc(100vh - 160px); }
}

/* Phones: first row = switcher, app name, clock, bell, gear, sign out; second row = job chip and search */
@media (max-width: 760px) {
  .top-inner .jobchip { order: 10; flex: 1 1 0; min-width: 0; }
  .top-inner .gsearch { order: 11; flex: 1 1 0; min-width: 0; width: auto; }
  .top-inner .brand { margin-right: auto; }
}

.gear[hidden] { display: none; }

/* ---------- job photos and videos (public/photos.js) ---------- */
.nav a .qn { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: var(--attention); color: var(--attention-fg); font-size: 0.72rem; font-weight: 700; text-align: center; line-height: 18px; }
.cam { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 640px; margin: 0 auto; }
.cam-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cam-job { flex: 1 1 220px; min-width: 0; white-space: normal; min-height: 52px; display: grid; justify-items: start; gap: 2px; text-align: left; padding: 8px 12px; background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }
.cam-job.unsorted { background: var(--warn-soft); border-color: var(--warn-soft); color: var(--warn); }
.cam-job-name { font-weight: 700; font-size: 1rem; }
.cam-job-line { font-size: 0.82rem; color: var(--fg); opacity: .8; }
.cam-gps { font-variant-numeric: tabular-nums; font-size: 0.78rem; color: var(--muted); }
body.cam-page .banner { display: none !important; }
.cam-view { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; height: clamp(280px, calc(100dvh - 350px), 760px); width: 100%; }
.cam-view.off { height: 260px; background: var(--surface-2); }
.cam-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-view.snap::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: .55; }
.cam-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: #fff; font-size: 0.95rem; }
.cam-view.off .cam-msg { color: var(--fg); }
.cam-msg[hidden], .cam-recbar[hidden] { display: none; }
.cam-recbar { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: var(--bad); color: #fff; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.cam-bar { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 24px 10px 12px; background: linear-gradient(rgb(0 0 0 / 0), rgb(0 0 0 / .55)); }
.cam-msg { padding-bottom: 110px; }
.cam-last { justify-self: start; min-width: 52px; }
.cam-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); display: inline-grid; place-items: center; background: var(--surface-2); font-size: 0.8rem; font-weight: 700; color: var(--fg); }
.cam-shutter { width: 76px; height: 76px; border-radius: 50%; padding: 0; border: 4px solid var(--accent); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.cam-shutter span { width: 58px; height: 58px; border-radius: 50%; background: var(--accent); display: block; }
.cam-shutter.video span { background: var(--bad); }
.cam-shutter.rec span { width: 30px; height: 30px; border-radius: 3px; background: var(--bad); }
.cam-modes { justify-self: end; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.cam-modes button { border: 0; border-radius: 0; min-height: 44px; padding: 0 10px; font-size: 0.85rem; background: var(--surface); }
.cam-modes button.on { background: var(--btn); color: var(--btn-fg); font-weight: 700; }
.cam-under { display: grid; gap: 10px; }
.cam-under .btn, .cam-under button { min-height: 44px; }
.cam-tag { max-width: 200px; }
.cam-sheet { position: fixed; inset: 0; z-index: 60; background: rgb(20 32 43 / .35); display: flex; align-items: flex-end; justify-content: center; }
.cam-sheet[hidden] { display: none; }
.cam-sheet-in { background: var(--surface); width: 100%; max-width: 640px; max-height: 80dvh; overflow-y: auto; border-radius: var(--radius) var(--radius) 0 0; padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 4px; box-shadow: var(--float); }
.cam-sheet-in h3 { margin: 10px 0 2px; color: var(--muted); font-family: var(--font); font-size: 0.8rem; font-weight: 600; }
.cam-opt { display: grid; justify-items: start; gap: 2px; text-align: left; min-height: 52px; width: 100%; padding: 8px 12px; white-space: normal; }
.cam-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.ph-tile { position: relative; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--surface-2); display: block; width: 100%; }
.ph-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-vid { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.ph-tag { position: absolute; left: 4px; bottom: 4px; background: rgb(20 32 43 / .72); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.ph-tag:empty { display: none; }
.ph-unsorted { align-items: flex-start !important; }
.ph-unsorted > .ph-tile { width: 96px; flex: none; }
body.ph-open { overflow: hidden; }
.ph-viewer { position: fixed; inset: 0; z-index: 70; background: #0A0E12; color: #fff; display: grid; grid-template-rows: auto 1fr auto; }
.ph-viewer[hidden] { display: none; }
.ph-v-top { display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px; }
.ph-v-top button, .ph-v-top .btn { min-height: 44px; background: transparent; color: #fff; border-color: rgb(255 255 255 / .3); }
.ph-v-top .muted { color: rgb(255 255 255 / .7); }
.ph-v-media { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; }
.ph-v-media img, .ph-v-media video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.ph-v-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; font-size: 1.8rem; background: rgb(0 0 0 / .35); color: #fff; border: 0; justify-content: center; }
.ph-v-nav.prev { left: 6px; } .ph-v-nav.next { right: 6px; }
.ph-v-info { background: var(--surface); color: var(--fg); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; max-height: 45dvh; overflow-y: auto; }
.ph-v-info button, .ph-v-info select { min-height: 44px; }
.ph-tile.picked { outline: 3px solid var(--accent); outline-offset: -3px; }
.ph-tile.picked::after { content: "✓"; position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--btn); color: var(--btn-fg); display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; }
.ph-mark { position: absolute; right: 4px; top: 4px; background: rgb(20 32 43 / .72); color: #fff; font-size: 0.66rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.ph-share { flex: 1 1 100%; display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.ph-share .list input { width: 100%; max-width: 420px; margin-top: 4px; font-size: 0.82rem; }
#p-photos button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.ph-voice audio { height: 40px; max-width: 100%; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .cmp { grid-template-columns: 1fr; } }
.cmp-side { display: grid; gap: 8px; align-content: start; min-width: 0; }
.cmp-img { padding: 0; border-radius: var(--radius); overflow: hidden; display: block; width: 100%; background: var(--surface-2); }
.cmp-img img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.ph-editor { position: fixed; inset: 0; z-index: 80; background: #0A0E12; color: #fff; display: flex; flex-direction: column; }
.ph-editor[hidden] { display: none; }
.ph-editor .ph-v-top .primary { color: var(--btn-fg); background: var(--btn); border-color: var(--btn-edge); }
.ed-bar { display: flex; gap: 6px; overflow-x: auto; padding: 4px 12px 8px; align-items: center; }
.ed-bar button { min-height: 44px; background: transparent; color: #fff; border-color: rgb(255 255 255 / .3); }
.ed-bar button.on { background: #fff; color: #14202B; border-color: #fff; }
.ed-color span { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgb(255 255 255 / .6); }
.ed-sep { width: 1px; align-self: stretch; background: rgb(255 255 255 / .25); flex: none; }
.ed-text-row { padding: 0 12px 8px; }
.ed-text-row[hidden] { display: none; }
.ed-text-row input { width: 100%; }
.ed-stage { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; padding: 0 8px; }
.ed-stage canvas { touch-action: none; display: block; }
.ed-help { padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); color: rgb(255 255 255 / .7); }

/* Field > Tools draws in its own box next to the page (tools.js); only one of the two shows. */
.main[hidden] { display: none; }

/* Team: the invite to share (team.js) */
.invite-box { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-2); display: grid; gap: 8px; }
.invite-box textarea { width: 100%; font: inherit; font-size: 14px; resize: vertical; }

/* Sign in with Google (app.js) */
.google-btn { white-space: normal; text-align: center; max-width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); font-weight: 600; text-decoration: none; }
.auth-card .or { text-align: center; margin: 2px 0; }
.auth-err { color: var(--bad); background: var(--bad-soft); border-radius: 4px; padding: 8px 10px; font-size: 14px; }
.team-email { max-width: 320px; margin: 6px 0 2px; }
.doc .pay-over-time { display: grid; gap: 4px; justify-items: start; }

/* ---------- App frame (style guide v2): rail + page menu on computers, icon tabs on phones (public/frame.js) ---------- */
.fi { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rail, .pmenu { display: none; }


/* ---------- Pattern layer (style guide v2): cards, buttons, pills, tables, page head. Later rules win over the older look above. ---------- */
.page-head > div:first-child { display: flex; flex-direction: column-reverse; gap: 2px; }
.page-head .sub { margin: 0; font-size: 14px; }
.page-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
@media (min-width: 761px) { .page-head h1 { font-size: 32px; } }
.panel, .tile { border: 1px solid var(--card-edge); box-shadow: var(--shadow-card); border-radius: var(--radius-card); }
.panel { padding: 20px; gap: 10px; }
.panel > h2 { font: 600 16px/1.3 var(--display); }
.panel > h2 .btn { font-size: 13px; }
.panel > h2 a:not(.btn) { font: 700 13px var(--font); color: var(--accent); text-decoration: none; }
.tile { padding: 18px 20px; gap: 2px; }
.tile b { font-size: 36px; font-weight: 700; line-height: 1; }
.tile span { font-size: 13px; font-weight: 700; color: var(--muted); }
.tile:hover { border-color: var(--accent); }
.list > a, .list > div { min-height: 56px; }

/* buttons (v3): 8px radius, 34px tall (44px on a phone); primary = indigo fill; secondary = white with a 1px border; quiet = text only.
   Pressed and keyboard-focus states are always visible. */
button, .btn { border-radius: var(--radius-ctl); border: 1px solid var(--line); background: var(--surface); color: var(--fg); padding: 0 14px; min-height: var(--ctl-h); font-weight: 500; font-size: 14px; justify-content: center; box-shadow: var(--shadow-card); }
button:hover, .btn:hover { border-color: var(--faint); background: var(--surface-2); }
button:active, .btn:active { background: var(--line); border-color: var(--faint); transform: translateY(1px); box-shadow: none; }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.primary, .btn.primary { background: var(--btn); color: var(--btn-fg); border-color: var(--btn-edge); font-weight: 600; }
button.primary:hover, .btn.primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
button.primary:active, .btn.primary:active { background: var(--accent-hover); filter: brightness(.92); }
button.danger { color: var(--bad); border-color: var(--bad); }
button.danger:hover { background: var(--bad-soft); border-color: var(--bad); }
button.danger.confirm, button.danger-solid { background: var(--bad); border-color: var(--bad); color: var(--surface); }
button.link, button.icon, .btn.quiet { border-color: transparent; background: none; box-shadow: none; }
button.link:hover, button.icon:hover, .btn.quiet:hover { background: var(--surface-2); border-color: transparent; }
button.link { padding: 2px 6px; min-height: 0; }
button.icon { min-width: 36px; min-height: 36px; }
/* the yellow "sun" button is now a normal primary button: yellow stays a small attention dot or count */
.btn.sun, button.sun { background: var(--btn); color: var(--btn-fg); border-color: var(--btn-edge); font-weight: 600; }
.btn.sun:hover, button.sun:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn.sm, td button, td .btn { padding: 0 10px; min-height: 28px; font-size: 13px; }
td button.link { padding: 2px 6px; min-height: 0; }
.tbl-wrap button, .list button, .list .btn { font-size: 13px; }
button[disabled] { border-color: var(--line); }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), select { min-height: 44px; border-radius: var(--radius); }
td input, td select { min-height: 0 !important; border-radius: var(--radius-sm); }

/* status pills: small, soft fill, colored words, sentence case */
.pill { font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; padding: 3px 10px; }
.pill.sun { background: var(--accent-soft); color: var(--accent); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.good { background: var(--good-soft); color: var(--good); }

/* tables: muted 13px headers, tabular numbers right-aligned, bold total */
.tbl-wrap { border: 0; border-radius: var(--radius); background: transparent; }
th { background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; padding: 6px 10px; }
td { padding: 12px 10px; }
tr.div-row td { background: var(--surface-2); }

/* round checkboxes in lists */
.list input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; transform: none; border: 2px solid var(--muted); border-radius: 50%; background: transparent; display: inline-grid; place-content: center; flex: none; cursor: pointer; min-height: 0; padding: 0; }
.list input[type=checkbox]:checked { background: var(--btn); border-color: var(--btn-edge); }
.list input[type=checkbox]:checked::after { content: ""; width: 6px; height: 11px; border: solid var(--btn-fg); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }

/* Home (VIEWS.apps in apps.js) and Field Today */
.hero { background: var(--surface); color: var(--fg); border-radius: var(--radius-card); box-shadow: var(--shadow-card); border: 1px solid var(--card-edge); border-left: 4px solid var(--accent); padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero .hero-text { flex: 1 1 260px; min-width: 0; display: grid; gap: 2px; }
.hero h2 { font: 700 22px/1.2 var(--display); color: inherit; }
.hero .hero-line { color: var(--muted); font-size: 14px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.home-col { display: grid; gap: 20px; min-width: 0; }
/* Home: extra panels (Healthy minimum) sit under "Needs you" on wide screens, at the bottom on phones */
.home-extra { display: grid; gap: 20px; min-width: 0; }
.home-extra > .panel { margin: 0; }
.home-extra.wide-only { display: none; }
@media (min-width: 901px) { .home-extra.wide-only { display: grid; } .home-extra.narrow-only { display: none; } }
@media (max-width: 900px) { .home-grid { grid-template-columns: minmax(0, 1fr); } }
.nrow { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); min-height: 56px; }
.nrow:first-of-type { border-top: 0; }
.nrow .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; flex: none; }
.nrow .nrow-t { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.nrow .nrow-t a { color: var(--fg); font-weight: 700; text-decoration: none; }
.nrow .nrow-t small { color: var(--muted); font-size: 13px; }
@media (max-width: 560px) { .nrow { flex-wrap: wrap; } .nrow .nrow-t { flex-basis: calc(100% - 60px); } }
.wk { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); align-items: start; }
.wk:first-of-type { border-top: 0; }
.wk > b { font: 700 14px var(--display); color: var(--muted); padding-top: 6px; }
.wk.on > b { color: var(--fg); }
.wk .evs { display: grid; gap: 6px; min-width: 0; }
.ev { display: block; background: var(--accent-soft); color: var(--fg); border-radius: 4px; padding: 6px 12px; font-weight: 700; font-size: 14px; text-decoration: none; }
.ev small { font-weight: 400; color: var(--muted); }
.wk.on .ev { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.wk .none { color: var(--muted); font-size: 14px; padding-top: 6px; }
.bignum { font: 700 36px/1 var(--display); font-variant-numeric: tabular-nums; }
.meter { height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
@media (min-width: 761px) { .app-grid { display: none; } }
.field-card { gap: 12px; }
.field-head h2 { font: 700 20px var(--display); }
@media (prefers-reduced-motion: no-preference) { button, .btn { transition: background .15s ease-out, border-color .15s ease-out; } }

/* Board stat cards and Pipeline lanes (PR3b) */
.tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.kan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .kan { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kan { grid-template-columns: minmax(0, 1fr); } }
.lane { background: var(--surface-2); border-radius: var(--radius-card); padding: 14px; display: grid; gap: 12px; min-width: 0; align-content: start; }
.lane h2 { font: 700 17px var(--display); display: flex; justify-content: space-between; padding: 0 4px; }
.lane h2 span { color: var(--muted); font: 700 13px var(--font); }
.lane .none { color: var(--muted); font-size: 14px; padding: 0 4px; }
.lane > a.small { color: var(--accent); font-weight: 700; text-decoration: none; padding: 0 4px; }
.lcard { background: var(--surface); border: 1px solid var(--card-edge); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 14px; display: grid; gap: 4px; text-decoration: none; color: var(--fg); min-width: 0; }
:root[data-theme="dark"] .lcard { box-shadow: none; }
.lcard:hover { outline: 2px solid var(--accent); }
.lcard small { color: var(--muted); font-size: 13px; }
.lcard > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.lcard .num { font-size: 15px; }

/* Home app tiles (phones): same icon and title height in every tile, text centered */
.app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 480px) and (max-width: 760px) { .app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.app-tile.big { align-content: start; justify-items: center; text-align: center; border: 1px solid var(--card-edge); box-shadow: var(--shadow-card); border-radius: var(--radius-card); gap: 8px; }
.app-tile.big span { min-height: 3.9em; }

/* ---------- UI v3 PR 2: grouped sidebar (computers), group tab bar (phones), job page tabs ---------- */
.rail, .pmenu { display: none; }
.fi { width: 18px; height: 18px; }
@media (min-width: 761px) {
  body:not(.auth) { padding-left: 248px; }
  body:not(.auth) .rail { position: fixed; left: 0; top: 0; bottom: 0; width: 248px; z-index: 25; display: flex; flex-direction: column; gap: 10px; padding: 14px 10px 10px; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
  body:not(.auth) .sb-brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 4px; color: var(--accent); text-decoration: none; }
  body:not(.auth) .sb-brand b { color: var(--fg); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
  body:not(.auth) .sb-brand .beta-pill { margin-left: auto; }
  /* the top row is gone: only the alert and job sheets still hang from it */
  body:not(.auth) .top { position: static; background: none; border: 0; box-shadow: none; padding: 0; height: 0; }
  body:not(.auth) .top-inner { display: none; }
  body:not(.auth) .sheet, body:not(.auth) #chip-sheet { position: fixed; left: 256px; right: auto; top: 64px; z-index: 45; }
  /* search, clock and alerts, moved in by frame.js */
  body:not(.auth) .rail .gsearch { width: 100%; height: var(--ctl-h); margin: 0; position: relative; }
  body:not(.auth) .rail .gsearch input, body:not(.auth) .rail .gsearch input:focus { position: static; width: 100%; height: var(--ctl-h) !important; min-height: var(--ctl-h) !important; padding: 0 10px 0 32px; color: var(--fg); cursor: text; border-radius: var(--radius-ctl); border: 1px solid var(--line); box-shadow: none;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 10px center; transition: none; }
  body:not(.auth) .rail .gsearch input::placeholder { color: var(--faint); }
  body:not(.auth) .rail .gsearch input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
  body:not(.auth) .rail .gsearch-pop { position: fixed; left: 256px; right: auto; top: 14px; width: min(460px, calc(100vw - 280px)); }
  .sb-actions { display: flex; gap: 6px; align-items: center; }
  body:not(.auth) .rail .quick.clock-btn { flex: 1; min-height: var(--ctl-h); height: var(--ctl-h); padding: 0 10px; border-radius: var(--radius-ctl); font-size: 13px; font-weight: 500; justify-content: center; margin: 0; max-width: none; }
  body:not(.auth) .rail .bell { width: var(--ctl-h); height: var(--ctl-h); min-height: var(--ctl-h); border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-ctl); box-shadow: none; padding: 0; max-width: none; }
  body:not(.auth) .rail .bell:hover { background: var(--surface-2); }
  .rail .bell-n { top: -5px; right: -5px; }
  /* groups */
  .sb-nav { display: grid; gap: 14px; }
  .sb-g { display: grid; gap: 1px; }
  .sb-h { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); padding: 0 8px 4px; }
  .sb-i { display: flex; align-items: center; gap: 9px; min-height: 32px; padding: 0 8px; border-radius: var(--radius-ctl); color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
  .sb-i:hover { background: var(--surface-2); color: var(--fg); }
  .sb-i:active { background: var(--line); }
  .sb-i.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
  .sb-i .fi { opacity: .85; }
  .sb-job .fi { display: none; }
  .sb-job span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 27px; }
  .sb-recent:empty { display: none; }
  .sb-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
  .sb-acct { display: flex; align-items: center; gap: 6px; padding: 0 4px 0 8px; }
  .sb-who { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
  .sb-who a, .sb-who span { color: var(--fg); font-size: 14px; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sb-who small { color: var(--faint); font-size: 12px; }
  body:not(.auth) .rail .signout { height: var(--ctl-h); width: var(--ctl-h); min-height: var(--ctl-h); padding: 0; justify-content: center; border-radius: var(--radius-ctl); box-shadow: none; max-width: none; }
  body:not(.auth) .rail .signout span { display: none; }
  body:not(.auth) .main { padding: 24px 28px 60px; max-width: 1240px; margin-left: auto; margin-right: auto; }
  body:not(.auth) .banner > div { max-width: 1240px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
  .more-sheet, #nav-more { display: none; }
}
body.print-mode .rail, body.print-mode .more-sheet { display: none !important; }
body.print-mode { padding-left: 0 !important; }
@media print { .rail, .more-sheet { display: none !important; } body { padding-left: 0 !important; } }

/* phones: bottom tab bar = the first 4 groups plus More; More opens a sheet with every page */
@media (max-width: 760px) {
  body:not(.auth) .top .nav { border-radius: 0; padding-top: 4px; }
  body:not(.auth) .top .nav a, body:not(.auth) .top .nav .nav-more { flex: 1 1 0; flex-direction: column; gap: 2px; min-height: 52px; min-width: 44px; font-size: 11px; font-weight: 600; border-radius: var(--radius-ctl); color: var(--muted); border: 0; background: none; box-shadow: none; padding: 6px 4px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
  body:not(.auth) .top .nav a.on, body:not(.auth) .top .nav .nav-more.on { color: var(--accent); background: var(--accent-soft); }
  .top .nav .fi { width: 22px; height: 22px; }
  .more-sheet { position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom, 0px)); z-index: 40; padding: 0 10px; }
  .more-sheet[hidden] { display: none; }
  .ms-inner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--float); padding: 8px 12px 12px; max-height: 65vh; overflow-y: auto; display: grid; gap: 8px; }
  .ms-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; }
  .ms-g b { grid-column: 1 / -1; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); padding-top: 6px; }
  .ms-g a, .ms-g button { min-height: 44px; display: flex; align-items: center; padding: 0 10px; border-radius: var(--radius-ctl); color: var(--fg); text-decoration: none; font-size: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: none; justify-content: flex-start; }
  .ms-g a.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-soft); font-weight: 600; }
  .ms-g .ms-out { color: var(--bad); }
}

/* job page: name, status and 4 key numbers, then tabs in 3 groups (Contract, Field, Money) */
.jstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.jstat { background: var(--surface); border: 1px solid var(--card-edge); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 12px 16px; display: grid; gap: 2px; }
.jstat b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.jstat span { font-size: 13px; color: var(--muted); }
.jtabs { display: flex; align-items: flex-end; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.jtabs::-webkit-scrollbar { display: none; }
.jt-group { display: flex; align-items: flex-end; gap: 2px; flex: none; position: relative; padding-top: 16px; }
.jt-gl { position: absolute; top: 0; left: 10px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.jtabs button.jt { border: 0; border-bottom: 2px solid transparent; border-radius: var(--radius-ctl) var(--radius-ctl) 0 0; background: none; box-shadow: none; color: var(--muted); font-weight: 500; min-height: 36px; padding: 0 10px; white-space: nowrap; margin-bottom: -1px; }
.jtabs button.jt:hover { color: var(--fg); background: var(--surface-2); }
.jtabs button.jt.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.jt-pane { display: grid; gap: 18px; min-width: 0; align-content: start; }
.jt-pane[hidden] { display: none; }
.jt-pane > * { min-width: 0; }
@media (max-width: 760px) { .jstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jtabs button.jt { min-height: 44px; } }

/* v3 PR3: Settings = section list + one section per page */
.set-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.set-list { display: grid; gap: 2px; position: sticky; top: 12px; }
.set-i { display: grid; gap: 1px; padding: 8px 12px; border-radius: var(--radius); color: var(--fg); text-decoration: none; }
.set-i:hover { background: var(--surface-2, rgb(0 0 0 / .04)); }
.set-i.on { background: var(--accent-soft, #EDECFA); }
.set-i b { font-size: 14px; font-weight: 600; }
.set-i small { color: var(--muted); font-size: 12px; }
.set-else { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.set-else .sb-h { padding: 4px 12px; }
.set-body { display: grid; gap: 16px; min-width: 0; }
.set-back { display: none; }
.set-save { align-items: center; }
.save-msg { color: var(--muted); font-size: 13px; }
.save-msg.bad { color: var(--bad); }
.jstat small { display: inline; font-size: 11px; opacity: .8; }
@media (max-width: 760px) {
  .set-wrap { grid-template-columns: 1fr; }
  .set-list { position: static; }
  .set-wrap.has-sec .set-list { display: none; }
  .set-wrap:not(.has-sec) .set-body { display: none; }
  .set-back { display: inline-flex; min-height: 44px; align-items: center; color: var(--accent); text-decoration: none; font-weight: 600; }
  .set-i { padding: 12px 14px; min-height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .set-list { gap: 8px; }
  .set-else { border: 0; margin-top: 8px; padding-top: 0; }
}

/* v3 invoice + Home Care: 44 px rating buttons on phone, press state on the selected rating */
@media (max-width: 760px) { .hcb { min-height: 44px; padding: 8px 12px; } }
.hcb:active, .hcb.on:active { filter: brightness(.92); transform: translateY(1px); }

/* v3: an armed "Tap again to ..." button is solid red with a ring and bold text (light and dark), so it cannot be missed */
button.danger.confirm, button.confirm { background: var(--bad); border-color: var(--bad); color: var(--surface); font-weight: 700; box-shadow: 0 0 0 3px var(--bad-soft); }
button.danger.confirm:hover { background: var(--bad); filter: brightness(.95); }
@media (prefers-reduced-motion: no-preference) { button.danger.confirm { animation: confirm-in .16s cubic-bezier(.16,1,.3,1); } }
@keyframes confirm-in { from { transform: scale(.96); } to { transform: none; } }
/* photo upload count ("Uploading 2 of 5...") */
[data-photo-queue].uploading { color: var(--accent); font-weight: 600; }

/* nav rework A: + New menu (sidebar), group chips (phone), page search in the More sheet */
.grp-chips, .sb-new { display: none; }
.sb-new-d { position: relative; }
.sb-new-d summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-height: var(--ctl-h, 36px); border-radius: var(--radius-ctl); background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; }
.sb-new-d summary::-webkit-details-marker { display: none; }
.sb-new-menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; display: grid; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--float); }
.sb-new-menu a { padding: 8px 10px; border-radius: var(--radius-ctl); color: var(--fg); text-decoration: none; font-size: 14px; }
.sb-new-menu a:hover { background: var(--surface-2); }
@media (min-width: 761px) { .sb-new { display: block; } }
@media (max-width: 760px) {
  .grp-chips:not([hidden]) { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 12px 0; }
  .grp-chips a { flex: 0 0 auto; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); text-decoration: none; font-size: 13px; font-weight: 500; }
  .grp-chips a.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-soft); font-weight: 600; }
  .ms-find input { grid-column: 1 / -1; min-height: 44px; }
  .ms-hits { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; }
  .ms-hits a { min-height: 44px; display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-ctl); color: var(--fg); text-decoration: none; font-size: 14px; }
}
body.print-mode .grp-chips { display: none !important; }

/* Slow actions: the control that started one is dimmed and disabled until the server answers (run() in app.js). */
[aria-busy="true"] { opacity: .6; cursor: progress; }

/* Finalize page (Nov 26, 2026): the PDF preview large on the left, the options in a side panel on the right. One column on a phone: options first, preview below. */
.fin-wrap { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.fin-frame { width: 100%; height: 80vh; min-height: 420px; border: 1px solid var(--line, #ccc); border-radius: 3px; background: #fff; }
@media (min-width: 1000px) {
  .fin-wrap { grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); grid-template-areas: "prev side"; }
  .fin-prev { grid-area: prev; position: sticky; top: 8px; }
  .fin-side { grid-area: side; }
  .fin-frame { height: 88vh; }
}


/* App layout A (Nov 26, 2026): page links above the page on every screen size, collapsible left menu */
.grp-chips.on-wide:not([hidden]) { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 12px 0; }
.grp-chips.on-wide a { flex: 0 0 auto; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); text-decoration: none; font-size: 13px; font-weight: 500; }
.grp-chips.on-wide a.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-soft); font-weight: 600; }
@media (min-width: 761px) {
  .grp-chips.on-wide:not([hidden]) { padding: 18px 28px 0; max-width: 1240px; margin: 0 auto; }
  .sb-collapse { background: none; border: 0; cursor: pointer; width: 100%; text-align: left; }
  body.rail-min:not(.auth) { padding-left: 64px; }
  body.rail-min:not(.auth) .rail { width: 64px; padding-left: 8px; padding-right: 8px; }
  body.rail-min .rail .sb-i span, body.rail-min .rail .sb-brand b, body.rail-min .rail .sb-brand .beta-pill, body.rail-min .rail .sb-who, body.rail-min .rail .sb-search, body.rail-min .rail .sb-actions, body.rail-min .rail .sb-new, body.rail-min .rail .sb-recent, body.rail-min .rail .sb-h { display: none; }
  body.rail-min .rail .sb-i { justify-content: center; }
  body.rail-min .rail .sb-collapse .fi { transform: rotate(180deg); }
}
@media (max-width: 760px) { .sb-collapse { display: none; } }

.jtabs .jt-group { padding-top: 0; } .job-actions { margin: 4px 0 10px; flex-wrap: wrap; }
.sched-bad { box-shadow: inset 3px 0 0 #B3261E; }
.gantt { overflow-x: auto; }
.gantt-row { display: flex; align-items: center; min-height: 26px; }
.gantt-label { flex: 0 0 9em; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: .5em; }
.gantt-track { position: relative; flex: 1 1 auto; min-width: 360px; height: 22px; border-left: 1px solid var(--line, #d7ddd4); }
.gantt-head .gantt-track { height: 18px; }
.gantt-tick { position: absolute; top: 0; transform: translateX(-2px); white-space: nowrap; }
.gantt-bar { position: absolute; top: 4px; height: 14px; border-radius: 4px; background: #2E7D5B; }
.gantt-bar.draft { background: repeating-linear-gradient(45deg, #7FB89E, #7FB89E 5px, #B9D8C8 5px, #B9D8C8 10px); }
.gantt-bar.done { background: #9AA5A0; }
.gantt-bar.bad { background: #B3261E; }
.gantt-today { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid #4B3FBF; }
.bd-bar { height: 4px; background: var(--line, #e5e7eb); border-radius: 2px; margin-top: 3px; overflow: hidden; }
.bd-bar i { display: block; height: 100%; background: var(--accent, #4f46e5); }
.bd-bar i.over { background: var(--bad); }
/* Read mode (public/readmode.js): facts as rows, a small Edit button per card */
.rm-card > h2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 28px; }
.rm-rows { margin: 0; display: grid; }
.rm-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 32px; border-bottom: 1px solid var(--line); }
.rm-row:last-child { border-bottom: 0; }
.rm-row dt { color: var(--muted); font-size: 13px; margin: 0; }
.rm-row dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.rm-empty { color: var(--muted); opacity: 0.6; }
.rm-edit-btn { min-height: 28px; padding: 2px 10px; font-size: 13px; background: transparent; border: 1px solid var(--line); color: var(--accent); border-radius: 4px; cursor: pointer; }
.rm-edit-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rm-lock { font-size: 13px; opacity: 0.7; }
.rm-editing { border-color: var(--accent); }
.rm-foot { justify-content: flex-start; }
@media (hover: hover) { .rm-card:not(.rm-editing) .rm-edit-btn { opacity: 0; transition: opacity 120ms; } .rm-card:hover .rm-edit-btn, .rm-card:focus-within .rm-edit-btn, .rm-edit-btn:focus-visible { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rm-edit-btn { transition: none !important; } }
@media (max-width: 600px) { .rm-row { grid-template-columns: 1fr; gap: 0; padding: 4px 0; } }
.rm-text { white-space: pre-wrap; font-size: 14px; overflow-wrap: anywhere; min-height: 32px; }
.dash3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.dcol { display: grid; gap: 14px; min-width: 0; align-content: start; }
.dcol:empty { display: none; }
@media (min-width: 1100px) { .dash3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.linkish { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.rm-bulk { align-items: end; margin-bottom: 8px; }
.rm-inline { display: inline-flex; gap: 6px; align-items: center; }
@media (hover: hover) { .rm-inline-btn { opacity: 0; transition: opacity 120ms; } *:hover > .rm-inline-btn, .rm-inline-btn:focus-visible { opacity: 1; } }
.rm-readgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.rm-h2 > .rm-edit-btn { margin-left: auto; }
.set-form.rm-card > h2.rm-h2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* Look v4 (Nov 27, 2026): 4px corners, tighter spacing, denser tables. Pills and avatars stay round. */
.panel { padding: 12px 14px; gap: 8px; }
.page-head { margin-bottom: 4px; }
th, td { padding: 4px 8px; }
.list > a, .list > div { padding-top: 7px; padding-bottom: 7px; }
.tile, .jstat, .lcard { padding: 10px 12px; }
.lane { padding: 10px; gap: 8px; }
.form-grid { gap: 8px 12px; }

/* Documents tab and shared document editor (Nov 27, 2026) */
.dd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 28px; padding: 2px 10px; border-radius: 999px; font-size: 13px; background: var(--surface); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.dd-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.dd-tpl { display: grid; gap: 2px; text-align: left; padding: 10px 12px; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); text-decoration: none; }
.dd-tpl:hover { border-color: var(--accent); background: var(--accent-soft); }
.dd-table td, .dd-table th { white-space: nowrap; }
.dd-table td:nth-child(3) { white-space: normal; min-width: 160px; }
.dd-more > summary { cursor: pointer; font-weight: 600; }
.dd-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
@media (min-width: 1000px) { .dd-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .dd-side { position: sticky; top: 72px; } }
.dd-edit { display: grid; gap: 8px; }
.dd-paper { background: #fff; color: #111; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; font-size: 13px; display: grid; gap: 10px; min-height: 420px; }
.dd-paper table { width: 100%; border-collapse: collapse; }
.dd-paper th { background: #f4f4f5; color: #444; position: static; }
.dd-ph, .dd-pbill { display: flex; justify-content: space-between; gap: 16px; }
.dd-pt { text-align: right; }
.dd-ptot { justify-self: end; min-width: 220px; display: grid; gap: 2px; }
.dd-ptot > div { display: flex; justify-content: space-between; gap: 16px; }
.dd-grand { border-top: 2px solid #111; padding-top: 4px; font-size: 15px; }
.dd-pnotes { border-top: 1px solid #ddd; padding-top: 8px; }
.snap-cover { width: 100%; max-height: 180px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.oh-tile b { font-size: 1.5rem; }
.oh-tiles { margin-bottom: 8px; }
.dd-edit div.f { display: grid; gap: 2px; align-content: start; }
.dd-edit .f > span { font-size: 13px; color: var(--muted); }
.refresh-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: var(--radius-sm); color: var(--muted); border: 1px solid transparent; background: transparent; flex: none; }
.refresh-btn:hover { color: var(--fg); background: var(--surface-2); border-color: var(--line); }
.refresh-btn[aria-busy=true] svg { animation: refresh-spin .8s linear infinite; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }
body.auth .refresh-btn { display: none; }

.doc .disc, .doc .disc p, .doc .disc .sl { font-size: 12pt; line-height: 1.4; }
.doc .disc p { margin: 0 0 10px; }
.doc .disc .disc-h { font-size: 12pt; }
.rm-add-btn { min-height: 36px; padding: 4px 14px; font-size: 14px; background: transparent; border: 1px dashed var(--accent); color: var(--accent); border-radius: 6px; cursor: pointer; }
.rm-add-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rm-addrow { margin: 8px 0; }
form[data-rm-add] { border-left: 3px solid var(--accent); padding-left: 10px; margin: 8px 0; }
.rm-addfoot { margin-top: 8px; }

/* Budget items grouped (Nov 28): group rows, indented items, group picker, narrow screens */
.bdi-read .bdi-grp td { background: var(--surface-2); border-top: 1px solid var(--line); }
.bdi-read .bdi-tog { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; min-height: 32px; box-sizing: border-box; }
.bdi-read .bdi-tog:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bdi-read .bdi-name { padding-left: 22px; }
.bdi-read { min-width: 640px; }
#bdi-new-group { min-width: 200px; text-overflow: ellipsis; }
@media (max-width: 760px) { .bdi-read { min-width: 560px; } #bdi-new-group, #bdi-new-group-name { flex-basis: 100
/* Budget items grouped (Nov 28): group rows, indented items, group picker, narrow screens */
.bdi-read .bdi-grp td { background: var(--surface-2); border-top: 1px solid var(--line); }
.bdi-read .bdi-tog { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; min-height: 32px; box-sizing: border-box; }
.bdi-read .bdi-tog:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bdi-read .bdi-name { padding-left: 22px; }
.bdi-read { min-width: 640px; }
#bdi-new-group { min-width: 200px; text-overflow: ellipsis; }
@media (max-width: 760px) { .bdi-read { min-width: 560px; } #bdi-new-group, #bdi-new-group-name { flex-basis: 100% !important; } }

/* One document page (public/tdocs.js): the words are in the document, editable in place */
.tdp-b { position: relative; margin: 2px 0; }
.tdp-t { width: 100%; box-sizing: border-box; font: inherit; line-height: 1.45; border: 1px dashed transparent; background: transparent; resize: vertical; padding: 4px 6px; color: inherit; overflow: hidden; }
.tdp-t:hover, .tdp-t:focus { border-color: #b8c4cc; background: #fbfdff; }
.tdp-h { font-weight: 700; text-transform: uppercase; }
.tdp-x { display: block; font-size: 12px; opacity: .65; }
.tdp-blanks { border: 1px solid #d5dde3; border-radius: 6px; padding: 8px 12px; margin: 8px 0 14px; background: #f7fafc; }
@media print { .no-print, .tdp-x { display: none !important; } .tdp-t { border: 0 !important; } }
