/* Stone Surgeons CRM — the flat look (Nov 19 2026; replaces the "pearl glass" theme this file used to hold).
   Steve, Nov 18 2026: "Only its look section" of the master prompt (§13) — no glass, no blur, no silk photo, no gradients,
   glow or shimmer; solid surfaces, 1 px borders, small corners, one accent colour; light and dark stay ("not going back to
   glassy"). CRM Redesign\REDESIGN_PLAN.md has the decision. Look only: nothing is hidden, no button does anything different.
   Loaded last on the signed-in app (dark values: glass-dark.css). Customer quote and unsubscribe pages do not load this file.
   The file keeps its old name so the page, the offline cache and the tests need no new paths. */

:root {
  /* the flat tokens (master prompt §13.3) — components use these, never raw colours */
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --border: #e2e6eb;
  --border-strong: #c9d0d8;
  --text: #141a21;
  --text-2: #4a5562;
  --text-3: #6b7683;
  --primary: #1f7a3d;
  --primary-h: #17602f;
  --primary-contrast: #ffffff;
  --accent: #1f7a3d;
  --accent-soft: #e9f5ec;
  --focus: #1f7a3d;
  --success: #14643f; --success-bg: #e7f4ed; --success-line: #b5dcc6;
  --warning: #8a5a00; --warning-bg: #fbf1dc; --warning-line: #ecd29c;
  --danger: #9e221c;  --danger-bg: #fbe9e8;  --danger-line: #efbdb9;
  --info: #155a9c;    --info-bg: #e8f0fa;    --info-line: #bcd3ee;
  --violet: #5b3fa8;  --violet-bg: #efeafa;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-2: 0 8px 24px rgba(16, 24, 40, .12);
  --row-h: 36px;
  /* the old names other stylesheets still use, pointed at the flat tokens */
  --ink: var(--text);
  --navy: var(--primary);
  --blue: var(--accent);
  --blue-d: #17602f;
  --muted: var(--text-2);
  --line: var(--border);
  --err: var(--danger);
  --ok: var(--success);
  --off: var(--surface-2);
  --white: var(--surface);
  --glass: var(--surface);
  --glass-2: var(--surface);
  --glass-flat: var(--surface);
  --edge: var(--border);
  --edge-dim: var(--border);
  --smoke: var(--primary);
  --shadow: none;
  --blur: none;
  --r-chip: var(--radius-sm);
  --r-ctl: var(--radius);
  --r-card: var(--radius);
  color-scheme: light;
}

html { background: var(--bg); }
body { position: relative; z-index: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
@media (min-width: 861px) { body { font-size: 14px; line-height: 1.45; } }
/* no glass anywhere: whatever a stylesheet or a page sets, nothing blurs what is behind it */
*, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* Programmatic focus lands on main after every route. That ring is not a control. */
#main:focus,
#main:focus-visible { outline: none; }

/* ── surfaces: white, a 1 px line, small corners, no shadow ── */
.side, .card, .tile, .auth-card, .modal-box, .sheet, .mobar, .wday, .lane, .unsched,
.qt-areas, .qt-ask, .qt-card, .note-box, .aud-count, .setrow,
.field-row, .textmenu, .fu, .print-wrap > .acts, .pick-list, .exp-form, .top-search, .avatar,
.jcard, .lb-row {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
}
.card, .tile, .auth-card, .qt-areas, .wday, .unsched, .note-box, .exp-form, .pick-list, .qt-card, .qt-ask,
.lane, .lb-row, .jcard, .aud-count, .setrow, .field-row, .fu, .textmenu, .claim, #fc-root, .qt-map, .door-map, .qt-results { border-radius: var(--radius); }
.modal-box { border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.card, .auth-card, .modal-box, .qt-areas, .exp-form, .pick-list { padding: 16px 18px; }
.tile, .card, .jcard, .wday, .modal-box, .auth-card { position: relative; }
a.tile { color: inherit; }
a.tile:hover { border-color: var(--border-strong); background: var(--surface-2); }

h2, .auth h1 { font-family: var(--body); font-stretch: 100%; font-weight: 600; text-transform: none; letter-spacing: -.01em; color: var(--text); }
h2 { font-size: 22px; line-height: 28px; margin-bottom: 12px; }
h3, .card h3, .card h4 { color: var(--text); }
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
a { color: var(--accent); }
.muted, .mini .meta, .kv dt, .tile span { color: var(--text-2); }

/* ── buttons: primary (navy), secondary (white + line), danger; no shadow, no gradient ── */
.btn {
  background: var(--primary); color: var(--primary-contrast); border: 1px solid var(--primary); border-radius: var(--radius);
  box-shadow: none; font-weight: 600; padding: 7px 14px; font-size: 14px; line-height: 20px;
}
.btn:hover { background: var(--primary-h); border-color: var(--primary-h); }
.btn-sm { padding: 5px 10px; font-size: 13px; line-height: 18px; }
.btn-xs { padding: 2px 8px; font-size: 12px; line-height: 18px; border-radius: var(--radius-sm); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn-danger { background: var(--surface); color: var(--danger); border: 1px solid var(--danger-line); box-shadow: none; }
.btn-danger:hover { background: var(--danger-bg); border-color: var(--danger-line); }
.linkbtn { color: var(--accent); }

/* ── fields ── */
.in, .in-sm, textarea.in, select.in {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--text); box-shadow: none;
}
@media (min-width: 861px) { .in, select.in { padding: 7px 10px; font-size: 14px; line-height: 20px; } }
.in::placeholder { color: var(--text-3); opacity: 1; }
select.in option { background: var(--surface); color: var(--text); }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); }
.in:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.btn:focus-visible, .tab:focus-visible, .linkbtn:focus-visible, .nav-item:focus-visible,
.nav-head:focus-visible, .nav-collapse:focus-visible, .ham:focus-visible, .chip:focus-visible,
.door-btn:focus-visible, .disp-btn:focus-visible, .top-search input:focus-visible, .avatar:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: none;
}

