/* ---------------------------------------------------------------------------
   Pipeline
   ---------------------------------------------------------------------------
   One column per open stage, sharing the width; on a phone, one stage under
   another. Lost is not a column: it is the place a deal is dropped. */
.pipe { display: flex; flex-direction: column; gap: 16px }

/* The head, top down: whose deals (and Gone quiet, set apart on the right),
   then the totals for that choice as a line of text, then the board. */
.pipe__head { display: flex; flex-direction: column; gap: 14px }
/* The totals as one line of text, not boxes: each figure in bold with its
   word beside it, split by a dot, so they inform without taking the page. */
.pipe__figs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; font-size: 13.5px; color: var(--muted) }
.pipe__fig { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap }
.pipe__fig + .pipe__fig::before { content: "·"; margin: 0 12px; color: color-mix(in srgb, var(--ink) 30%, transparent) }
.pipe__fig b { font-size: 15px; font-weight: var(--weight-strong); color: var(--text); font-variant-numeric: tabular-nums }
.pipe__fig .figcap { font-size: 13.5px; font-weight: 500 }
.pipe__fig:last-child b { color: var(--good) }
.pipe__filters { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap }
/* Whose deals and Gone quiet are sub tabs, in one row. */
.pipe__filters.tabchips { gap: 2px }
.tabchips .pipe__owner:has(> .pipe__ava) { padding-left: 4px }
/* Owner: one chip that opens the teammates and Unassigned, each with its
   count, in a small floating menu. Picked, it shows who, washed like a chosen tab. */
.pipe__more { position: relative }
.pipe__moresum { list-style: none; user-select: none }
.pipe__moresum::-webkit-details-marker { display: none }
.pipe__moresum > .ms:last-child { font-size: 18px; margin-left: -2px; transition: transform .15s ease }
.pipe__more[open] > .pipe__moresum > .ms:last-child { transform: rotate(180deg) }
.tabchips .chip.pipe__moresum.is-on {
  color: var(--text); background: color-mix(in srgb, var(--text) 9%, transparent);
}
.pipe__more[open] > .pipe__moresum { color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent) }
.pipe__moresum:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px }
.pipe__menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 200px;
  display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-top);
}
.tabchips .pipe__menu .chip { justify-content: flex-start; width: 100% }
.pipe__menu .chip .tabchips__n { margin-left: auto }
@media (prefers-reduced-motion: reduce) { .pipe__moresum > .ms:last-child { transition: none } }
.pipe__ava { width: 22px; height: 22px; flex: 0 0 22px; font-size: 9px }
.pipe__stale.has-some:not([aria-pressed="true"]) .ms,
.pipe__stale.has-some:not([aria-pressed="true"]) .tabchips__n { color: #8A5A00 }
/* The two filters sit together at the row's far end. */
.pipe__filters > .pipe__stale { margin-left: auto }
.pipe__candid.has-some:not([aria-pressed="true"]) .ms { color: color-mix(in srgb, var(--teal) 62%, var(--ink)) }

.board {
  /* Every stage shares the width, so nothing runs off the right-hand side, and
     the page scrolls rather than each column. The columns stretch to the
     longest, so each heading stays pinned for the whole length of the board. */
  display: grid; gap: 10px; grid-template-columns: repeat(var(--board-n, 6), minmax(0, 1fr));
  align-items: stretch;
}
/* One hue per open stage, cool to warm along the road, so a column is known
   by its colour before its name is read. Won is always --good. Each holds
   3:1 on its own tint, for the bar and the dot. The company drawer's deals
   (stageHue) draw their stage dot from the same five, as does the import's
   stage matching, and Pip's panel its find, people and import steps. */
.board, .deals, .dealboard, .stagemenu, .stagematch, .costage, .pulsepanel {
  --board-hue-1: #0E7490;
  --board-hue-2: #2450C8;
  --board-hue-3: #8B4FD0;
  --board-hue-4: #C2410C;
  --board-hue-5: #B7791F;
}
.board__col {
  display: flex; flex-direction: column; gap: 8px; min-height: 240px; min-width: 0; padding: 0 8px 8px;
  background: color-mix(in srgb, var(--hue, var(--line)) 10%, var(--page)); border-radius: var(--r-card);
  border: 2px solid transparent; transition: border-color .15s ease, background-color .15s ease;
  container-type: inline-size;
}
.board__col.is-over { border-color: var(--hue, var(--teal)); background: color-mix(in srgb, var(--hue, var(--teal)) 16%, var(--page)) }
/* Pinned to the top of the page as it scrolls, so a long column keeps its name.
   The page has 32px of padding above the board; -32px pins it flush with the top. */
.board__colhead {
  position: sticky; top: -32px; z-index: 1; margin: 0 -8px; padding: 12px 14px 10px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; font-size: 13px;
  background: inherit; border-radius: calc(var(--r-card) - 2px) calc(var(--r-card) - 2px) 0 0;
}
/* Line 1: the stage, and its count across. */
.board__colname { display: flex; align-items: center; gap: 8px; min-width: 0; height: 20px }
.board__colname b { min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.board__colname .ms { font-size: 16px; line-height: 16px; color: var(--good) }
.board__count { font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap }
/* Line 2: the value as the head's figure, its share of the open value across. */
.board__sum {
  font-size: 17px; line-height: 1.2; font-weight: var(--weight-strong); font-variant-numeric: tabular-nums;
  white-space: nowrap; margin-top: 2px;
}
.board__sum .figcap, .board__pct .figcap { font-size: 12px; font-weight: 500; letter-spacing: 0 }
.board__pct { white-space: nowrap; font-variant-numeric: tabular-nums }
.board__count, .board__pct { justify-self: end }
.board__sum, .board__pct { align-self: baseline }
/* Line 3: the share as a bar on a track that runs the lane's width, so its
   length reads as a part of the whole. */
.board__share { grid-column: 1 / -1; display: flex; min-width: 0; padding-top: 3px }
.board__bar {
  flex: 1 1 auto; min-width: 0; height: 4px; border-radius: var(--r-pill); overflow: hidden;
  background: color-mix(in srgb, var(--hue, var(--ink)) 16%, transparent);
}
.board__bar i { display: block; height: 100%; min-width: 4px; border-radius: var(--r-pill); background: var(--hue, var(--ink)) }
.board__dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--hue, var(--ink)) }
.board__col--won .board__colname b { color: #1E7A4A }
/* Pinned: a flat band flush under the top bar, wide enough to cover the lane's
   edges, so cards pass under it cleanly instead of showing through rounded
   corners, and fade out under it (the shared rule at the end). At rest the
   heading keeps the lane's curve. */
.board { position: relative }
.board__sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none }
.pipe.is-stuck .board__colhead { margin: 0 -10px; padding-left: 16px; padding-right: 16px; border-radius: 0 }
/* Sideways (slider in app/pipeline.js): no lane narrower than 300px, so a
   laptop slides the board rather than squeezing the cards: each card keeps
   room for its name, value and next step on short lines. The frame
   clips rather than scrolls, so the stage heads still pin to the page. */
