/* ── The project card (Oct 22 2026) ──────────────────────────────────────────
   Nick's approved redesign of the CRM project card, applied to the real card
   (js/crm.js drawerHtml) and scoped to it: .crm-drawer.crm-card is set only
   on a project's card, so Prowl's task card and the Dashboard's pop-ups,
   which borrow the CRM's drawer classes, keep their own look.

   The rules:
   - One navy head holds what used to be the left rail: Leo's reading of where
     the project stands, whose move it is, the client to call, the stage and
     priority, the agreement, the deadline and the four gates. The tabs sit on
     the same navy, centred, as plain words with a cream underline.
   - The head stays short (Nick, Oct 28), one column of lines: the address
     with the town beside it, the client to write to, call or copy, then
     where it stands: Leo's line, one line of facts, the gates. What can live
     in a tab does (the utility, a verdict's reasons, the step's name in the
     ladder's hover).
   - No divider lines in the body. Three kinds of content, three treatments:
     facts sit in tinted wells, lists sit on the page, talk sits in bubbles.
     Space between groups (32px) is several times the space inside one.
   - Sentence-case headings, no uppercase tracked labels.
   - Light and dark both; the head is navy in both. */

.crm-drawer.crm-card {
  --pc-night: #1f2533;
  --pc-cream: #f4efe2;
  --pc-cream-80: rgb(244 239 226 / .8);
  --pc-cream-60: rgb(244 239 226 / .66);
  --pc-cream-25: rgb(244 239 226 / .25);
  --pc-cream-12: rgb(244 239 226 / .14);
  --pc-red-n: #f2b4ac;
  --pc-gold-n: #e8d29a;
  --pc-green-n: #a6dbbd;
  --pc-well: color-mix(in srgb, var(--crm-head) 4.5%, var(--crm-paper));
  --pc-bubble-me: color-mix(in srgb, #3c5a9a 13%, var(--crm-paper));
  --pc-gap: 32px;
  --pc-ease: cubic-bezier(.22, 1, .36, 1);
  border: 0; border-radius: 18px; background: var(--crm-paper);
  box-shadow: 0 40px 90px -40px rgba(10, 14, 22, .6), 0 0 0 1px rgb(23 28 39 / .06);
}
[data-theme="dark"] .crm-drawer.crm-card {
  --pc-night: #13161e;
  --pc-well: color-mix(in srgb, #ffffff 5%, var(--crm-paper));
  --pc-bubble-me: color-mix(in srgb, #7f9be0 16%, var(--crm-paper));
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgb(244 239 226 / .07);
}

/* ── The head ──────────────────────────────────────────────────────────── */
.crm-card > .crm-drawer-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; row-gap: 10px;
  align-items: start; background: var(--pc-night); color: var(--pc-cream);
  padding-top: 18px; padding-left: 32px; padding-bottom: 0; border-bottom: 0;
}
@media (min-width: 641px) {
  .crm-card > .crm-drawer-head { padding-right: max(32px, 78px - max(16px, (100vw - var(--pane-left) - 1180px) / 2)); }
}
@media (min-width: 641px) and (max-width: 1080px) {
  .crm-card > .crm-drawer-head { padding-right: max(32px, 78px - max(12px, (100vw - var(--pane-left) - 8px - 1180px) / 2)); }
}
@media (min-width: 641px) and (max-width: 1000px) {
  .crm-card > .crm-drawer-head { padding-right: calc(78px + 44px + 8px); }
}
.crm-card .crm-drawer-heading {
  grid-column: 1; grid-row: 1; align-self: center; min-width: 0;
  flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 2px;
}
.crm-card .crm-heading-row { align-items: center; gap: 4px; }
.crm-card .crm-drawer-head h2 {
  font-family: var(--font-serif, 'Space Grotesk', Inter, sans-serif); font-weight: 600;
  font-size: 24px; line-height: 1.15; letter-spacing: -.015em; color: var(--pc-cream);
}
.crm-card .crm-card-place { font-size: 13.5px; color: var(--pc-cream-80); }
.crm-card .crm-drawer-head .crm-copy { opacity: .6; color: var(--pc-cream-60); }
.crm-card .crm-drawer-head .crm-copy:hover, .crm-card .crm-drawer-head .crm-copy:focus-visible { opacity: 1; color: var(--pc-cream); }
.crm-card .crm-archived { align-self: flex-start; background: rgb(242 180 172 / .16); color: var(--pc-red-n); text-transform: none; letter-spacing: 0; font-size: 12px; }

/* the map buttons and the close */
.crm-card .crm-head-right { grid-column: 2; grid-row: 1; flex-wrap: wrap; justify-content: flex-end; }
.crm-card .crm-head-right .crm-quick {
  height: 34px; padding: 0 14px; font-size: 13px; font-weight: 600;
  background: var(--pc-cream); color: var(--pc-night); border: 1px solid var(--pc-cream);
}
.crm-card .crm-head-right .crm-quick:hover { background: #fff; border-color: #fff; }
.crm-card .crm-head-right .crm-quick-quiet {
  background: transparent; color: var(--pc-cream); border-color: var(--pc-cream-25); font-weight: 500;
}
.crm-card .crm-head-right .crm-quick-quiet:hover { background: transparent; border-color: var(--pc-cream-60); }
.crm-card .crm-head-right .crm-quick svg { width: 15px; height: 15px; }
.crm-card .crm-close {
  width: 34px; height: 34px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid var(--pc-cream-25); color: var(--pc-cream); font-size: 14px;
}
.crm-card .crm-close:hover { background: transparent; border-color: var(--pc-cream-60); color: var(--pc-cream); }

/* Leo's line: where it stands, in its own row over the facts, the sentence
   then its reason, two lines at most; the whole of it on hover. */
.crm-card .crm-card-now { grid-column: 1 / -1; grid-row: 3; min-width: 0; margin-top: 6px; }
.crm-card .crm-card-now .crm-leo { border: 0; padding: 0; margin: 0; gap: 9px; align-items: flex-start; }
.crm-card .crm-card-now .crm-leo-mark { margin-top: 1px; }
.crm-card .crm-card-now .crm-leo-mark-img { width: 18px; height: 18px; border-radius: 50%; }
.crm-card .crm-card-now .crm-leo-body {
  min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: 14px; line-height: 1.45;
}
.crm-card .crm-card-now .crm-leo-line { display: inline; font-size: 15px; font-weight: 500; color: var(--pc-cream); }
.crm-card .crm-card-now .crm-leo-sub { display: inline; margin: 0 0 0 8px; font-size: 13.5px; color: var(--pc-cream-60); }

/* whose move, in the line of facts */
.crm-card .crm-drawer-head .crm-whose {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
}
.crm-card .crm-whose-k { font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--pc-cream-60); }
.crm-card .crm-whose-v { font-size: 13px; font-weight: 600; color: var(--pc-cream); margin: 0; }
.crm-card .crm-whose-seat, .crm-card .crm-drawer-head .crm-whose .crm-whose-age { font-size: 13px; color: var(--pc-cream-60); margin: 0; }
.crm-card .crm-drawer-head .crm-whose .crm-whose-late { color: var(--pc-red-n); font-weight: 500; }
.crm-card .crm-card-step { font-size: 13px; color: var(--pc-cream-80); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* the client, on every tab: one line under the address, as on an envelope */
.crm-card .crm-card-client {
  grid-column: 1 / -1; grid-row: 2; justify-self: start;
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; row-gap: 2px; min-width: 0;
}
.crm-card .crm-card-client-n { display: flex; align-items: center; gap: 2px; font-size: 14px; color: var(--pc-cream); font-weight: 500; }
.crm-card .crm-card-firm { margin-left: 12px; font-weight: 400; color: var(--pc-cream-60); }
.crm-card .crm-card-client-l { display: flex; flex-wrap: wrap; justify-content: flex-start; column-gap: 14px; font-size: 13px; }
.crm-card .crm-card-reach { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.crm-card .crm-card-reach a { color: var(--pc-cream-80); text-decoration: none; font-variant-numeric: tabular-nums; }
.crm-card .crm-card-reach a:hover { color: var(--pc-cream); text-decoration: underline; text-underline-offset: 3px; }

/* stage and priority, the agreement, the deadline */
.crm-card .crm-card-meta {
  grid-column: 1 / -1; grid-row: 4; display: flex; flex-wrap: wrap; align-items: center;
  column-gap: 20px; row-gap: 6px; min-width: 0;
}
.crm-card .crm-card-meta:empty { display: none; }
.crm-card .crm-card-meta .crm-head-pills { margin: 0; gap: 6px; }
.crm-card .crm-card-meta .crm-head-pills .crm-stchip { min-height: 24px; padding: 2px 10px; }
.crm-card .crm-card-meta .crm-head-pills .crm-stlabel { font-size: 12px; }
.crm-card .crm-card-meta .crm-agree-rail {
  margin: 0; padding: 0; border: 0; display: flex; align-items: baseline; gap: 8px; min-width: 0; max-width: 100%;
}
.crm-card .crm-card-meta .crm-rail-t {
  margin: 0; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--pc-cream-60);
}
.crm-card .crm-card-meta .crm-gate { background: none; border: 0; padding: 0; font-size: 13px; font-weight: 500; color: var(--pc-gold-n); }
.crm-card .crm-card-meta .crm-gate-no { display: none; }
.crm-card .crm-card-meta .crm-gate-clear { color: var(--pc-green-n); }
.crm-card .crm-card-meta .crm-gate-stuck { color: var(--pc-red-n); }
.crm-card .crm-card-meta .crm-gate-t { text-transform: none; }
.crm-card .crm-card-meta .crm-agree-rail .crm-whose-age {
  margin: 0; font-size: 13px; color: var(--pc-cream-60); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 560px;
}
/* a not-on-file verdict's reasons read on the badge's hover; a shut gate's
   stays, it blocks the application */
.crm-card .crm-card-meta .crm-agree-rail .crm-whose-age:not(.crm-whose-late) { display: none; }
.crm-card .crm-card-meta .crm-agree-rail .crm-whose-late { color: var(--pc-red-n); font-weight: 400; }
.crm-card .crm-card-meta .crm-loa {
  margin: 0; padding: 0; border: 0; font-size: 13px; color: var(--pc-cream-80);
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px;
}
.crm-card .crm-card-meta .crm-due-over, .crm-card .crm-card-meta .crm-loa-late { color: var(--pc-red-n); }
.crm-card .crm-card-meta .crm-due-basis { margin: 0; font-size: 13px; color: var(--pc-cream-60); }
.crm-card .crm-card-meta .crm-due-act { color: var(--pc-gold-n); }
.crm-card .crm-card-meta .crm-due-edit { flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 16px; padding: 12px 0 4px; }
.crm-card .crm-card-meta .crm-due-flabel, .crm-card .crm-card-meta .crm-due-why { color: var(--pc-cream-80); }
.crm-card .crm-card-meta .crm-due-err { color: var(--pc-red-n); }
.crm-card .crm-card-meta .crm-sched-acts .crm-btn:not(.crm-btn-primary) { color: var(--pc-cream); border-color: var(--pc-cream-25); background: transparent; }
.crm-card .crm-card-meta .crm-sched-acts .crm-btn-primary { color: var(--pc-night); border-color: var(--pc-cream); background: var(--pc-cream); }

/* the seventeen steps and the four gates */
.crm-card .crm-lad {
  grid-column: 1 / -1; grid-row: 5; display: grid; grid-template-columns: repeat(17, minmax(0, 1fr));
  column-gap: 3px; margin-top: 4px; padding-bottom: 12px;
}
.crm-card .crm-lad-gate {
  grid-row: 1; display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden;
  padding: 0 0 6px 9px; font-size: 12px; color: var(--pc-cream-60); white-space: nowrap;
}
.crm-card .crm-lad-rn { font-family: var(--font-serif, 'Space Grotesk', Inter, sans-serif); font-weight: 600; }
.crm-card .crm-lad-gw { overflow: hidden; text-overflow: ellipsis; }
.crm-card .crm-lad-gate svg { width: 12px; height: 12px; flex: 0 0 auto; }
.crm-card .crm-lad-stuck { color: var(--pc-gold-n); }
.crm-card .crm-lad-stuck .crm-lad-gw { color: var(--pc-cream); font-weight: 500; }
.crm-card .crm-lad-untracked { opacity: .8; }
.crm-card .crm-lad-tick { grid-row: 2; align-self: end; height: 3px; border-radius: 2px; background: var(--pc-cream-12); }
.crm-card .crm-lad-done { background: var(--pc-cream-60); }
.crm-card .crm-lad-now { height: 9px; background: var(--crm-gold); }
.crm-card .crm-lad-gap { margin-left: 9px; }

/* ── The tabs, on the navy ────────────────────────────────────────────────── */
.crm-card > .crm-drawer-body { display: flex; flex-direction: column; grid-template-columns: none; }
.crm-card > .crm-drawer-body > .crm-pane { flex: 1 1 auto; }
.crm-card .crm-tabs2 {
  justify-content: center; gap: 22px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  padding: 0 32px; background: var(--pc-night); border-bottom: 0;
}
.crm-card .crm-tabs2::-webkit-scrollbar { display: none; }
.crm-card .crm-tab2 {
  position: relative; height: 40px; padding: 0; margin: 0; border: 0;
  font-size: 13.5px; font-weight: 400; letter-spacing: 0; text-transform: none;
  color: var(--pc-cream-60); gap: 7px;
}
.crm-card .crm-tab2::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px 2px 0 0;
  background: var(--pc-cream); transform: scaleX(0); transition: transform 260ms var(--pc-ease);
}
.crm-card .crm-tab2:hover { color: var(--pc-cream-80); border-bottom-color: transparent; }
.crm-card .crm-tab2-on, .crm-card .crm-tab2-on:hover { color: var(--pc-cream); font-weight: 500; border-bottom-color: transparent; }
.crm-card .crm-tab2-on::after { transform: none; }
/* the portal's lifted gold tab is the old card's; here the underline alone says which */
.crm-card .crm-tab2-on::before { content: none; }
.crm-card .crm-tab2:focus-visible { outline: 2px solid var(--pc-gold-n); outline-offset: -2px; }
.crm-card .crm-tab2 .crm-sec-count { background: none; padding: 0; font-size: 12px; font-weight: 400; color: var(--pc-cream-60); letter-spacing: 0; }
.crm-card .crm-tab2 .crm-leo-mark { margin: 0; }
.crm-card .crm-tab2 .crm-leo-mark-img { width: 16px; height: 16px; border-radius: 50%; vertical-align: -3px; }

/* ── The body: no lines; spacing and tone do the grouping ──────────────────── */
/* The foot leaves room for the Ask Leo button in the window's corner, so
   nothing at the end of a tab has to sit under it. */
.crm-card .crm-drawer-scroll {
  padding: 30px 36px 76px; container-type: inline-size;
  scrollbar-width: thin; scrollbar-color: var(--crm-rule-firm) transparent;
}
.crm-card .crm-sec, .crm-card .crm-dsub { margin: 0; }
.crm-card .crm-drawer-scroll .crm-sec + .crm-sec,
.crm-card .crm-drawer-scroll .crm-dsub + .crm-dsub,
.crm-card .crm-drawer-scroll .crm-fields + .crm-dsub,
.crm-card .crm-drawer-scroll .crm-fields + .crm-sec,
.crm-card .crm-drawer-scroll .crm-dsub + .crm-sec,
.crm-card .crm-drawer-scroll .crm-sec + .crm-fields,
.crm-card .crm-drawer-scroll .crm-sec + .crm-dsub,
.crm-card .crm-drawer-scroll .crm-dsub + .crm-fields,
.crm-card .crm-drawer-scroll .crm-rail-sec + .crm-fields,
.crm-card .crm-drawer-scroll .crm-fields + .crm-rail-sec,
.crm-card .crm-drawer-scroll .crm-fields + .crm-stage-walk {
  border-top: 0; padding-top: 0; margin-top: var(--pc-gap);
}
.crm-card .crm-sec-title, .crm-card .crm-rail-t {
  margin: 0 0 12px; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--crm-head); display: flex; align-items: baseline; gap: 8px;
}
.crm-card .crm-sec-title .crm-sec-count, .crm-card .crm-rail-t .crm-sec-count {
  background: none; padding: 0; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--crm-ink-2);
}
.crm-card .crm-fold-note { margin: 0 0 20px; font-size: 13.5px; }

