:root {
  color-scheme: dark;
  --job-chrome-h: 9.0625rem;
  --bg: #17191b;
  --surface: #292c30;
  --surface-raised: #32363b;
  --line: rgba(255, 255, 255, 0.14);
  --red: #861722;
  --accent: #a32e38;
  --ink: #17191b;
  --paper: #f7f6f4;
  --text: #ffffff;
  --text-muted: #c5bfb8;
  --text-soft: #9a9590;
  --copper: #d4a574;
  --ok: #4caf7a;
  --warn: #e8c060;
  --vis-slate: #8b939c;
  --vis-error: #e07070;
  --list-auto: #60a5fa;
  --list-property: #f4b860;
  --list-customer: #5eead4;
  --list-date: #c4b5fd;
  --status-progress: #60a5fa;
  --status-quote: #f4b860;
  --status-invoiced: #c4b5fd;
  --status-completed: #5eead4;
  --status-paid: #4caf7a;
  --card: var(--surface);
  --fab-circle: 52px;
  --fab-icon: 24px;
  --fab-stack-gap: 8px;
  --fab-right: 12px;
  --tabbar-h: 56px;
  --vv-keyboard-gap: 0px;
  --job-dropdown-gutter: 12px;
  --job-dropdown-top: max(72px, env(safe-area-inset-top));
  --job-dropdown-bottom: calc(var(--tabbar-h) + 8px + env(safe-area-inset-bottom));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { font-size: 20px; }

body {
  margin: 0 auto;
  width: min(720px, 100vw);
  max-width: 720px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(18px, 4.2vw, 20px);
  line-height: 1.45;
  padding: 0 12px calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom));
}
body.action-dock-visible {
  padding-bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom));
}

h1 { font-size: clamp(24px, 5.5vw, 28px); line-height: 1.2; margin: 6px 0 8px; font-weight: 800; }
h2, .section-head { font-size: clamp(20px, 4.8vw, 24px); line-height: 1.25; margin: 16px 0 8px; font-weight: 800; }
h3 { font-size: clamp(19px, 4.4vw, 22px); line-height: 1.3; margin: 12px 0 6px; font-weight: 800; }
p, li, label, a, button, input, select, textarea { font-size: inherit; }
p { margin: 6px 0; }

a { color: var(--copper); font-weight: 700; text-decoration: none; }
a:hover { color: #e8d4b8; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { left: 8px; }

.top {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: calc(6px + env(safe-area-inset-top, 0px)) 0 8px;
  margin: 0 -4px;
}
.brand {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  font-size: clamp(18px, 4.2vw, 22px);
  font-weight: 800;
  line-height: 1.2;
}
.save-chip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.top-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.top button,
.top-search,
.job-sticky-search {
  margin: 0;
  width: auto;
  min-height: 44px;
  min-width: 44px;
  padding: 8px;
  font-size: 16px;
}
.top-search,
.job-sticky-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  touch-action: manipulation;
}
body.search-screen .top-search {
  display: none;
}
.top #undo-btn {
  min-width: auto;
  padding: 8px 10px;
  font-size: 15px;
}
.icon-search {
  width: 22px;
  height: 22px;
  display: block;
}

body.job-tools .top {
  display: none;
}
body.job-tools {
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--job-chrome-h));
}
body.job-tools #live {
  margin-top: 4px;
}

button, .btn {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 6px 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
}
.btn.is-busy { opacity: 0.92; cursor: wait; }
.settings-save-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 14px 0 0;
}
.settings-save-status {
  margin: 0;
  font-size: clamp(18px, 4.2vw, 22px);
  line-height: 1.35;
  flex: 1 1 12rem;
}
.settings-save-status--ok { color: #9ae6b4; font-weight: 700; }
.settings-save-status--bad { color: #feb2b2; font-weight: 700; }
.settings-save-status--busy { color: var(--copper); font-weight: 700; }
.cap-save-error { margin: 8px 0 4px; font-size: 16px; }
.cap-live-video {
  width: 100%;
  max-height: 52vh;
  display: block;
  background: #000;
  object-fit: cover;
  border-radius: 10px;
}
.cap-recording-indicator {
  font-weight: 700;
  font-size: 18px;
  color: var(--red);
  margin: 8px 0;
}
.cap-rec-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--red);
  vertical-align: middle;
  animation: cap-rec-pulse 1.1s ease-in-out infinite;
}
@keyframes cap-rec-pulse {
  50% { opacity: 0.35; }
}
.cap-diag { margin-top: 12px; font-size: 15px; }
.cap-diag-dl { display: grid; grid-template-columns: 10.5em 1fr; gap: 4px 10px; margin: 8px 0 0; }
.cap-diag-dl dt { font-weight: 700; margin: 0; color: var(--text-muted); }
.cap-diag-dl dd { margin: 0; font-family: ui-monospace, Consolas, monospace; }
.btn.primary, button.primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn.secondary {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--line);
}
button:disabled { opacity: 0.35; cursor: not-allowed; }

input, select, textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--text);
  font: inherit;
}
textarea { min-height: 100px; resize: vertical; }
label { display: block; font-weight: 700; margin-top: 8px; color: var(--text-muted); font-size: 16px; }
select { color-scheme: dark; }