.board__wrap { position: relative }
.board__view { overflow-x: clip }
.board.is-sliding { transition: transform .32s var(--ease-out, ease) }
@media (prefers-reduced-motion: reduce) { .board.is-sliding { transition: none } }
@media (min-width: 768px) {
  .board__view { touch-action: pan-y }
  .board { min-width: calc(var(--board-n, 6) * 300px + (var(--board-n, 6) - 1) * 10px) }
}
/* The arrows ride half way down the window as the page scrolls, and show
   only while there is more that way. They float, so they take the lift. */
.board__nav { position: sticky; top: calc(50dvh - 140px); z-index: 3; height: 0 }
.board__arrow {
  position: absolute; top: 116px; width: 32px; height: 32px; flex: none;
  box-shadow: var(--shadow-low); color: var(--text);
  opacity: 0; visibility: hidden; transform: scale(.9);
  transition: opacity .16s ease, transform .16s var(--ease-out, ease), visibility .16s;
}
.board__arrow .ms { font-size: 20px }
/* Small to the eye, but a full 44px to tap. */
.board__arrow::before { content: ""; position: absolute; inset: -6px }
.board__arrow--left { left: -6px }
.board__arrow--right { right: -6px }
.board__wrap.has-left .board__arrow--left,
.board__wrap.has-right .board__arrow--right { opacity: 1; visibility: visible; transform: none }
/* A card in hand over an arrow: the arrow says the board is moving. */
.pipe.is-dragging .board__arrow { background: color-mix(in srgb, var(--ink) 6%, var(--card)) }
.board__cards { display: flex; flex-direction: column; gap: 8px; flex: 1 0 auto }
.board__empty {
  flex: 1 1 auto; min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px dashed color-mix(in srgb, var(--hue, var(--line)) 35%, var(--line)); border-radius: 18px; color: var(--muted);
}
.board__empty .ms { font-size: 22px }
/* Lost rises from the foot of the window only while a card is in hand. */
.board__lost {
  position: fixed; left: 50%; bottom: 28px; z-index: 20;
  display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 28px;
  background: var(--card); color: var(--bad); border: 2px dashed var(--bad); border-radius: var(--r-pill);
  box-shadow: var(--shadow-top);
  font-size: 14px; font-variant-numeric: tabular-nums;
  opacity: 0; pointer-events: none; transform: translate(-50%, 16px);
  transition: opacity .16s var(--ease-out, ease), transform .16s var(--ease-out, ease), background-color .15s ease;
}
.pipe.is-dragging .board__lost { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) }
.board__lost.is-over { background: color-mix(in srgb, var(--bad) 10%, var(--card)); border-style: solid }
.board__lost .ms { font-size: 20px }
.board__lostcount { color: var(--muted) }
/* Dropped on Lost: the reasons rise where Lost was, as they open under Lost
   on a deal's track, and the deal goes only with one. */
.board__why {
  position: fixed; left: 50%; bottom: 28px; z-index: 21; transform: translateX(-50%);
  display: flex; flex-direction: column; width: min(280px, calc(var(--vw, 100vw) - 32px)); padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-top);
  animation: whyOpen .14s ease-out both;
}
.board__why:focus { outline: none }
.board__whyhead { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 2px 4px 12px; color: var(--bad); font-size: 14px }
.board__whyhead .ms { font-size: 20px }
.board__whyname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12.5px; font-weight: 500 }
@media (prefers-reduced-motion: reduce) { .board__why { animation: none } }
/* Undo, inside a toast's words: white on the ink, flat. */
.toast__undo {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; padding: 2px 8px 2px 6px; vertical-align: middle;
  border: 1px solid color-mix(in srgb, var(--on-ink) 35%, transparent); border-radius: var(--r-btn-sm);
  background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer;
}
.toast__undo:hover { background: color-mix(in srgb, var(--on-ink) 12%, transparent) }
.toast__undo:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px }
.toast__undo .ms { font-size: 16px }