/* facts: a tinted well of label / value rows, two columns when there is room */
.crm-card .crm-fields {
  display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 40px; row-gap: 0; align-items: start;
  background: var(--pc-well); border-radius: 10px; padding: 6px 16px;
}
@container (min-width: 720px) {
  .crm-card .crm-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.crm-card .crm-field {
  display: grid; grid-template-columns: minmax(110px, 40%) minmax(0, 1fr); column-gap: 16px;
  align-items: center; min-height: 38px; padding: 5px 0;
}
.crm-card .crm-field-label {
  margin: 0; font-size: 13.5px; font-weight: 400; letter-spacing: 0; text-transform: none;
  color: var(--crm-ink-2); display: flex; align-items: center; gap: 2px; min-width: 0;
}
.crm-card .crm-field-value { font-size: 13.5px; color: var(--crm-head); min-width: 0; }
/* a field's note (why the installer cannot be assigned yet, a proposed value) runs under both columns */
.crm-card .crm-field > :nth-child(n+3) { grid-column: 1 / -1; margin-top: 2px; }
.crm-card .crm-field-proposed { border-radius: 8px; }
.crm-card .crm-field .crm-file { background: var(--crm-paper); border-color: transparent; margin: 2px 6px 2px 0; }
.crm-card .crm-doc-add { margin: 2px 0; }
.crm-card .crm-doc-or { margin: 2px 10px; min-height: 0; }

/* the numbers ops re-type, the people to call: rows in a well too */
.crm-card .crm-drawer-scroll .crm-rail-sec {
  margin: 0 0 var(--pc-gap); padding: 0; border: 0;
}
.crm-card .crm-drawer-scroll .crm-fields + .crm-rail-sec { margin-bottom: 0; }
.crm-card .crm-drawer-scroll .crm-rail-sec > .crm-rail-t + * { margin-top: 0; }
.crm-card .crm-drawer-scroll .crm-rail-sec .crm-fact {
  display: grid; grid-template-columns: minmax(110px, 40%) minmax(0, 1fr); column-gap: 16px;
  align-items: center; min-height: 38px; padding: 5px 16px; font-size: 13.5px;
  background: var(--pc-well);
}
.crm-card .crm-drawer-scroll .crm-rail-sec .crm-fact:first-of-type { border-radius: 10px 10px 0 0; padding-top: 11px; }
.crm-card .crm-drawer-scroll .crm-rail-sec .crm-fact:last-of-type { border-radius: 0 0 10px 10px; padding-bottom: 11px; }
.crm-card .crm-drawer-scroll .crm-rail-sec .crm-fact:only-of-type { border-radius: 10px; }
.crm-card .crm-drawer-scroll .crm-fact-v { color: var(--crm-head); justify-content: flex-start; }
.crm-card .crm-drawer-scroll .crm-copy { opacity: .45; }
.crm-card .crm-drawer-scroll .crm-copy:hover, .crm-card .crm-drawer-scroll .crm-copy:focus-visible { opacity: 1; }

/* contacts: one tinted well per person, side by side when there is room */
.crm-card .crm-drawer-scroll .crm-rail-sec:has(.crm-contact) {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
}
@container (min-width: 720px) {
  .crm-card .crm-drawer-scroll .crm-rail-sec:has(.crm-contact) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.crm-card .crm-drawer-scroll .crm-rail-sec:has(.crm-contact) > .crm-rail-t { grid-column: 1 / -1; margin-bottom: 0; }
.crm-card .crm-contact { margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--pc-well); min-width: 0; }
.crm-card .crm-contact-role { font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--crm-ink-2); }
.crm-card .crm-contact-name { font-size: 14.5px; font-weight: 600; margin-top: 2px; }
.crm-card .crm-contact-line { font-size: 13.5px; margin-top: 2px; }
.crm-card .crm-contact-line a { color: var(--crm-ink); }

