/* =============================================================================
 * Blueprint app — ported features
 *
 * Sheets + forms, the Jobs/Contacts/Schedule switcher, contact detail + email,
 * schedule, tasks, profile + company, history, and the report/estimate
 * builders. Same system as the rest: paper/navy dominant, blue only for what
 * you can act on, green only for confirmed/saved, 44px targets, visible focus.
 * ============================================================================= */

/* ─── Small shared pieces ────────────────────────────────────────────────── */

.empty-row { padding: 16px 14px; font-size: var(--fs-sm); color: var(--ink-2); }
.card.empty-row { display: block; }
.text-btn {
  min-height: 32px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-head .text-btn { text-decoration: none; min-height: var(--tap); }
.text-link-sm { color: var(--link); font-weight: 600; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.tag-go { background: var(--go-50); color: var(--go); }
.tag-google { background: var(--blue-50); color: var(--blue-600); height: 18px; font-size: 10.5px; }
.btn-block { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: var(--fs-sm); border-radius: var(--r-pill); }
.btn-ico { width: 17px; height: 17px; }
.btn-danger { background: var(--stop) !important; box-shadow: none !important; }
.row-title.wrap { white-space: normal; }
.action.is-off { opacity: 0.5; }

/* ─── Sheets ─────────────────────────────────────────────────────────────── */

.sheets { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
.sheet-scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 27, 52, 0.32);
  opacity: 0;
  transition: opacity 280ms var(--ease);
  pointer-events: auto;
}
.sheet-scrim.open { opacity: 1; }
.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: calc(100% - 40px);
  background: var(--paper);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-3);
  transform: translateY(105%);
  transition: transform 320ms var(--ease);
  pointer-events: auto;
}
.sheet.open { transform: none; }
.sheet-full { top: 40px; }
.sheet-tall { top: 18%; }
.sheet-auto { max-height: 80%; }
.sheet-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--line);
}
.sheet-title {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-lg);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet-right { display: flex; align-items: center; }
.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px var(--s-4) 20px;
  scrollbar-width: none;
}
.sheet-body::-webkit-scrollbar { display: none; }
.sheet-body > * + * { margin-top: 14px; }
.sheet-actions {
  padding: 12px var(--s-4) calc(env(safe-area-inset-bottom) + 14px);
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.sheet-lede { color: var(--ink-2); }
.sheet-lede b { color: var(--ink); }

/* ─── Forms ──────────────────────────────────────────────────────────────── */

.f-field { display: grid; gap: 6px; min-width: 0; border: 0; }
.f-label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.req { color: var(--stop); }
.f-hint { font-size: var(--fs-xs); color: var(--ink-3); }
.f-input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}
.f-input:focus { outline: none; border-color: var(--navy); box-shadow: var(--focus-ring); }
.f-input[aria-invalid="true"] { border-color: var(--stop); background: var(--stop-50); }
.f-textarea { padding: 10px 12px; min-height: 96px; resize: vertical; line-height: 1.45; }
.f-select {
  appearance: none;
  padding-right: 36px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345536B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
}
.f-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.f-row-3 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.f-input[type="datetime-local"] { min-width: 0; padding: 0 8px; font-size: 0.9375rem; }
.f-check { display: flex; align-items: center; gap: 10px; min-height: var(--tap); font-size: var(--fs-md); }
.f-check input, .radio-row input, .locker-row input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.f-locked {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--r-sm);
  background: var(--paper-2);
  font-weight: 600;
}
.f-note, .f-error {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.f-note svg, .f-error svg { width: 16px; height: 16px; flex: none; }
.f-error { color: var(--stop); font-weight: 600; }
.f-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--blue-50);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.f-banner svg { width: 20px; height: 20px; flex: none; color: var(--blue-600); }
.f-banner b { color: var(--ink); }
.f-danger {
  width: 100%;
  min-height: var(--tap);
  border-radius: var(--r-sm);
  border: 1.5px solid var(--stop);
  color: var(--stop);
  font-weight: 600;
}
.suggest-list {
  margin-top: 6px !important;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.suggest-row { display: block; width: 100%; padding: 10px 12px; text-align: left; }
.suggest-row + .suggest-row { border-top: 1px solid var(--line); }
.suggest-row b { display: block; font-size: var(--fs-md); }
.suggest-row span { font-size: var(--fs-xs); color: var(--ink-2); }
.suggest-row.new b { color: var(--link); }
.radio-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.radio-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1.5px solid var(--line);
  cursor: pointer;
}
.radio-row:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }

/* ─── Create menu ────────────────────────────────────────────────────────── */

.menu { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  text-align: left;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.menu-item .ask-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.menu-item .ask-icon svg { width: 20px; height: 20px; }
.menu-voice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.menu-voice svg { width: 16px; height: 16px; flex: none; }

/* ─── Jobs · Contacts · Schedule switcher ───────────────────────────────── */

.seg-work {
  position: sticky;
  top: -4px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  box-shadow: 0 6px 12px -8px rgba(11, 27, 52, 0.2);
}
.seg-work a {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
}
.seg-work a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.seg-work a:focus-visible { border-radius: var(--r-pill); }
.seg-2 { display: grid; grid-template-columns: 1fr 1fr; }
.seg-mini { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; }
.seg-mini button { min-height: 32px; padding: 0 10px; font-size: var(--fs-xs); }
.chip-toggle[aria-pressed="true"] { background: var(--wood-50); border-color: var(--wood); color: var(--wood-ink); }

/* ─── Contacts ───────────────────────────────────────────────────────────── */

.avatar-c {
  width: 40px; height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: hsl(var(--h, 210) 45% 90%);
  color: hsl(var(--h, 210) 45% 26%);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.avatar-c.big { width: 64px; height: 64px; font-size: 1.25rem; }
.avatar-c.pending { background: var(--paper-2); color: var(--ink-3); }
.avatar-c svg { width: 18px; height: 18px; }
.contact-hero { display: flex; gap: 14px; align-items: center; }
.contact-tags { display: flex; gap: 6px; margin-top: 8px; }

/* Contact list filters: Filters chip, removable pills, count + sort bar, sheet options */
.chip-filter { display: inline-flex; align-items: center; gap: 6px; }
.chip-filter svg { width: 16px; height: 16px; }
.cf-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cf-pills:not(:empty) { margin-top: var(--s-3); }
.cf-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  max-width: 100%;
  padding: 0 8px 0 12px;
  border-radius: var(--r-pill);
  background: var(--blue-50);
  color: var(--navy-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cf-pill svg { width: 14px; height: 14px; flex: none; }
.cf-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.cf-count { font-weight: 600; }
.cf-sort { display: inline-flex; align-items: center; gap: 6px; }
.cf-sort select {
  appearance: none;
  min-height: var(--tap);
  padding: 0 26px 0 4px;
  border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1B34' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 4px center / 16px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
}
.cf-sort select:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-xs); }
.cf-section { border: 0; display: grid; gap: 2px; }
.sheet-body > .cf-section + .cf-section { margin-top: 22px; }
.cf-section legend { margin-bottom: 6px; }
.cf-section > .text-btn { justify-self: start; min-height: var(--tap); }
.cf-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-group { margin: 10px 0 2px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.cf-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap);
  cursor: pointer;
}
.cf-opt input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.cf-opt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-opt-n { font-size: var(--fs-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.connect-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1.5px dashed var(--line-2);
  background: var(--surface-2);
}
.connect-card > svg { width: 24px; height: 24px; flex: none; color: var(--navy); }
.connect-card b { display: block; }
.connect-card .row-main span { font-size: var(--fs-sm); color: var(--ink-2); }
.locker-row { cursor: pointer; }

/* Long contact-page lists: search + tabs above, "Show more" below (longlist.js) */
.sec-tools { display: grid; gap: var(--s-2); margin-bottom: var(--s-2); }
.sec-tools[hidden], .sec-tools .search[hidden] { display: none; }
.search-sm { height: 40px; }
.search-sm input { min-width: 0; font-size: 1rem; } /* 16px: iOS doesn't zoom the page on focus */
.chip-n { margin-left: 4px; font-variant-numeric: tabular-nums; opacity: 0.7; }
.chip:disabled { opacity: 0.45; }

/* Attachments: a checkbox to pick, the rest of the row opens the file */
.locker-row { padding-left: 0; gap: 0; }
.locker-pick { display: flex; align-items: center; justify-content: center; align-self: stretch; width: 48px; flex: none; cursor: pointer; }
.locker-open { display: block; min-height: var(--tap); padding: 4px var(--s-3) 4px 0; color: inherit; text-decoration: none; }
.locker-row .chev { margin-left: var(--s-2); }
.locker-row.sent .row-sub { color: var(--go, var(--ink-2)); }
.locker-bar { margin-top: var(--s-2); }
.locker-bar[hidden] { display: none; }

/* In-app file viewer (fileview.js) */
.fileview-pages { display: grid; gap: var(--s-2); }
.fileview-page { width: 100%; height: auto; display: block; background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow-1); }
.fileview-img { display: flex; justify-content: center; }
.fileview-img img { max-width: 100%; height: auto; border-radius: var(--r-sm); background: #fff; }
.fileview-text { white-space: pre-wrap; word-break: break-word; font-size: var(--fs-sm); background: var(--surface); padding: var(--s-3); border-radius: var(--r-sm); }
.fileview-other { display: grid; justify-items: center; gap: var(--s-2); padding: var(--s-5, 24px) var(--s-4); text-align: center; }
.fileview-other > svg { width: 32px; height: 32px; color: var(--ink-3); }
.fileview-other p { color: var(--ink-2); font-size: var(--fs-sm); }
.fileview-sheet .sheet-right .pill-btn { text-decoration: none; }
.more-btn:disabled { color: var(--ink-3); cursor: default; }

/* Tasks */
.task-row { align-items: flex-start; }
.task-due {
  flex: none;
  min-width: 70px;
  padding-top: 2px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.task-due.due-today { color: var(--wood-ink); }

/* ─── Email thread ───────────────────────────────────────────────────────── */

.summary-card {
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--wood-50);
  font-size: var(--fs-sm);
}
.summary-card.loading { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.summary-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wood-ink);
}
.summary-label svg { width: 15px; height: 15px; }
.summary-card p { margin: 6px 0 4px; color: var(--ink); }
.messages { display: grid; gap: 10px; }
.mail {
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.mail.mine { background: var(--surface-2); }
.mail header { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--ink-3); }
.mail header b { color: var(--ink); font-size: var(--fs-sm); }
.mail p { margin-top: 4px; font-size: var(--fs-md); }
.attach-panel {
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.attach-panel h3 { font-size: var(--fs-md); margin-bottom: 4px; }
.attach-row { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.attach-row + .attach-row { border-top: 1px solid var(--line); }
.attach-panel .f-hint { display: block; margin-top: 8px; }

/* ─── Schedule ───────────────────────────────────────────────────────────── */

.day-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.day-name { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.02em; }
.day-stats { font-size: var(--fs-sm); color: var(--ink-2); }
.day-stats b { color: var(--ink); }
.view > .week { margin-top: 12px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.week-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 56px;
  padding: 6px 0;
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.week-day b { font-size: var(--fs-lg); color: var(--ink); }
.week-day i { width: 5px; height: 5px; border-radius: 50%; background: var(--wood); }
.week-day[aria-selected="true"] { background: var(--navy); color: rgba(255, 255, 255, 0.75); }
.week-day[aria-selected="true"] b { color: var(--ink-inv); }
.week-day[aria-selected="true"] i { background: #E3C9A6; }
.agenda { display: grid; gap: 8px; }
.agenda-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  text-align: left;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
}
.agenda-row.google { border-left-color: var(--blue); background: var(--surface-2); }
.agenda-row.completed { border-left-color: var(--go); }
.agenda-row.canceled { border-left-color: var(--line-2); opacity: 0.6; }
.agenda-row.canceled .row-title { text-decoration: line-through; }
.agenda-time { flex: none; width: 64px; font-size: var(--fs-sm); font-weight: 600; }
.appt-status { font-weight: 600; text-transform: capitalize; }
.s-completed { color: var(--go); }
.s-canceled { color: var(--stop); }
.detail-facts { display: grid; gap: 4px; }
.detail-facts > * {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.detail-facts > * + * { border-top: 1px solid var(--line); }
.detail-facts svg { width: 20px; height: 20px; flex: none; color: var(--navy); }
.detail-facts b { display: block; color: var(--ink); font-size: var(--fs-md); }
.detail-facts .chev { margin-left: auto; color: var(--ink-3); }
.detail-notes { padding: 12px; border-radius: var(--r-sm); background: var(--surface-2); font-size: var(--fs-sm); }

/* ─── Voice: history + read-only transcript ─────────────────────────────── */

.voice-tools { display: flex; }
.readonly-banner {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--paper-2);
  font-size: var(--fs-xs);
  color: var(--ink-2);
}
.readonly-banner svg { width: 18px; height: 18px; flex: none; }
.readonly-banner b { color: var(--ink); }
.hist-group {
  margin: 18px 0 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ─── Profile drawer ─────────────────────────────────────────────────────── */

.drawer-tip {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--blue-50);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.drawer-tip svg { width: 18px; height: 18px; flex: none; color: var(--blue-600); }
.set-group h3 {
  margin: 8px 0 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.set-group { border-radius: var(--r-md); }
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 14px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: var(--fs-md);
}
.set-row + .set-row { border-top: 0; }
.set-group h3 + .set-row { border-radius: var(--r-md) var(--r-md) 0 0; }
.set-row:last-child { border-radius: 0 0 var(--r-md) var(--r-md); }
.set-group h3 + .set-row:last-child { border-radius: var(--r-md); }
.set-val { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: var(--fs-sm); }
.set-val svg { width: 16px; height: 16px; color: var(--ink-3); }
.set-row.readonly { cursor: default; }
.set-warn { color: var(--warn); font-weight: 600; white-space: nowrap; }
/* A Gmail/Calendar read that couldn't reach one of several mailboxes. */
.mailbox-warn { margin: 0 0 8px; color: var(--warn); }
/* Which inbox a row came from (next/js/mailbox.js) — one colour per connected account. */
.tag-mailbox { gap: 4px; height: 20px; padding: 0 7px; font-size: 11px; flex: none; max-width: 45%; }
.tag-mailbox svg { width: 12px; height: 12px; flex: none; }
.tag-mailbox > span { overflow: hidden; text-overflow: ellipsis; }
.tag-mailbox.tone-0 { background: var(--blue-50); color: var(--blue-600); }
.tag-mailbox.tone-1 { background: var(--wood-50); color: var(--wood-ink); }
.tag-mailbox.tone-2 { background: var(--go-50); color: var(--go); }
.tag-mailbox.tone-3 { background: var(--paper-2); color: var(--ink-2); }
.row-sub-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bill-head .row-sub { align-items: flex-start; }
.mailbox-source { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: var(--fs-sm); color: var(--ink-2); }
.mailbox-source > svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }
.mailbox-source .tag-mailbox { max-width: none; vertical-align: middle; }
/* A connected Google account row: the address stays on one line. */
.acct-g { min-width: 0; }
.acct-g b, .acct-g small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct b { display: block; font-size: var(--fs-md); }
.acct small { font-size: var(--fs-xs); color: var(--ink-3); }
.set-group.proto { padding: 4px 0; }
.set-group.proto h3 { color: var(--warn); }
.signout {
  width: 100%;
  min-height: var(--tap);
  margin-top: 20px;
  border-radius: var(--r-sm);
  color: var(--stop);
  font-weight: 600;
}

/* ─── Company ────────────────────────────────────────────────────────────── */

.owner-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--wood-50);
  font-size: var(--fs-sm);
  color: var(--wood-ink);
}
.owner-note svg { width: 18px; height: 18px; flex: none; }
.set-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.set-card h2 { font-size: var(--fs-lg); font-weight: 600; }
.logo-row, .key-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.logo-box {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
  background: var(--paper-2);
  overflow: hidden;
}
.logo-box img { width: 100%; height: 100%; }
.key-row b, .logo-row b { display: block; }
.ok-ico { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; color: var(--go); }
.you { font-weight: 500; color: var(--ink-3); }
.company-save { padding-bottom: 8px; }

/* ─── Builders (reports + estimates) ────────────────────────────────────── */

.stepper { list-style: none; display: flex; gap: 6px; }
.stepper li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-3);
}
.stepper i {
  width: 22px; height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  font-style: normal;
  font-size: 11px;
}
.stepper i svg { width: 12px; height: 12px; stroke-width: 3; }
.stepper li.done i { background: var(--navy); border-color: var(--navy); color: var(--ink-inv); }
.stepper li.now { color: var(--ink); }
.stepper li.now i { border-color: var(--navy); color: var(--navy); box-shadow: 0 0 0 3px var(--paper-2); }
.builder-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-2xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.view > .builder-sub, .builder-sub { margin-top: 6px; color: var(--ink-2); font-size: var(--fs-sm); }
.builder-actions {
  position: sticky;
  bottom: -28px;
  margin: 20px calc(-1 * var(--s-4)) -28px;
  padding: 14px var(--s-4) 22px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 0%, transparent), var(--paper) 22%);
  display: grid;
  gap: 8px;
}
.sel-count { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-sm); color: var(--ink-2); }
.photo-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pick-ph {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  outline: 3px solid transparent;
  outline-offset: -3px;
}
.pick-ph svg { width: 100%; height: 100%; }
.pick-ph[aria-pressed="false"] > svg { opacity: 0.55; }
.pick-ph[aria-pressed="true"] { outline-color: var(--navy); }
.pick-check {
  position: absolute;
  top: 6px; right: 6px;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: transparent;
}
.pick-check svg { width: 13px; height: 13px; stroke-width: 3.2; }
.pick-ph[aria-pressed="true"] .pick-check { background: var(--navy); color: var(--ink-inv); }
.analyze { padding: 20px 0; }
.bar.big { height: 10px; }
.an-text { margin-top: 8px; font-size: var(--fs-sm); color: var(--ink-2); }
.an-found { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.an-found li { display: flex; align-items: center; gap: 8px; font-weight: 600; animation: enter var(--t-med) var(--ease); }
.an-found svg { width: 20px; height: 20px; color: var(--go); }
.link-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--blue-50);
  font-size: var(--fs-sm);
}
.link-banner > svg { width: 20px; height: 20px; color: var(--blue-600); flex: none; }
.rb-section { padding: 14px; display: grid; gap: 10px; }
.rb-section h2 { font-size: var(--fs-md); font-weight: 600; }
.rb-photos { display: flex; gap: 6px; }
.rb-photos .ph { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; }
.rb-photos svg { width: 100%; height: 100%; }
.pdf-ready {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--go-50);
  border: 1.5px solid var(--go);
}
.pdf-ready > svg { width: 26px; height: 26px; color: var(--go); flex: none; }
.pdf-ready b { display: block; }
.pdf-ready span span { font-size: var(--fs-sm); color: var(--ink-2); }
.pick-list .row[aria-pressed="true"] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--navy); }
.pick-dot { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); }
.row[aria-pressed="true"] .pick-dot { border: 6px solid var(--navy); }
.measuring { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 48px 0; }
.spin.big { width: 36px; height: 36px; border-width: 3px; color: var(--navy); }
.fail-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--stop-50);
  border: 1.5px solid var(--stop);
}
.fail-card > svg { width: 24px; height: 24px; flex: none; color: var(--stop); }
.fail-card p { margin-top: 4px; font-size: var(--fs-sm); color: var(--ink-2); }
.measure-card { padding: 16px; }
.m-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.m-big { font-family: var(--font-display); font-size: 2.75rem; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.m-unit { margin-left: 6px; color: var(--ink-2); font-weight: 600; }
.m-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.m-facts div { padding: 8px; border-radius: var(--r-xs); background: var(--surface-2); }
.m-facts dt { font-size: 11px; color: var(--ink-3); }
.m-facts dd { font-weight: 600; font-size: var(--fs-sm); }
.m-source { display: flex; gap: 8px; margin-top: 12px; font-size: var(--fs-xs); color: var(--ink-2); }
.m-source svg { width: 16px; height: 16px; flex: none; color: var(--wood-ink); }
.m-warn { color: var(--warn); }
.m-warn svg { color: var(--warn); }
.m-report { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.m-report svg { width: 18px; height: 18px; }
.m-report-hint { margin: 6px 0 0; text-align: center; }
.m-reportrow { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }
.m-reportrow > svg { width: 22px; height: 22px; flex: none; color: var(--blue); }
.m-reportrow .row-main { flex: 1; min-width: 0; display: grid; }
.m-reportrow .row-title { font-weight: 600; font-size: var(--fs-sm); }
.m-reportrow .row-sub { font-size: var(--fs-xs); color: var(--ink-3); white-space: normal; overflow: visible; text-overflow: clip; }
.m-reportrow .row-sub.m-warn { color: var(--warn); }
.m-report-redo { display: block; margin: 6px auto 0; }

/* Aerial check on New Estimate + the wrong-building picker (aerial-pick.js) */
#eb-aerial { margin-bottom: 14px; }
.aerial-fig { margin: 0; }
.aerial-frame { position: relative; border-radius: var(--r-sm); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-1); line-height: 0; }
.aerial-frame img { display: block; width: 100%; height: auto; }
.aerial-ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.aerial-ov .ov-parcel { fill: none; stroke: #fff; stroke-width: 2.5; stroke-dasharray: 8 5; }
.aerial-ov .ov-structure { fill: rgba(30, 91, 255, 0.22); stroke: #7FA2FF; stroke-width: 2.5; }
.aerial-ov .ov-unmeasured { fill: rgba(255, 190, 70, 0.25); stroke: #FFBE46; stroke-width: 2; }
.aerial-ov .ov-traced { fill: rgba(46, 190, 120, 0.24); stroke: #5BE39A; stroke-width: 2.5; }
.aerial-ov .ov-excluded { fill: rgba(20, 24, 32, 0.4); stroke: #C9CFD8; stroke-width: 2; stroke-dasharray: 6 4; }
.aerial-ov .ov-trace-cur { fill: none; stroke: #5BE39A; stroke-width: 2.5; stroke-dasharray: 5 3; }
.aerial-ov .ov-vertex { fill: #5BE39A; stroke: #fff; stroke-width: 2; }
.aerial-ov .ov-vertex.first { fill: rgba(91, 227, 154, 0.35); }
.aerial-ov .ov-num { fill: #fff; font-weight: 800; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: rgba(11, 27, 52, 0.85); stroke-width: 4px; font-family: var(--font-ui); }
.aerial-ov .ov-mark circle { fill: rgba(30, 91, 255, 0.18); stroke: #fff; stroke-width: 3; }
.aerial-ov .ov-mark .dot { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.aerial-fig figcaption { margin-top: 8px; font-size: var(--fs-xs); color: var(--ink-2); }
.aerial-missing { padding: 12px 14px; border-radius: var(--r-sm); background: var(--warn-50); color: var(--warn); font-size: var(--fs-sm); }
.aerial-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.aerial-actions .btn, #eb-aerial > .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; }
.aerial-actions .btn svg, #eb-aerial > .btn svg { width: 16px; height: 16px; flex: none; }
.pick { padding: 14px; display: grid; gap: 12px; }
.pick-intro { font-size: var(--fs-sm); color: var(--ink-2); }
.pick-intro b { color: var(--ink); }
.pick-frame { cursor: crosshair; touch-action: manipulation; }
.pick-frame.is-busy { opacity: 0.55; pointer-events: none; }
.pick-zoom { position: absolute; right: 8px; top: 8px; display: grid; gap: 6px; line-height: 1; }
.pick-zoom .icon-btn { width: 44px; height: 44px; font-size: 1.4rem; font-weight: 600; background: rgba(255, 255, 255, 0.92); color: var(--ink); border-radius: var(--r-xs); box-shadow: var(--shadow-1); }
.pick-zoom .icon-btn:disabled { opacity: 0.45; }
.pick-at { margin: 0; }
.pick-coords { display: flex; gap: 8px; }
.pick-coords .f-input { flex: 1; min-width: 0; }
.pick-coords .btn { flex: none; min-width: 64px; min-height: 44px; }
.pick-actions { display: flex; gap: 10px; }
.pick-actions .btn { min-height: 44px; }
.pick-actions [data-pick-cancel] { flex: none; padding-inline: 18px; }
.pick-actions [data-pick-go] { flex: 1; }
/* Choose what to measure (EST-04) */
.scope-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--r-pill); background: var(--paper-2); }
.scope-seg button { min-height: 44px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.scope-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.scope-rows { margin: 0; padding: 0; border: 0; display: grid; gap: 2px; }
.scope-rows legend { padding: 0; margin-bottom: 4px; }
.scope-row { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.scope-row input { width: 22px; height: 22px; flex: none; accent-color: var(--blue); }
.scope-status { margin: 0; }
.scope-tools { display: flex; gap: 10px; }
.scope-tools .btn { flex: 1; min-height: 44px; }
.scope-traces .row { min-height: 44px; }
.scope-traces .btn-link { min-height: 44px; flex: none; }
.scope-reset { justify-self: center; min-height: 44px; }
.pick-actions [data-scope-cancel] { flex: none; padding-inline: 18px; }
.pick-actions [data-scope-go] { flex: 1; }
.fileview-sheet .sheet-actions { display: flex; gap: 10px; }
.fileview-sheet .sheet-actions .btn { flex: 1; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.fileview-sheet .sheet-actions .btn svg { width: 16px; height: 16px; }
.takeoff .qty { font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.needs { color: var(--warn) !important; }
.refine { padding: 4px 14px 14px; display: grid; gap: 10px; }
.refine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.refine-grid .f-input { min-height: 42px; }

/* ─── Bills (#bills) ─────────────────────────────────────────────────────── */

.bills-lede { display: block; margin-bottom: var(--s-2); }
.bills { display: grid; gap: var(--s-2); }
.bill { overflow: hidden; }
.bill-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: var(--tap);
  padding: 14px 14px 10px;
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.bill-head .row-sub { white-space: normal; }
.bill-meta { display: grid; justify-items: end; gap: 2px; flex: none; }
.bill-amount { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.bill-date { font-size: var(--fs-xs); color: var(--ink-3); }
.bill-files { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; }
.bill-files-sheet { padding: 0 0 var(--s-3); }
.bill-nofile { padding: 0 14px 14px; font-size: var(--fs-xs); color: var(--ink-3); }
/* What the bill was for — the invoice's line items (session 87) */
/* Which way a bill went (session 101): "From" on received, "Sent to" on the user's own */
.tag-dir { height: 18px; padding: 0 6px; margin-right: 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; vertical-align: 1px; }
.tag-dir-out { gap: 3px; background: var(--wood-50); color: var(--wood-ink); }
.tag-dir-out svg { width: 11px; height: 11px; }
.bill-out { border-left: 3px solid var(--wood-ink); }
.bills-out { margin-top: var(--s-3); }
.bills-out-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 8px 12px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  list-style: none;
  cursor: pointer;
  color: var(--wood-ink);
}
.bills-out-head::-webkit-details-marker { display: none; }
.bills-out-head > .ico { width: 18px; height: 18px; flex: none; }
.bills-out-head .row-main { display: grid; gap: 1px; flex: 1; min-width: 0; }
.bills-out-head .row-main b { color: var(--ink); font-size: var(--fs-sm); }
.bills-out-head .row-main span { font-size: var(--fs-xs); color: var(--ink-3); }
.bills-out-body { display: grid; gap: var(--s-2); padding-top: var(--s-2); }
.bill-for { margin: -4px 14px 10px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.35; }
.bill-for > span { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); margin-right: 4px; }
.bill-for b { font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: var(--tap);
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--wood-50);
  color: var(--wood-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}
.file-chip svg { width: 16px; height: 16px; flex: none; }
.file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { flex: none; font-weight: 400; color: var(--ink-3); font-size: var(--fs-xs); }

/* Bills: date range, contact/job filter, the job a bill is for (session 86) */
.bills-custom { display: flex; align-items: flex-end; gap: 8px; margin-top: var(--s-2); }
.bills-custom label { display: grid; gap: 4px; flex: 1; min-width: 0; font-size: var(--fs-xs); color: var(--ink-3); }
.bills-custom .f-input { width: 100%; min-width: 0; min-height: var(--tap); padding: 0 6px; font-size: 0.9375rem; }
.bills-custom .btn { min-height: var(--tap); flex: none; }
.bills-filter { margin-top: var(--s-2); }
.bills-pick { flex: none; max-width: 100%; padding-right: 0; }
.bills-pick .icon-btn { width: 36px; height: 34px; min-height: 0; }
.bills-pick .icon-btn svg { width: 14px; height: 14px; }
.bill-job {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 14px 10px;
  padding: 8px 10px;
  min-height: var(--tap);
  border-radius: var(--r-sm);
  background: var(--blue-50);
  color: var(--navy-2);
  font-size: var(--fs-sm);
  text-decoration: none;
}
.bill-job > svg { width: 16px; height: 16px; flex: none; }
.bill-job .chev { margin-left: auto; }
.bill-job-main { display: grid; min-width: 0; }
.bill-job-main b, .bill-job-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bill-job-main span { font-size: var(--fs-xs); color: var(--ink-3); }
.bill-job-more { flex: none; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); }
.bill-job-none { background: var(--paper-2); color: var(--ink-2); font-size: var(--fs-xs); }
.bills-more { display: grid; justify-items: center; gap: 6px; margin-top: var(--s-3); }
.m-report-hint.eb-export-note { justify-content: center; }
/* Estimates list: the aerial is framed to the whole lot; zoom on its center (the lot). */
.thumb img.thumb-aerial { transform: scale(1.8); }

/* ─── Site addresses on a contact (session 97) ───────────────────────────── */

.site-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-2); }
.site-actions .btn, .site-map-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; }
.site-actions .btn svg, .site-map-btn svg { width: 16px; height: 16px; flex: none; }
.site-map-btn { justify-self: start; }
.site-check { padding: 14px; display: grid; gap: 12px; }
.site-add { display: flex; gap: 8px; }
.site-add .f-input { flex: 1; min-width: 0; }
.site-add .btn { flex: none; min-width: 64px; min-height: 44px; }
.site-check .pick-actions [data-site-cancel] { flex: none; padding-inline: 18px; }
.site-check .pick-actions [data-site-save] { flex: 1; }
.site-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.site-pick-head .btn-link { min-height: 44px; flex: none; }
.pick-actions [data-site-cancel] { flex: none; padding-inline: 18px; }
.pick-actions [data-site-done] { flex: 1; }
.site-pick > .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ─── Bills → JobNimbus (session 98) ──────────────────────────────────────── */
.bill-send { display: flex; align-items: center; gap: 8px; padding: 0 14px 14px; font-size: var(--fs-sm); color: var(--ink-2); }
.bill-send .btn { display: inline-flex; align-items: center; gap: 6px; }
.bill-send .btn-ghost { color: var(--navy-2); }
.bill-send .btn svg { width: 16px; height: 16px; }
.bill-sent > svg { width: 16px; height: 16px; flex: none; color: var(--navy-2); }
.bill-sent > span { min-width: 0; flex: 1; }
.bill-sent a { color: var(--navy-2); font-weight: 600; }
.bill-sent .text-btn { flex: none; }
.bsend-files { display: grid; }
.bsend-file { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 14px; }
.bsend-file + .bsend-file { border-top: 1px solid var(--line); }
.bsend-file input { width: 20px; height: 20px; flex: none; }
.bsend-file .file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsend-there, .bsend-file .file-size { font-size: var(--fs-xs); color: var(--ink-3); flex: none; }
.bsend-note { width: 100%; resize: vertical; font: inherit; line-height: 1.4; }
.bsend-tick { width: 18px; height: 18px; color: var(--navy-2); flex: none; }
[data-bsend-to] > svg:first-child { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.bsend-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bsend-results li { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sm); }
.bsend-results svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* several bills → one record (session 99) */
.bill-sel { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -10px 0 -10px -12px; flex: none; }
.bill-sel input { width: 20px; height: 20px; }
.bills-selbar {
  position: sticky; bottom: 8px; z-index: 6;
  display: flex; align-items: center; gap: 8px;
  margin-top: var(--s-2); padding: 8px 8px 8px 16px;
  border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow-3);
  font-size: var(--fs-sm); font-weight: 600;
}
.bills-selbar > span { flex: 1; min-width: 0; }
.bills-selbar .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.bills-selbar .btn svg { width: 16px; height: 16px; }
.bills-selbar .text-btn { min-height: 44px; }
.bmany-list { display: grid; }
.bmany-bill { padding: 12px 14px; display: grid; gap: 4px; }
.bmany-bill + .bmany-bill { border-top: 1px solid var(--line); }
.bmany-head { display: flex; gap: 8px; align-items: baseline; }
.bmany-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmany-date { font-size: var(--fs-xs); color: var(--ink-3); }
.bmany-files { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); overflow-wrap: anywhere; }
.bmany-note { margin: 0; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.4; }
.bmany-bill .f-hint { margin: 0; }
.bmany-done > span { display: grid; gap: 4px; min-width: 0; }

/* ─── Select all + "In JobNimbus" (session 103): Bills cards and Email rows ── */
.sel-all { display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 0 4px; margin-bottom: var(--s-2); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); cursor: pointer; }
.sel-all input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.tag-jn { gap: 3px; height: 20px; padding: 0 7px; font-size: 10.5px; }
.tag-jn svg { width: 12px; height: 12px; flex: none; }
.bill-meta .tag-jn { margin-top: 4px; }
.mail-row { padding: 0; gap: 0; }
.mail-open { display: flex; align-items: center; gap: var(--s-2); flex: 1; min-width: 0; min-height: 64px; padding: 10px 12px 10px 0; text-align: left; color: inherit; }