.dealcard {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 14px 14px 13px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--r-card) - 8px); color: var(--text);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.dealcard:hover { border-color: var(--ink); box-shadow: var(--shadow-low) }
.dealcard:has(> .dealcard__open:active) { transform: scale(.98) }
.dealcard:has(> .dealcard__open:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px }
.dealcard.is-dragging { opacity: .4 }
/* The whole card is this one button; what is drawn on it lets clicks through. */
.dealcard__open {
  position: absolute; inset: 0; z-index: 0; margin: 0; padding: 0; border: 0; border-radius: inherit;
  background: transparent; cursor: grab; font: inherit; outline: none;
}
.dealcard__open:active { cursor: grabbing }
.dealcard__top, .dealcard__facts { position: relative; pointer-events: none }
/* Who runs the deal, in the card's top corner: not a control, so a tap on
   it opens the deal like the rest of the card. */
.dealcard__foot { position: relative; display: flex; flex: none; pointer-events: none }
.dealcard__who {
  display: inline-flex; align-items: center; gap: 6px; max-width: 96px; min-height: 26px;
  font-size: 12.5px; font-weight: 500; color: var(--muted);
}
.dealcard__who.is-none { color: var(--muted) }
/* The face alone, so the company keeps the line: the name is in the card's
   label and the Owner menu, and a long one cut the company's down to "North Snack…". */
.dealcard__whoname { display: none }
.dealcard__ava { width: 24px; height: 24px; flex: 0 0 24px; font-size: 9.5px }
/* Nobody yet: an empty seat, so it never reads as somebody's initials. */
.dealcard__ava.is-none { background: transparent; color: var(--muted); border: 1.5px dashed var(--line) }
.dealcard__ava.is-none .ms { font-size: 14px }
/* Every row has a set height, so every card is the same height and the
   cards line up in rows across the lanes. */