.card, .entry, .panel, .warn-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
}
.card--current { margin-top: 4px; }
.intake-step {
  margin: 0 0 14px;
  padding: 0;
}
.intake-step .section-head {
  margin-bottom: 8px;
}
.intake-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.intake-head-row h1 {
  margin: 0;
  flex: 1 1 auto;
}
.search-inline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.search-inline-row input[type="search"],
.search-inline-row .contact-search-input {
  flex: 1 1 auto;
  min-width: 0;
}
.intake-customer-search {
  display: block;
  width: 100%;
  min-width: 0;
}
.intake-customer-search .search-inline-row {
  gap: 6px;
  min-width: 0;
}
.intake-customer-search input[type="search"] {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  text-overflow: ellipsis;
}
.intake-customer-search .search-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  margin: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 18px;
  line-height: 1.1;
}
.btn--compact {
  font-size: 20px;
  padding: 8px 12px;
  min-height: 44px;
}
.intake-step__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--copper);
  font-size: 14px;
  font-weight: 800;
  vertical-align: middle;
}
.intake-customer-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 10px;
}
.intake-customer-pick {
  justify-content: flex-start;
  text-align: left;
}
.intake-customer-selected p {
  margin: 4px 0;
}
.jobs-intake-btn {
  width: 100%;
  font-size: clamp(22px, 5vw, 28px);
  min-height: 52px;
  margin: 0 0 10px;
}
.jobs-search-row {
  display: block;
  margin: 0 0 8px;
  width: 100%;
  max-width: 100%;
}
.jobs-filter-row {
  margin: 0 0 10px;
}
.jobs-filter-row select {
  width: 100%;
  max-width: 100%;
  margin: 0;
}
.search-field-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.search-field-wrap input[type="search"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  min-height: 64px;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-right: 2.85rem;
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1.3;
}
.search-field-wrap input[type="search"]::-webkit-search-decoration,
.search-field-wrap input[type="search"]::-webkit-search-cancel-button,
.search-field-wrap input[type="search"]::-webkit-search-results-button,
.search-field-wrap input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.search-empty {
  margin: 10px 0;
  font-size: 22px;
}
.contact-search-field {
  margin: 8px 0 10px;
}
#jobs-search-results,
#search-results-host {
  width: 100%;
  min-width: 0;
}
.search-field-clear {
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.search-field-clear[hidden] {
  display: none;
}
.search-field-clear:hover,
.search-field-clear:focus-visible {
  color: var(--text);
  background: var(--surface-raised);
}
.jobs-aux { margin-top: 8px; }
.home-new-job {
  margin-top: 0;
  margin-bottom: 10px;
  min-height: 52px;
  font-size: clamp(18px, 4.2vw, 20px);
}
.jobs-new-job { margin-top: 4px; margin-bottom: 12px; }
.home-recent { margin-top: 4px; }
.section-head--secondary {
  font-size: clamp(18px, 4vw, 20px);
  color: var(--text-muted);
  font-weight: 700;
  margin: 12px 0 6px;
}
.home-recent .link-card--compact {
  margin: 6px 0;
  padding: 10px 12px;
}
.home-recent .link-card--compact strong {
  font-size: 17px;
  font-weight: 700;
}
.home-view-all { margin-top: 4px; }
.home-job-title { font-size: clamp(22px, 5vw, 26px); margin: 4px 0; }
.meta-line { font-size: 15px; color: var(--text-soft); margin: 0 0 6px; }
.link-card { display: block; color: var(--text); text-decoration: none; }
.link-card strong { color: var(--text); }

.list-card {
  padding: 10px 12px 10px 14px;
  border-left-width: 4px;
  border-left-style: solid;
}
.list-card--auto { border-left-color: var(--list-auto); }
.list-card--property { border-left-color: var(--list-property); }
.list-card--customer { border-left-color: var(--list-customer); }
.list-card--unsorted { border-left-color: var(--vis-slate); }
.list-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px;
}
.list-card__type,
.list-card__date {
  font-size: clamp(13px, 3.2vw, 14px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--text-soft);
}
.list-card__type--auto { color: var(--list-auto); }
.list-card__type--property { color: var(--list-property); }
.list-card__type--customer { color: var(--list-customer); }
.list-card__date { color: var(--list-date); }
.list-card__status,
.list-card__time-status {
  font-size: clamp(12px, 3vw, 13px);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: right;
  flex: 0 0 auto;
  max-width: 52%;
  line-height: 1.25;
  color: var(--text-muted);
}
.list-card__status--progress { color: var(--status-progress); }
.list-card__status--quote { color: var(--status-quote); }
.list-card__status--invoiced { color: var(--status-invoiced); }
.list-card__status--completed { color: var(--status-completed); }
.list-card__status--paid { color: var(--status-paid); }
.list-card__status--overdue { color: var(--vis-error); }
.list-card__status--info { color: var(--text-muted); }
.list-card__time-status { color: var(--text-muted); }
.list-card__money {
  color: var(--copper);
  font-weight: 800;
}
.list-card__date-inline {
  color: var(--list-date);
  font-weight: 700;
}
.list-card__sep {
  color: var(--text-soft);
  font-weight: 400;
}
.list-card__work--clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.list-card__work--muted {
  color: var(--text-muted);
  font-size: 0.92em;
}
.receivable-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin-top: 10px;
}
.receivable-card__actions label {
  flex: 1 1 100%;
}
.receivable-promise { margin-top: 4px; }
.list-card__primary {
  margin: 0 0 4px;
  font-size: clamp(20px, 4.8vw, 24px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.list-card__work,
.list-card__event {
  margin: 0 0 4px;
  font-size: clamp(16px, 3.8vw, 18px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.list-card__foot {
  margin: 4px 0 0;
  font-size: clamp(15px, 3.6vw, 17px);
  line-height: 1.3;
}
.list-card__customer {
  font-weight: 700;
  color: var(--list-customer);
}
.list-card__subject {
  font-weight: 700;
}
.list-card__subject--auto { color: var(--list-auto); }
.list-card__subject--property { color: var(--list-property); }
.list-card.list-card--cal .list-card__event { color: var(--text); font-weight: 700; }

.cal-page { max-width: 720px; }
.cal-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 16px;
}
.cal-toolbar__views {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.cal-toolbar__month {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.cal-toolbar__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.cal-view-btn,
.cal-toolbar-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 6px;
  font-size: clamp(14px, 3.2vw, 16px);
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
}
.cal-toolbar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  line-height: 1.1;
  text-align: center;
}
.cal-toolbar-btn .cal-toolbar__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.cal-toolbar-btn__label {
  display: block;
  width: 100%;
  white-space: normal;
  hyphens: auto;
}
.cal-view-btn.is-active,
.cal-toolbar-btn.is-active {
  border-color: var(--accent);
  background: rgba(212, 165, 116, 0.14);
}
.cal-month-nav__label {
  margin: 0;
  font-size: clamp(18px, 4.2vw, 22px);
  font-weight: 700;
  text-align: center;
}
.cal-intro { margin: 0 0 12px; color: var(--text-muted); }
.cal-grid-wrap { overflow-x: auto; margin-bottom: 16px; }
.cal-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  table-layout: fixed;
}
.cal-grid__wd {
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  padding: 4px 0;
}
.cal-day {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 6px 4px 10px;
  position: relative;
  cursor: pointer;
  font-size: clamp(15px, 3.6vw, 17px);
  font-weight: 700;
}
.cal-day--outside { opacity: 0.45; }
.cal-day.is-today { border-color: var(--accent); }
.cal-day.is-selected {
  background: rgba(212, 165, 116, 0.18);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.cal-day__num { display: block; line-height: 1.2; }
.cal-day__mark {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--accent);
}
.cal-day-panel { margin-top: 8px; }
.cal-day-panel__title {
  margin: 0 0 12px;
  font-size: clamp(18px, 4.2vw, 22px);
  font-weight: 700;
}
.cal-day-panel__cards .list-card { margin-bottom: 10px; }
.cal-day-empty { margin: 0; }
.cal-agenda .list-card { margin-bottom: 10px; }

.entry.ai { border-color: rgba(212, 165, 116, 0.55); }

.entry--vis-customer,
.entry--vis-private,
.entry--vis-pending,
.entry--vis-error {
  border-left-width: 6px;
  border-left-style: solid;
}
.entry--vis-customer {
  border-left-color: var(--ok);
  background: linear-gradient(90deg, rgba(76, 175, 122, 0.14) 0%, var(--surface) 22%);
}
.entry--vis-private {
  border-left-color: var(--vis-slate);
  background: linear-gradient(90deg, rgba(139, 147, 156, 0.18) 0%, var(--surface) 22%);
}
.entry--vis-pending {
  border-left-color: var(--warn);
  background: linear-gradient(90deg, rgba(232, 192, 96, 0.12) 0%, var(--surface) 22%);
  outline: 1px dashed rgba(232, 192, 96, 0.35);
  outline-offset: -1px;
}
.entry--vis-error {
  border-left-color: var(--vis-error);
  background: linear-gradient(90deg, rgba(224, 112, 112, 0.14) 0%, var(--surface) 22%);
}
.entry--compact.entry--vis-customer,
.entry--compact.entry--vis-private,
.entry--compact.entry--vis-pending,
.entry--compact.entry--vis-error {
  background-color: var(--surface-raised);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, transparent 28%);
}
.entry-vis-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: clamp(16px, 4vw, 18px);
  line-height: 1.35;
  background: rgba(0, 0, 0, 0.2);
}
.entry-vis-banner__label { font-weight: 800; margin-right: 6px; }
.entry-vis-banner__detail { font-weight: 600; color: var(--text-muted); }
.entry-vis-banner--customer { color: #dff5e8; }
.entry-vis-banner--private { color: #e8eaed; }
.entry-vis-banner--pending { color: #fff4d6; }
.entry-vis-banner--error { color: #ffd8d8; }
.entry-kind {
  display: inline-block;
  margin: 0 2px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: clamp(15px, 3.6vw, 17px);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid var(--line);
  vertical-align: middle;
}
.entry-kind--photo { border-color: rgba(147, 197, 253, 0.5); color: #c7ddfc; }
.entry-kind--video { border-color: rgba(251, 191, 36, 0.55); color: #fde4a8; }
.entry-kind--note { border-color: rgba(196, 181, 253, 0.5); color: #e4dcff; }
.entry-kind--other { color: var(--text-muted); }
.entry--kind-photo { border-top: 2px solid rgba(147, 197, 253, 0.35); }
.entry--kind-video { border-top: 2px solid rgba(251, 191, 36, 0.35); }
.entry--kind-note { border-top: 2px solid rgba(196, 181, 253, 0.35); }
.entry-vis-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}
.timeline-vis-counts {
  margin: 6px 0 10px;
  font-size: clamp(16px, 4vw, 18px);
  font-weight: 700;
}

.cap-audience {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  border-left: 6px solid var(--vis-slate);
  background: linear-gradient(90deg, rgba(139, 147, 156, 0.12) 0%, var(--surface) 24%);
}
.cap-audience__legend {
  font-size: clamp(18px, 4.2vw, 20px);
  font-weight: 800;
  margin: 0 0 4px;
  padding: 0;
  color: var(--text);
}
.cap-audience__hint {
  margin: 0 0 8px;
  font-size: 15px;
}
.cap-audience-upload {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}
.cap-audience-warn {
  margin: 8px 0 0;
  font-size: 15px;
}
.cap-audience__choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.cap-audience__btn {
  margin: 0;
  min-height: 52px;
  padding: 10px 12px;
  text-align: left;
  border-radius: 10px;
  border: 2px solid var(--line);
  background: var(--surface-raised);
}
.cap-audience__btn--on.cap-audience__btn--private {
  border-color: var(--vis-slate);
  background: linear-gradient(90deg, rgba(139, 147, 156, 0.22) 0%, var(--surface-raised) 40%);
}
.cap-audience__btn--on.cap-audience__btn--customer {
  border-color: var(--ok);
  background: linear-gradient(90deg, rgba(76, 175, 122, 0.2) 0%, var(--surface-raised) 40%);
}
.cap-audience__label {
  display: block;
  font-size: clamp(18px, 4.2vw, 20px);
  font-weight: 800;
}
.cap-audience__sub {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}
.kicker { font-weight: 800; color: var(--copper); margin: 0 0 4px; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.muted { color: var(--text-muted); }
.warn, .warn-box {
  background: rgba(138, 90, 0, 0.22);
  border-color: rgba(232, 192, 96, 0.35);
  color: var(--text);
}
.warn-box h2 { font-size: 20px; margin-top: 0; }
.tag-line {
  margin: 8px 0;
  padding: 8px 10px;
  font-size: 15px;
  border-radius: 10px;
}

.live {
  margin: 6px 0;
  padding: 4px 0;
  font-weight: 700;
  font-size: 16px;
}
.live.bad { color: #f08a8a; }
.live.warn { color: var(--warn); }
.live.ok { color: var(--ok); }
.live-link {
  margin-left: 0.35rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tag {
  display: inline-block;
  margin: 2px 6px 2px 0;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
}
.tag.demo { background: rgba(138, 90, 50, 0.45); color: #fff; }
.tag.ok { background: rgba(31, 107, 58, 0.55); color: #fff; }
.who { font-weight: 800; margin-bottom: 4px; }

.media img, .media video, .preview img, .preview video, video, img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}
.video-decode-warn { margin: 8px 0 0; font-size: 16px; }
.line { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; }

.doc-box { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }

.doc-editor {
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
}
.doc-editor--tab {
  padding-bottom: 0;
  margin: 0 0 6px;
}
.doc-editor--tab .quote-actions-row.job-tab-add-row {
  margin-bottom: 6px;
}
.doc-tab-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(6.5rem, 42%);
  gap: 8px 12px;
  margin: 0 0 10px;
  align-items: start;
}
.doc-tab-summary__main { min-width: 0; }
.doc-tab-summary__aside {
  min-width: 0;
  text-align: right;
}
.doc-tab-summary__total {
  margin: 0 0 6px;
  font-size: clamp(22px, 4.5vw, 28px);
  font-weight: 700;
  line-height: 1.15;
}
.doc-tab-summary__total strong { color: var(--text); font-weight: 800; }
.doc-tab-summary__breakdown {
  margin: 0;
  font-size: clamp(16px, 3.6vw, 18px);
  line-height: 1.3;
}
.invoice-tab-card__status-row--aside {
  justify-content: flex-end;
  margin-bottom: 4px;
}
@media (min-width: 560px) {
  .doc-tab-summary {
    grid-template-columns: 1fr minmax(8.5rem, 38%);
  }
  .invoice-tab-card__status-row--aside {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
}
.invoice-tab-card__status-row--aside {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.doc-editor__total {
  margin: 4px 0 8px;
  font-size: 28px;
}
.doc-editor__total strong { color: var(--text); }
.doc-unsaved {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 8px;
  background: rgba(138, 90, 0, 0.35);
  color: var(--warn);
}

.doc-actions { margin-top: 4px; }
.doc-actions__label {
  margin: 10px 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
}
.doc-actions__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 6px;
  max-width: 100%;
}
.doc-actions__row--add .btn--compact {
  flex: 1 1 calc(33.333% - 6px);
  min-width: 0;
  width: auto;
  margin: 0;
  min-height: 52px;
  padding: 8px 4px;
  font-size: 22px;
  line-height: 1.15;
  background: var(--surface-raised);
  white-space: normal;
}
.doc-actions__primary { margin: 10px 0 6px; }
.doc-actions__primary .btn.primary {
  width: 100%;
  margin: 0;
  min-height: 52px;
}
.doc-actions__primary .btn--quiet {
  width: 100%;
  margin: 8px 0 0;
  min-height: 44px;
  background: transparent;
  border-color: var(--line);
  color: var(--text-muted);
  font-weight: 700;
}
.doc-actions__secondary {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.doc-actions__secondary .btn--secondary-action {
  width: 100%;
  margin: 0 0 8px;
  min-height: 48px;
  background: var(--surface);
}
.doc-versions { margin: 0; }
.doc-approval {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(232, 192, 96, 0.28);
  border-radius: 12px;
  background: rgba(138, 90, 0, 0.12);
}
.doc-approval__title {
  margin: 0 0 8px;
  font-size: clamp(19px, 4.4vw, 22px);
}
.doc-approval__status {
  margin: 0 0 6px;
  font-size: 17px;
}
.doc-approval__note {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.4;
}
.doc-actions__approval .btn--approval {
  width: 100%;
  margin: 0 0 8px;
  min-height: 48px;
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.18);
}
.doc-actions__approval .btn--approval:last-child { margin-bottom: 0; }
.doc-line {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
}
.doc-line__row1 {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.doc-line__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 28px;
  text-align: center;
}
.doc-line__desc-wrap { flex: 1 1 auto; min-width: 0; }
.doc-line__meta {
  display: inline-block;
  margin: 0 0 4px;
  font-size: clamp(16px, 3.6vw, 18px);
  font-weight: 800;
  padding: 2px 8px;
}
.doc-line__desc { display: block; margin: 0; font-weight: 400; }
.doc-line__desc input {
  margin: 0;
  min-height: 44px;
  padding: 8px 10px;
  font-size: clamp(17px, 4vw, 19px);
  word-wrap: break-word;
}
.doc-line__row2 {
  display: grid;
  grid-template-columns: minmax(4.5rem, 0.85fr) minmax(5.5rem, 1fr) minmax(6rem, 1.15fr) 44px;
  gap: 6px;
  align-items: end;
}
.doc-line__field { display: block; margin: 0; min-width: 0; font-weight: 700; }
.doc-line__lbl {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 2px;
}
.doc-line__field input {
  margin: 0;
  min-height: 48px;
  padding: 8px 8px;
  font-size: 22px;
}
.doc-line__field--qty input { text-align: center; }
.doc-line__field--price input { text-align: right; }
.doc-line__row-labor {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin: 8px 0 4px;
}
.doc-line__row-labor .doc-line__select,
.doc-line__row-labor input {
  min-height: 44px;
  font-size: 20px;
  width: 100%;
}
.doc-line__same-prev {
  min-height: 44px;
  font-size: 18px;
  justify-self: start;
}
@media (min-width: 400px) {
  .doc-line__row-labor {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .doc-line__field--stage { grid-column: 1 / -1; }
}
.doc-line__total {
  margin: 0;
  min-width: 0;
  font-weight: 800;
  font-size: clamp(15px, 3.6vw, 17px);
  line-height: 1.2;
  color: var(--text);
}
.doc-line__total [data-line-total-value] {
  display: block;
  margin-top: 2px;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.doc-line__trash {
  width: 44px;
  height: 44px;
  min-width: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(163, 46, 56, 0.55);
  border-radius: 10px;
  background: var(--surface);
  color: #f0a0a6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.doc-line__trash:active { background: rgba(134, 23, 34, 0.35); }
.doc-line__trash-icon { width: 22px; height: 22px; }

.job-dash-head { margin: 6px 0 10px; padding: 10px 12px; }
.job-dash-vehicle {
  margin: 0 0 4px;
  font-size: clamp(20px, 5vw, 24px);
  font-weight: 800;
  line-height: 1.2;
}
.job-dash-meta { margin: 0 0 10px; font-size: 16px; color: var(--text-muted); }
.job-dash-status { color: var(--text); font-weight: 700; }
.job-dash-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
}
.job-dash-actions .btn,
.job-utility .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  flex: 1 1 6rem;
  min-height: 44px;
  margin: 0;
}
.job-utility { margin: 0 0 10px; }
.job-utility-fold { margin: 0 0 10px; }
.job-sticky-undo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
}
.job-dash-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 5rem;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.job-dash-cap {
  flex: 1 1 auto;
  margin: 0;
  min-height: 44px;
  width: auto;
}
.job-dash-next { margin: 0 0 4px; font-size: 15px; }
.job-dash-timeline { margin: 8px 0 12px; }
.job-dash-timeline .section-head { margin-top: 0; }
.job-dash-timeline__summary {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 8px;
  background: var(--surface);
}
.job-timeline-more {
  display: inline-block;
  margin: 8px 0 0;
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(134, 23, 34, 0.55);
  background: var(--surface-raised);
  color: var(--text);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  width: 100%;
}
.job-timeline-more:active { background: rgba(134, 23, 34, 0.22); }
.job-timeline-full .entry { margin: 10px 0; }
/* Inspection / Repairs tabs: visibility badge only (no duplicate left rail). */
.job-timeline-full--findings .entry--vis-customer,
.job-timeline-full--findings .entry--vis-private,
.job-timeline-full--findings .entry--vis-pending,
.job-timeline-full--findings .entry--vis-error,
.job-timeline-full--status .entry--vis-customer,
.job-timeline-full--status .entry--vis-private,
.job-timeline-full--status .entry--vis-pending,
.job-timeline-full--status .entry--vis-error {
  border-left-width: 0;
  border-left-color: transparent;
  background: var(--surface);
  outline: none;
}
.job-timeline-full--findings .entry--compact.entry--vis-customer,
.job-timeline-full--findings .entry--compact.entry--vis-private,
.job-timeline-full--findings .entry--compact.entry--vis-pending,
.job-timeline-full--findings .entry--compact.entry--vis-error,
.job-timeline-full--status .entry--compact.entry--vis-customer,
.job-timeline-full--status .entry--compact.entry--vis-private,
.job-timeline-full--status .entry--compact.entry--vis-pending,
.job-timeline-full--status .entry--compact.entry--vis-error {
  background-color: var(--surface-raised);
  background-image: none;
}
.job-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.job-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 72px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.job-tile:active, .job-tile:hover { background: var(--surface-raised); }
.job-tile__label {
  font-size: clamp(18px, 4.5vw, 20px);
  font-weight: 800;
  line-height: 1.15;
}
.job-tile__summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.25;
}
.job-dash-details { margin: 10px 0; }
.entry--compact {
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
}
.timeline-compact__meta { margin: 0 0 4px; font-size: 14px; color: var(--text-soft); }
.timeline-compact__text { margin: 0; font-size: 17px; line-height: 1.35; }
.timeline-compact__menu { margin-top: 6px; font-size: 14px; }
.timeline-compact__menu summary { font-weight: 700; cursor: pointer; }
@media (max-width: 420px) {
  .doc-line__row2 {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "qty price"
      "total trash";
  }
  .doc-line__field--qty { grid-area: qty; }
  .doc-line__field--price { grid-area: price; }
  .doc-line__total { grid-area: total; align-self: center; }
  .doc-line__trash { grid-area: trash; justify-self: end; }
}

.job-tab-add-row.cap-direct-bar,
.job-tab-add-row.quote-actions-row,
.cap-direct-bar,
.cap-bar.cap-direct-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
  width: 100%;
  max-width: 100%;
}
.cap-direct-bar--findings { margin-top: 0; }
.cap-bar--home { margin: 10px 0 8px; }
.cap-direct-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  height: 48px;
  min-width: 0;
  margin: 0;
  padding: 8px 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: clamp(14px, 3.2vw, 16px);
  text-align: center;
  line-height: 1.1;
  width: auto;
  cursor: pointer;
}
.cap-direct-btn--photo { border-color: rgba(147, 197, 253, 0.45); }
.cap-direct-btn--video { border-color: rgba(251, 191, 36, 0.45); }
.cap-direct-btn--note { border-color: rgba(196, 181, 253, 0.45); }
.cap-direct-btn:active { background: #6b1219; }
.cap-direct-btn span { color: #fff; }
.cap-direct-btn .cap-icon {
  width: 22px;
  height: 22px;
  color: #fff;
  flex-shrink: 0;
}
.cap-icon {
  width: 24px;
  height: 24px;
  color: #e8a0a8;
  flex-shrink: 0;
}
.cap-quick-menu {
  width: min(100vw - 24px, 360px);
  max-width: 100%;
  box-sizing: border-box;
}
.cap-quick-menu__bar {
  margin: 0 0 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid rgba(134, 23, 34, 0.35);
}
.identity-call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 4px 0 10px;
  font-size: clamp(18px, 4.2vw, 22px);
}
.identity-call__num {
  color: var(--muted);
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.identity-call--none { margin: 4px 0 8px; }
.identity-field--full { display: block; width: 100%; }
.job-identity-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 8px;
  width: 100%;
}
.job-identity-fields-grid label,
.job-header-toolbar__identity .job-identity-fold__body label {
  margin: 0;
  min-width: 0;
}
.job-identity-fields-grid input,
.job-identity-fields-grid select,
.job-header-toolbar__identity .job-identity-fold__body input,
.job-header-toolbar__identity .job-identity-fold__body select {
  width: 100%;
  max-width: 100%;
}
.job-header-toolbar__identity .job-identity-fold__body .identity-plate-summary {
  margin: 2px 0 4px;
}
.job-header-toolbar__identity .job-identity-fold__body .btn {
  width: 100%;
  margin: 4px 0 0;
}
@media (max-width: 480px) {
  .job-header-toolbar__identity[open] > .job-identity-fold__body .btn.primary {
    position: sticky;
    bottom: 0;
    z-index: 1;
    margin-top: 4px;
    background: var(--surface-raised);
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.28);
  }
}
.job-header-toolbar__identity .job-identity-fold__body #vin-result {
  margin: 4px 0 0;
}
#cap-text,
.home-cap-note {
  min-height: 88px;
  margin-top: 4px;
  background: var(--bg);
  border-color: var(--line);
}
.home-cap-note { margin-bottom: 4px; }
.cap-job-pick {
  margin: 12px 0 8px;
}
.cap-job-pick__title {
  margin: 0 0 6px;
  font-size: clamp(20px, 4.8vw, 24px);
  font-weight: 700;
}
.cap-job-selected {
  margin: 0 0 8px;
  font-size: clamp(16px, 3.8vw, 18px);
}
.cap-job-selected__id { font-weight: 500; }
.sheet .cap-jobs-list {
  max-height: min(42dvh, 360px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 4px;
  padding-right: 2px;
}
.sheet .cap-jobs-list .jobs-filter-row { margin: 6px 0 8px; }
.sheet .cap-jobs-list .list-card,
.sheet #cap-jobs-search-results .list-card {
  width: 100%;
  text-align: left;
}
.list-card--pick {
  display: block;
  width: 100%;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  font: inherit;
  padding: 0;
}
.list-card--pick.list-card--selected {
  border-color: var(--copper);
  box-shadow: 0 0 0 1px var(--copper);
}
.list-card--pick:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.search-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin: 12px 0;
}
.search-row label { flex: 1; margin: 0; }
.search-row input { margin-top: 0; }
.search-row .btn {
  width: auto;
  min-width: 5.5rem;
  margin: 0;
  flex-shrink: 0;
}

.nav-dir__inline { margin: 0 0 12px; font-size: 15px; }
.nav-dir__inline a { color: var(--copper); }

.more-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 28;
  background: rgba(0, 0, 0, 0.45);
  border: 0;
  margin: 0;
  padding: 0;
}
.more-menu {
  position: fixed;
  z-index: 35;
  right: 8px;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--vv-keyboard-gap) + 4px);
  left: auto;
  width: min(300px, calc(100vw - 16px));
  max-height: min(52vh, 420px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 8px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 10px 10px;
  background: #1a1c1f;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
}
@media (min-width: 720px) {
  .more-menu {
    right: max(12px, calc(50vw - 360px + 12px));
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--vv-keyboard-gap) + 6px);
  }
}
.more-menu__group {
  margin: 8px 8px 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.more-menu__group:first-child { margin-top: 2px; }
.more-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin: 0 0 2px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.more-menu__item:hover,
.more-menu__item:focus-visible {
  background: var(--surface);
  outline: none;
}
.more-menu__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--text-muted);
}
body.more-menu-open .action-dock {
  visibility: hidden;
  pointer-events: none;
}
body.more-menu-open .tabbar a[data-tab="more"] {
  background: var(--surface-raised);
  color: var(--text);
}