/* the walk of all seventeen steps on the Stage tab: its own group. The spine
   stays (it is the sequence, not a divider); the rules across it at each gate go. */
.crm-card .crm-stage-walk { margin-top: var(--pc-gap); padding-top: 0; border-top: 0; }
.crm-card .crm-ladder-gate-bar,
.crm-card .crm-ladder-gate.crm-gate-clear .crm-ladder-gate-bar,
.crm-card .crm-gate-stuck-row .crm-ladder-gate-bar { border-top: 0; margin: 0 0 14px; padding-top: 0; }
.crm-card .crm-ladder-gate-mark::after { top: 9px; }
.crm-card .crm-ladder-owner { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }

/* the chargers on site: a well, no ruled grid, sentence-case heads */
.crm-card .crm-chargers .crm-tablewrap { border: 0; box-shadow: none; background: var(--pc-well); padding: 4px 8px; }
.crm-card .crm-chargers-t th {
  border: 0; padding: 9px 8px 5px; font-size: 12.5px; font-weight: 400; letter-spacing: 0;
  text-transform: none; color: var(--crm-ink-2);
}
.crm-card .crm-chargers-t td { border: 0; padding: 7px 8px; }
.crm-card .crm-drawer-scroll .crm-copy-text { opacity: 1; border-color: transparent; background: var(--pc-well); }