.dealcard__top { display: flex; align-items: center; gap: 10px; min-width: 0; height: 36px }
.dealcard__mark {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--page); font-size: 11.5px; font-weight: var(--weight-strong);
}
/* One line, so every card keeps one height; the full name is the card's label. */
.dealcard__name {
  flex: 1 1 auto; font-size: 15px; font-weight: var(--weight-strong); line-height: 1.25; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Three figures in fixed columns, sized to what each usually holds (a value,
   the bars and "Today", a date) so the gaps between them match and a lane
   reads down as well as across. A missing figure leaves its column empty. */
.dealcard__facts {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 10px; height: 42px;
  font-size: 12.5px; font-weight: 500; color: var(--muted);
}
.dealcard__value, .dealcard__fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; white-space: nowrap }
.dealcard__value { grid-column: 1 }
.dealcard__heat { grid-column: 2 }
.dealcard__close { grid-column: 3 }
.dealcard__value b, .dealcard__fact b {
  display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  color: var(--text); font-weight: var(--weight-strong); font-variant-numeric: tabular-nums;
}
.dealcard__value b { font-size: 20px; line-height: 24px; letter-spacing: -.01em }
.dealcard__fact b { font-size: 14px; line-height: 24px }
.dealcard__value.is-none { justify-content: flex-end; padding-bottom: 1px }
/* Warmth: four rising bars in the state's colour, the unlit ones a faint ink. */
.dealcard__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; flex: none }
.dealcard__bars i { width: 3.5px; border-radius: 1px; background: color-mix(in srgb, var(--ink) 14%, transparent) }
.dealcard__bars i:nth-child(1) { height: 5px }
.dealcard__bars i:nth-child(2) { height: 8px }
.dealcard__bars i:nth-child(3) { height: 11px }
.dealcard__bars i:nth-child(4) { height: 13px }
.dealcard__heat.is-good .dealcard__bars i.is-lit { background: var(--good) }
.dealcard__heat.is-warn .dealcard__bars i.is-lit { background: #B7791F }
.dealcard__heat.is-bad .dealcard__bars i.is-lit { background: var(--bad) }
.dealcard__fact.is-warn b, .dealcard__fact.is-warn { color: #8A5A00 }
.dealcard__fact.is-bad b, .dealcard__fact.is-bad { color: var(--bad) }
/* The company, and under it which deal this is when it is not the first sale. */
.dealcard__names { flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; min-width: 0 }
.dealcard__names > .dealcard__name { align-self: stretch }
.dealcard__kind { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
/* The foot: two rows, each under a hairline, each with room for two lines of
   words and no more, so every card is one height. An icon, the words, and a
   date held to the right (red once a step's date has passed). The card's
   own bottom padding is given to the rows, so the last sits evenly. */
.dealcard:has(> .dealcard__rows) { padding-bottom: 0 }
.dealcard__rows { margin: 0 -14px; display: flex; flex-direction: column }
.dealcard__step {
  position: relative; pointer-events: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 8px;
  height: 59px; padding: 11px 14px; border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  font-size: 13.5px; line-height: 18px; color: var(--text);
}
.dealcard__step .ms { font-size: 16px; line-height: 18px; color: var(--hue, var(--muted)) }
.dealcard__step > span:not(.ms):not(.avatar) {
  min-width: 0; text-wrap: pretty; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.dealcard__step > time { font-size: 12.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap }
/* How it got here, when nobody but a person moved it: quieter than the step. */
.dealcard__since, .dealcard__since .ms { color: var(--muted) }
.dealcard__step > b { font-size: 12.5px; font-weight: var(--weight-strong); font-variant-numeric: tabular-nums; white-space: nowrap }
.dealcard__step.is-bad > b, .dealcard__step.is-bad .ms { color: var(--bad) }
.dealcard__step.is-none, .dealcard__step.is-none .ms { color: var(--muted) }
.dealcard__step.is-won, .dealcard__step.is-won .ms { color: #1E7A4A; font-weight: var(--weight-strong) }
.dealcard__step.is-lost, .dealcard__step.is-lost .ms { color: var(--bad); font-weight: var(--weight-strong) }
/* How it got here, washed in the hue of the stage it came from (--from, set
   per card), so a lane shows where its deals arrived from: who moved it (a
   face, or Candid's mark), the stage named in its hue, and why. The wash
   runs to the card's rounded foot. */
.dealcard__rows > :last-child { border-radius: 0 0 17px 17px }
.dealcard__moved {
  background: color-mix(in srgb, var(--from, var(--line)) 11%, var(--card));
  border-top-color: color-mix(in srgb, var(--from, var(--ink)) 22%, transparent);
}
.dealcard__moved > .ms { color: color-mix(in srgb, var(--from, var(--muted)) 75%, var(--ink)) }
.dealcard__moved > span:not(.ms):not(.avatar) { color: var(--muted) }
.dealcard__moved b { font-weight: var(--weight-strong); color: var(--text) }
.dealcard__moved b.dealcard__from { color: color-mix(in srgb, var(--from, var(--ink)) 70%, var(--ink)) }
/* Candid's reason on the second line, under the date too, so it has the
   row's full width; the first line then keeps to one line. */
.dealcard__step > .dealcard__why {
  grid-column: 2 / -1; display: block; -webkit-line-clamp: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Why Candid moved it is the news, so it reads in ink, over the muted verb. */
.dealcard__step.dealcard__moved > span.dealcard__why { color: var(--text); font-weight: 500 }
.dealcard__moved:has(> .dealcard__why) { row-gap: 0 }
.dealcard__step.dealcard__moved:has(> .dealcard__why) > .dealcard__line { display: block; white-space: nowrap; text-overflow: ellipsis }
.dealcard__by { width: 20px; height: 20px; flex: 0 0 20px; font-size: 8.5px; margin-top: -1px }

/* The company drawer's deals (dealsPanel), in Overview's containers: the
   summary as three small ones side by side, then a container per section on
   the page grey. The holder adds no box of its own, so its containers are
   the body's. Sizes come from the drawer type scale at the end of the file;
   these rules only lay things out. */
.deals { display: contents }
.dealsec, .dealitem { container-type: inline-size }
.dealsbar__add { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px }
.deals__add { display: none; align-items: center; justify-content: center; gap: 6px }
/* On a phone New deal leaves the sub tabs for the body, and keeps their ink. */
.deals__add.btn--ghost { background-color: var(--ink); color: var(--on-ink); border-color: transparent }
.deals__add.btn--ghost .ms { color: inherit }
.deals__add.btn--ghost:hover:not(:disabled) { background-color: color-mix(in srgb, var(--ink) 88%, var(--on-ink)) }
@media (max-width: 600px) {
  .dealsbar__add { display: none }
  .deals__add { display: inline-flex; align-self: stretch; height: 44px }
}


/* A deal: a card of its own on the page grey, kept compact. Its mark, name,
   stage and value; how far along its stages it is; its notes; one row of
   figures (owner, close date, next step); then History and its one action.
   The card is the section, so its name is its heading. */
.dealitem.card { display: flex; flex-direction: column; gap: 16px; min-width: 0; scroll-margin-top: 24px }
.dealitem__top { display: flex; align-items: center; gap: 10px; min-width: 0 }

/* The stage, the card's one picture: the stage dropdown and how long the
   deal has sat there on the first line, and under them, the card's full
   width, a segment per open stage and Won filled to the deal's own in its
   stage's colour. */
.dealbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0 }
.dealbar > .stagepick { flex: 0 1 auto; margin-left: -8px }
/* On a deal card the stage reads as plain words beside its dot, not a tag:
   no fill or edge at rest, a grey wash on hover, the dot on the card's left
   edge with the name above it. Overview's rows keep their pill. */
.dealbar .stagepick__btn { height: 32px; padding: 0 6px 0 8px; gap: 8px; border: 0; border-radius: 8px; background: none }
.dealbar .stagepick__btn:hover:not(:disabled), .dealbar .stagepick__btn[aria-expanded="true"] { background: var(--btn-wash) }
@media (pointer: coarse) { .dealbar .stagepick__btn { height: 44px; padding-inline: 8px 6px } }
/* The stage starts the card's row, so its menu opens from its left. */
.dealbar .stagemenu { left: 0; right: auto }
.dealbar__label { flex: 0 0 auto; font-variant-numeric: tabular-nums; white-space: nowrap }
.dealbar__segs { flex: 1 1 100%; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px }
.dealbar:has(> .stagepick) > .dealbar__label { order: 1; margin-left: auto }
.dealbar:has(> .stagepick) > .dealbar__segs { order: 2 }
/* A footer fact not set keeps its place and shape: its mark faded (an
   empty dashed face for Owner), its label, and what to do, muted. */
.dealmeta__noface {
  flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; box-sizing: border-box;
  border: 1.5px dashed var(--line); border-radius: 50%; color: var(--muted);
}
.dealmeta__noface .ms { font-size: 17px }
.dealmeta__item.is-none .dealmeta__mark .ms { color: var(--muted) }
.dealbar__seg { height: 8px; border-radius: 4px; background: var(--hair) }
/* The stage strip over the open deals: the card's bar, a white dot ringed in
   its stage's hue for each deal, then a row per deal that goes to its card. */
.dealstrip { display: flex; flex-direction: column; gap: 12px }
.dealstrip__bar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding-block: 2px }
.dealstrip__seg { height: 8px; border-radius: 4px; background: var(--hair); display: flex; align-items: center; justify-content: center; gap: 6px }
.dealstrip__seg.is-on { background: var(--stage-hue) }
.dealstrip__dot {
  flex: none; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%;
  background: var(--card); border: 3px solid var(--stage-hue);
}
.dealstrip__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column }
.dealstrip__rows > li + li { border-top: 1px solid var(--hair) }
.dealstrip__row {
  width: calc(100% + 16px); margin-inline: -8px; padding: 6px 8px; min-height: 36px; box-sizing: border-box;
  display: flex; align-items: center; gap: 10px; border: 0; border-radius: 8px; background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.dealstrip__row:hover { background: var(--btn-wash) }
.dealstrip__row:hover .dealstrip__name { color: var(--coral) }
.dealstrip__row:focus-visible { outline: 2px solid var(--coral); outline-offset: -2px }
.dealstrip__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.drawer__body .dealstrip__name.is-none { color: var(--muted); font-weight: 400 }
.dealstrip__at { flex: 0 0 auto; display: inline-flex; gap: 8px; font-variant-numeric: tabular-nums }
@media (pointer: coarse) { .dealstrip__row { min-height: 44px } }
.dealbar__seg.is-on { background: var(--stage-hue) }
.dealitem.is-won .dealbar__seg { background: var(--good) }
/* The stage track: a segment per open stage and Won, those passed in the
   stage's colour, and the deal's own stage the widest, tinted and edged in
   it with its name inside, the stage dropdown itself. Ink on a tint keeps
   the name readable on every hue (amber included). */
.dealtrack { flex: 1 1 100%; min-width: 0; display: flex; gap: 4px; height: 32px }
.dealtrack__seg { flex: 1 1 0; min-width: 8px; border-radius: 8px; background: var(--hair) }
.dealtrack__seg.is-on { background: var(--stage-hue) }
.dealtrack__here {
  flex: 0 1 auto; min-width: 0; max-width: 72%; display: flex; align-items: center;
  border-radius: 8px; background: color-mix(in srgb, var(--stage-hue) 14%, var(--card));
  box-shadow: inset 0 0 0 1.5px var(--stage-hue);
}
.dealtrack__here > .stagepick { flex: 1 1 auto; min-width: 0; height: 100% }
/* How it got there is said on the "Candid moved" line, not in the segment. */
.dealtrack__here > .stagepick > :not(.stagepick__anchor) { display: none }
.dealtrack__here .stagepick__anchor { height: 100%; width: 100% }
.dealbar .dealtrack__here .stagepick__btn { height: 100%; width: 100%; padding: 0 6px 0 10px; border-radius: 8px }
.dealtrack__here.is-won { gap: 6px; padding: 0 12px; color: var(--text) }
.dealtrack__here.is-won .ms { font-size: 18px; color: var(--good) }
@media (pointer: coarse) { .dealtrack { height: 44px } }

.dealitem__title { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px }
.dealitem__name { min-width: 0; overflow-wrap: anywhere }
.dealitem__end { flex: 0 0 auto; margin-left: auto; display: flex; align-items: center; gap: 2px }
.dealitem__value { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap }
.dealitem__value.is-none, .dealitem.is-lost :is(.dealitem__name, .dealitem__value) { color: var(--muted) }

/* Owner, close date and next step (owner, won and renews on a won deal;
   owner, close date and chance while editing): each column has the same two
   rows, its title, then its value, so they line up; editing, the value is
   its field. The next step gets the widest column; on a narrow drawer it
   takes a row of its own. */
.dealfacts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr) }
.dealfact { display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.dealitem:not(.is-editing) .dealfacts .dealfact { gap: 2px }
.dealitem:not(.is-editing) .dealfacts .dealfact__label { min-height: 20px }
/* The card's body: the next step as its lead line, then the deal's
   details as plain text (with their title only while being written). */
.dealpart { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0 }
/* The next step: "Next step" and when it is due over the step in the item's
   weight, set off from the stage by space alone. */
.dealitem > .dealstep { flex-direction: column; align-items: stretch; gap: 4px }
.dealstep__head { display: flex; align-items: flex-start; gap: 6px; min-width: 0 }
.dealstep__head > .ms { flex: 0 0 auto; margin-top: 1px; font-size: 18px; color: var(--text) }
.dealstep__go > .dealstep__when { margin-left: 0; padding-left: 24px }
/* The term, the card's one hairline above it: the start and the renewal or
   end at either end of a line with today marked on it, the last date flush
   with the card's right edge. On a narrow card the line takes the top row
   and the dates sit under its two ends. */
.dealitem__details > .dealterm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px }
.dealterm > .dealmeta__item:last-child .dealmeta__text { align-items: flex-end; text-align: right }
/* A prompt takes the line of the date it stands in for, so labels in a row line up. */
.drawer__body .dealmeta__text .dealfact__none { line-height: 1.25 }
.dealterm__line { position: relative; flex: 1 1 96px; min-width: 96px; height: 4px; border-radius: 2px; background: var(--hair) }
.dealterm__line::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--done, 0%); border-radius: inherit; background: var(--text) }
.dealterm__line::before { content: ""; position: absolute; left: var(--done, 0%); top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--text) }
.dealterm__line.is-empty::before { display: none }
/* Writing a date in place keeps the line: the field floats over its date (css/deal-card.css). */
@container (max-width: 560px) {
  .dealterm { justify-content: space-between }
  .dealterm__line { order: 1; flex-basis: 100% }
  .dealterm__line.is-empty { display: none }
  .dealterm > .dealmeta__item, .dealterm > .dealfix { order: 2 }
}
/* Folded, a long note shows two lines; Show more opens it whole. */
.dealabout.is-folded { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden }
.dealnote__more {
  display: inline-flex; align-items: center; gap: 4px; min-height: 32px; margin: -4px 0 0 -6px; padding: 0 10px 0 4px;
  border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.dealnote__more[hidden] { display: none }
.dealnote__more .ms { font-size: 18px }
.dealnote__more:hover { background: rgba(16, 33, 31, .05); color: var(--text) }
.dealnote__more:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px }
/* The footer's facts side by side: each its mark (a face, or an icon in the
   fact's colour, with no tile behind it), then its label over its value.
   Not set, the mark is an outline and the words are muted. */