.screen-form { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
body.form-screen {
  padding-bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom));
}
body.form-screen.action-dock-visible {
  padding-bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom));
}
body.form-screen .screen-form {
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

body.form-screen .intake-review-cta,
body.form-screen .intake-step.vin-confirm {
  margin-bottom: calc(var(--tabbar-h) + 96px + env(safe-area-inset-bottom));
  scroll-margin-bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom));
}
body.form-screen [data-action="new-job-review"] {
  scroll-margin-bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom));
}

body.job-tools #main .report-stage__primary {
  margin-bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom));
}

.action-dock {
  position: fixed;
  right: max(var(--fab-right), calc(50vw - 360px + var(--fab-right)));
  left: auto;
  bottom: calc(var(--tabbar-h) + 8px + env(safe-area-inset-bottom) + var(--vv-keyboard-gap));
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: var(--fab-stack-gap);
  align-items: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.action-dock[hidden] {
  display: none !important;
}

.fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--fab-circle);
  height: var(--fab-circle);
  min-width: var(--fab-circle);
  min-height: var(--fab-circle);
  margin: 0;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.fab--capture,
#fab {
  background: var(--red);
}
.fab-ai {
  background: #087eff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 20px rgba(8, 126, 255, 0.45), 0 4px 16px rgba(0, 0, 0, 0.35);
}
.fab-ai__icon,
.fab__icon {
  width: var(--fab-icon);
  height: var(--fab-icon);
  flex-shrink: 0;
}
.tabbar {
  position: fixed;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(720px, 100vw);
  bottom: 0;
  z-index: 20;
  display: flex;
  box-sizing: border-box;
  background: #121416;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1 1 0;
  min-width: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(12px, 3.1vw, 16px);
  padding: 4px 2px;
  text-align: center;
  line-height: 1.15;
}
.tabbar a[aria-current="page"] {
  background: var(--red);
  color: #fff;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: auto;
  background: var(--bg);
  padding: 12px 12px 28px;
  border: 0;
}
.sheet[hidden] { display: none; }

.paper,
.paper .entry,
body.preview .paper {
  background: #ffffff;
  color: #17191b;
  border-color: #17191b;
}
.paper a { color: var(--red); }
.paper .tag.demo { background: var(--copper); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
}

body.preview { padding-bottom: 24px; }
body.preview .top,
body.preview .tabbar,
body.preview .action-dock { display: none; }

.contact-search {
  display: block;
  margin: 10px 0 4px;
  font-size: 16px;
  color: var(--text-muted);
}
.contact-search-input {
  margin: 0 0 8px;
}
.contact-list {
  margin: 6px 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.contact-list-head { margin-top: 12px; margin-bottom: 6px; }
.contact-letter {
  margin: 0;
  padding: 6px 14px 2px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-soft);
  text-transform: uppercase;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.contact-row:last-child { border-bottom: none; }
.contact-row-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 8px 10px 12px;
  color: var(--text);
  text-decoration: none;
}
.contact-row-main:active { background: var(--surface-raised); }
.contact-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.contact-avatar--lg {
  width: 72px;
  height: 72px;
  font-size: 22px;
  margin-bottom: 8px;
}
.contact-row-text { min-width: 0; }
.contact-name {
  display: block;
  font-size: clamp(19px, 4.6vw, 22px);
  line-height: 1.2;
  color: var(--text);
}
.contact-sub {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-row-actions {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
  padding: 0 8px 0 0;
}
.contact-icon-btn {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  line-height: 1;
}
.contact-icon-btn--call:not(.contact-icon-btn--off)::before { content: "☎"; }
.contact-icon-btn--text:not(.contact-icon-btn--off)::before { content: "✉"; }
.contact-icon-btn--off { opacity: 0.25; border-style: dashed; }
.contact-hero {
  text-align: center;
  margin: 12px 0 16px;
  padding: 16px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.contact-hero h1 { margin-top: 8px; }
.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 6px;
}
.contact-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 0;
  width: auto;
  padding: 8px 6px;
  font-size: 15px;
  border-radius: 10px;
  text-decoration: none;
}
.contact-action--disabled {
  opacity: 0.38;
  pointer-events: none;
}
.contact-actions .contact-action--btn {
  width: 100%;
  margin: 0;
  min-height: 52px;
  font-size: 15px;
}
.job-dash-text {
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 8px 14px;
}

.nav-back {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
}
.nav-back:hover { color: var(--copper); }