/* the install schedule: its words on the page, its dates in the well inside it */
.crm-card .crm-schedcard { border: 0; border-radius: 0; padding: 0; background: none; }
.crm-card .crm-sched-pill { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }

/* the History switch: one tone step, no outline */
.crm-card .crm-hist-seg { border: 0; background: var(--pc-well); padding: 3px; }
.crm-card .crm-hist-opt[aria-pressed="true"] { background: var(--crm-paper); box-shadow: 0 1px 2px rgb(20 24 33 / .08); }

/* lists sit on the page: Leo's scheduled tasks, mail, past schedules */
.crm-card .crm-leo-tasks .crm-task,
.crm-card .crm-leo-tasks .crm-task:first-of-type { border: 0; padding: 10px 0; }
.crm-card .crm-mail, .crm-card .crm-mail-reply + .crm-mail-reply { border-top: 0; }
.crm-card .crm-mail + .crm-mail { margin-top: 8px; }
.crm-card .crm-hist-row { border-top: 0; padding: 8px 0; }
.crm-card .crm-hist-foot { border-top: 0; padding-top: 0; margin-top: 24px; }
.crm-card .crm-gaterow + .crm-gaterow { border-top: 0; }
.crm-card .crm-cop-part, .crm-card .crm-cop-out { border-top: 0; }
.crm-card .crm-af { border-top: 0; padding-top: 0; margin-top: 20px; }
.crm-card .crm-sched-group { border-top: 0; padding-top: 0; margin-top: 24px; }
.crm-card .crm-sched-pastrow { border-top: 0; }
.crm-card .crm-dep-row { border-top: 0; padding: 12px 0; }
.crm-card .qc-submit, .crm-card .qc-issues { border-top: 0; padding-top: 0; }
.crm-card .crm-peek-acts, .crm-card .crm-peek-named { border-top: 0; }

/* talk sits in bubbles: the updates read as a conversation */
.crm-card .crm-update {
  max-width: min(680px, 88%); border: 0; border-radius: 18px 18px 18px 6px;
  background: var(--pc-well); padding: 10px 15px 11px; margin: 0 0 10px;
}
.crm-card .crm-update-me { margin-left: auto; border-radius: 18px 18px 6px 18px; background: var(--pc-bubble-me); }
.crm-card .crm-update-fold { border: 0; }
.crm-card .crm-update-meta { font-size: 12.5px; color: var(--crm-ink-2); margin-bottom: 3px; }
.crm-card .crm-update-body { font-size: 14px; line-height: 1.5; color: var(--crm-head); }
.crm-card .crm-composer { border-radius: 14px; margin-bottom: 20px; }

/* what operations asked of the survey and why (LIO-324): a fact, so a well,
   the reviewer's own words set larger than the line saying who asked */
.crm-card .pc-opsask {
  background: var(--pc-well); border-radius: 10px; padding: 14px 16px 15px;
  margin: 0 0 var(--pc-gap); max-width: 760px;
}
.crm-card .pc-opsask p { margin: 0; }
.crm-card .pc-opsask-head {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px;
  font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--crm-head);
}
.crm-card .pc-opsask-when { font-size: 12.5px; font-weight: 400; color: var(--crm-ink-2); }
.crm-card .pc-opsask-note {
  margin-top: 8px !important; font-size: 15px; line-height: 1.5; color: var(--crm-head);
  white-space: pre-line; overflow-wrap: anywhere; text-wrap: pretty;
}
.crm-card .pc-opsask-items { margin-top: 8px !important; font-size: 13px; line-height: 1.45; color: var(--crm-ink-2); }

/* the foot of every tab */
.crm-card .crm-card-foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px;
}
.crm-card .crm-card-foot .crm-showempty { border: 0; padding: 6px 0; background: none; color: var(--crm-ink-2); }
.crm-card .crm-card-foot .crm-showempty:hover { color: var(--crm-head); text-decoration: underline; text-underline-offset: 3px; }
.crm-card .crm-card-foot .dp-delete-link { margin: 0 0 0 auto; }

/* ── Phone and narrow cards ───────────────────────────────────────────────
   The head carries what the rail did, so on a phone it is taller than the
   screen can spare. The card scrolls as one instead: the head scrolls away,
   the tabs pin to the top, and the close button stays put in the corner
   (fixed; the card rests with no transform, so fixed means the screen). */