/* The facts in even columns, so Owner, Closes and Type start in the same
   place on every deal; a field being edited takes the whole row. */
.dealmeta { flex: 1 1 0; min-width: min(100%, 300px); display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); align-items: center; gap: 8px 16px }
.dealmeta > * { justify-self: start; max-width: 100% }
.dealmeta > .dealfix { grid-column: 1 / -1 }
/* On a phone two columns rather than a tall stack; a value's note drops
   under it rather than running into the next column. */
@container (max-width: 420px) {
  .dealmeta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
  .dealmeta__text .dealfact__fig { flex-wrap: wrap; white-space: normal; gap: 0 6px }
  .dealmeta > .dealsaid__go { grid-column: 1 / -1 }
}
.dealmeta__item { display: inline-flex; align-items: center; gap: 10px; min-width: 0; min-height: 40px }
.dealmeta__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.25 }
.dealmeta__text .dealfact__label { min-height: 0 }
.dealmeta__text .dealfact__fig { gap: 4px }
.dealmeta__mark { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center }
.dealmeta__mark .ms { font-size: 22px; color: var(--text) }
.dealmeta__face { width: 28px; height: 28px; flex: 0 0 28px; font-size: 11px }
.dealmeta__item.is-late .dealmeta__mark .ms { color: var(--bad) }
.dealmeta__item.is-won .dealmeta__mark .ms { color: var(--good); font-variation-settings: 'FILL' 1 }
.dealsaid__who { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap }
.dealsaid__who b { overflow: hidden; text-overflow: ellipsis }
.dealsaid__go .dealfact__label { gap: 6px; white-space: nowrap }
.dealfacts > .dealfact { padding: 0 20px }
.dealfacts > .dealfact:first-child { padding-left: 0 }
.dealfacts > .dealfact + .dealfact { border-left: 1px solid var(--hair) }
.dealfact__label { display: flex; align-items: center; gap: 2px; min-height: 22px }
.dealfact__value { display: flex; align-items: center; gap: 8px; min-height: 30px; min-width: 0 }
.dealfact__fig { display: inline-flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; white-space: nowrap }
.dealfact__fig.is-late { color: var(--bad) }
.dealfact__won .ms { align-self: center; font-size: 19px; color: var(--good); font-variation-settings: 'FILL' 1 }
.dealfact__face { width: 26px; height: 26px; flex: 0 0 26px; font-size: 10.5px }
.dealfact__who { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
/* What a deal is (design/deal-links.md): its notes under its stage, a
   button that writes in place, or Add note; the last thing said opens that
   person's Thread. Buttons with no fill until hovered: they are parts of a
   deal, not tags. */
.dealabout { margin: 0; overflow-wrap: anywhere; white-space: pre-line; text-wrap: pretty }
.dealabout__in { width: 100%; min-height: 72px; resize: vertical; font: inherit; line-height: 1.5 }
/* The buttons carry their own room, so the label sits closer than a fact's. */
.dealnote, .dealsaid { gap: 2px }
.dealnote { gap: 4px }
.dealnote:has(> .dealabout__in) { align-items: stretch }
.dealnote > .dealitem__acts { margin-top: 2px }
.dealnote .dealnote__go { align-items: flex-start; margin: -4px 0 0 -8px; padding: 4px 8px; min-height: 0; color: var(--text) }
.dealnote__go > .ms { flex: 0 0 auto; margin-top: 2px; font-size: 18px; color: var(--muted) }
.dealnote__go, .dealsaid__go {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; min-height: 40px;
  padding: 4px 12px 4px 4px; border: 0; border-radius: 8px; background: none; color: var(--text);
  font: inherit; text-align: left; cursor: pointer; transition: background-color .15s ease;
}
.dealnote__go:hover:not(:disabled), .dealsaid__go:hover { background: rgba(16, 33, 31, .05) }
:is(.dealnote__go, .dealsaid__go):focus-visible { outline: 2px solid var(--teal); outline-offset: 1px }
/* No description yet: its place says so, muted, coral on hover. */
.dealnote .dealnote__add { color: var(--muted) }
/* The description is the name's subtitle, straight under it, in ink like
   any written text (only a placeholder is muted). */
.dealnote__add:hover { color: var(--coral) }
/* The value at the end of the name row: "Value" then the figure, on one
   baseline; not set, the Add value suggestion in the figure's place. An
   untitled deal's title is muted. */
.dealvalue { flex: 0 0 auto; margin-left: auto; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap }
.dealvalue.is-none { color: var(--muted) }
.dealvalue.is-none .ms { font-size: 18px; color: inherit }
.dealitem__name.is-none { color: var(--muted) }
.dealsaid__go { margin-left: -8px; padding-left: 8px }
.dealsaid__go > :first-child { flex: 0 0 auto; font-size: 17px; color: var(--muted) }
.is-late .dealfact__note { color: var(--bad) }
@container (max-width: 480px) {
  .dealfacts:has(> :nth-child(3)) { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 12px }
  .dealfacts:has(> :nth-child(3)) > .dealfact:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0 }
  .dealfacts > .dealfact { padding-right: 12px }
}