.job-sticky-chrome {
  position: sticky;
  top: 0;
  z-index: 16;
  margin: 0 -4px 8px;
  padding: calc(4px + env(safe-area-inset-top, 0px)) 0 6px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.job-sticky-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  min-height: 44px;
}
.job-sticky-chrome--compact {
  --job-header-btn-h: 52px;
  --job-tab-btn-h: 48px;
}
.job-header-toolbar {
  --job-header-toolbar-gap: 6px;
  display: grid;
  grid-template-columns: var(--job-header-btn-h) minmax(0, 1fr) minmax(0, 1fr) var(--job-header-btn-h);
  grid-template-rows: var(--job-header-btn-h);
  gap: var(--job-header-toolbar-gap);
  align-items: stretch;
  height: var(--job-header-btn-h);
  min-height: var(--job-header-btn-h);
  max-height: var(--job-header-btn-h);
  margin: 0 0 6px;
  width: 100%;
  overflow: visible;
}
.job-header-toolbar > .job-header-toolbar__back,
.job-header-toolbar > .job-header-toolbar__search,
.job-header-toolbar > .job-header-toolbar__identity,
.job-header-toolbar > .customer-report-menu {
  height: var(--job-header-btn-h);
  min-height: var(--job-header-btn-h);
  max-height: var(--job-header-btn-h);
  min-width: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  align-self: stretch;
  position: relative;
  overflow: visible;
}
.job-header-toolbar__identity,
.job-header-toolbar .customer-report-menu {
  position: relative;
  min-width: 0;
  width: 100%;
  height: var(--job-header-btn-h);
  min-height: var(--job-header-btn-h);
  max-height: var(--job-header-btn-h);
  margin: 0;
  padding: 0;
  overflow: visible;
}
.job-header-toolbar .customer-report-menu__trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  z-index: 1;
}
.job-header-toolbar .customer-report-menu__panel {
  z-index: 30;
}
.job-sticky-identity-fold.job-header-toolbar__identity {
  display: block;
  height: var(--job-header-btn-h);
  min-height: var(--job-header-btn-h);
  max-height: var(--job-header-btn-h);
  overflow: visible;
  border: 0;
  background: transparent;
}
.job-header-toolbar__btn {
  width: 100%;
  height: var(--job-header-btn-h);
  min-height: var(--job-header-btn-h);
  max-height: var(--job-header-btn-h);
  margin: 0;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  overflow: clip;
  align-self: stretch;
}
.job-header-toolbar .customer-comms__secondary.job-header-toolbar__btn,
.job-header-toolbar .customer-report-menu__trigger.job-header-toolbar__btn {
  min-height: var(--job-header-btn-h);
  max-height: var(--job-header-btn-h);
  height: var(--job-header-btn-h);
  padding: 4px 5px;
  border-width: 1px;
  border-radius: 8px;
  font-size: clamp(11px, 2.6vw, 13px);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.15;
}
.job-header-toolbar__label {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(11px, 2.9vw, 14px);
  font-weight: 800;
  line-height: 1.15;
  text-transform: none;
  letter-spacing: 0;
}
.job-header-toolbar__label.job-header-toolbar__label--long { display: block; }
.job-header-toolbar__label.job-header-toolbar__label--short { display: none; }
.job-sticky-identity-fold.job-header-toolbar__identity > summary.job-sticky-identity {
  list-style: none;
  cursor: pointer;
}
.job-header-toolbar__back,
.job-header-toolbar__search,
.job-header-toolbar .job-sticky-back,
.job-header-toolbar .job-sticky-search {
  width: var(--job-header-btn-h);
  height: var(--job-header-btn-h);
  min-width: var(--job-header-btn-h);
  min-height: var(--job-header-btn-h);
  max-height: var(--job-header-btn-h);
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border-radius: 8px;
  border-width: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}