@media (max-width: 760px) {
  .crm-drawer.crm-card { display: block; overflow-y: auto; overscroll-behavior: contain; }
  /* The open animations end on an identity transform, and any transform
     makes the card, not the screen, what a fixed child is placed against:
     the close would scroll away with the head. They hold their first frame
     only, so the card rests with no transform at all. */
  .crm-drawer.crm-card.crm-enter, .crm-drawer.crm-card.crm-drawer-card-enter,
  .crm-drawer.crm-card.crm-drawer-card-enter > .crm-drawer-head { animation-fill-mode: backwards; }
  .crm-card > .crm-drawer-head {
    grid-template-columns: minmax(0, 1fr); row-gap: 12px; padding: 18px 18px 0;
  }
  .crm-card > .crm-drawer-head > .crm-drawer-heading { padding-right: 52px; }
  .crm-card .crm-drawer-heading, .crm-card .crm-head-right, .crm-card .crm-card-now,
  .crm-card .crm-card-client, .crm-card .crm-card-meta, .crm-card .crm-lad { grid-column: 1; grid-row: auto; }
  .crm-card .crm-head-right { justify-content: flex-start; }
  .crm-card .crm-head-right:not(:has(.crm-quick)) { display: contents; }
  .crm-card .crm-drawer-head .crm-close {
    position: fixed; top: 8px; right: 10px; z-index: 5; width: 44px; height: 44px; min-width: 44px; min-height: 44px;
    background: var(--pc-night);
  }
  .crm-card .crm-card-client { flex-direction: column; align-items: flex-start; }
  /* the same order as the wide head: the client under the address, then Leo, the facts, the gates */
  .crm-card .crm-card-client { order: 1; }
  .crm-card .crm-card-now { order: 2; margin-top: 0; }
  .crm-card .crm-card-meta { order: 3; }
  .crm-card .crm-lad { order: 4; }
  .crm-card .crm-drawer-head h2 { font-size: 22px; }
  .crm-card .crm-card-now .crm-leo-body { -webkit-line-clamp: 3; }
  .crm-card .crm-card-meta { column-gap: 16px; }
  .crm-card .crm-card-meta .crm-agree-rail { flex-wrap: wrap; row-gap: 2px; }
  .crm-card .crm-card-meta .crm-agree-rail .crm-whose-age {
    flex-basis: 100%; max-width: none; white-space: normal;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  }
  .crm-card .crm-lad-gate { padding-left: 4px; }
  .crm-card .crm-lad-gw { display: none; }
  .crm-card > .crm-drawer-body, .crm-card > .crm-drawer-body > .crm-pane { display: block; overflow: visible; min-height: 0; }
  .crm-card .crm-tabs2 {
    --pc-tabs-end: 64px;
    position: sticky; top: 0; z-index: 4; justify-content: flex-start; padding: 0 var(--pc-tabs-end) 0 18px; gap: 20px;
    scroll-padding-inline-end: var(--pc-tabs-end);
  }
  /* the strip's right end fades under the close button: a sticky last item, so the navy stays opaque */
  .crm-card .crm-tabs2::before {
    content: ""; order: 99; position: sticky; right: calc(-1 * var(--pc-tabs-end)); flex: 0 0 calc(var(--pc-tabs-end) + 20px);
    margin: 0 calc(-1 * var(--pc-tabs-end)) 0 -20px;
    background: linear-gradient(90deg, rgb(31 37 51 / 0), var(--pc-night) 45%); pointer-events: none; z-index: 1;
  }
  [data-theme="dark"] .crm-card .crm-tabs2::before { background: linear-gradient(90deg, rgb(19 22 30 / 0), var(--pc-night) 45%); }
  .crm-card .crm-drawer-head .crm-copy { margin-block: -10px; }
  .crm-card .crm-drawer-scroll { overflow: visible; padding: 22px 16px calc(130px + env(safe-area-inset-bottom)); }
  .crm-card .crm-field { grid-template-columns: minmax(96px, 42%) minmax(0, 1fr); }
  .crm-card .crm-update { max-width: 94%; }
}
/* From 641px the shell's bell is fixed in the window's top right corner
   (22px down, 28px in, 42px square, over the page). The close sits beside
   it, where page-crm.css puts it on a tablet, and the address and the
   pinned tabs stop short of both. */
@media (min-width: 641px) and (max-width: 760px) {
  .crm-card .crm-drawer-head .crm-close { top: 21px; right: 78px; }
  .crm-card > .crm-drawer-head > .crm-drawer-heading { padding-right: 112px; }
  .crm-card .crm-tabs2 { --pc-tabs-end: 130px; }
}
@media (max-width: 640px) {
  .crm-card { border-radius: 0; }
  body.lh-shell .crm-card .crm-drawer-head .crm-close { top: calc(56px + env(safe-area-inset-top) + 8px); }
}
@media (pointer: coarse) {
  .crm-card .crm-tab2 { min-height: 46px; }
  .crm-card .crm-copy { opacity: .6; }
}
@media (prefers-reduced-motion: reduce) {
  .crm-card .crm-tab2::after { transition: none; }
}