/* The next step, with its date at the end, red once it has gone by. */
.dealstep { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; min-width: 0 }
.dealstep > .ms { flex: 0 0 auto; font-size: 17px; color: var(--muted) }
.dealstep__text { min-width: 0; overflow-wrap: anywhere }
.dealstep__when { flex: 0 0 auto; margin-left: auto; display: inline-flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums }
.dealstep.is-late .dealstep__head > .ms, .dealstep.is-late .dealstep__when { color: var(--bad) }
.dealstep__fields { flex: 1 1 auto; max-width: 560px; display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 8px }

/* Editing in place: each part of a deal is its own control, the same
   part with a grey wash on hover and the teal ring on focus; a click turns
   it into its field (.dealfix) right where it was, its tick and cross
   inside the field (.infield). Nothing moves but the part being edited. */
.dealfix__go {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0; margin: -4px -8px; padding: 4px 8px;
  border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background-color .15s ease;
}
.dealfix__go:hover { background: rgba(16, 33, 31, .05) }
.dealfix__go:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px }
.dealitem__title.dealfix__go { flex: 0 1 auto }
.dealvalue.dealfix__go { margin: -4px -8px -4px auto; gap: 4px }
.dealmeta__item.dealfix__go { margin: 0 -8px; min-height: 40px }
.dealstep__go.dealfix__go { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin: -6px -8px; padding: 6px 8px }
.dealfix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0 }
.dealfix > .input, .dealfix > .editinfo__affix { min-width: 0 }
.dealfix--name { flex: 1 1 auto }
.dealfix--name > .input { flex: 1 1 220px }
.dealfix--value { margin-left: auto }
.dealfix--value > .editinfo__affix { width: 160px }
.dealfix--next-step { flex: 1 1 auto }
.dealfix--next-step > .input:first-child { flex: 1 1 220px }
.dealfix > .input[type="date"] { width: 170px }
.dealfix > :is(select.input, .selbtn.input) { width: auto; min-width: 180px }
.dealnote__add > .ms { color: inherit }