/* ── shell (computer): a white menu on the left, a 56 px top bar, the page on light grey ── */
.app-shell { gap: 0; padding: 0; min-height: 100vh; align-items: stretch; box-sizing: border-box; }
.content { display: flex; flex-direction: column; min-width: 0; }
main { max-width: none; padding: 20px 24px 48px; }
.side {
  flex: 0 0 240px; width: 240px; height: 100dvh; top: 0;
  border: 0; border-right: 1px solid var(--border); border-radius: 0;
  color: var(--text); overflow: hidden; background: var(--surface);
}
.side-top { display: flex; align-items: center; gap: 8px; padding: 12px 10px 8px 14px; min-height: 56px; box-sizing: border-box; border-bottom: 1px solid var(--border); }
.side .brand, .mobar .brand {
  display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; padding: 0;
  color: var(--text); font-family: var(--display); font-stretch: 100%; font-weight: 700;
  font-size: 15px; letter-spacing: -.01em; text-transform: none; line-height: 1.15;
}
.brand-mark { width: 30px; height: 30px; flex: 0 0 30px; color: var(--text); display: inline-flex; }
.brand-mark svg, .brand-mark img { width: 100%; height: 100%; display: block; }
.brand-mark img { object-fit: contain; border-radius: var(--radius); }
.card table th { background: transparent; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand small, .brand-text small { display: block; margin: 1px 0 0; color: var(--text-3); font: 600 12px/1.2 var(--body); }
.nav { min-height: 0; padding: 8px 8px 12px; }
.nav-item, .nav-head {
  color: var(--text-2); border-radius: var(--radius); padding: 6px 10px; gap: 10px; min-height: 36px; font-size: 14px; font-weight: 500;
}
.nav-group { margin-top: 6px; }
/* one line a row: a long name (Bugs / Suggestions with its count) ends in … instead of making its row taller */
.nav-item { line-height: 20px; }
.nav-item .nav-txt { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-head { color: var(--text-3); font-size: 12px; letter-spacing: .06em; min-height: 32px; }
.nav-item:hover, .nav-head:hover { background: var(--surface-2); color: var(--text); }
.nav .icn, .who .btn .icn {
  width: 20px; height: 20px; flex: 0 0 20px; border-radius: 0; background: none; border: 0; box-shadow: none;
  display: inline-flex; align-items: center; justify-content: center; color: inherit;
}
.nav .icn svg, .who .btn .icn svg { width: 18px; height: 18px; }
/* the page you are on: accent text, a 3 px bar on the left, a light grey fill */
.nav-item.on { background: var(--surface-2); color: var(--accent); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.nav-item.on .icn { color: var(--accent); background: none; border: 0; box-shadow: none; }
.nav-group.admin .nav-head { color: var(--text-3); }
.nav-group.admin .nav-head:hover { background: var(--surface-2); color: var(--text); }
.nav-collapse {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  display: grid; place-items: center; cursor: pointer; box-shadow: none;
}
.nav-collapse:hover { background: var(--surface-2); color: var(--text); }
.nav-collapse .icn { width: 18px; height: 18px; background: none; border: 0; box-shadow: none; }
html.nav-collapsed .nav-collapse svg { transform: rotate(180deg); }
.side .who { color: var(--text); border-top: 1px solid var(--border); gap: 6px; }
.side .who .btn { justify-content: flex-start; }
.side .who .btn-ghost { color: var(--text); border-color: var(--border-strong); }
.side .who .btn-ghost:hover { color: var(--text); background: var(--surface-2); }

@media (min-width: 861px) {
  .side { transition: width .15s ease, flex-basis .15s ease; }
  html.nav-collapsed .side { flex-basis: 64px; width: 64px; }
  html.nav-collapsed .side-top { flex-direction: column; padding: 12px 6px 6px; }
  html.nav-collapsed .brand { justify-content: center; flex: 0; }
  html.nav-collapsed .brand-text,
  html.nav-collapsed .nav-txt,
  html.nav-collapsed .who-label,
  html.nav-collapsed .who-name {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  html.nav-collapsed .nav-head { display: none; }
  html.nav-collapsed .nav-sub { display: flex; flex-direction: column; gap: 4px; }
  html.nav-collapsed .nav-item { justify-content: center; padding: 4px 6px; }
  html.nav-collapsed .nav-sub .nav-item { padding-left: 6px; }
  html.nav-collapsed .who { align-items: center; padding: 10px 6px 12px; }
  html.nav-collapsed .who .btn { width: 40px; height: 40px; padding: 0; justify-content: center; }
  html.nav-collapsed .nav-item { position: relative; }
  html.nav-collapsed .nav-badge {
    position: absolute; top: 2px; right: 2px; margin: 0;
    min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px;
  }
}

/* ── owners' tab eye (hide a tab from your own menu; app.js navRow) ── */
.nav-row { position: relative; }
.nav-row > .nav-item { padding-right: 44px; }
.nav-eye {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: var(--radius); border: 0; padding: 0;
  background: transparent; color: var(--text-3); display: grid; place-items: center; cursor: pointer;
  opacity: 0; transition: opacity .12s ease, background-color .12s ease;
}
.nav-eye svg { width: 17px; height: 17px; }
.nav-row:hover .nav-eye, .nav-row:focus-within .nav-eye, .nav-eye.off { opacity: 1; }
.nav-eye:hover { background: var(--border); color: var(--text); }
.nav-row > .nav-item.on + .nav-eye { color: var(--accent); }
.nav-row > .nav-item.on + .nav-eye:hover { background: var(--border); color: var(--accent); }
.nav-row.is-hidden > .nav-item { opacity: .78; }
@media (hover: none) { .nav-eye { opacity: .7; } }
@media (min-width: 861px) {
  html.nav-collapsed .nav-eye { display: none; }
  html.nav-collapsed .nav-row > .nav-item { padding-right: 6px; }
  html.nav-collapsed .nav-hidden { border-top: 1px dashed var(--border-strong); padding-top: 6px; }
}

/* ── top bar (computer): the switcher, search, Receipt and you, on one white 56 px bar ── */
.topbar { display: flex; align-items: center; gap: 12px; margin: 0; }
@media (min-width: 861px) {
  .topbar { position: sticky; top: 0; z-index: 30; height: 56px; box-sizing: border-box; padding: 0 24px;
    background: var(--surface); border-bottom: 1px solid var(--border); }
}
.top-search {
  flex: 1; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; max-width: 640px;
  border-radius: var(--radius); margin: 0; background: var(--surface-2); border-color: var(--border);
}
.top-search:focus-within { background: var(--surface); border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.top-search .icn { width: 18px; height: 18px; color: var(--text-3); background: none; border: 0; box-shadow: none; }
.top-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text);
  font: inherit; outline: none; height: 100%;
}
.top-search input::placeholder { color: var(--text-3); }
.topbar > .snap-btn { margin-left: auto; }
.avatar {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: var(--surface-2);
  display: grid; place-items: center; font-weight: 700; letter-spacing: 0;
  color: var(--text); text-decoration: none; font-size: 13px; overflow: hidden;
}
.avatar:hover { border-color: var(--border-strong); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.merge-tabs { margin: 12px 24px 0; }
.content > .imp { margin: 12px 24px 0; }

/* ── short lists inside a card (Home, Doors drawers, Crew): divider rows ── */
.mini { display: grid; gap: 0; }
.mini li { list-style: none; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.mini li + li { border-top: 1px solid var(--border); }
.mini a:not(.btn) { padding: 8px 10px; border-radius: var(--radius); }
.mini a:not(.btn):hover { background: var(--surface-2); }

/* ── lists: ONE white card, a grey header row, thin divider rows (36 px on a computer, 44 px on a phone) ── */
.tbl-wrap {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: none; overflow: auto; padding: 0;
  /* a table that scrolls sideways: it glides and slows to a stop under the finger, and a swipe that reaches its end
     stays in the table (it does not drag the page or start the browser's "back" swipe) */
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.tbl-wrap table, .tbl-wrap .compact-tbl, .leads-tbl table { background: transparent; border-collapse: separate; border-spacing: 0; margin-top: 0; width: 100%; }
.tbl-wrap th {
  background: var(--surface-2); color: var(--text-2); border: 0; border-bottom: 1px solid var(--border);
  font-size: 12px; letter-spacing: .02em; font-weight: 600;
}
.tbl-wrap thead th, .tbl-wrap .compact-tbl thead th, .leads-tbl thead th { padding: 8px 10px; vertical-align: bottom; }
.tbl-wrap td, .tbl-wrap tbody td { background: transparent; border: 0; border-radius: 0; box-shadow: none; position: static; }
.tbl-wrap tbody tr + tr > td { border-top: 1px solid var(--border); }
/* The row tint is a child of the first cell, positioned against the row (a ::before on the row itself is an extra table
   cell and shifts every column). Clear by default; grey on hover; blue with a bar on the left when picked. */
.tbl-wrap tbody tr { position: relative; z-index: 0; }
.tbl-wrap tbody td:first-child::before {
  content: ""; display: block; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  border-radius: 0; background: transparent; border: 0; box-shadow: none;
}
.tbl-wrap tbody tr:hover td:first-child::before { background: var(--surface-2); }
.tbl-wrap tbody tr:focus-visible { outline: none; }
.tbl-wrap tbody tr:focus-visible td:first-child::before { box-shadow: inset 0 0 0 2px var(--focus); }
.leads-tbl tbody tr.is-selected td:first-child::before { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.leads-tbl tbody tr.is-selected:hover td:first-child::before { background: var(--accent-soft); }
.q-items tbody tr:hover td:first-child::before { background: transparent; box-shadow: none; }
.tbl-wrap .empty { padding: 14px; }
@media (min-width: 761px) {
  .tbl-wrap tbody tr { height: var(--row-h); }
  .tbl-wrap th, .tbl-wrap td { vertical-align: middle; }
  .tbl-wrap tbody td, .tbl-wrap .compact-tbl td, .leads-tbl td { padding: 5px 10px; line-height: 1.4; }
  .tbl-wrap .compact-tbl td.c-acts { padding-top: 3px; padding-bottom: 3px; }
  .compact-tbl td.c-acts .btn-sm { padding: 3px 10px; }
  .leads-tbl .lead-check { width: 26px; height: 26px; }
  .leads-tbl th.c-check, .leads-tbl td.c-check { width: 44px; padding-left: 12px; padding-right: 6px; text-align: center; }
}
/* phones: Leads, Admin and the Startup checklist stack each row; rows sit edge to edge in the card, at least 44 px */
@media (max-width: 760px) {
  .leads-tbl tbody tr, .admin-tbl tbody tr, .acct-startup .acct-startup-tbl tbody tr { margin: 0; border-bottom: 0; min-height: 44px; box-sizing: border-box; }
  .leads-tbl td, .admin-tbl td { background: transparent; border: 0; border-radius: 0; }
  .leads-tbl tbody tr + tr > td, .admin-tbl tbody tr + tr > td, .acct-startup-tbl tbody tr + tr > td { border-top: 0; }
  .leads-tbl tbody tr + tr, .admin-tbl tbody tr + tr, .acct-startup-tbl tbody tr + tr { border-top: 1px solid var(--border); }
  .tbl-wrap tbody tr { height: 44px; }
  .leads-tbl tbody tr, .admin-tbl tbody tr, .acct-startup .acct-startup-tbl tbody tr { height: auto; }
}
.lead-check-ui { border-radius: var(--radius-sm); background: var(--surface); border: 1.5px solid var(--border-strong); box-shadow: none; }
.lead-check input:checked + .lead-check-ui { background: var(--primary); border-color: var(--primary); box-shadow: none; }
.lead-check input:indeterminate + .lead-check-ui { background: var(--surface-2); border-color: var(--primary); }
.bulk-bar { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-2); }
.bulk-menu { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.bulk-item:hover, .bulk-item:focus-visible { background: var(--surface-2); }
.bulk-item.split { border-top-color: var(--border); }
.toast-plain { max-width: min(520px, calc(100vw - 24px)); background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-2); }   /* the theme card, like the Sonner toasts and the update bar (light + dark) */

/* ── status badges: one size, a tinted fill and dark text of the same hue (the words are always there, never colour alone) ── */
.pill { background: var(--surface-2); color: var(--text); border: 0; box-shadow: none; border-radius: var(--radius-sm); padding: 1px 8px; font-size: 12px; font-weight: 600; line-height: 18px; }
.st-new, .j-scheduled { background: var(--info-bg); color: var(--info); }
.st-contacted, .q-sent, .i-marked_sent, .j-unscheduled, .c-sending { background: var(--warning-bg); color: var(--warning); }
.st-quoted, .j-in_progress { background: var(--violet-bg); color: var(--violet); }
.st-bot { background: #e2f3f0; color: #0d534c; }
.st-founder { background: #e6ecf7; color: #1d3f78; }
.st-won, .q-approved, .i-marked_paid, .j-completed, .c-sent, .c-printed { background: var(--success-bg); color: var(--success); }
.st-lost, .q-draft, .i-draft, .j-cancelled, .c-draft { background: var(--surface-2); color: var(--text-2); }
.pr-high { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-line); }
.q-declined, .i-void { background: var(--danger-bg); color: var(--danger); }
.tag { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* ── tabs: one underline style everywhere (page tabs, Doors tabs, Accountant / Simulator / Owners chips, Features chips) ── */
a.tab.sub { text-decoration: none; }
.subtabs, .door-tabs, .acct-sub, .feat-sub {
  display: flex; flex-wrap: wrap; gap: 0 2px; padding: 0; width: auto; max-width: 100%; box-sizing: border-box;
  background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none;
}
.door-tabs { flex-wrap: nowrap; }
.tab.sub, .acct-sub .chip, .feat-sub .chip {
  border: 0; border-bottom: 2px solid transparent; border-radius: 0; margin-bottom: -1px; padding: 8px 12px;
  background: transparent; color: var(--text-2); font-size: 14px; font-weight: 500; line-height: 20px; text-decoration: none; box-shadow: none;
}
.tab.sub:hover, .acct-sub .chip:hover, .feat-sub .chip:hover { background: transparent; color: var(--text); border-bottom-color: var(--border-strong); }
.tab.sub.on, .acct-sub .chip.on, .feat-sub .chip.on { background: transparent; color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }

/* ── notices: a thin tinted line (the long text opens with ⓘ; a closable one has × — app.js noteLine) ── */
.note-box { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); padding: 8px 12px; border-radius: var(--radius);
  font-size: 13.5px; line-height: 1.45; box-shadow: none; }
.note-box[hidden] { display: none !important; }
.note-box.ok { background: var(--success-bg); color: var(--success); border-color: var(--success-line); }
.note-box.bad { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-line); }
.note-box.warn, .imp, .dup, .offline-bar { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-line); }
.offline-bar.is-off { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-line); }
.note-box.nb-thin { display: flex; align-items: flex-start; gap: 8px; }
.note-box.nb-thin > .nb-body { flex: 1 1 auto; min-width: 0; }
.note-box.nb-long:not(.nb-open) > .nb-body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
.nb-btn { flex: 0 0 auto; width: 26px; height: 22px; margin: -1px -4px -1px 0; padding: 0; border: 0; border-radius: var(--radius-sm); background: transparent;
  color: inherit; opacity: .75; cursor: pointer; font: 700 14px/22px var(--body); text-align: center; }
.nb-btn:hover { opacity: 1; background: rgba(16, 24, 40, .06); }
.nb-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.claim { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.tile.warn { background: var(--danger-bg); border-color: var(--danger-line); }
.tile.warn b { color: var(--danger); }
.empty { padding: 14px 0; }

/* ── schedule, jobs, leaderboard ── */
.wday.today { box-shadow: inset 0 3px 0 var(--accent); }
.jcard, .jcard.j-completed, .jcard.j-in_progress, .jcard.j-cancelled {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid #5c6b7c; border-radius: var(--radius);
}
.jcard.j-completed { border-left-color: var(--success); }
.jcard.j-in_progress { border-left-color: var(--violet); }
.jcard.j-cancelled { border-left-color: #8a94a0; opacity: .75; }
.lb-row + .lb-row { border-top: 1px solid var(--border); margin-top: 8px; }
.lb-block.m1, .lb-block.m2, .lb-block.m3 { background: var(--surface-2); }
.lb-block.m1 { border-top: 3px solid #d4a72c; }
.lb-block.m2 { border-top: 3px solid #9aa4b1; }
.lb-block.m3 { border-top: 3px solid #b9774a; }
.pq-item.opt { background: var(--surface-2); }

/* ── pop-ups: a plain dim behind (no blur), white boxes with a soft shadow ── */
.modal, .sheet-back, .qt-ask-back, .print-wrap, .scrim, body.nav-open .scrim { background: rgba(16, 24, 40, .4); }
.sheet { border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-2); border-bottom: 0; }

/* ── maps and charts (the map pictures themselves are untouched) ── */
.qt-results { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1); }
.qt-tools .qt-primary, .qt-tools .qt-primary:hover, .map-bar .btn.on, .map-tool.on { background: var(--primary); color: var(--primary-contrast); border-color: var(--primary); }
.bars .bar, .cols .c i, .lb-trk i { background: var(--accent); }
.wday-empty { color: var(--text-2); }
.leaflet-bar a { background: var(--surface); color: var(--text); }
.map-tool, .strip-btn, .route-banner { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-1); }

.print-sheet, .pc-page, .pc-front, .labels, .label, .sig, .qr, .sig-view img {
  background: #fff !important;
  box-shadow: none;
  color: #111;
}

/* flowcharts: the editor keeps its own names for colours (fc.css); they get the flat values here */
#fc-root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #e2e6eb;
  --border-strong: #c9d0d8;
  --text: #141a21;
  --muted: #4a5562;
  --accent: #1f7a3d;
  --accent-soft: #f1f3f6;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
  min-height: calc(100dvh - 120px);
  overflow: hidden;
}
#fc-root .app-header, #fc-root .topbar, #fc-root .palette, #fc-root .panel { background: transparent; color: var(--text); }
#fc-root .topbar { position: static; height: auto; padding: 0; border: 0; }
#fc-root .brand { color: var(--text); }
#fc-root .tabs button { color: var(--muted); }
#fc-root .tabs button.active, #fc-root .tabs button:hover { color: var(--text); }
#fc-root button.primary, #fc-root .btn.primary, #fc-root .folder-chips button.on { background: #1f7a3d; color: #fff; border-color: #1f7a3d; }
#fc-root .canvas-wrap { background: #f6f7f9; }
#fc-root .card, #fc-root .modal, #fc-root input, #fc-root select, #fc-root textarea { background: #fff; color: var(--text); }

/* motion: colour changes only, 150 ms or less; nothing lifts, bounces or glows */
@media (prefers-reduced-motion: no-preference) {
  .btn, .tile, .nav-item, .tab.sub, .chip, .nav-collapse, .avatar, .mini a { transition: background-color .12s ease, border-color .12s ease, color .12s ease; }
}
@media (prefers-reduced-motion: reduce) {
  .side, .btn, .tile, .nav-item, .card, .jcard, .avatar, .tbl-wrap tbody tr { transition: none !important; }
}
@media (forced-colors: active) {
  .side, .card, .tile, .btn, .nav-item, .in, .top-search, .tbl-wrap { background: Canvas; color: CanvasText; border: 1px solid CanvasText; box-shadow: none; }
  .nav-item.on, .btn { background: ButtonFace; color: ButtonText; }
}

.auth { background: var(--bg); }
.auth-card { box-shadow: none; border-radius: var(--radius-lg); }

/* ── phones and tablets (860 px and less): the menu slides in; one white 48 px bar at the top; a tab bar at the bottom ── */
@media (max-width: 860px) {
  .app-shell { padding: 0; gap: 0; }
  .side {
    position: fixed; top: 0; left: 0; width: min(300px, 88vw); height: 100dvh;
    border-right: 1px solid var(--border); border-radius: 0; transform: translateX(-105%); transition: transform .15s ease;
  }
  html.nav-collapsed .side { width: min(300px, 88vw); flex-basis: auto; }
  body.nav-open .side { transform: none; box-shadow: var(--shadow-2); }
  .mobar {
    display: flex; position: sticky; top: 0; z-index: 20; margin: 0; height: 48px; box-sizing: border-box;
    padding: 4px 98px 4px 4px; gap: 6px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; color: var(--text);
  }
  .mobar .ham { width: 40px; height: 40px; flex: 0 0 40px; padding: 0; display: grid; place-items: center; font-size: 20px; color: var(--text); background: transparent; border-radius: var(--radius); }
  .mobar .brand { gap: 8px; overflow: hidden; font-size: 15px; }
  .mobar .brand-mark { width: 28px; height: 28px; flex: 0 0 28px; }
  .mobar .brand-text { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobar .brand-text small { display: inline; margin: 0 0 0 4px; }
  .mobar .snap-btn { height: 40px; min-height: 40px; flex: 0 0 auto; }
  .nav-collapse { display: none; }
  .who .icn { display: inline-flex; }
  .who .who-label { display: inline; position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
  /* the search and you sit on the right end of the same bar */
  .topbar {
    position: sticky; top: 0; z-index: 21; align-self: flex-end; height: 48px; box-sizing: border-box;
    margin: -48px 4px 0 0; padding: 4px 0; gap: 6px; background: transparent; border: 0;
  }
  .topbar > .snap-btn { display: none; }   /* the same Receipt button is in the bar, left of the search */
  .topbar > .card-btn { display: none; }   /* 146: the same Card (QR) button is in the bar too */
  .mobar .card-btn { height: 40px; min-height: 40px; flex: 0 0 auto; }
  .top-search { position: relative; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; gap: 10px; justify-content: center; border-radius: var(--radius); background: var(--surface); }
  .top-search input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; opacity: 0; font-size: 16px; cursor: pointer; }
  .top-search:focus-within {
    position: fixed; top: 4px; left: 8px; right: 8px; z-index: 40; width: auto; height: 40px; max-width: none;
    padding: 0 14px; justify-content: flex-start; box-shadow: var(--shadow-2);
  }
  .top-search:focus-within input { position: static; opacity: 1; cursor: text; }
  .avatar { width: 40px; height: 40px; flex: 0 0 40px; }
  /* margin 0 (not auto): with auto side margins the page grew as wide as its widest table or tab row, wider than the phone.
     Now it is always exactly the screen's width, and a wide table scrolls sideways inside its own box (Nov 17 2026). */
  main { padding: 12px 12px 40px; margin-left: 0; margin-right: 0; min-width: 0; }
  .merge-tabs { margin: 8px 12px 0; }
  .content > .imp { margin: 8px 12px 0; }
}
@media (max-width: 480px) { .mobar .snap-txt { display: none; } }   /* the Receipt button shows its icon (its name stays for screen readers) */
@media (max-width: 760px) {
  .tile { min-width: 0; }
  .tile b { overflow-wrap: anywhere; }   /* a long number wraps inside its tile; it used to stick out and make the page (Stats) wider than the phone */
  h2 { font-size: 20px; line-height: 26px; margin-bottom: 10px; }
  /* a lead's page: one column that never grows past the screen ("Take this lead" was cut off, 47 px too wide) */
  .detail, .d-extra, .controls { grid-template-columns: minmax(0, 1fr); }
  .detail > *, .d-extra > *, .controls > * { min-width: 0; }
  .kv { grid-template-columns: 96px minmax(0, 1fr); }
  .kv dd { min-width: 0; overflow-wrap: anywhere; }
  .claim { flex-wrap: wrap; }
  /* Schedule -> To schedule: the two buttons go under the quote instead of past the screen's edge (was 111 px too wide) */
  .todo-row { flex-wrap: wrap; gap: 8px; padding-bottom: 12px; }
  .todo-row > a:first-child { flex: 1 1 100%; flex-wrap: wrap; gap: 2px 10px; }
  .todo-row > a:first-child > * { min-width: 0; overflow-wrap: anywhere; }
  .todo-row .meta { white-space: normal; }
  .todo-row > .btn:nth-child(2) { margin-left: 14px; }
}
/* Phone: everything you tap is at least 40 px tall */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .btn, .tab.sub, button.chip, a.chip, .linkbtn, .in, .in-sm, select, .chk { min-height: 40px; }
  .linkbtn { vertical-align: middle; }
  #main details > summary { min-height: 40px; padding-top: 9px; padding-bottom: 9px; box-sizing: border-box; }
  :where(input[type="checkbox"], input[type="radio"]) { min-width: 20px; min-height: 20px; }
}

@media print {
  body, html { background: #fff !important; }
  .side, .card, .tile, .mobar, .topbar, .tbl-wrap { box-shadow: none; background: #fff; }
  .tbl-wrap tbody td:first-child::before { background: #fff !important; box-shadow: none !important; }
}

/* ── Leads and Home (Audit #2 batch 5, "Compact"): rows on one line on a computer, phone taps at least 40 px ── */
@media (min-width: 761px) {
  .leads-tbl td { white-space: nowrap; }
  .leads-tbl .c-name strong, .leads-tbl .c-name .test { display: inline-block; }
  .leads-tbl .c-name strong { max-width: 160px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
  main:has(.leads-tbl) { min-width: 0; max-width: 100%; }   /* a narrower laptop scrolls the table inside its box, not the page */
  .leads-tbl .c-name .test { margin-left: 6px; }
  .leads-tbl .svc-line { display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
  .leads-tbl .svc-line .tag { margin-top: 0; margin-bottom: 0; }
}
@media (max-width: 760px) {
  .leads-tbl table { margin-top: 0; }
  .leads-tbl tbody tr { padding-top: 6px; padding-bottom: 6px; gap: 2px 10px; }
  .leads-filters .in, .leads-filters select, .leads-filters .chk, .leads-more .btn, .home-acts .btn { min-height: 40px; }
  .leads-filters .chk { display: inline-flex; align-items: center; }
  .leads-filters .chk input { width: 20px; height: 20px; }
  .leads-tbl .c-who .btn { min-height: 40px; }   /* "Take it": a phone tap is at least 40 px */
}
.home-tiles { gap: 10px; margin-bottom: 14px; }
.home-tiles .tile { min-height: 72px; padding: 12px 16px; box-sizing: border-box; container-type: inline-size; }
.home-tiles .tile b { font-size: 22px; font-size: min(22px, 13cqi); letter-spacing: -.01em; white-space: nowrap; line-height: 1.1; }
.home-tiles .tile span { margin-top: 4px; font-size: 13px; line-height: 1.3; }
.home-notes { display: grid; gap: 6px; margin: 0 0 14px; }
.home-notes:empty { display: none; }
.home-notes > * { margin: 0; }
.home-notes .note-box, .home-notes .acct-alert, .home-notes .bell-banner { padding: 7px 12px; border-radius: var(--radius); font-size: 13.5px; margin: 0; }
.home-notes .acct-alerts, .home-notes .sb-news { margin: 0; gap: 6px; }
/* Home: the owners' alert lines (System health, Accounting) are one line on a computer, two on a phone. A click opens the
   page that has all of it (Admin → Health, Accountant → Home); the whole line is also on hover. */
.home-notes .line-cut { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
@media (max-width: 760px) { .home-notes .line-cut { -webkit-line-clamp: 2; } }

/* ── Quotes, Invoices, Appointments: one line a row on a computer (a phone keeps the full text). The page is always the
   screen's width (like #main.acct-main): a wide table scrolls in its own box, the page never grows. ── */
#main:has(.compact-tbl) { width: 100%; min-width: 0; }
@media (min-width: 761px) {
  .compact-tbl td { white-space: nowrap; }
  .compact-tbl td > div.small { display: inline; margin-left: 8px; }
  .compact-tbl .cell-line { display: block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .compact-tbl .cell-line > div { display: inline; margin-left: 8px; }
  /* Appointments: the lead and status lines share what the row has left (at least 140 px); the buttons stay on one line */
  .appt-tbl td.c-lead, .appt-tbl td.c-st { max-width: 0; min-width: 140px; width: 30%; }
  .appt-tbl .c-lead .cell-line, .appt-tbl .c-st .cell-line { max-width: none; }
  .compact-tbl td.c-acts .row-end { flex-wrap: nowrap; gap: 6px; }
}

/* ── number tiles everywhere: about 72 px, plain figures (tabular), a long figure shrinks to fit its tile ── */
.tiles { gap: 10px; margin-bottom: 14px; }
.tile { min-height: 72px; padding: 12px 16px; }
.tiles > .tile { min-width: 0; container-type: inline-size; }
.tile b, #main.acct-main .tile b {
  font-family: var(--body); font-weight: 600; font-stretch: 100%; color: var(--text); font-variant-numeric: tabular-nums;
  font-size: 22px; font-size: min(22px, 13cqi); letter-spacing: -.01em; line-height: 1.15; overflow-wrap: anywhere;
}
.tile span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.3; }
.pill, .tbl-wrap td, .tile b, .money, .num { font-variant-numeric: tabular-nums; }

/* menu on a touch screen: rows of 40 px */
@media (max-width: 860px), (hover: none) and (pointer: coarse) {
  .nav-item, .nav-head { min-height: 40px; }
  .nav-eye { width: 40px; height: 40px; right: 2px; }
}

/* A lead's empty fields: folded under "Show empty fields" */
.kv-more { margin: 10px 0 0; }
.kv-more > summary { cursor: pointer; color: var(--text-2); font-size: 14px; padding: 4px 0; width: fit-content; }
.kv-more[open] > summary { margin-bottom: 8px; }

/* ── page headers: title and its button on one row, the filters right under ── */
.row-end:has(> h2) { margin-bottom: 10px; }
.row-end > h2 { margin: 0; }
.leads-count { margin: 0 0 8px; font-size: 13.5px; }
@media (min-width: 761px) { .filters { gap: 8px; margin-bottom: 10px; } .filters .in { min-width: 130px; } }
@media (max-width: 760px) { .filters { gap: 8px; margin-bottom: 10px; } .leads-filters .chk { flex: 1 1 40%; } }

/* ── UI redesign (Nov 2026, CRM Redesign\REDESIGN_PLAN.md): flat menu labels, My Pipeline (pipeline.js), the page switcher
   in the top bar, the phone bottom bar, placeholder boxes ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#crm-nav .nav-sec { margin-top: 12px; }
#crm-nav .nav-cap { min-height: 0; padding: 4px 10px; cursor: default; font: 600 11px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
#crm-nav .nav-cap:hover { background: none; color: var(--text-3); }
#crm-nav .nav-sec > .nav-sub { display: flex; flex-direction: column; gap: 1px; margin: 0; }

/* My Pipeline: same-size boxes, biggest number first; hover = a darker line and a grey fill */
.pipe-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.pipe-head h2 { margin: 0; }
.pipe-who { width: auto; min-width: 190px; max-width: 260px; }
.pipe-periods { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.pipe-chip { font: 600 13px/1 var(--body); padding: 8px 12px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.pipe-chip:hover { background: var(--surface-2); }
.pipe-chip.on { background: var(--primary); color: var(--primary-contrast); border-color: var(--primary); }
.pipe-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; align-items: start; }
.pipe-card { padding: 20px 18px 14px; }
.pipe-chart { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 8px; }
.pipe-bub { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 132px; height: 64px; box-sizing: border-box; padding: 8px 10px; border-radius: var(--radius-lg); text-align: center; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .12s ease, background-color .12s ease; }
a.pipe-bub:hover, a.pipe-bub:focus-visible { border-color: var(--accent); background: var(--surface-2); }
.pipe-bub.off { cursor: default; }
.pipe-t { font: 600 13.5px/1.15 var(--body); }
.pipe-n { font: 600 12px/1 var(--body); color: var(--text-3); font-variant-numeric: tabular-nums; }
.pipe-arrow { color: var(--text-3); font-size: 16px; }
.pipe-bub .pipe-kid { position: absolute; top: -7px; right: -2px; }
.pipe-bub .pipe-kid .nav-badge { margin: 0; }
.pipe-note { margin: 14px 0 0; }
.pipe-pay { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.pipe-pay-k { font: 600 12px/1.2 var(--body); color: var(--text-2); }
.pipe-pay-n { font: 700 24px/1.1 var(--body); font-variant-numeric: tabular-nums; }
.pipe-pay-go { margin-top: 6px; font-weight: 600; color: var(--accent); text-decoration: none; }
@media (max-width: 1100px) { .pipe-wrap { grid-template-columns: minmax(0, 1fr); } .pipe-pay { max-width: 320px; } }

/* placeholder boxes: still grey shapes while something loads (no shimmer) */
.skel { display: block; height: 10px; border-radius: var(--radius-sm); background: var(--surface-2); }
.skel-line { margin: 4px 0; }
.pipe-bub.skel-bub { gap: 6px; }
/* a bare "Loading…" (app.js markLoading): the words stay for screen readers, two grey bars show instead */
.ss-loading { position: relative; color: transparent !important; min-height: 40px; text-align: left !important; user-select: none; }
.ss-loading > * { visibility: hidden; }
.ss-loading::before, .ss-loading::after { content: ""; position: absolute; left: 0; height: 10px; border-radius: var(--radius-sm); background: var(--surface-2); }
.ss-loading::before { top: calc(50% - 13px); width: min(62%, 420px); }
.ss-loading::after { top: calc(50% + 3px); width: min(38%, 260px); }
td.ss-loading::before, td.ss-loading::after { left: 12px; }
.ss-slow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; color: var(--text-2); font-size: 13.5px; }

/* the page switcher inside My Pipeline: "← My Pipeline  Leads ▾" (top bar), "Doors ▾" (phone bar) */
.pipe-slot { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; min-width: 0; }
.pipe-slot[hidden] { display: none; }
.pipe-back { font: 600 13px/1 var(--body); color: var(--text-2); text-decoration: none; padding: 10px 6px; white-space: nowrap; }
.pipe-back:hover { color: var(--text); }
.pipe-sw { position: relative; }
.pipe-sw > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; box-sizing: border-box; padding: 0 10px 0 12px;
  border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface); font: 600 14px/1 var(--body); color: var(--text); cursor: pointer; white-space: nowrap; }
.pipe-sw > summary:hover { background: var(--surface-2); }
.pipe-sw > summary::-webkit-details-marker { display: none; }
.pipe-sw > summary .icn { width: 16px; height: 16px; flex: 0 0 16px; }
.pipe-sw > summary .icn svg { width: 16px; height: 16px; }
.pipe-sw[open] > summary .icn { transform: rotate(180deg); }
.pipe-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 60; min-width: 220px; padding: 4px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: 1px; }
.pipe-menu a { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 10px; border-radius: var(--radius); color: var(--text); text-decoration: none; font: 500 14px/1.1 var(--body); }
.pipe-menu a:hover { background: var(--surface-2); }
.pipe-menu a.on { background: var(--surface-2); color: var(--accent); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.pipe-menu .icn { width: 18px; height: 18px; flex: 0 0 18px; }
.pipe-menu .icn svg { width: 18px; height: 18px; }
.pipe-menu .pipe-kid { margin-left: auto; }

/* phones: the top bar holds the pipeline switcher (the bottom tab bar was removed Nov 20 2026) */
@media (max-width: 860px) {
  .mobar .pipe-back, .topbar .pipe-slot { display: none !important; }
  .mobar.has-pipe .brand { display: none; }
  .mobar .pipe-slot { flex: 1 1 auto; }
  .mobar .pipe-sw > summary { height: 40px; }
}
@media print { .pipe-slot { display: none !important; } }

/* the red "!" beside a connection that is not set up (Admin → Connections only; app.js markConns) */
[data-conn].conn-off::after { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 6px; border-radius: 50%; background: #c0261d; color: #fff;
  font: 800 11px/1 var(--body); vertical-align: 1px; }

/* small corners everywhere (master prompt §13: 4 / 6 / 10 px). Count badges, avatars, dots and the calendar's day
   circles stay round on purpose. */
.chip, .code-st, .hh-fit, .rk-flag, .rk-missing, .cl-tag, .prox-tag, .st-chip, .terr-label, .dg-saved, .loc-pill, .stats-jump button,
.upd-bar, .goal-bar, .goal-fill, #fc-root .badge, #fc-root .folder-chips button { border-radius: var(--radius-sm); }
.texts-thread, .rc-col, .acct-msg, .acct-startup-panel, .route-banner, .strip-btn, .book-day, .pq-tier, .disp-btn, .door-btn,
.print-wrap > .acts, .da, .dg-shell, .bulk-bar, .fb-shot, .acct-mail, #fc-root .card { border-radius: var(--radius); }
.dg-shell.is-fs { border-radius: 0; }
.texts-msg, .bulk-menu, #fc-root .modal { border-radius: var(--radius-lg); }
.dp-sheet, .dg-bottom > * { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.bulk-bar, .upd-bar, .loc-pill { box-shadow: var(--shadow-2); }

/* ── Number strip + status tabs with counts (redesign pattern, Nov 19 2026: Quotes, Appointments) ── */
.num-strip { display: flex; flex-wrap: wrap; margin: 0 0 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ns-item { flex: 1 1 150px; min-width: 0; padding: 10px 14px; border-left: 1px solid var(--border); margin-left: -1px; }
.ns-item b { display: block; font-size: 18px; line-height: 24px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-item span { display: block; font-size: 12px; line-height: 16px; color: var(--text-3); }
.ns-item.warn b { color: var(--warning); }
.status-tabs { margin: 0 0 12px; }
.status-tabs .tab-n { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.status-tabs .tab.sub.on .tab-n { color: var(--accent); }
@media (max-width: 760px) {
  .ns-item { flex: 1 1 45%; padding: 8px 12px; border-top: 1px solid var(--border); margin-top: -1px; }
  .ns-item b { font-size: 16px; line-height: 22px; }
  .status-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .status-tabs::-webkit-scrollbar { display: none; }
  .status-tabs .tab.sub { flex: 0 0 auto; white-space: nowrap; }
}
/* redesign pattern 2 (Nov 19 2026): the lead page as a record page. Call bar on top; tabs on the left; Status, Calls,
   Appointments and Notes on the right. Phones / narrow: one column, Status first, then the tabs, then the rest. */
.pill.pill-warn { background: var(--warning-bg); color: var(--warning); }
.lead-head { align-items: center; margin-bottom: 8px; }
.lead-head h2 { margin-bottom: 0; }
.lead-pills { flex-wrap: wrap; gap: 6px; }
.lead-bar { margin: 0 0 12px; }
.lead-bar .actions { border-bottom: 0; padding: 0; margin: 0; }
.lead-bar .textmenu { margin-top: 8px; }
.detail.lead-rec { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: none; grid-template-rows: auto; }
.lead-rec > .d-main, .lead-rec > .d-side { min-width: 0; display: grid; gap: 16px; align-content: start; }
.lead-rec .d-main > .status-tabs { margin: 0; }
.lead-rec .d-pane { min-width: 0; display: grid; gap: 16px; align-content: start; }
.lead-rec .d-info, .lead-rec .d-ctl, .lead-rec .d-hist, .lead-rec .d-extra { grid-area: auto; }
.lead-rec .d-side h3 { margin-bottom: 8px; }
.lead-rec .d-ctl .fu { margin-top: 12px; }
.lead-rec .d-calls ul.history { margin: 0; }
.lead-rec .d-trash { display: flex; justify-content: flex-end; }
.appt-mini li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 2px; }
.appt-mini .meta { color: var(--text-3); font-size: 13px; white-space: nowrap; }
@media (max-width: 1000px) {
  .detail.lead-rec { display: flex; flex-direction: column; gap: 16px; }
  .lead-rec > .d-side { display: contents; }
  .lead-rec .d-ctl { order: 1; } .lead-rec > .d-main { order: 2; } .lead-rec .d-calls { order: 3; }
  .lead-rec .d-appts { order: 4; } .lead-rec .d-notes { order: 5; } .lead-rec .d-trash { order: 6; }
}
/* redesign pattern 4 (Nov 19 2026): the split sign-in screen. The plain form on the left; a panel on the right.
   Nov 21 2026 (Steve): the Surgeon mascot on navy (the website's brand navy), the STONE SURGEONS wordmark and what we do.
   Flat: no gradient, no shadow. Phones and narrow windows: the form only (the picture is never fetched). */
.auth.auth-split { grid-template-columns: minmax(380px, 1fr) minmax(0, 1.3fr); place-items: stretch; padding: 0; min-height: 100vh; }
.auth-split .auth-form { display: grid; place-items: center; padding: 24px 16px; min-width: 0; }
.auth-show { background: #17602f; color: #eaf5ee; display: grid; place-items: center; padding: 48px 40px; overflow: hidden; min-width: 0; text-align: center; }
.auth-show-in { display: grid; justify-items: center; max-width: 560px; min-width: 0; }
.auth-mascot { display: block; height: min(52vh, 460px); width: auto; max-width: 100%; margin: 0 0 28px; }
.auth-mascot.auth-gecko { height: min(36vh, 320px); }   /* the Gecko icon is squarer than the old mascot was */
.auth-word { font-family: var(--display, 'Archivo', 'Arial Black', sans-serif); font-stretch: 125%; font-weight: 800; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; letter-spacing: .01em; color: #ffffff; margin: 0 0 14px; }
.auth-tag { font-size: 16px; line-height: 24px; font-weight: 600; color: #b9efe6; margin: 0; max-width: 560px; text-wrap: balance; }
@media (max-width: 900px) {
  .auth.auth-split { grid-template-columns: minmax(0, 1fr); }
  .auth-show { display: none; }
}

/* ── Redesign pattern 3 (Nov 19 2026): the rep's A / B / C rating. A hot = red, B warm = amber, C cold = blue.
   Leads rows get a 3 px coloured left edge (a child of the first cell, like the row tint above); the lead page has chips
   in the Status card and a pill in the header. */
.leads-tbl tbody tr.rate-a, .leads-tbl tbody tr.rate-b, .leads-tbl tbody tr.rate-c { --rate: transparent; }
.leads-tbl tbody tr.rate-a { --rate: var(--danger); }
.leads-tbl tbody tr.rate-b { --rate: var(--warning); }
.leads-tbl tbody tr.rate-c { --rate: var(--info); }
.leads-tbl tbody tr[class*="rate-"] td:first-child::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--rate); pointer-events: none;
}
.pill.rate-a, .chip.rate-a.on { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-line); }
.pill.rate-b, .chip.rate-b.on { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-line); }
.pill.rate-c, .chip.rate-c.on { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.chip.on:not([class*="rate-"])[data-rate="none"] { background: var(--surface-2); color: var(--text); }
.rate-f > span { display: block; margin-bottom: 4px; }
.rate-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rate-chips .chip[disabled] { opacity: .6; cursor: default; }

/* ── Phase 4 (Nov 19 2026): Home panels — 5 rows, a count beside the title, "See all" on the right. Owners get three
   panels side by side on wide screens; phones stack them. */
.home-panels { margin-top: 16px; }
.home-panel { min-width: 0; }
.home-panels > section.card + section.card { margin-top: 0; }   /* the grid gap spaces them, not the card-after-card margin */
.home-panel > .row-end { margin-bottom: 8px; align-items: baseline; }
.home-panel h3 { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.panel-n { font-size: 12px; font-weight: 600; color: var(--text-2, var(--muted)); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 0 8px; line-height: 18px; }
.see-all { font-size: 13px; white-space: nowrap; }
.home-late { margin: 8px 0 0; }
.home-rank { margin: 0; font-size: 15px; }
.home-rank b { font-size: 20px; margin-right: 4px; }
.home-skel { padding: 4px 0; }
.home-skel .skel-line { height: 14px; margin: 10px 0; }
.home-skel .skel-line:nth-child(2) { width: 80%; }
.home-skel .skel-line:nth-child(3) { width: 60%; }
@media (min-width: 1100px) { .grid2.home-panels-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid2.home-panels { grid-template-columns: minmax(0, 1fr); } .see-all { min-height: 40px; display: inline-flex; align-items: center; } }

/* ── Phase 5 (Nov 2026): folds. A folded card is one line (a title, a count, a hint) with a chevron; open it to see the
   rest. Used by Admin → Features (one per area), Health ("Working · N") and nowhere else yet. ── */
details.fold > summary { display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: ''; flex: 0 0 auto; margin-left: auto; width: 7px; height: 7px; margin-right: 4px;
  border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: rotate(-45deg); }
details.fold[open] > summary::after { transform: rotate(45deg); }
details.fold > summary h3 { margin: 0; }
details.fold[open] > summary { margin-bottom: 10px; }
.feat-find { margin: 0 0 6px; } .feat-hits:empty { display: none; }
section.card + details.fold, details.fold + details.fold, details.fold + section.card { margin-top: 10px; }
.feat-sec.fold { padding-top: 12px; padding-bottom: 12px; }
.health-ok.fold { padding: 10px 14px; margin: 0 0 16px; }
.health-ok > summary .health-dot { margin-top: 0; }
.health-ok > summary .muted { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.health-ok > .health-list { margin: 0; }

/* ── Phase 5: Admin → Database opens on the list of tables, one divider row each with its row count ── */
.db-lines { list-style: none; margin: 0 0 12px; padding: 0; overflow: hidden; }
.db-lines > li + li { border-top: 1px solid var(--border); }
.db-line { display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--row-h); padding: 7px 14px; box-sizing: border-box;
  background: none; border: 0; border-radius: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.db-line:hover { background: var(--surface-2); }
.db-line-t { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.db-line-t .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-n { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.db-more { margin: 10px 0 0; }
@media (max-width: 760px) { .db-line { min-height: 44px; } }

/* ── Phase 5: Accountant and Stats — the title and the tabs on one row; Accountant's pages as one slim row under it ── */
.row-end.acct-top { justify-content: flex-start; gap: 4px 16px; margin-bottom: 0; }
.acct-top > .acct-groups { flex: 1 1 auto; min-width: 0; border-bottom: 0; }
.acct-head > .acct-tabs { margin-top: 2px; }
.acct-head > .acct-tabs .tab.sub { padding: 4px 10px; font-size: 13px; }
.row-end.stats-top { justify-content: flex-start; gap: 4px 16px; margin-bottom: 12px; }
.stats-top > .stats-tabs { flex: 1 1 0; min-width: 240px; margin: 0; border-bottom: 0; }   /* grows into the space beside the title; its tabs wrap inside it */
.stats-top > .filters { margin-left: auto; }
.stats-sec.tabbed > .stats-h { display: none; }

/* ── Phase 5: Admin → Accounts — "+ Add account" opens the form above the list; phones fold each person's buttons ── */
.acct-list-head { margin: 0 0 8px; } .acct-list-head > h3 { margin: 0; }
form.acct-add { margin: 0 0 14px; }
.acct-manage { display: none; }
@media (max-width: 760px) {
  .acct-head > .acct-tabs .tab.sub { min-height: 40px; display: inline-flex; align-items: center; }
  .admin-tbl .acct-manage { display: inline-flex; }
  .admin-tbl tr:not(.open) .acct-acts > .acts { display: none; }
}

/* ── Phase 6 (Nov 2026): sweep. To do ticks in a 40 px tap box; on phones every small control is at least 40 px to tap
   (notice ⓘ / ×, Accountant "open", calendar "+", map zoom, Flowcharts bar, Doors card), and dialogs open as a sheet from the bottom ── */
.todo-tick { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin: -8px -10px -10px; cursor: pointer; }
.acct-pick { flex: none; display: inline-flex; align-items: center; cursor: pointer; }
.todo-item > .todo-tick > input[type="checkbox"] { width: 20px; height: 20px; margin: 0; cursor: pointer; accent-color: var(--blue); }
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .nb-btn { width: 40px; height: 40px; margin: -9px 0; line-height: 40px; }
  .nb-btn:last-child { margin-right: -8px; }
  .acct-close a.small { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; }
  .cal-dh .cal-add { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0; }
  html .leaflet-touch .leaflet-bar a, html .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; }
  #fc-root .topbar button, #fc-root .zoombar button, #fc-root .modal-close { min-height: 40px; }
  #fc-root .topbar { flex-wrap: wrap; }
  .dg-x { width: 40px; height: 40px; }
  .dg-names { min-height: 40px; }
  .sheet-x { width: 40px; height: 40px; }
  #fc-root .zoombar button { min-width: 40px; }
  #fc-root .panel .row, #fc-root label.row, #fc-root label.check { min-height: 40px; }
  .lb-nav .btn { min-width: 40px; }
  #main input[type="range"] { min-height: 40px; }
  .acct-pick { width: 40px; height: 40px; justify-content: center; margin: -10px -6px -10px -10px; }
  a.tap-link { display: inline-flex; align-items: center; min-height: 40px; max-width: 100%; overflow-wrap: anywhere; }
}
@media (max-width: 760px) {
  body > .modal { place-items: end center; padding: 0; }
  body > .modal > .modal-box { width: 100%; max-width: none; max-height: 88vh; box-sizing: border-box;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* ── Nov 20 2026: drag-and-drop boards (board.js: Recruiting, Bugs). Computers drag a card to another column; phones and
   touch screens use the card's Move ▾ picker. My Pipeline's Calls bubble says "leads reached" under its title. ── */
.dboard { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 1fr); gap: 10px; overflow-x: auto; contain: inline-size; padding-bottom: 6px; }
.dboard.rc-board { grid-template-columns: none; }   /* the old 5-column Recruiting grid in app.css must not widen the board */
.db-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 140px; min-height: 140px; }
.db-col h3 { margin: 0 0 2px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.db-list { display: grid; gap: 8px; align-content: start; flex: 1 1 auto; }
.db-card[draggable="true"] { cursor: grab; }
.db-card[draggable="true"]:active { cursor: grabbing; }
.db-dragging { opacity: .4; }
.db-saving { opacity: .6; pointer-events: none; }
.dboard.db-on .db-col { border-style: dashed; }
.db-col.db-over { border: 1px solid var(--accent); background: var(--accent-soft); }
.db-move { display: none; width: 100%; margin-top: 4px; }
.db-new .rc-card { box-shadow: inset 3px 0 0 var(--accent); }
.rc-flash { border-color: var(--accent); }
.pipe-bub:has(.pipe-s) { gap: 2px; }
.pipe-s { font: 400 11px/1.1 var(--body); color: var(--text-3); }
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .db-move { display: block; }
  .dboard { grid-auto-columns: minmax(220px, 78vw); }
}

/* ── Nov 20 2026 (v122): My Pipeline on one row in the top ~40% of the screen, doors knocked beside the title, KPI tiles below ── */
.pipe-doors { align-self: center; }
.pipe-card { min-height: clamp(180px, 34vh, 420px); display: flex; flex-direction: column; justify-content: center; }
.pipe-chart { flex-wrap: nowrap; gap: 6px; }
.pipe-chart > .pipe-bub { flex: 1 1 0; min-width: 0; width: auto; height: clamp(72px, 20vh, 160px); padding: 8px 6px; }
.pipe-chart .pipe-t { font-size: 13px; overflow-wrap: anywhere; }
.pipe-chart .pipe-n { font: 700 20px/1 var(--body); color: var(--text); }
.pipe-arrow { flex: 0 0 auto; }
/* 175 (Steve, Nov 25 2026): the step boxes are wider than tall: two rows of four (box, arrow, box, …), each box as wide as
   its column and about half as tall, instead of eight thin, tall boxes on one row */
.pipe-card { min-height: 0; }
.pipe-chart { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr) auto); align-items: center; gap: 12px 8px; }
.pipe-chart > .pipe-bub { width: auto; height: auto; aspect-ratio: 16 / 9; min-height: 72px; max-height: 120px; }
.pipe-chart > :not(.pipe-bub):not(.pipe-arrow) { grid-column: 1 / -1; }
.leads-periods { margin: 0 0 10px; }
.pipe-kpi-card { margin-top: 16px; padding: 16px 18px; }
.pipe-kpi-card h3 { margin: 0 0 10px; font-size: 15px; }
.pipe-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pipe-kpi { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.pipe-kpi-t { font: 600 13px/1.2 var(--body); color: var(--text-2); }
.pipe-kpi-n { font: 700 22px/1.1 var(--body); font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .pipe-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.todo-tools { margin: 12px 0 0; gap: 10px; flex-wrap: wrap; justify-content: flex-start; }
.todo-tools .f { min-width: 170px; }
.todo-src { font: 600 11px/1.3 var(--body); color: var(--accent); margin-top: 2px; }
.fb-bcard { position: relative; }
.fb-bcard .fb-del-x { position: absolute; top: 4px; right: 4px; min-width: 28px; min-height: 28px; padding: 0; font-size: 16px; line-height: 1; color: var(--text-3); }
.fb-bcard .fb-del-x:hover { color: var(--danger, #b42318); }
.fb-bcard .rc-card { padding-right: 32px; }
.fb-del { color: var(--danger, #b42318); }
@media (max-width: 760px) { .fb-bcard .fb-del-x { min-width: 40px; min-height: 40px; top: 0; right: 0; } .fb-bcard .rc-card { padding-right: 44px; } }
.db-plain-list { margin: 0; padding-left: 18px; } .db-plain-list li { margin: 2px 0; overflow-wrap: anywhere; }
/* Admin → Connections: one on/off switch per connection (app.js connSwitches, migration 142). Off pauses it. */
.conn-sw { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 16px; margin: 4px 0 10px; padding: 4px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.conn-sw-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--border); }
.conn-sw-name { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn-sw-state { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.conn-sw-row.off .conn-sw-state { color: var(--err); font-weight: 600; }
.conn-sw-tgl { display: inline-flex; align-items: center; cursor: pointer; }
.conn-tgl { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; margin: 0; border-radius: 11px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .15s; flex: none; }
.conn-tgl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.conn-tgl:checked { background: var(--ok, #1f8a4c); }
.conn-tgl:checked::after { transform: translateX(18px); }
.conn-tgl:disabled { opacity: .55; cursor: not-allowed; }
.conn-tgl:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.conn-paused { margin: 0 0 10px; padding: 8px 12px; border-radius: var(--radius); background: #fdecea; color: #8a1c13; font-weight: 600; }
html[data-theme="dark"] .conn-paused { background: #3a1714; color: #ffb4ab; }
@media (max-width: 760px) { .conn-sw { grid-template-columns: 1fr; } }

/* 144 (Nov 21 2026): a rating the AI picked from the notes */
.rate-auto-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; line-height: 18px; font-weight: 600; color: var(--muted); vertical-align: middle; }
.rate-chips .rate-auto { flex-basis: 100%; margin: 0 0 2px; }
.rate-chips .rate-auto .rate-auto-tag { margin-left: 0; }

/* 152 (Nov 22 2026): do-not-knock houses */
.dg-dnk-note { margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: #fde8e7; color: #8a0f0a; border: 1px solid #f3b4b0; font-size: 13px; line-height: 1.35; }
.dg-dnk-card .dg-card-head b { color: #c4110b; }
.dg-dnk-dot { display: grid; place-items: center; width: 44px; height: 44px; font-size: 30px; line-height: 1; flex: none; }
.dnk-note { margin: -4px 0 10px; }
.dnk-list { margin: 10px 0 0; }
.dnk-list h4 { margin: 0; }
/* 155: the houses with their details (owners only) */
.dnk-tbl-wrap { contain: inline-size; margin-top: 8px; }
/* Admin → E-transfers (157): view-only list */
.et-tbl-wrap { contain: inline-size; margin-top: 8px; }
.et-tbl td, .et-tbl th { white-space: nowrap; vertical-align: top; }
.et-tbl td.num, .et-tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.et-tbl td.et-wrap { white-space: normal; min-width: 180px; max-width: 360px; overflow-wrap: anywhere; }
.et-tiles { margin: 6px 0 4px; }
/* 158: Refresh beside the period; a cancelled / expired transfer is greyed and struck through */
.et-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.et-tbl tr.et-gone td { opacity: .62; }
.et-tbl .et-gone-note { color: var(--danger); opacity: 1; }
/* v149: status pills — Awaiting confirmation yellow, Collected green, Cancelled red, Expired grey; the status stays bright on a greyed row */
.et-tbl tr.et-gone td.et-st-cell { opacity: 1; }
.pill.et-st { border: 1px solid transparent; }
.pill.et-st-awaiting { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-line); }
.pill.et-st-collected { background: var(--success-bg); color: var(--success); border-color: var(--success-line); }
.pill.et-st-cancelled { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-line); }
.pill.et-st-expired { background: var(--surface-2); color: var(--text); }
.et-tbl .et-mark { margin-top: 4px; }
/* v151: status totals — the amount in the status colour, a matching bar on the left */
.et-tiles .tile.et-t-collected { box-shadow: inset 3px 0 0 var(--success-line); }
.et-tiles .tile.et-t-collected b { color: var(--success); }
.et-tiles .tile.et-t-awaiting { box-shadow: inset 3px 0 0 var(--warning-line); }
.et-tiles .tile.et-t-awaiting b { color: var(--warning); }
.et-tiles .tile.et-t-cancelled { box-shadow: inset 3px 0 0 var(--danger-line); }
.et-tiles .tile.et-t-cancelled b { color: var(--danger); }
.dnk-tbl td, .dnk-tbl th { white-space: nowrap; }
.dnk-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.dnk-houses input[type=search] { width: 100%; margin: 4px 0 6px; }
.dnk-cols { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