.job-header-toolbar .job-header-toolbar__btn,
.job-header-toolbar .customer-report-menu__trigger,
.job-header-toolbar .job-sticky-identity {
  box-sizing: border-box;
}
.job-header-toolbar .customer-comms__secondary {
  width: 100%;
  min-height: var(--job-header-btn-h);
  max-height: var(--job-header-btn-h);
  height: var(--job-header-btn-h);
  margin: 0;
  padding: 3px 4px;
  border-width: 1px;
  border-radius: 8px;
  font-size: clamp(10px, 2.6vw, 13px);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.1;
  background: var(--surface);
}
.section-comms-status {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.quote-auth-status--section {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
}
.customer-report-menu__link { font-size: 10px; font-weight: 800; line-height: 1; padding: 1px 5px; flex: 0 0 auto; }
.customer-report-menu__meta-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  min-height: 14px;
  max-height: 16px;
  overflow: hidden;
  white-space: nowrap;
}
.job-header-toolbar .customer-report-menu__meta-row {
  min-height: 15px;
  max-height: 17px;
}
.customer-report-menu__status-short { display: inline; }
.customer-report-menu__status-full { display: none; }
.customer-report-menu__vis-detail {
  margin: 0 0 4px;
  padding: 0 2px;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  flex: 0 0 auto;
}
.customer-report-menu__item--text {
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-color: var(--copper);
  background: rgba(201, 127, 58, 0.12);
}
.customer-comms--notes-only { margin: 0 0 10px; }
@media (max-width: 480px) {
  .job-sticky-chrome--compact { --job-header-btn-h: 48px; --job-tab-btn-h: 52px; }
  .job-header-toolbar {
    grid-template-columns: var(--job-header-btn-h) minmax(0, 1fr) minmax(0, 1fr) var(--job-header-btn-h);
    grid-template-rows: var(--job-header-btn-h);
    gap: var(--job-header-toolbar-gap);
    margin: 0 0 6px;
  }
  .job-header-toolbar__label.job-header-toolbar__label--short {
    display: block;
    overflow: visible;
    text-overflow: unset;
    font-size: clamp(10px, 2.7vw, 12px);
  }
  .job-header-toolbar__label.job-header-toolbar__label--long { display: none; }
  .job-header-toolbar .customer-report-menu__title {
    overflow: visible;
    text-overflow: unset;
    font-size: clamp(9px, 2.35vw, 10.5px);
    letter-spacing: -0.01em;
  }
  .job-header-toolbar .customer-report-menu__status-short { display: none; }
  .job-header-toolbar .customer-report-menu__status-full {
    display: inline;
    font-size: clamp(8px, 2.15vw, 10px);
    letter-spacing: -0.02em;
    white-space: normal;
    text-align: center;
    line-height: 1.12;
  }
  .customer-report-menu__status-short { display: inline; }
  .customer-report-menu__status-full { display: none; }
  body.customer-report-menu-open .customer-report-menu__panel:not([hidden]),
  .job-header-toolbar__identity[open] > .job-identity-fold__body {
    position: fixed;
    left: var(--job-dropdown-gutter);
    right: var(--job-dropdown-gutter);
    top: var(--job-dropdown-top);
    bottom: auto;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: calc(100dvh - var(--job-dropdown-top) - var(--job-dropdown-bottom));
    height: auto;
    margin: 0 auto;
    z-index: 40;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 8px 10px 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-raised);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
  }
  body.customer-report-menu-open .customer-report-menu__panel:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-content: flex-start;
    padding-bottom: 4px;
  }
  body.customer-report-menu-open .customer-report-menu__panel > *:last-child,
  .job-header-toolbar__identity[open] .job-identity-fold__body > *:last-child {
    margin-bottom: 0;
  }
  .job-header-toolbar__identity .job-identity-fold__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-content: flex-start;
  }
  body.customer-report-menu-open .customer-report-menu__vis-detail,
  body.customer-report-menu-open .customer-report-menu__hint,
  body.customer-report-menu-open .customer-report-menu__legacy {
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
  }
  .job-header-toolbar .customer-report-menu__meta-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 4px;
  }
  .job-header-toolbar .customer-report-menu__status-full {
    font-size: clamp(7px, 1.95vw, 9.5px);
    max-width: 100%;
  }
}
@media (min-width: 481px) {
  .customer-report-menu__status-short { display: none; }
  .customer-report-menu__status-full { display: inline; }
}
.job-sticky-back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  touch-action: manipulation;
}
.job-sticky-identity-fold {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.job-sticky-identity-fold > summary.job-sticky-identity {
  list-style: none;
  cursor: pointer;
}
.job-sticky-identity-fold > summary.job-sticky-identity::-webkit-details-marker { display: none; }
.job-sticky-identity {
  flex: 1 1 auto;
  min-width: 0;
  padding: 2px 4px;
  text-decoration: none;
  color: var(--text);
  touch-action: manipulation;
}
.job-header-toolbar__identity.job-sticky-identity-fold {
  position: relative;
}
.job-header-toolbar__identity > summary.job-sticky-identity {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 3px 4px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.job-header-toolbar__identity:not([open]) > .job-identity-fold__body {
  display: none !important;
}
.job-header-toolbar__identity .job-identity-fold__body {
  position: absolute;
  left: 0;
  right: auto;
  top: calc(var(--job-header-btn-h) + 4px);
  z-index: 29;
  min-width: min(280px, 92vw);
  max-width: min(320px, 94vw);
  max-height: min(58vh, calc(100dvh - 220px));
  overflow-y: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.job-sticky-identity-fold[open] > .job-sticky-identity { margin-bottom: 0; }
.job-sticky-identity-fold:not(.job-header-toolbar__identity) .job-identity-fold__body,
.job-sticky-identity-fold:not(.job-header-toolbar__identity) .job-identity-fold__body {
  padding: 0 4px 10px;
  max-width: 100%;
}
.job-sticky-identity__chev { font-size: 0.72em; font-weight: 700; opacity: 0.85; }
.job-sticky-identity-fold[open] .job-sticky-identity__chev { transform: rotate(180deg); display: inline-block; }
.job-sticky-identity:hover .job-sticky-title__vehicle { color: var(--copper); }
.report-summary-card {
  margin: 12px 0;
  padding: 12px;
}
.report-summary-card__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 4.2vw, 22px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.report-summary-card__field {
  width: 100%;
  min-height: 88px;
  margin: 0 0 10px;
  font-size: inherit;
}
.report-summary-card__actions .btn { width: 100%; margin: 0; }
.job-sticky-title__vehicle {
  display: block;
  font-size: clamp(17px, 4vw, 19px);
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-sticky-title__meta {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-sticky-search {
  flex: 0 0 auto;
}

.sheet.assist-sheet {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
.assist-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 8px;
}
.assist-head {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.assist-head__title {
  margin: 0;
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 800;
  line-height: 1.15;
}
.assist-sheet .assist-head__sub,
.assist-sheet .assist-usage,
.assist-sheet .assist-status,
.assist-sheet .assist-alert,
.assist-sheet .assist-empty,
.assist-sheet .assist-msg__who,
.assist-sheet .assist-msg__body,
.assist-sheet label,
.assist-sheet .btn,
.assist-sheet textarea,
.assist-sheet .assist-note-draft,
.assist-sheet .assist-note-draft p {
  font-size: 22px;
}
.assist-head__sub { margin: 2px 0 0; }
.assist-usage,
.assist-status,
.assist-alert { margin: 0; flex: 0 0 auto; }
.assist-log {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.assist-msg {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 100%;
}
.assist-msg--user {
  align-self: flex-end;
  max-width: 92%;
  padding: 10px 14px;
  border-radius: 18px 18px 6px 18px;
  background: var(--surface-raised);
}
.assist-msg--assistant {
  align-self: stretch;
  padding: 2px 0 4px;
}
.assist-msg__who { margin: 0 0 4px; font-weight: 800; color: var(--text-muted); }
.assist-msg__body {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  line-height: 1.45;
  user-select: text;
  -webkit-user-select: text;
}
.assist-msg__body--rich { white-space: normal; }
.assist-msg__body--rich p { margin: 0 0 12px; }
.assist-msg__body--rich p:last-child { margin-bottom: 0; }
.assist-msg__body--rich ul { margin: 0 0 12px; padding-left: 1.25em; }
.assist-msg__body--rich li { margin: 0 0 6px; }
.assist-msg__body--rich strong { font-weight: 800; }
.assist-code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.95em;
}
.assist-token {
  display: inline;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--copper);
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
}
.assist-msg__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 6px;
}
.assist-msg__actions .btn,
.assist-save-note,
.assist-copy {
  display: inline-block;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--copper);
  text-align: left;
}
#assist-note-slot {
  flex: 0 0 auto;
  min-height: 0;
}
.assist-shell--note #assist-note-slot {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.assist-shell--note .assist-log,
.assist-shell--note .assist-composer,
.assist-shell--note .assist-head__sub,
.assist-shell--note .assist-usage {
  display: none;
}
.assist-note-draft {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}
.assist-note-draft h3 {
  flex: 0 0 auto;
  margin: 0 0 8px;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 800;
}
.assist-note-editor {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  overflow: hidden;
}
.assist-note-draft textarea {
  flex: 1 1 auto;
  width: 100%;
  min-height: 5rem;
  max-height: 100%;
  margin: 0;
  overflow-y: auto;
  resize: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.assist-note-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 10px 0 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 16px rgba(0, 0, 0, 0.35);
}
.assist-note-actions .btn { width: 100%; min-height: 48px; }
.assist-composer {
  flex: 0 0 auto;
  background: var(--bg);
  padding-top: 4px;
}
.assist-composer textarea { min-height: 7.5rem; }
.assist-send { margin-top: 8px; min-height: 48px; }

.findings-block {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.findings-block__title {
  margin: 0 0 8px;
  font-size: clamp(18px, 4.2vw, 20px);
  font-weight: 800;
}
.job-tab-fold__summary--card-head {
  cursor: pointer;
  list-style: none;
  padding: 0;
  line-height: 1.2;
}
.job-tab-fold__summary--card-head::-webkit-details-marker { display: none; }
.pay-instructions-fold {
  margin: 0 0 12px;
}
.pay-instructions-fold__body {
  padding-top: 4px;
}
.pay-instructions-fold > summary.pay-instructions-fold__summary {
  list-style: none;
  font-weight: 800;
  font-size: clamp(18px, 4vw, 22px);
}
.pay-instructions-fold > summary.pay-instructions-fold__summary::-webkit-details-marker {
  display: none;
}
.pay-instructions-fold > summary.pay-instructions-fold__summary::before {
  content: "▸ ";
  font-weight: 800;
  color: var(--text-soft);
}
.pay-instructions-fold[open] > summary.pay-instructions-fold__summary::before {
  content: "▾ ";
}
.pay-balance-preview {
  margin: 10px 0 4px;
  font-size: clamp(18px, 4vw, 20px);
  font-weight: 700;
}
.pay-entry-fold__helper {
  margin: 8px 0 0;
}
.invoice-supplement__intro {
  margin: 8px 0;
}
.invoice-supplement .invoice-supplement__block:last-of-type .invoice-supplement__status {
  margin-bottom: 18px;
}
.doc-tab-summary .doc-save-status {
  margin: 4px 0 8px;
  font-size: clamp(16px, 3.6vw, 18px);
}
.findings-concern__job { margin: 0 0 8px; font-size: 22px; }
.findings-block--docs .job-timeline-full { margin-top: 8px; }
.job-tab-card__body > *:first-child { margin-top: 0; }
.job-tab-card__lede {
  margin: 0 0 4px;
  font-size: clamp(20px, 4.5vw, 24px);
  font-weight: 800;
}
.job-tab-card__meta {
  margin: 0 0 10px;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
}
.invoice-tab-card__issued {
  margin: 0 0 6px;
  font-size: clamp(17px, 3.8vw, 19px);
}
.invoice-tab-card__status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 10px;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
}
.invoice-tab-card__balance strong { font-weight: 800; }
.invoice-pay-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: clamp(15px, 3.4vw, 17px);
  font-weight: 800;
  line-height: 1.2;
  border: 1px solid transparent;
}
.invoice-pay-badge--paid {
  color: #0d3d24;
  background: #d8f3e4;
  border-color: #9fd4b6;
}
.invoice-pay-badge--due {
  color: #6b3d00;
  background: #fff0cf;
  border-color: #e8c06a;
}
.invoice-pay-badge--neutral {
  color: var(--text);
  background: var(--surface-2, #eef0f2);
  border-color: var(--line);
}
.invoice-tab-card__rule {
  margin: 12px 0 10px;
  border: 0;
  border-top: 1px solid var(--line);
  opacity: 0.85;
}
.invoice-tab-card__totals { margin: 0 0 8px; font-size: clamp(17px, 3.8vw, 20px); }
.invoice-payment-hist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.invoice-payment-hist__item {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.invoice-payment-hist__item:first-child { border-top: 0; padding-top: 0; }
.invoice-payment-hist__line {
  margin: 0 0 8px;
  padding-left: 1.1rem;
  font-size: clamp(17px, 3.8vw, 20px);
}
.invoice-payment-hist__void {
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  padding: 0 12px 6px;
}
.invoice-payment-hist__void-btn {
  width: auto;
  min-width: min(100%, 240px);
  max-width: 100%;
  margin: 0 auto;
}
.staff-comms-prepared-note {
  margin: 0 0 8px;
  font-size: clamp(16px, 3.6vw, 18px);
}
.staff-comms-prepared-list {
  margin: 8px 0 0;
  padding-left: 1.1em;
  font-size: clamp(17px, 3.8vw, 20px);
}
.doc-line,
.entry[id^="entry-"] {
  scroll-margin-top: clamp(96px, 22vw, 128px);
}
.job-tab-card__paid { margin: 0 0 10px; }
.findings-block--quote .quote-auth-status--section:first-child,
.findings-block--invoice .invoice-paid-banner:first-child { margin-top: 0; }
.findings-block--status .job-status-bar { margin-top: 0; }
.job-tab-fold__summary {
  cursor: pointer;
  font-weight: 800;
  font-size: clamp(18px, 4vw, 22px);
  line-height: 1.2;
  list-style: none;
}
.job-tab-fold__summary::-webkit-details-marker { display: none; }
.job-tab-fold__summary::before {
  content: "▸ ";
  font-weight: 800;
  color: var(--text-soft);
}
.job-tab-fold[open] > .job-tab-fold__summary::before { content: "▾ "; }
.job-tab-shortcut__preview { margin: 0 0 10px; font-size: clamp(18px, 4vw, 22px); line-height: 1.35; }
.job-tab-shortcut__btn { width: 100%; margin: 0; }
.job-tab-card__field {
  width: 100%;
  margin: 0 0 10px;
  font-size: clamp(18px, 4vw, 22px);
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: var(--surface-raised);
  color: var(--text);
  box-sizing: border-box;
}
.job-tab-card__actions .btn { width: 100%; margin: 0; }
.job-repair-status-unavail { margin: 0 0 10px; font-size: clamp(16px, 3.8vw, 20px); }
.job-repair-readout { margin: 0 0 10px; font-size: clamp(18px, 4vw, 22px); font-weight: 700; line-height: 1.3; }
.job-status-bar__scope { margin: 0 0 8px; font-size: clamp(14px, 3.4vw, 18px); }
.job-status-bar__billing { margin: 0 0 8px; font-size: clamp(16px, 3.8vw, 20px); font-weight: 800; }
.job-status-bar__no-picker { margin: 0 0 8px; }
.job-tab-card__issued { font-weight: 700; font-size: clamp(16px, 3.6vw, 20px); }
.cap-direct-bar--findings,
.cap-direct-bar--status { margin: 0 0 10px; }
.job-timeline-full--staff-compact .media {
  width: 100%;
  max-width: 100%;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
}
.job-timeline-full--staff-compact .media .video-stream-status,
.job-timeline-full--staff-compact .media .video-decode-warn {
  width: 100%;
  flex: 0 0 auto;
  margin: 0;
  background: none;
  border: none;
  padding: 0;
  line-height: 1.35;
  font-size: clamp(16px, 3.8vw, 20px);
}
.job-timeline-full--staff-compact .media .video-stream-status.warn {
  color: var(--warn);
}
.job-timeline-full--staff-compact .media img,
.job-timeline-full--staff-compact .media video {
  width: 100%;
  max-width: 100%;
  max-height: min(72vw, 420px);
  height: auto;
  object-fit: contain;
  margin: 0;
  flex: 0 0 auto;
  align-self: center;
}
.job-timeline-full--staff-compact .entry .media + .media {
  margin-top: 10px;
}
.findings-block--customer-auth .doc-customer-auth-panel { margin: 0; }
.invoice-payment-hist li { margin: 8px 0; font-size: clamp(16px, 3.8vw, 20px); }
.parts-panel { margin: 0; }
.parts-status { margin: 0 0 4px; font-size: 22px; }
.parts-draft-status { margin: 14px 0 8px; font-size: 22px; font-weight: 800; }
.parts-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.parts-tools .btn,
.parts-secondary,
.parts-add .btn {
  display: inline-block;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
}
.parts-primary { margin-top: 8px; }
.parts-primary .btn { font-size: 22px; }
.parts-add { margin-top: 8px; }
.part-row {
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.part-row__name { margin: 4px 0; font-size: 22px; }
.part-row__meta { margin: 0 0 8px; font-size: 22px; }
.part-row .part-select {
  display: inline-block;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
}
.part-row .part-select.is-selected {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.tag.unverified { background: rgba(180, 110, 20, 0.72); color: #fff; }
.job-tool-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  max-width: 100%;
}
.job-tool-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
  height: var(--job-tab-btn-h, 48px);
  min-height: var(--job-tab-btn-h, 48px);
  max-height: var(--job-tab-btn-h, 48px);
  margin: 0;
  padding: 8px 2px;
  border: 1px solid var(--line);
  box-sizing: border-box;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: clamp(14px, 3.5vw, 22px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  touch-action: manipulation;
  overflow-wrap: normal;
}
.job-tool-nav__item:hover { background: var(--surface-raised); color: var(--text); }
.job-tool-nav__item.is-active,
.job-tool-nav__item[aria-current="page"] {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.job-tool-nav__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--line);
}
.job-tool-nav__dot--done { background: #48bb78; }
.job-tool-nav__dot--ready { background: #ecc94b; }
.job-tool-nav__dot--empty { background: var(--line); }
.job-tool-nav__label {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.05;
}
.job-tool-nav__item.is-active .job-tool-nav__dot--empty { background: rgba(255, 255, 255, 0.45); }
.customer-comms {
  margin: 8px 0 0;
  padding: 10px 8px 8px;
  border-top: 2px solid var(--copper);
  background: var(--surface-raised);
  border-radius: 0 0 10px 10px;
}
.customer-comms--needs-review {
  border-top-color: #c9a227;
  background: rgba(201, 162, 39, 0.08);
}
.customer-comms--legacy {
  border-top-color: #c9a227;
  background: rgba(201, 162, 39, 0.1);
  max-height: min(62vh, 520px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.customer-comms__legacy-head {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}
.customer-comms__legacy-view {
  margin: 8px 0 0;
  font-size: 15px;
}
.customer-comms--legacy .legacy-financial {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.customer-comms__legacy-btn {
  width: 100%;
  min-height: 52px;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.customer-comms__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px 10px;
  margin: 0 0 10px;
}
.customer-comms__status {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.customer-comms__status--ready { color: #9ae6b4; }
.customer-comms__status--pending { color: #fbd38d; }
.customer-comms__status--warn { color: #feb2b2; }
.customer-comms__status--idle { color: var(--text-muted); }
.customer-comms__status--neutral { color: var(--text); }
.customer-comms__live {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
}
.customer-comms__note {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
}
.customer-comms__actions {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 8px;
  align-items: stretch;
}
.customer-comms--scroll .customer-comms__actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.customer-comms--scroll .customer-report-menu,
.customer-comms--scroll .customer-report-menu__trigger {
  width: 100%;
  max-width: 100%;
}
.customer-comms__primary {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 12px 10px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  border: 2px solid #6b1f2e;
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  touch-action: manipulation;
}
.customer-comms__primary:hover:not(:disabled) { filter: brightness(1.06); }
.customer-comms__primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.2);
}
.customer-comms__secondary {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  touch-action: manipulation;
}
.customer-comms__secondary:hover { border-color: var(--copper); color: var(--copper); }
.customer-comms__review {
  margin: 0 0 10px;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #c9a227;
  background: rgba(201, 162, 39, 0.12);
}
.customer-comms__review-note {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #fbd38d;
}
.customer-comms__review-btn {
  width: 100%;
  min-height: 52px;
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid #c9a227;
  background: #8a6d1f;
  color: #fff;
  border-radius: 10px;
}
.customer-comms__review-btn:hover { filter: brightness(1.08); }
.legacy-parts {
  margin: 12px 0 8px;
  max-width: 100%;
}
.legacy-parts-fold > summary {
  cursor: pointer;
  font-weight: 800;
  font-size: clamp(16px, 3.8vw, 20px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  list-style: none;
  padding: 8px 2px;
}
.legacy-parts-fold > summary::-webkit-details-marker { display: none; }
.legacy-parts-fold[open] > summary { margin-bottom: 4px; }
.legacy-parts h3 { margin-bottom: 4px; }
.legacy-parts ul { margin: 0; padding: 0; list-style: none; }
.legacy-parts li {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.legacy-parts__meta {
  display: block;
  color: var(--text-muted);
  font-size: 18px;
}

.report-context-bar {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}
.report-context-bar a { color: var(--copper); text-decoration: none; }
.report-money-exposure { margin: 0 0 10px; font-size: 15px; }
.doc-customer-share {
  margin: 16px 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--copper);
  background: var(--surface-raised);
}
.doc-share__title {
  margin: 0 0 6px;
  font-size: clamp(18px, 4.2vw, 20px);
  font-weight: 800;
}
.doc-share-note,
.doc-share-warn { margin: 0 0 10px; font-size: 15px; }
.doc-customer-share .btn.primary { margin: 4px 0 8px; }
.doc-visibility { margin: 0 0 12px; }
.doc-visibility__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.doc-visibility__effective {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.doc-visibility__effective--visible {
  color: #9ae6b4;
  border: 2px solid rgba(72, 187, 120, 0.55);
  background: rgba(72, 187, 120, 0.1);
}
.doc-visibility__effective--private {
  color: var(--text-muted);
  border: 2px solid var(--line);
  background: var(--surface);
}
.doc-visibility__effective--legacy {
  color: #fbd38d;
  border: 2px solid #c9a227;
  background: rgba(201, 162, 39, 0.1);
}
.doc-visibility__effective--neutral {
  color: var(--text-muted);
  border: 1px solid var(--line);
}
.doc-visibility__toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.doc-visibility__choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  margin: 0;
  padding: 10px 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  touch-action: manipulation;
}
.doc-visibility__icon { font-size: 22px; line-height: 1; }
.doc-visibility__choice--visible.is-selected {
  border-color: #48bb78;
  background: rgba(72, 187, 120, 0.15);
  color: #9ae6b4;
  box-shadow: 0 0 0 1px rgba(72, 187, 120, 0.35);
}
.doc-visibility__choice--private.is-selected {
  border-color: var(--line);
  background: rgba(23, 25, 27, 0.85);
  color: var(--text-muted);
}
.doc-approval__auth { margin: 0 0 6px; font-weight: 900; }
.doc-approval__auth-detail { margin: 0 0 10px; font-size: 15px; }
.doc-approval__auth-warn { margin: 0 0 10px; font-size: 15px; }
.doc-customer-auth {
  margin: 16px 0 0;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid var(--copper);
  background: var(--surface);
}
.doc-customer-auth__title {
  margin: 0 0 8px;
  font-size: clamp(18px, 4.2vw, 20px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.doc-customer-auth__submit {
  width: 100%;
  min-height: 52px;
  margin: 10px 0 12px;
  font-size: 17px;
  font-weight: 900;
}
.doc-customer-auth__meta { margin: 0 0 10px; font-size: 15px; }
.doc-customer-auth__ack { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; font-size: 15px; font-weight: 700; }
.doc-customer-auth__list { margin: 0; padding: 0; list-style: none; }
.doc-customer-auth__item {
  margin: 0 0 8px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 15px;
}
.doc-customer-auth__item.is-current { border-color: #48bb78; background: rgba(72, 187, 120, 0.08); }
.quote-estimate-meta {
  display: grid;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: clamp(16px, 4vw, 18px);
}
.quote-estimate-meta__date,
.quote-estimate-meta__return {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}
.quote-estimate-meta input,
.quote-estimate-meta select {
  min-height: 44px;
  font-size: inherit;
}
.quote-actions-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
  width: 100%;
  max-width: 100%;
}
.quote-actions-row.job-tab-add-row .quote-actions-row__btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--red);
  color: #fff;
  font-weight: 700;
}
.quote-actions-row.job-tab-add-row .quote-actions-row__btn--icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  height: 48px;
  padding: 8px 4px 6px;
  text-transform: none;
  letter-spacing: normal;
  font-size: clamp(14px, 3.2vw, 16px);
  line-height: 1.1;
}
.quote-actions-row.job-tab-add-row .quote-actions-row__btn--icon .cap-icon {
  width: 22px;
  height: 22px;
  color: #fff;
}
.quote-actions-row.job-tab-add-row .quote-actions-row__btn--icon span {
  color: #fff;
}
.quote-actions-row.job-tab-add-row .quote-actions-row__btn:disabled,
.quote-actions-row.job-tab-add-row .quote-actions-row__btn[aria-disabled="true"] {
  opacity: 0.45;
  filter: grayscale(0.2);
}
.quote-actions-row__btn,
.quote-actions-row .quote-actions-row__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  height: 48px;
  margin: 0;
  padding: 8px 6px;
  font-size: clamp(13px, 3.4vw, 16px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  hyphens: auto;
}
a.quote-actions-row__btn {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}
body.job-tools.action-dock-visible #main .quote-tab-folds {
  margin-bottom: 8px;
}
.quote-history-panel { margin: 0 0 12px; }
.quote-history-panel:not([open]) { display: none; }
.doc-customer-auth__received-dis {
  margin: 8px 0 0;
  font-size: clamp(18px, 4.2vw, 22px);
  line-height: 1.35;
}
.quote-disassembly { margin-top: 4px; }
.quote-disassembly__body {
  display: grid;
  gap: 8px;
  padding: 0 0 4px;
}
.quote-disassembly__help {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-muted);
}
.quote-disassembly__choice {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}
.quote-disassembly__yn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.quote-disassembly__yn input {
  display: inline-block;
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  flex: 0 0 22px;
  accent-color: var(--copper);
}
.quote-disassembly__yn:has(input:checked) {
  border-color: var(--copper);
  background: rgba(212, 165, 116, 0.16);
}
.quote-disassembly__extra {
  display: grid;
  gap: 8px;
}
.quote-disassembly__extra > label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 22px; }
.quote-disassembly__check { flex-direction: row !important; align-items: flex-start; gap: 8px; font-size: 22px; line-height: 1.35; }
.quote-disassembly__check input {
  display: inline-block;
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 4px 0 0;
  padding: 0;
  flex: 0 0 22px;
  accent-color: var(--copper);
}
.quote-disassembly__note { margin: 4px 0 0; font-size: 22px; line-height: 1.35; }
.doc-line__row-parts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 8px 8px 36px;
}
.doc-line__field--cond select,
.doc-line__field--num input {
  min-height: 42px;
  width: 100%;
  font-size: 15px;
}
@media (max-width: 390px) {
  .doc-line__row-parts { grid-template-columns: 1fr; padding-left: 8px; }
}
.job-sticky-chrome--compact {
  padding: calc(2px + env(safe-area-inset-top, 0px)) 0 4px;
}
.job-sticky-chrome--compact .job-sticky-row {
  min-height: 38px;
  margin-bottom: 4px;
  gap: 4px;
}
.job-sticky-chrome--compact .job-tool-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 4px;
  row-gap: 0;
  width: 100%;
  box-sizing: border-box;
}
.job-sticky-chrome--compact .job-tool-nav__item {
  justify-self: stretch;
  align-self: stretch;
  min-width: 0;
  max-width: none;
  width: auto;
  margin: 0;
  min-height: var(--job-tab-btn-h, 48px);
  max-height: var(--job-tab-btn-h, 48px);
  height: var(--job-tab-btn-h, 48px);
  padding: 4px 2px;
  font-size: clamp(10px, 2.65vw, 13px);
  letter-spacing: 0;
  text-transform: none;
  border-width: 1px;
  border-style: solid;
  box-sizing: border-box;
}
.job-sticky-chrome--compact .job-tool-nav__item.is-active,
.job-sticky-chrome--compact .job-tool-nav__item[aria-current="page"] {
  border-width: 1px;
  border-style: solid;
}
.job-sticky-chrome--compact .job-tool-nav__label {
  overflow: visible;
  text-overflow: unset;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  line-height: 1.08;
}
.job-sticky-chrome--compact .job-tool-nav__dot {
  width: 7px;
  height: 7px;
  margin: 0;
  flex-shrink: 0;
}
.job-status-plain,
.invoice-job-work {
  margin: 8px 0 10px;
  font-size: clamp(20px, 4.4vw, 22px);
  line-height: 1.35;
}
.job-status-bar {
  margin: 8px 0 12px;
}
.job-status-bar--compact {
  display: block;
}
.job-status-bar__unified {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px 12px;
  margin: 0;
  width: 100%;
}
.job-status-bar__kicker {
  font-size: clamp(18px, 4.2vw, 22px);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 800;
  white-space: nowrap;
}
.job-status-bar__select {
  font-size: clamp(18px, 4.2vw, 22px);
  min-height: 48px;
  width: 100%;
  margin: 0;
}
.job-status-confirm {
  margin: 12px 0 0;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
}
.job-status-confirm__title {
  margin: 0 0 10px;
  font-size: clamp(20px, 4.6vw, 24px);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.job-status-confirm__lbl {
  font-weight: 700;
  margin-right: 6px;
}
.job-status-confirm__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.job-status-confirm__actions .btn {
  margin: 0;
  min-height: 48px;
}
.job-identity-fold {
  margin: 8px 12px 10px;
  padding: 0 12px;
  border-radius: 12px;
}
.job-identity-fold > summary {
  font-size: clamp(18px, 4.2vw, 22px);
  font-weight: 800;
  padding: 10px 0;
}
.job-identity-fold__body {
  padding-bottom: 12px;
}
.workflow-next {
  margin: 12px 0;
}
.pay-amount-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 10px;
}
.pay-amount-label {
  display: block;
  width: 100%;
}
.pay-amount-label input {
  width: 100%;
  font-size: clamp(22px, 5vw, 26px);
  min-height: 48px;
}
.pay-fill-balance {
  width: 100%;
  min-height: 48px;
  font-size: clamp(18px, 4.2vw, 20px);
}
.invoice-paid-banner {
  margin: 10px 0 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid var(--ok);
  background: rgba(76, 175, 122, 0.14);
}
.invoice-paid-banner__head {
  margin: 0;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 800;
  color: var(--ok);
  letter-spacing: 0.04em;
}
.invoice-paid-banner__bal {
  margin: 6px 0 0;
  font-size: clamp(20px, 4.4vw, 24px);
  font-weight: 700;
}
.pay-save-confirmation {
  margin: 8px 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: clamp(20px, 4.4vw, 22px);
  font-weight: 700;
}
.pay-save-confirmation.ok {
  border: 1px solid var(--ok);
  background: rgba(76, 175, 122, 0.12);
}
.invoice-paid-inline {
  display: block;
  margin-top: 6px;
  color: var(--ok);
  font-weight: 800;
}
.pay-entry-fold {
  margin: 14px 0;
}
.pay-entry-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 0 14px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.pay-entry-card > summary {
  padding: 14px 0 10px;
  list-style: none;
}
.pay-entry-card > summary::-webkit-details-marker { display: none; }
.pay-entry-fold__title {
  display: inline;
  margin: 0;
  font-size: clamp(20px, 4.4vw, 22px);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pay-entry-fold__body,
.pay-entry-card__body {
  margin-top: 4px;
  padding-bottom: 12px;
}
.pay-entry-card__body .btn {
  margin-top: 8px;
}
.invoice-work-nudge {
  margin: 6px 0 10px;
  font-size: clamp(18px, 4vw, 20px);
}
.findings-timeline-more {
  margin: 8px 0 0;
  font-size: clamp(18px, 4vw, 20px);
}
.intake-field-missing {
  outline: 3px solid #c53030;
  outline-offset: 3px;
  border-radius: 8px;
}
.intake-field-error-note {
  margin: 6px 0 10px;
  font-size: clamp(18px, 4vw, 20px);
  font-weight: 800;
  color: #feb2b2;
  line-height: 1.35;
}
.intake-review-missing {
  margin: 0 0 12px;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #c53030;
  background: rgba(197, 48, 48, 0.12);
}
.vin-barcode-stack {
  margin: 10px 0;
}
.vin-barcode-status--ok { color: #9ae6b4; font-weight: 700; }
.vin-barcode-status--warn { color: #fbd38d; font-weight: 700; }
.vin-barcode-proposal {
  margin: 8px 0;
  font-size: clamp(18px, 4vw, 20px);
}
@media (min-width: 480px) {
  .pay-amount-row {
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: wrap;
  }
  .pay-amount-label {
    flex: 1 1 200px;
  }
  .pay-fill-balance {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
  }
}
.job-tool-status-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  min-height: 30px;
  max-height: 36px;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  overflow: hidden;
}
.job-tool-status-strip__label {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-tool-status-strip__live {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  line-height: 1.1;
}
.job-tool-status-strip--legacy .job-tool-status-strip__label { color: #fbd38d; }
.quote-auth-status {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.quote-auth-status.job-tool-status-strip {
  border: 0;
  padding: 2px 0 0;
  min-height: 32px;
  max-height: 36px;
}
.quote-auth-status__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quote-auth-status__detail {
  display: none;
}
.quote-auth-status__detail p { margin: 0; }
.quote-auth-status__compare { margin: 0; font-size: inherit; line-height: 1.35; }
.quote-auth-status__statute { margin: 0; font-size: inherit; line-height: 1.35; }
.quote-auth-status__cta {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 32px;
  margin: 0;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (min-width: 721px) {
  .quote-auth-status__cta {
    min-height: 52px;
    padding: 8px 12px;
    font-size: clamp(15px, 3.5vw, 18px);
  }
}
.quote-auth-status--needs .quote-auth-status__title { color: #fbd38d; }
.quote-auth-status--authorized .quote-auth-status__title { color: #9ae6b4; }
.quote-auth-status--changed .quote-auth-status__title { color: #feb2b2; }
.quote-auth-status--pending .quote-auth-status__title { color: var(--text-muted); }
.quote-auth-status--needs.job-tool-status-strip { background: rgba(251, 211, 141, 0.14); border-color: #f6ad55; }
.quote-auth-status--authorized.job-tool-status-strip { background: rgba(72, 187, 120, 0.12); border-color: #48bb78; }
.quote-auth-status--changed.job-tool-status-strip { background: rgba(245, 101, 101, 0.14); border-color: #fc8181; }
.quote-auth-status--pending.job-tool-status-strip { background: rgba(160, 174, 192, 0.1); border-color: var(--line); }
.customer-comms--scroll {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.customer-comms--scroll .customer-comms__actions {
  margin-top: 0;
}
.doc-customer-auth-panel,
.doc-customer-auth-fold {
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--job-chrome-h) + 6px);
  margin: 8px 0 12px;
}
body.job-tools.action-dock-visible #main .doc-customer-auth-panel {
  margin-bottom: calc(var(--fab-circle) + 12px);
}
.doc-customer-auth__received {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid #48bb78;
  background: rgba(72, 187, 120, 0.1);
}
.doc-customer-auth__received-title {
  margin: 0 0 8px;
  font-size: clamp(17px, 4vw, 19px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ae6b4;
}
.doc-customer-auth__received-list {
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 15px;
  line-height: 1.35;
}
.doc-customer-auth__received-list div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 40%) 1fr;
  gap: 8px;
  align-items: baseline;
}
.doc-customer-auth__received-list dt {
  margin: 0;
  font-weight: 700;
  color: var(--text-muted);
}
.doc-customer-auth__received-list dd {
  margin: 0;
  font-weight: 600;
}
.doc-customer-auth__changed {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.35;
}
.doc-customer-auth__optional-fold {
  margin: 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px 8px;
  background: rgba(0, 0, 0, 0.12);
}
.doc-customer-auth__optional-summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 2px;
  list-style: none;
}
.doc-customer-auth__optional-summary::-webkit-details-marker { display: none; }
.doc-customer-auth__optional-body { padding: 0 2px 6px; }
.doc-customer-auth--prominent {
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid var(--copper);
  background: var(--surface-raised);
}
.doc-customer-auth-fold__summary::-webkit-details-marker { display: none; }
.quote-tab-folds {
  margin: 10px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doc-customer-auth-panel { margin-top: 12px; }
.doc-visibility--compact {
  margin: 8px 0 10px;
  padding: 12px;
  border-radius: 10px;
}
.doc-visibility--compact .doc-visibility__compact {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px 8px;
  align-items: center;
  margin: 0;
}
.doc-visibility__compact-label { font-weight: 800; }
.doc-visibility__compact-state { font-weight: 700; }
.doc-visibility__picker > summary.doc-visibility__change {
  list-style: none;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.doc-visibility__picker > summary.doc-visibility__change::-webkit-details-marker { display: none; }
.doc-visibility__picker:not([open]) .doc-visibility__toggle { display: none; }
.doc-visibility__picker[open] .doc-visibility__toggle { margin-top: 8px; }
.customer-report-menu { position: relative; }
.customer-report-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 28;
  min-width: min(280px, 92vw);
  max-height: min(72vh, calc(100dvh - 200px));
  overflow-y: auto;
  padding: 6px 8px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-content: flex-start;
}
.customer-report-menu__panel[hidden] { display: none !important; }
.customer-report-menu__item {
  width: 100%;
  min-height: 44px;
  margin: 0;
  flex: 0 0 auto;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.customer-report-menu__trigger {
  line-height: 1.15;
  text-align: center;
}
.customer-report-menu__title {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(11px, 2.7vw, 13px);
  font-weight: 800;
  line-height: 1.2;
  flex: 0 0 auto;
}
.job-header-toolbar .customer-report-menu__title {
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.12;
  min-height: 0;
  max-width: 100%;
  padding: 0;
  box-sizing: border-box;
  flex: 0 1 auto;
}
.job-header-toolbar .customer-report-menu__chev {
  display: inline;
  margin-left: 0.15em;
}
.job-header-toolbar .customer-report-menu__trigger {
  flex-direction: column;
  gap: 1px;
  justify-content: center;
  overflow: hidden;
  padding: 2px 3px;
}
.job-header-toolbar .customer-report-menu__meta-row {
  flex: 0 0 auto;
  width: 100%;
  justify-content: center;
}
.customer-report-menu__chev { flex: 0 0 auto; }
.customer-report-menu__status {
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  font-size: clamp(9px, 2.4vw, 11px);
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}
.customer-report-menu__status--green { color: #4ade80; }
.customer-report-menu__status--yellow { color: #facc15; }
.customer-report-menu__legacy {
  margin: 0 0 4px;
  padding: 0 2px;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  flex: 0 0 auto;
}
.customer-report-menu__hint {
  margin: 0 0 4px;
  padding: 0 2px;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  flex: 0 0 auto;
}
.report-summary-fold { margin: 12px 0 0; }
.report-summary-fold__actions { margin: 8px 0 0; }
.job-status-hist { margin: 8px 0 12px; }
.job-status-hist__list { margin: 8px 0 0; padding-left: 1.2rem; }
#quote-customer-auth {
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--job-chrome-h) + 6px);
}
@media (max-width: 480px) {
  .job-sticky-chrome--compact .job-sticky-title__meta { display: none; }
  .job-header-toolbar .customer-report-menu__trigger,
  .job-header-toolbar .job-header-toolbar__btn,
  .job-header-toolbar .job-sticky-identity {
    height: var(--job-header-btn-h);
    min-height: var(--job-header-btn-h);
    max-height: var(--job-header-btn-h);
    padding: 3px 4px;
    line-height: 1.1;
    font-size: clamp(10px, 2.8vw, 13px);
  }
  .customer-comms--scroll .customer-comms__primary,
  .customer-comms--scroll .customer-comms__secondary {
    min-height: 48px;
    font-size: clamp(11px, 3.1vw, 15px);
    padding: 8px 4px;
    line-height: 1.1;
  }
}

.invoice-preflight {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
}
.invoice-preflight__title {
  margin: 0 0 10px;
  font-size: clamp(20px, 4.8vw, 24px);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.invoice-preflight__money {
  margin: 0 0 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: clamp(17px, 4.2vw, 20px);
}
.invoice-preflight__money dt { font-weight: 700; margin: 0; }
.invoice-preflight__money dd { margin: 0; }
.invoice-preflight__missing,
.invoice-preflight__scope,
.invoice-preflight__unsupported {
  margin: 8px 0;
  padding-left: 1.1em;
  font-size: clamp(17px, 4.2vw, 20px);
}
.invoice-preflight__statute,
.invoice-preflight__disclaimer { font-size: 15px; line-height: 1.4; margin: 8px 0 0; }
.invoice-preflight__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.invoice-preflight--ready { border-color: rgba(76, 175, 122, 0.45); }
.invoice-preflight--ready .invoice-preflight__title { color: #9ae6b4; }
.invoice-preflight--review { border-color: rgba(232, 192, 96, 0.55); }
.invoice-preflight--review .invoice-preflight__title { color: #fbd38d; }
.invoice-preflight--differ { border-color: rgba(254, 178, 178, 0.55); }
.invoice-preflight--differ .invoice-preflight__title { color: #feb2b2; }
.invoice-auth-scope {
  margin: 10px 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border, #d8dce2);
}
.invoice-auth-scope--ok { border-color: #2f7d4b; background: rgba(47, 125, 75, 0.08); }
.invoice-auth-scope--warn { border-color: #b8860b; background: rgba(184, 134, 11, 0.1); }
.invoice-auth-scope--bad { border-color: #b33; background: rgba(187, 51, 51, 0.08); }
.invoice-auth-scope__diff { margin: 8px 0 0; padding-left: 1.1rem; font-size: clamp(16px, 4vw, 18px); }
.invoice-auth-scope__actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.invoice-issue-guide { margin-top: 4px; margin-bottom: 14px; }
.invoice-issue-guide__hint,
.invoice-issue-guide__ready { margin: 6px 0 10px; font-size: clamp(16px, 4vw, 18px); }
.invoice-issue-checklist {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.invoice-issue-checklist__btn {
  width: 100%;
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  font: inherit;
  line-height: 1.35;
  min-height: 48px;
}
.invoice-issue-checklist__icon {
  flex: 0 0 auto;
  width: 1.5em;
  font-weight: 800;
  text-align: center;
}
.invoice-issue-checklist__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.invoice-issue-checklist__status {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.invoice-issue-checklist__detail {
  font-size: clamp(16px, 4vw, 18px);
  color: var(--muted-fg, #c5bfb8);
}
.invoice-issue-checklist__guidance {
  display: block;
  margin-top: 4px;
  font-size: clamp(16px, 4vw, 18px);
  color: var(--ink-soft, #d4cfc8);
  line-height: 1.35;
}
.invoice-issue-checklist__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  min-width: 0;
}
.invoice-issue-checklist__row--incomplete .invoice-issue-checklist__icon,
.invoice-issue-checklist__row--incomplete .invoice-issue-checklist__status { color: #feb2b2; }
.invoice-issue-checklist__row--incomplete .invoice-issue-checklist__btn { border-color: rgba(254, 178, 178, 0.55); }
.invoice-issue-checklist__row--complete .invoice-issue-checklist__icon,
.invoice-issue-checklist__row--complete .invoice-issue-checklist__status { color: #9ae6b4; }
.invoice-issue-checklist__row--pending .invoice-issue-checklist__icon,
.invoice-issue-checklist__row--pending .invoice-issue-checklist__status { color: #fbd38d; }
.invoice-issue-checklist__row--review .invoice-issue-checklist__icon,
.invoice-issue-checklist__row--review .invoice-issue-checklist__status { color: #fbd38d; }
.invoice-issue-checklist__row--focus .invoice-issue-checklist__btn {
  outline: 2px solid var(--copper, #c27a4b);
  outline-offset: 2px;
}
.invoice-issue-field-flash {
  outline: 2px solid #feb2b2 !important;
  outline-offset: 2px;
  border-radius: 4px;
}
.doc-internal-shop {
  margin: 14px 0 0;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px dashed var(--line);
}
.doc-internal-shop__body { padding: 0 0 12px; }
.doc-share__link {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
}
.report-workflow-lede { margin-top: 0; font-size: 15px; }
.report-stage {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.report-stage--prepare { border-left: 6px solid var(--vis-slate); }
.report-stage--review { border-left: 6px solid var(--ok); }
.report-stage--notify { border-left: 6px solid var(--copper); }
.report-stage__title {
  margin: 0 0 10px;
  font-size: clamp(18px, 4.2vw, 20px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.report-stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.report-stat {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  text-decoration: none;
  color: inherit;
}
.report-stat--link:hover { border-color: var(--copper); }
.report-stat__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.report-stat__value {
  display: block;
  margin: 2px 0;
  font-size: clamp(18px, 4.2vw, 20px);
  font-weight: 800;
}
.report-stat__sub { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.report-inline-link {
  display: inline-block;
  margin: 0 0 12px;
  font-weight: 700;
}
.report-money-toggle { font-size: 16px; }
.report-money-note { font-size: 14px; margin: 4px 0 10px; }
.report-stage__primary .btn { margin-top: 4px; }
.report-link-status { margin: 0 0 6px; }
.report-link-url {
  word-break: break-all;
  font-size: 14px;
  margin: 0 0 10px;
}
.report-actions-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.report-actions-row .btn {
  margin: 0;
  width: 100%;
}
@media (min-width: 480px) {
  .report-stat-grid { grid-template-columns: 1fr 1fr 1fr; }
  .report-actions-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .report-actions-row .btn.primary { flex: 1 1 12rem; }
  .report-actions-row .btn:not(.primary) {
    flex: 0 1 auto;
    width: auto;
    min-width: 9rem;
  }
}
.report-sms-preview { font-size: 15px; min-height: 4.5rem; }
.report-customer-preview {
  margin: 12px 0;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
}
.report-preview__head {
  margin: 0 0 8px;
  font-size: clamp(20px, 4.8vw, 22px);
  font-weight: 800;
}
.report-preview__section { margin: 10px 0; }
.report-preview__meta,
.report-preview__summary {
  margin: 4px 0;
  font-size: clamp(20px, 4.2vw, 22px);
}
.report-preview__card { margin: 8px 0; }
.report-preview__money-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.report-preview__money-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0;
  font-size: clamp(20px, 4.2vw, 22px);
}
.report-preview__money-status,
.report-preview__money-total,
.report-preview__money-paid,
.report-preview__money-due {
  margin: 6px 0;
  font-size: clamp(20px, 4.2vw, 22px);
}
.report-preview__money-table,
.legacy-financial__table,
.cr-money-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: clamp(18px, 4vw, 20px);
}
.report-preview__money-table th,
.report-preview__money-table td,
.legacy-financial__table th,
.legacy-financial__table td,
.cr-money-table th,
.cr-money-table td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.report-preview__money-table th,
.legacy-financial__table th,
.cr-money-table th {
  font-size: clamp(16px, 3.6vw, 18px);
  color: var(--chrome);
  font-weight: 700;
}
.legacy-financial {
  margin: 12px 0;
  padding: 12px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  background: rgba(182, 42, 50, 0.08);
}
.legacy-financial__title { margin: 0 0 8px; font-size: clamp(22px, 4.8vw, 26px); }
.legacy-financial__confirm {
  display: block;
  margin: 12px 0;
  font-size: clamp(20px, 4.2vw, 22px);
}
.legacy-financial__preview { margin: 8px 0; }
.legacy-financial__total { margin: 8px 0; font-size: clamp(20px, 4.2vw, 22px); }
.report-incomplete-link { margin: 0 0 10px; font-size: clamp(20px, 4.2vw, 22px); }
.doc-save-status {
  margin: 6px 0 10px;
  font-size: clamp(20px, 4.2vw, 22px);
  font-weight: 700;
}
.doc-save-status--saved { color: var(--copper); }
.doc-save-status--pending,
.doc-save-status--saving { color: var(--chrome); }
.doc-save-status--failed { color: #f87171; }
.doc-save-status__err { display: block; font-weight: 500; font-size: clamp(18px, 4vw, 20px); }
.doc-save-retry { margin-left: 8px; vertical-align: baseline; }
.doc-autosave-note { margin: 0 0 8px; }
.doc-save-status {
  margin: 6px 0 10px;
  font-size: clamp(20px, 4.2vw, 22px);
  font-weight: 700;
}
.doc-save-status--saved { color: var(--copper); }
.doc-save-status--pending,
.doc-save-status--saving { color: var(--chrome); }
.doc-save-status--failed { color: #f87171; }
.doc-save-status__err { display: block; font-weight: 500; font-size: clamp(18px, 4vw, 20px); }
.doc-save-retry { margin-left: 8px; vertical-align: baseline; }
.doc-autosave-note { margin: 0 0 8px; }
.report-admin {
  margin: 12px 0;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px dashed var(--line);
}
.report-admin .btn { margin: 6px 0; }

@media (min-width: 600px) {
  html { font-size: 20px; }
  body { padding-left: 16px; padding-right: 16px; }
  .contact-row-main:hover { background: var(--surface-raised); }
}

.video-stream-status {
  margin: 8px 0 10px;
  font-size: 22px;
}

.contact-import-hint {
  font-size: 22px;
  margin: 8px 0 12px;
}
.contact-import-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.contact-import-stats dt {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.contact-import-stats dd {
  margin: 2px 0 0;
  font-size: clamp(24px, 5.5vw, 32px);
  font-weight: 800;
}
.contact-import-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.contact-import-row {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 22px;
  line-height: 1.35;
}
.contact-import-row--duplicate { border-color: #9a6b00; }
.contact-import-row--invalid { border-color: #a33; }
.contact-import-row--ambiguous { border-color: #5a6a9a; }
.contact-import-check {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 22px;
}
.contact-import-check input {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 8px;
  vertical-align: middle;
}

.vin-scan-hint,
.vin-scan-status,
.vin-result {
  font-size: 22px;
  margin: 8px 0 12px;
}
.vin-mileage-label input {
  font-size: clamp(24px, 5.5vw, 32px);
  font-weight: 700;
}
.vin-scan-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 16px;
  background: var(--surface-raised, #1e2124);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: min(720px, 100vw);
  margin: 0 auto;
}
.vin-scan-video {
  width: 100%;
  max-height: 55vh;
  object-fit: cover;
  border-radius: 12px;
  background: #000;
}
.vin-match,
.vin-confirm {
  margin: 12px 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 22px;
}
.warn-tone {
  border-color: #9a6b00;
}
.odo-photo-stage {
  margin: 0 0 4px;
}
.intake-mono-field {
  font-variant-numeric: slashed-zero;
  font-feature-settings: "zero" 1;
  letter-spacing: 0.04em;
}

.intake-check-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.65rem 0;
}

.odo-display {
  display: block;
  width: 100%;
  max-height: min(42vh, 280px);
  object-fit: contain;
  margin: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #111;
}
.odo-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  margin: 0 0 4px;
}
.odo-photo-frame {
  position: relative;
  margin: 0;
}
.odo-photo-actions--overlay {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  pointer-events: none;
}
.odo-photo-actions--overlay .btn {
  pointer-events: auto;
  width: auto;
  min-height: 36px;
  margin: 0;
  padding: 6px 10px;
  font-size: 14px;
  background: rgba(23, 25, 27, 0.88);
  border-color: var(--line);
}
.odo-photo-loading {
  margin: 0;
  padding: 24px 8px;
  text-align: center;
  font-size: 16px;
}
.cap-photo-confirm {
  margin: 0 0 8px;
}
.cap-photo-preview {
  display: block;
  width: 100%;
  max-height: min(48vh, 320px);
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #111;
}
.cap-photo-actions {
  margin-top: 8px;
}
.odo-crop-editor { margin: 0 0 4px; }
.odo-crop-canvas {
  display: block;
  width: 100%;
  height: min(50vh, 320px);
  touch-action: none;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #111;
}
.odo-crop-hint {
  margin: 6px 0;
  font-size: 16px;
  line-height: 1.3;
}
.intake-odo-miles {
  margin: 0 0 10px;
}
.intake-odo-step.intake-odo-keyboard .odo-photo-stage {
  position: sticky;
  top: 0;
  z-index: 6;
  padding-bottom: 4px;
  background: var(--bg);
}
.odo-ai-result {
  margin: 8px 0 6px;
  font-size: 18px;
  line-height: 1.35;
}
.odo-ai-result p { margin: 0; }
.odo-ai-result--warn p { color: var(--warn); }
.odo-ai-prior { margin-top: 6px !important; font-size: 16px; }
.odo-ai-use {
  display: inline;
  width: auto;
  min-height: 36px;
  margin: 0 0 0 6px;
  padding: 4px 10px;
  font-size: 16px;
  vertical-align: middle;
}
.odo-ai-scan {
  width: 100%;
  min-height: 48px;
  margin: 0 0 8px;
  font-size: 18px;
}
.odo-photo-resume {
  margin: 6px 0 0;
  font-size: 16px;
}
.odo-retry {
  margin-bottom: 12px;
  font-size: 22px;
}

.invoice-header__title { margin: 0 0 8px; font-size: 24px; }
.invoice-header__grid {
  display: grid;
  gap: 10px 12px;
  grid-template-columns: 1fr 1fr;
}
.invoice-header__wide { grid-column: 1 / -1; }
.invoice-header__lbl { display: block; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.invoice-header__missing {
  color: var(--warn);
  font-size: 16px;
  font-weight: 700;
}
.invoice-header input {
  width: 100%;
  font-size: 22px;
  min-height: 44px;
}
.invoice-header__hint,
.invoice-header__lock { font-size: 18px; margin: 4px 0; }
.invoice-header__ack {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 18px;
  line-height: 1.35;
}
.invoice-header__link { font-size: 18px; }
@media (max-width: 420px) {
  .invoice-header__grid { grid-template-columns: 1fr; }
}

.invoice-supplement { margin: 16px 0; padding: 0 14px; }
.invoice-supplement__title { margin: 12px 0 8px; font-size: 20px; }
.invoice-supplement__block + .invoice-supplement__block { margin-top: 16px; border-top: 1px solid var(--border, #444); padding-top: 12px; }
.invoice-supplement__lbl { display: block; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.invoice-supplement__select,
.invoice-supplement input,
.invoice-supplement textarea {
  font-size: 18px;
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
}
.invoice-supplement__terms textarea { min-height: 120px; resize: vertical; }
.invoice-supplement__sub-list { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.invoice-supplement__sub-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border, #444);
  border-radius: 6px;
}
.invoice-supplement__sub-field--wide { grid-column: 1 / -1; }
.invoice-supplement__remove { grid-column: 1 / -1; justify-self: start; }
.invoice-supplement__legal,
.invoice-supplement__hint { font-size: 18px; line-height: 1.35; margin: 8px 0; }
@media (max-width: 420px) {
  .invoice-supplement__sub-row { grid-template-columns: 1fr; }
}

.paper-invoice-header {
  margin: 12px 0;
  padding-left: 1.1em;
  line-height: 1.45;
  font-size: 16px;
}
.paper-estimate-meta,
.paper-line-list { margin: 12px 0; padding-left: 1.1em; line-height: 1.45; }
.paper-statutory {
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid #999;
  font-size: 14px;
  line-height: 1.4;
}
.paper-line-list li { margin: 0 0 8px; word-break: break-word; overflow-wrap: anywhere; }
.paper-total { font-size: 20px; margin: 12px 0; }
.paper-warranty-terms {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  margin: 8px 0 16px;
  padding: 10px 12px;
  border: 1px solid #999;
}
.paper-subcontract { margin: 8px 0 16px; padding-left: 1.1em; line-height: 1.45; }
.paper-note { font-size: 13px; margin: 0 0 12px; }

.job-fold {
  min-width: 0;
  max-width: 100%;
}
.job-fold > summary {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  justify-items: start;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 12px 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.25;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  list-style: none;
  overflow-wrap: break-word;
  -webkit-user-select: none;
  user-select: none;
}
.job-fold > summary::-webkit-details-marker { display: none; }
.job-fold > summary::marker { content: ""; }
.job-fold > summary::before {
  content: "";
  width: 8px;
  height: 8px;
  justify-self: center;
  align-self: center;
  box-sizing: border-box;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.job-fold[open] > summary { margin-bottom: 8px; }
.job-fold[open] > summary::before { transform: rotate(45deg); }

@media print {
  .noprint, .top, .tabbar, .action-dock, #live, #sheet { display: none !important; }
  body { max-width: none; padding: 0; background: #fff; color: #000; }
  a { color: #000; }
  .paper { background: #fff; max-width: 7.5in; margin: 0 auto; }
  .paper-statutory { page-break-inside: avoid; }
  .paper-total { page-break-inside: avoid; }
  .report-preview__media,
  .report-preview__storyboard,
  .report-preview__card video,
  .report-preview__card audio,
  .report-preview__card .media,
  .report-preview__card .media img {
    display: none !important;
  }
  .report-preview__card,
  .report-preview__entry-text { break-inside: avoid; page-break-inside: avoid; }
  body.staff-auth-printing * { visibility: hidden !important; }
  body.staff-auth-printing .doc-customer-auth__frozen,
  body.staff-auth-printing .doc-customer-auth__frozen * { visibility: visible !important; }
  body.staff-auth-printing .doc-customer-auth__frozen {
    position: absolute; left: 0; top: 0; width: 100%; display: block !important;
    background: #fff; color: #000; padding: 12px;
  }
}
.doc-customer-auth__frozen-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 15px; }
.doc-customer-auth__frozen-table th,
.doc-customer-auth__frozen-table td { border: 1px solid #555; padding: 4px 6px; text-align: left; }

/* Invoice: essential billing first; optional shop details do not obstruct Issue. */
.doc-line__optional { margin: 2px 8px 8px 36px; padding: 4px 8px; border-radius: 8px; }
.doc-line__optional > summary { cursor: pointer; font-size: 14px; opacity: .82; padding: 5px 0; }
.doc-line__optional[open] > summary { margin-bottom: 8px; }
#invoice-header > summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.invoice-issue-guide [data-action="issue-invoice"] { width: 100%; min-height: 48px; margin: 6px 0 10px; }

/* WO-057.33z.11 — Staff Reports Center (phone-first) */
.reports-screen { max-width: 100%; }
.reports-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}
.reports-preset {
  min-height: 48px;
  padding: 12px 10px;
  font-size: 22px;
  line-height: 1.2;
  text-align: left;
  border-radius: 10px;
  border: 1px solid var(--line, #ccc);
  background: var(--card, #fff);
}
.reports-preset--on { border-color: #1a4; font-weight: 700; }
.reports-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.reports-chip {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 18px;
  border-radius: 999px;
  border: 1px solid var(--line, #ccc);
  background: var(--card, #fff);
}
.reports-chip--on { background: #1a4; color: #fff; border-color: #1a4; }
.reports-controls { display: grid; gap: 10px; margin-bottom: 16px; }
.reports-controls label { display: block; font-size: 18px; }
.reports-search input { width: 100%; min-height: 44px; font-size: 18px; }
.reports-kpis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 16px;
}
.reports-kpi {
  padding: 14px;
  border: 1px solid var(--line, #ccc);
  border-radius: 10px;
  background: var(--card, #fff);
}
.reports-kpi__label { display: block; font-size: 16px; opacity: 0.85; }
.reports-kpi strong { display: block; font-size: 28px; margin: 6px 0; }
.reports-table-wrap { display: none; overflow-x: auto; margin: 12px 0; }
.reports-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.reports-table th, .reports-table td { border-bottom: 1px solid var(--line, #ddd); padding: 10px 8px; text-align: left; vertical-align: top; }
.reports-th { min-height: 44px; font: inherit; background: transparent; border: 0; padding: 0; cursor: pointer; text-align: left; }
.reports-cards-only { display: grid; gap: 10px; }
.reports-card { cursor: pointer; min-height: 44px; }
.reports-card dl { margin: 0; display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 4px 10px; font-size: 18px; }
.reports-basis { font-size: 16px; margin: 8px 0 12px; }
.reports-groups { font-size: 16px; margin: 8px 0 16px; padding-left: 1.2em; }
.reports-page { font-size: 16px; margin: 8px 0; }
.reports-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; align-items: center; }
.reports-sheet {
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px solid var(--line, #ccc);
  border-radius: 10px;
  background: var(--card, #fff);
}
.reports-sheet label { display: block; margin: 8px 0; font-size: 18px; }
.reports-sheet input, .reports-sheet select { min-height: 44px; font-size: 18px; width: 100%; max-width: 100%; }
.reports-col-list { list-style: none; padding: 0; margin: 12px 0; }
.reports-col-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 6px; }
.reports-grand { font-size: 18px; margin: 8px 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
@media (min-width: 900px) {
  .reports-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reports-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reports-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
  .reports-cards-only { display: none; }
  .reports-table-wrap { display: block; }
}
@media print {
  body:has(#reports-print-root) .top,
  body:has(#reports-print-root) .tabbar,
  body:has(#reports-print-root) .action-dock,
  body:has(#reports-print-root) #live,
  body:has(#reports-print-root) #sheet,
  body:has(#reports-print-root) .reports-presets,
  body:has(#reports-print-root) .reports-toolbar,
  body:has(#reports-print-root) .reports-controls,
  body:has(#reports-print-root) .reports-cards-only { display: none !important; }
  body:has(#reports-print-root) .reports-table-wrap { display: block !important; }
}