/* What can be written in place says so before it is pressed (as Calendly
   and Attio do): the name, the value and the description show a pencil at
   their end under the cursor or on keyboard focus, and faintly all the time
   on touch, where nothing hovers. Its place is held, so nothing shifts. */
:is(button.dealitem__title.dealfix__go, button.dealvalue.dealfix__go:not(.is-none), button.dealnote__go:not(.dealnote__add):not(:disabled))::after {
  content: "edit"; flex: 0 0 auto; align-self: center;
  font-family: 'Material Symbols Outlined'; font-size: 16px; font-weight: 400; line-height: 1;
  font-feature-settings: "liga"; -webkit-font-feature-settings: "liga";
  color: var(--muted); opacity: 0; transition: opacity .15s ease;
}
button.dealnote__go:not(.dealnote__add)::after { align-self: flex-start; margin-top: 3px }
:is(button.dealitem__title.dealfix__go, button.dealvalue.dealfix__go:not(.is-none), button.dealnote__go:not(.dealnote__add):not(:disabled)):is(:hover, :focus-visible)::after { opacity: 1 }
@media (hover: none) {
  :is(button.dealitem__title.dealfix__go, button.dealvalue.dealfix__go:not(.is-none), button.dealnote__go:not(.dealnote__add):not(:disabled))::after { opacity: .7 }
}

.dealfix--name .infield .input { font-size: 15px; font-weight: 500 }
.dealfix--value > .infield { flex: 0 0 auto; width: 220px }
/* Delete sits at the foot of the opened history. */
.dealhist + .dealitem__acts { justify-content: flex-end }

/* History, folded, and the deal's one action at the other end. */
.dealitem__foot { display: flex; align-items: center; gap: 12px; min-height: 32px }
.dealitem__foot > .btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px }
.dealitem__foot { flex-wrap: wrap; row-gap: 4px }
/* The summary line closes the folded card: who and when, the deal's one
   action, and Details at the right edge. Unfolded, the rest of the deal
   follows under the card's one hairline. */
.dealitem__sum { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 32px }
.dealitem__says { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-variant-numeric: tabular-nums }
.dealitem__says > :is(.dealmeta__face, .dealmeta__noface) { margin-right: -2px }
.dealitem__late { color: var(--bad) }
/* Last touch on the summary line: the board's four bars (.dealcard__bars)
   and the days, in the state's colour once quiet (amber) or cold (red). */