/* browser surfaces carry the palette too */
.crm-card ::selection { background: rgb(197 165 90 / .35); color: inherit; }
.crm-card .crm-drawer-head ::selection { background: rgb(232 210 154 / .4); color: #fff; }
.crm-card .crm-drawer-head :focus-visible { outline: 2px solid var(--pc-gold-n); outline-offset: 2px; border-radius: 6px; }

/* ── While the record loads (Nick, 11/8/26: the card arrives in its own
   shape, never as a white sheet that turns dark when the record lands). */
.crm-card .crm-card-sk { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; padding: 6px 0 22px; }
.crm-card .crm-card-sk .crm-sk { display: block; height: 12px; border-radius: 6px; }
.crm-card .crm-drawer-head .crm-sk {
  background: linear-gradient(100deg, rgb(244 239 226 / .07) 40%, rgb(232 210 154 / .2) 50%, rgb(244 239 226 / .07) 60%);
  background-size: 200% 100%;
}
.crm-card .crm-sk-h2 { display: inline-block; width: 240px; height: 24px; vertical-align: middle; }
.crm-card .crm-card-sk .crm-sk-bar { height: 4px; width: 100%; margin-top: 8px; }
.crm-card .crm-card-sk-body { padding: 28px 32px; gap: 14px; }
.crm-card .crm-card-sk-body .crm-sk { height: 14px; }
.crm-card .crm-card-sk-tabs { min-height: 40px; }
/* The loading head holds the loaded head's height, so the navy does not grow
   when the record lands. */
.crm-card.crm-card-loading > .crm-drawer-head { min-height: 230px; box-sizing: border-box; align-content: start; }
@media (max-width: 760px) { .crm-card.crm-card-loading > .crm-drawer-head { min-height: 390px; } }
/* Sales cards settle shorter than the board card; open at their own height. */
.crm-card.crm-card-loading[data-train="sales-project-card"] > .crm-drawer-head { min-height: 208px; }
.crm-card.crm-card-loading:is([data-train="sales-client-card"], [data-train="sales-org-card"]) > .crm-drawer-head { min-height: 186px; }
@media (max-width: 760px) {
  .crm-card.crm-card-loading[data-train="sales-project-card"] > .crm-drawer-head { min-height: 365px; }
  .crm-card.crm-card-loading:is([data-train="sales-client-card"], [data-train="sales-org-card"]) > .crm-drawer-head { min-height: 278px; }
}

/* ── MYTHRIL VERSION 1: THE PROJECT CARD ─────────────────────────────────────
   The card keeps everything it holds and every class it is drawn with. What
   changes is the look: the pop-up's corners and shadow, a deep blue head in
   place of the grey one, rounded squares where there were circles and pills,
   soft labels on the head in place of painted ones, and tabs that are folder
   tabs: the open one is the page's own paper, joined to the page under it. */
.crm-drawer.crm-card {
  --pc-night: #1a2238;
  --pc-cream: #f4f1e8;
  --pc-cream-80: rgb(244 241 232 / .82);
  --pc-cream-60: rgb(244 241 232 / .64);
  --pc-cream-25: rgb(244 241 232 / .24);
  --pc-cream-12: rgb(244 241 232 / .13);
  --pc-well: var(--surface-2);
  border-radius: var(--my-r-xl);
  box-shadow: var(--my-pop-shadow);
}
[data-theme="dark"] .crm-drawer.crm-card {
  --pc-night: #121829;
  --pc-well: color-mix(in oklab, #ffffff 5%, var(--crm-paper));
  background: #1e2745; box-shadow: var(--my-pop-shadow);
}
.crm-card > .crm-drawer-head { padding-top: 20px; }
.crm-card .crm-drawer-head h2 { letter-spacing: -.02em; }

/* the map buttons and the close: rounded squares */
.crm-card .crm-head-right .crm-quick { height: 38px; border-radius: 10px; font-size: 13.5px; transition: background .15s ease-out, border-color .15s ease-out, transform .3s var(--my-spring); }
.crm-card .crm-head-right .crm-quick:active { transform: scale(.96); }
.crm-card .crm-close { width: 38px; height: 38px; border-radius: 10px; border: 0; box-shadow: inset 0 0 0 1px var(--pc-cream-25); transition: background .15s ease-out; }
.crm-card .crm-close:hover { background: var(--pc-cream-12); }
.crm-card .crm-drawer-head .crm-copy { border-radius: 6px; }

/* stage and priority on the head: a soft wash of the status's own colour */
.crm-card .crm-card-meta .crm-head-pills .crm-stchip {
  min-height: 24px; padding: 2px 9px; border-radius: 7px; font-weight: 500;
  background: color-mix(in oklab, var(--chip, var(--pc-cream)) 42%, transparent) !important;
  color: var(--pc-cream) !important;
}
.crm-card .crm-card-now .crm-leo-line { font-family: var(--font-serif, 'Space Grotesk', Inter, sans-serif); font-size: 16px; font-weight: 600; letter-spacing: -.01em; }

/* the ladder: the step you are on stands taller, in gold */
.crm-card .crm-lad-now { height: 8px; border-radius: 3px; background: #d6b45a; }
.crm-card .crm-lad-stuck .crm-lad-rn { color: #e2c27a; }

/* folder tabs on the head */
.crm-card .crm-tabs2 { justify-content: flex-start; gap: 2px; }
/* The head and the tab strip are two boxes in the same deep blue. While the
   card is scaling in or out, the hairline where they meet let the paper show
   through as a light line across the card. The strip paints 2px of the blue
   upward to close it. */
.crm-card .crm-tabs2 { box-shadow: 0 -2px 0 var(--pc-night); }
.crm-card .crm-tab2 {
  height: 40px; padding: 0 13px; border-radius: 11px 11px 0 0; font-weight: 500;
  transition: color .15s ease-out, background .15s ease-out;
}
.crm-card .crm-tab2::after { content: none; }
.crm-card .crm-tab2:hover { color: var(--pc-cream); background: rgb(255 255 255 / .06); }
.crm-card .crm-tab2-on, .crm-card .crm-tab2-on:hover { background: var(--crm-paper); color: var(--crm-head); font-weight: 600; }
[data-theme="dark"] .crm-card .crm-tab2-on, [data-theme="dark"] .crm-card .crm-tab2-on:hover { background: #1e2745; }
.crm-card .crm-tab2-on .crm-sec-count { color: var(--crm-ink-2); }
.crm-card .crm-tab2:focus-visible { outline: 2px solid #e2c27a; outline-offset: -3px; }
.crm-card .crm-tab2 .crm-leo-mark-img { border-radius: 50%; }

/* the body */
.crm-card .crm-fields, .crm-card .crm-contact { border-radius: var(--my-r); }
.crm-card .crm-drawer-scroll .crm-rail-sec .crm-fact:first-of-type { border-radius: var(--my-r) var(--my-r) 0 0; }
.crm-card .crm-drawer-scroll .crm-rail-sec .crm-fact:last-of-type { border-radius: 0 0 var(--my-r) var(--my-r); }
.crm-card .crm-drawer-scroll .crm-rail-sec .crm-fact:only-of-type { border-radius: var(--my-r); }
.crm-card .crm-sec-title, .crm-card .crm-rail-t { font-family: var(--font-serif, 'Space Grotesk', Inter, sans-serif); letter-spacing: -.005em; }
.crm-card .crm-hist-seg { border-radius: 10px; }
.crm-card .crm-hist-opt { border-radius: 8px; }
.crm-card .crm-composer { border-radius: var(--my-r); }

@media (max-width: 640px) {
  .crm-drawer.crm-card { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .crm-card .crm-tab2, .crm-card .crm-close, .crm-card .crm-head-right .crm-quick { transition: none; }
}
/* Sizes that belong to the wide card only. On a phone the card itself scrolls
   and its own phone rules above set the paddings, so none of these reach it. */
@media (min-width: 761px) {
  .crm-drawer.crm-card { overflow: hidden; }
  .crm-card .crm-drawer-head h2 { font-size: 25px; }
  .crm-card .crm-tabs2 { padding: 0 24px; }
  .crm-card .crm-drawer-scroll { padding: 24px 28px 76px; }
}
@media (max-width: 760px) {
  .crm-card .crm-tabs2 { gap: 2px; padding: 0 var(--pc-tabs-end) 0 8px; }
  .crm-card > .crm-drawer-head { padding-top: 18px; }
}

/* THE TABLE on the card (11/11/26): the chargers and pedestals lists on the
   Closeout tab follow the shared table. One sheet, a 34px head, 40px rows of
   one line, centred cells with the name on the left, a line under every row
   and a divider between every column. */
.crm-card .crm-tablewrap:has(> .crm-chargers-t) {
  overflow-x: auto; border: 0; border-radius: var(--my-r, 14px); background: var(--crm-paper);
  box-shadow: var(--ds-shadow-card);
}
.crm-card .crm-chargers-t { border-collapse: separate; border-spacing: 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.crm-card .crm-chargers-t th, .crm-card .crm-chargers-t td {
  padding: 0 12px; text-align: center; vertical-align: middle; white-space: nowrap;
  border: 0; border-right: 1px solid var(--crm-grid); border-bottom: 1px solid var(--crm-grid);
}
.crm-card .crm-chargers-t th {
  height: 34px; padding: 0 10px; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--crm-ink-2); background: var(--crm-paper); border-bottom-color: var(--crm-grid-strong);
}
.crm-card .crm-chargers-t td { height: 40px; color: var(--crm-ink); }
.crm-card .crm-chargers-t th:first-child, .crm-card .crm-chargers-t td:first-child { text-align: left; }
.crm-card .crm-chargers-t th:last-child, .crm-card .crm-chargers-t td:last-child { border-right: 0; }
.crm-card .crm-chargers-t tbody tr:last-child td { border-bottom: 0; }
.crm-card .crm-chargers-t tbody tr:hover td { background: var(--hover); }
.crm-card .crm-chargers-t .crm-ch-serial, .crm-card .crm-chargers-t .crm-ch-link { font-size: 12.5px; }

/* ── Swapping tabs (Nick, 11/11/26: "very glitchy looking") ───────────────────
   A tab swap used to slide the whole body in from the side while each block
   inside it slid again on its own clock, so the blocks drifted apart and
   closed up. Now the new tab's body comes up in place, in one piece, and
   nothing in it moves. The gutter is always kept, so a tab that scrolls and
   one that does not hold their content at the same width. */
@keyframes pc-tab-in { from { opacity: .25; } to { opacity: 1; } }
.crm-card .crm-drawer-scroll { scrollbar-gutter: stable; }
.crm-card .crm-drawer-scroll.crm-pane-slide-r,
.crm-card .crm-drawer-scroll.crm-pane-slide-l {
  animation: pc-tab-in .16s ease-out var(--crm-pane-delay, 0ms) both;
}
.crm-card .crm-drawer-scroll.crm-pane-slide-r > *,
.crm-card .crm-drawer-scroll.crm-pane-slide-l > * { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .crm-card .crm-drawer-scroll.crm-pane-slide-r,
  .crm-card .crm-drawer-scroll.crm-pane-slide-l { animation: none; }
}
/* What Leo read from the bill: no room taken until there is something to show. */
.crm-card #crmBillSuggest:empty { display: none; }
.crm-card #crmBillSuggest .leo-bill-card { margin: 0 0 24px; }

/* ── The walk on the Stage tab, as a checklist (Mythril Version 1) ──────────
   Eight phases that fold, each with how far it is. The step the project
   stands on is the one raised row; it carries Add file and Move it forward.
   Grouped by spacing: no rules between the rows. */
.crm-card .crm-walk { display: grid; gap: 4px; }
.crm-card .crm-walk-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; }
.crm-card .crm-walk-t { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--crm-head); }
.crm-card .crm-walk-at { font-size: 13px; color: var(--crm-ink-2); font-variant-numeric: tabular-nums; }
.crm-card .crm-walk-ph { border-radius: var(--my-r, 12px); transition: background .3s var(--my-ease-out, ease-out); }
.crm-card .crm-walk-ph.is-open { background: color-mix(in oklab, var(--wc) 6%, var(--crm-paper)); }
.crm-card .crm-walk-ph-h {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: var(--my-r, 12px); background: none; color: var(--crm-ink); font: inherit; text-align: left; cursor: pointer;
  transition: background .15s ease-out;
}
.crm-card .crm-walk-ph-h:hover { background: color-mix(in oklab, var(--wc) 8%, transparent); }
.crm-card .crm-walk-ph-h:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.crm-card .crm-walk-dia {
  flex: none; width: 9px; height: 9px; margin: 0 3px; border-radius: 2px; transform: rotate(45deg);
  box-shadow: inset 0 0 0 1.5px var(--wc); transition: background .3s ease-out;
}
.crm-card .crm-walk-ph.is-here .crm-walk-dia, .crm-card .crm-walk-ph.is-done .crm-walk-dia { background: var(--wc); }
.crm-card .crm-walk-ph-n { font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; }
.crm-card .crm-walk-ph:not(.is-here):not(.is-done) .crm-walk-ph-n { font-weight: 500; color: var(--crm-ink-2); }
.crm-card .crm-walk-ph-c { font-size: 12.5px; color: var(--crm-ink-3); font-variant-numeric: tabular-nums; }
.crm-card .crm-walk-ph.is-done .crm-walk-ph-c { color: color-mix(in oklab, var(--wc) 62%, var(--crm-ink)); }
.crm-card .crm-walk-bar {
  flex: none; width: 120px; height: 4px; margin-left: auto; border-radius: 2px; overflow: hidden;
  background: color-mix(in oklab, var(--crm-ink-3) 22%, transparent);
}
.crm-card .crm-walk-bar > i { display: block; height: 100%; border-radius: 2px; background: var(--wc); transition: width .6s var(--my-ease-out, ease-out); }
.crm-card .crm-walk-chev { flex: none; width: 15px; height: 15px; color: var(--crm-ink-3); transition: transform .3s var(--my-ease-out, ease-out); }
.crm-card .crm-walk-ph:not(.is-open) .crm-walk-chev { transform: rotate(-90deg); }
.crm-card .crm-walk-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s var(--my-sheet, cubic-bezier(.32,.72,0,1)), opacity .25s ease-out; }
.crm-card .crm-walk-ph.is-open .crm-walk-body { grid-template-rows: 1fr; opacity: 1; }
.crm-card .crm-walk-list { list-style: none; margin: 0; padding: 0 8px; min-height: 0; overflow: hidden; display: grid; gap: 2px; }
.crm-card .crm-walk-ph.is-open .crm-walk-list { padding-bottom: 8px; }
.crm-card .crm-walk-ph:not(.is-open) .crm-walk-list { visibility: hidden; transition: visibility 0s .45s; }

.crm-card .crm-walk-step {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 52px; padding: 6px 10px; border-radius: 10px;
}
.crm-card .crm-walk-no {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: color-mix(in oklab, var(--crm-ink-3) 14%, transparent); color: var(--crm-ink-2);
}
.crm-card .crm-walk-no svg { width: 13px; height: 13px; }
.crm-card .crm-walk-step.is-done .crm-walk-no { background: color-mix(in oklab, var(--wc) 16%, var(--crm-paper)); color: color-mix(in oklab, var(--wc) 70%, var(--crm-ink)); }
.crm-card .crm-walk-step.is-now { background: var(--crm-paper); box-shadow: 0 0 0 1px color-mix(in oklab, var(--wc) 34%, transparent), 0 8px 20px -14px color-mix(in oklab, var(--wc) 70%, #1f2533); }
.crm-card .crm-walk-step.is-now .crm-walk-no { background: var(--wc); color: #fff; }
.crm-card .crm-walk-tx { display: grid; gap: 2px; min-width: 0; }
.crm-card .crm-walk-st { font-size: 14px; line-height: 1.3; color: var(--crm-ink); }
.crm-card .crm-walk-step.is-now .crm-walk-st { font-weight: 600; color: var(--crm-head); }
.crm-card .crm-walk-step.is-done .crm-walk-st { color: var(--crm-ink-2); }
.crm-card .crm-walk-sub { font-size: 12.5px; line-height: 1.3; color: var(--crm-ink-3); }
.crm-card .crm-walk-step.is-now .crm-walk-sub { color: var(--crm-ink-2); }
.crm-card .crm-walk-acts { display: flex; align-items: center; gap: 4px; }
.crm-card .crm-walk-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border: 0; border-radius: 9px;
  background: none; color: var(--crm-ink-2); font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background .15s ease-out, color .15s ease-out, transform .3s var(--my-spring, ease-out);
}
.crm-card .crm-walk-btn svg { width: 14px; height: 14px; flex: none; }
.crm-card .crm-walk-btn:hover { background: color-mix(in oklab, var(--crm-ink) 8%, transparent); color: var(--crm-ink); }
.crm-card .crm-walk-btn:active { transform: scale(.95); }
.crm-card .crm-walk-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* later steps keep Add file quiet until the row is pointed at */
.crm-card .crm-walk-step:not(.is-now) .crm-walk-btn { opacity: 0; }
.crm-card .crm-walk-step:not(.is-now):hover .crm-walk-btn,
.crm-card .crm-walk-step:not(.is-now) .crm-walk-btn:focus-visible { opacity: 1; }
@media (hover: none) { .crm-card .crm-walk-step:not(.is-now) .crm-walk-btn { opacity: 1; } }
.crm-card .crm-walk-go { background: var(--royal-tint, color-mix(in oklab, #2b4a8c 12%, var(--crm-paper))); color: var(--royal-ink, #2b4a8c); }
.crm-card .crm-walk-go:hover { background: color-mix(in oklab, var(--royal, #2b4a8c) 20%, var(--crm-paper)); color: var(--royal-ink, #2b4a8c); }
.crm-card .crm-walk-go:hover svg { transform: translateX(2px); }
.crm-card .crm-walk-go svg { transition: transform .3s var(--my-spring, ease-out); }

.crm-card .crm-walk-gate { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 2px 10px 2px 12px; font-size: 13px; color: var(--crm-ink-2); flex-wrap: wrap; }
.crm-card .crm-walk-gd { flex: none; width: 16px; height: 16px; margin: 0 3px; border-radius: 4px; transform: rotate(45deg); display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--gold); }
.crm-card .crm-walk-gd b { transform: rotate(-45deg); font-size: 8.5px; font-weight: 700; color: var(--gold-dark, #8a6a1c); }
.crm-card .crm-walk-gn { font-weight: 600; color: var(--crm-ink); }
.crm-card .crm-walk-gs { display: inline-flex; align-items: center; gap: 5px; color: var(--crm-ink-3); }
.crm-card .crm-walk-gs svg { width: 12px; height: 12px; }
.crm-card .crm-walk-gate.is-clear .crm-walk-gd { box-shadow: none; background: color-mix(in oklab, var(--crm-clear, #2f6b4f) 18%, var(--crm-paper)); }
.crm-card .crm-walk-gate.is-clear .crm-walk-gd b,
.crm-card .crm-walk-gate.is-clear .crm-walk-gs { color: var(--crm-clear, #2f6b4f); }
.crm-card .crm-walk-gate.is-stuck .crm-walk-gd { box-shadow: none; background: var(--gold); }
.crm-card .crm-walk-gate.is-stuck .crm-walk-gd b { color: #1f2533; }
.crm-card .crm-walk-gate.is-stuck .crm-walk-gs { color: var(--crm-ink); font-weight: 500; }

/* Add file: the project's document slots, the step's own first */
#crmWalkMenu { position: fixed; z-index: 310; width: 264px; overflow-y: auto; overscroll-behavior: contain; }
#crmWalkMenu > button { justify-content: space-between; font: inherit; font-size: 13.5px; color: var(--text-strong); }
#crmWalkMenu > button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
#crmWalkMenu .crm-walk-ml { margin: 0; padding: 8px 10px 4px; font-size: 12px; color: var(--text-muted); }
#crmWalkMenu .crm-walk-mn { font-size: 12px; color: var(--text-muted); }

@media (max-width: 640px) {
  .crm-card .crm-walk-bar { width: 64px; }
  .crm-card .crm-walk-step { grid-template-columns: 26px minmax(0, 1fr); }
  .crm-card .crm-walk-acts { grid-column: 2; }
  .crm-card .crm-walk-btn { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .crm-card .crm-walk-body, .crm-card .crm-walk-bar > i, .crm-card .crm-walk-chev, .crm-card .crm-walk-btn { transition: none; }
}
html.my-calm .crm-card .crm-walk-body, html.my-calm .crm-card .crm-walk-bar > i, html.my-calm .crm-card .crm-walk-chev { transition: none; }

/* Copy all (Mythril Version 1): the head's facts in one press. Quiet text
   at the end of the client's line; it says Copied for a moment. */
.crm-card .crm-copy-all {
  appearance: none; border: 0; background: transparent; cursor: pointer; padding: 4px 8px; margin: -4px 0 -4px -8px;
  font: inherit; font-size: 13px; color: var(--pc-cream-60); border-radius: 6px; display: inline-grid;
  transition: color .15s ease-out, background-color .15s ease-out, transform .12s ease-out;
}
.crm-card .crm-copy-all > span { grid-area: 1 / 1; transition: opacity .15s ease-out; }
.crm-card .crm-copy-all .crm-copy-all-ok { opacity: 0; color: var(--pc-cream); }
.crm-card .crm-copy-all:hover { color: var(--pc-cream); background: color-mix(in oklab, var(--pc-cream) 10%, transparent); }
.crm-card .crm-copy-all:active { transform: scale(0.97); }
.crm-card .crm-copy-all:focus-visible { outline: 2px solid var(--pc-cream-80); outline-offset: 1px; }
.crm-card .crm-copy-all[data-copied="1"] .crm-copy-all-t { opacity: 0; }
.crm-card .crm-copy-all[data-copied="1"] .crm-copy-all-ok { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .crm-card .crm-copy-all, .crm-card .crm-copy-all > span { transition: none; }
}