.dealtouch { display: inline-flex; align-items: center; gap: 6px }
.dealtouch .dealcard__bars i.is-lit { background: var(--good) }
.dealtouch.is-warn .dealcard__bars i.is-lit { background: #B7791F }
.dealtouch.is-bad .dealcard__bars i.is-lit { background: var(--bad) }
.drawer__body .dealtouch.is-warn b { color: #8A5A00 }
.drawer__body .dealtouch.is-bad b { color: var(--bad) }
.dealitem__sum > .btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px }
.dealitem__sum > .dealitem__more { flex: 0 0 auto; margin-right: -8px }
@container (max-width: 420px) {
  .dealitem__sum { flex-wrap: wrap }
  .dealitem__sum > .btn { order: 1; flex: 1 1 100%; justify-content: center }
}
.dealitem__details { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding-top: 16px; border-top: 1px solid var(--hair) }
.dealitem__foot > .dealitem__hist { margin-left: auto; margin-right: -8px }
.dealitem__foot > .dealitem__hist + .btn { margin-left: 0 }
.dealmeta .dealsaid__go { margin: -4px -8px; padding: 4px 12px 4px 8px; min-height: 48px; gap: 8px }
.dealmeta .dealsaid__go .dealmeta__mark .ms { font-size: 20px; color: var(--muted) }
.dealitem__hist {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 8px; margin-left: -8px;
  border: 0; border-radius: var(--r-btn-sm); background: none; color: var(--muted); font: inherit; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.dealitem__hist:hover { background: var(--page); color: var(--text) }
.dealitem__hist:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px }
.dealitem__hist .ms { font-size: 17px }
.dealitem__chev { transition: transform .18s ease }
.dealitem__hist[aria-expanded="true"] { color: var(--text) }
.dealitem__hist[aria-expanded="true"] .dealitem__chev { transform: rotate(180deg) }

.dealitem__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
.dealitem__drop { margin-left: auto; display: inline-flex; align-items: center; gap: 6px }
.dealitem__drop.is-armed { border-color: var(--bad); color: var(--bad) }

/* Every move, newest first, each an icon on a thread (as a pain point's
   timeline): green for won, red for lost. */
.dealhist { list-style: none; margin: 0; padding: 0 }
.dealhist__step { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding-bottom: 14px }
.dealhist__step:last-child { padding-bottom: 0 }
.dealhist__step:not(:last-child)::before {
  content: ""; position: absolute; left: 11px; top: 28px; bottom: 2px; width: 2px;
  border-radius: 1px; background: var(--line);
}
.dealhist__node { width: 24px; height: 24px; display: grid; place-items: center }
.dealhist__node .ms { font-size: 18px; color: var(--muted) }
.dealhist__step.is-won .dealhist__node .ms { color: var(--good); font-variation-settings: 'FILL' 1 }
.dealhist__step.is-lost .dealhist__node .ms { color: var(--bad) }
.dealhist__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 2px }
.dealhist__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px }
.dealhist__via { display: inline-flex; align-items: center; gap: 4px }
.dealhist__meta .linkbtn { font: inherit; font-weight: var(--weight-strong); min-height: 24px }
.dealbar__moved { flex: 0 0 100%; order: 9; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 6px; align-items: start; margin-top: 2px }
.dealbar__moved .ms { font-size: 16px; line-height: 22px; color: inherit }
.dealbar__moved b { font-size: 13px; font-weight: var(--weight-strong); line-height: 22px }
.dealbar__moved .dealitem__movedwhy { grid-column: 2; text-wrap: pretty }

/* New deal: what it is, its name, value and close date. */
.dealnew { display: flex; flex-direction: column; gap: 14px }
.dealnew > .field, .dealnew > .editinfo__pair { margin-top: 0 }
.dealnew > .field[hidden] { display: none }
.deals__kinds { display: flex; flex-wrap: wrap; gap: 8px }
.deals__acts { display: flex; flex-wrap: wrap; gap: 8px }

@media (max-width: 767px) {
  .dealitem__hist, .dealitem__foot > .btn { height: 40px }
  .dealmeta__item.dealfix__go { min-height: 44px }
  /* A bigger target for a thumb, in the same place. */
  .dealstep__fields { grid-template-columns: minmax(0, 1fr) }
}
@media (prefers-reduced-motion: reduce) {
  .dealitem__hist, .dealitem__chev { transition: none }
}

/* Many stages on a small laptop: the name keeps the room and the mark steps aside. */
@container (max-width: 190px) {
  .dealcard { padding: 10px 10px 8px; gap: 8px; border-radius: calc(var(--r-card) - 10px) }
  .dealcard__mark { display: none }
  .dealcard__name { font-size: 13px }
  .dealcard__value b { font-size: 14px }
  .dealcard__rows { margin: 0 -10px }
  .dealcard__step { padding-inline: 10px }
}

@media (max-width: 767px) {
  /* The totals two by two, with no dot to start a wrapped line. */
  .pipe__figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px }
  .pipe__fig + .pipe__fig::before { content: none }
  /* The chips flow as one row that wraps, so Owner and Gone quiet share a line. */
  .pipe__filters { justify-content: flex-start }
  .pipe__filters > .pipe__stale { margin-left: 0 }
  .pipe__filters > .tabchips { display: contents }
  /* Stages one under another, so a phone scrolls one way only. */
  .board { grid-template-columns: minmax(0, 1fr) }
  .board__colhead { top: -16px }
  .board__col { min-height: 0 }
}

@media (prefers-reduced-motion: reduce) {
  .dealcard, .board__col, .todo__row { transition: none }
  .dealcard:active { transform: none }
}
