/* ==========================================================================
   Rolo — a CRM for small sales teams. Concept by Larpcore Labs.
   One metaphor: the index card. Card stock on warm paper, a red header rule,
   faint blue ruled lines, letter tabs, and a Rolodex for the day's follow-ups.
   Display: Archivo (condensed 800). Text: Geist. Data: JetBrains Mono.
   ========================================================================== */

@font-face { font-family: 'Rolo Display'; src: url('../../../fonts/Archivo-var.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Rolo Text'; src: url('../../../fonts/Geist-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Rolo Mono'; src: url('../../../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Rolo Mono'; src: url('../../../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --paper: #efece5;
  --paper-2: #e7e3da;
  --paper-3: #ddd8cc;
  --card: #fbfaf6;
  --card-2: #f6f3ec;
  --ink: #151413;
  --ink-2: #4a4741;
  --ink-3: #6f6a61;
  --ink-4: #aca699;
  --rule: #d6d0c3;
  --rule-2: #e3ded4;
  --red: #e2432a;
  --red-ink: #bf3219;
  --red-wash: #f7ddd5;
  --blue-line: rgba(64, 104, 178, .17);
  --housing: #171614;
  --housing-2: #201f1c;
  --housing-rule: #302e2a;
  --housing-ink: #f1eee7;
  --housing-dim: #8f897d;

  --s-lead: #cdc7ba;
  --s-contacted: #a29b8e;
  --s-demo: #6e695f;
  --s-proposal: #2a2825;
  --s-won: var(--red);
  --s-lost: #e0dbd0;

  --display: 'Rolo Display', 'Arial Narrow', Impact, sans-serif;
  --text: 'Rolo Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Rolo Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, .05, .36, 1);
  --side-w: 248px;
  --top-h: 56px;
  --pad: 40px;
  --gap: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  font-family: var(--text);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 450;
  letter-spacing: -.003em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top-h) + 16px);
}
body { margin: 0; min-height: 100vh; background: var(--paper); }
::selection { background: var(--red-wash); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; letter-spacing: inherit; text-align: inherit; }
input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; font-weight: inherit; }
table { border-collapse: separate; border-spacing: 0; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mark { width: 32px; height: 32px; flex: none; fill: var(--card); stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.mark__rule { stroke: var(--red); stroke-width: 2; }
.mark__line { stroke-width: 1.5; opacity: .3; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* words for mice and keyboards vs. words for fingers */
.only-coarse { display: none; }
@media (pointer: coarse) { .only-fine { display: none; } .only-coarse { display: inline; } }
html.has-drawer { overflow: hidden; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: 8px; }
.skip:focus { top: 12px; }
.noscript { padding: 40px; font-size: 18px; }

/* ---------- type ---------- */
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .02em; }
.label { font-family: var(--mono); font-weight: 500; font-size: 10.5px; line-height: 1.25; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.label--ink { color: var(--ink); }
.label b { font-weight: 500; color: var(--ink); }
.display { font-family: var(--display); font-weight: 800; font-stretch: 70%; letter-spacing: -.005em; }
.num { font-family: var(--display); font-weight: 800; font-stretch: 74%; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.num small, .u { font-size: .58em; font-weight: 700; margin-left: .04em; letter-spacing: 0; }
.red { color: var(--red-ink); }
.dim { color: var(--ink-3); }

/* ---------- buttons & bits ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--rule); background: var(--card); color: var(--ink);
  font-weight: 600; font-size: 13px; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), color .2s;
}
.btn:hover { border-color: #bdb6a8; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .38; cursor: default; pointer-events: none; }
.btn .ico { width: 16px; height: 16px; }
.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #2a2826; border-color: #2a2826; }
.btn--sm { height: 28px; padding: 0 11px; font-size: 12px; }
.btn--quiet { border-color: transparent; background: transparent; }
.btn--quiet:hover { background: var(--paper-2); border-color: transparent; }
.btn__dot { display: grid; place-items: center; width: 24px; height: 24px; margin-right: -9px; border-radius: 50%; background: var(--red); color: #fff; }
.btn__dot .ico { width: 14px; height: 14px; stroke-width: 2.2; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--ink-2); font-family: var(--mono); font-weight: 500; font-size: 13px; transition: background-color .2s, color .2s; }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.link-btn { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.link-btn .ico { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.link-btn:hover { color: var(--ink); }
.link-btn:hover .ico { transform: translateX(3px); }

.kbd {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin: 0 1px;
  border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 5px; background: var(--card);
  font: 500 10px/1 var(--mono); letter-spacing: .02em; color: var(--ink-2); text-transform: none;
}
.av {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--ink); color: var(--paper); font: 500 8.5px/1 var(--mono); letter-spacing: .04em;
}
.av--lg { width: 30px; height: 30px; font-size: 10px; }
.av--me { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--red); }
/* contacts get a little index tab instead of a round face */
.tabav {
  position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 4px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule);
  font: 800 13px/1 var(--display); font-stretch: 80%; color: var(--ink);
}
.tabav::after { content: ''; position: absolute; left: 5px; right: 5px; bottom: 8px; height: 1px; background: var(--red); opacity: .8; }
.tabav--sm { width: 26px; height: 26px; font-size: 12px; }
.tabav--sm::after { bottom: 7px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 5px;
  background: var(--paper-2); font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap;
}
.pill i { width: 7px; height: 7px; border-radius: 2px; background: var(--c, var(--ink)); }
.pill--won { background: var(--red-wash); color: var(--red-ink); }
.pill--lost { background: transparent; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-3); }

.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--rule); background: transparent; font-size: 12.5px; font-weight: 550; color: var(--ink-2);
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: #bdb6a8; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .n { font: 500 10px var(--mono); opacity: .6; }
.chip .av { width: 18px; height: 18px; font-size: 7.5px; margin-left: -6px; }
.chip[aria-pressed="true"] .av { background: var(--paper); color: var(--ink); }

.field {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--rule); color: var(--ink-3); min-width: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 20, 19, .06); }
.field input, .field select { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.field .ico { width: 16px; height: 16px; }
.select { appearance: none; -webkit-appearance: none; height: 30px; padding: 0 30px 0 12px; border-radius: 999px; border: 1px solid var(--rule); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a4741' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 9px center / 14px; font-size: 12.5px; font-weight: 550; color: var(--ink-2); cursor: pointer; }
.select:hover { border-color: #bdb6a8; }

/* ==========================================================================
   Layout
   ========================================================================== */
.app {
  display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(90deg, #ebe7df 0 calc(var(--side-w) - 1px), var(--rule) calc(var(--side-w) - 1px) var(--side-w), transparent var(--side-w));
}
.main { min-width: 0; display: flex; flex-direction: column; }

/* ---------- sidebar ---------- */
.side {
  position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column;
  padding: 16px 14px 14px; border-right: 1px solid var(--rule); background: #ebe7df; overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
}
.side::-webkit-scrollbar { display: none; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 0; }
.brand__name { display: block; font: 800 23px/1 var(--display); font-stretch: 108%; letter-spacing: -.035em; }
.brand__ws { display: block; margin-top: 4px; font: 500 10px/1 var(--mono); letter-spacing: .04em; color: var(--ink-3); }
.side__row { display: flex; gap: 6px; margin: 18px 0 6px; }
.side__jump { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 8px 0 10px; border-radius: 8px; border: 1px solid var(--rule); background: var(--card); color: var(--ink-3); font-size: 13px; transition: border-color .2s; }
.side__jump:hover { border-color: #bdb6a8; color: var(--ink-2); }
.side__jump .ico { width: 16px; height: 16px; }
.side__jump .kbd { margin-left: auto; }
.side__new { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--ink); color: var(--paper); transition: background-color .2s, transform .15s var(--ease); }
.side__new:hover { background: #2a2826; }
.side__new:active { transform: translateY(1px); }
.side__new .ico { width: 17px; height: 17px; stroke-width: 1.9; }
.side__group { margin-top: 18px; }
.side__group > .label { display: flex; justify-content: space-between; padding: 0 10px 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__a {
  position: relative; display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: 8px;
  color: var(--ink-2); font-weight: 550; font-size: 13.5px; transition: background-color .2s, color .2s, box-shadow .2s;
}
.nav__a .ico { color: var(--ink-3); transition: color .2s; }
.nav__a:hover { background: var(--paper-2); color: var(--ink); }
.nav__a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--rule), 0 1px 2px rgba(0, 0, 0, .04); }
.nav__a[aria-current="page"] .ico { color: var(--ink); }
.nav__a[aria-current="page"]::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 2px 2px 0; background: var(--red); }
.nav__n { margin-left: auto; font: 500 10.5px/1 var(--mono); color: var(--ink-3); }
.nav__n--hot { color: var(--red-ink); }
.nav__a--saved { height: 32px; font-size: 13px; font-weight: 500; }
.nav__a--saved .glyph { width: 18px; display: grid; place-items: center; font: 500 11px var(--mono); color: var(--ink-4); }
.team { display: flex; flex-direction: column; gap: 2px; }
.team__row { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; transition: background-color .2s; }
.team__row:hover { background: var(--paper-2); }
.team__row[aria-pressed="true"] { background: var(--card); box-shadow: 0 0 0 1px var(--rule); }
.team__main { min-width: 0; }
.team__name { display: block; font-size: 13px; font-weight: 550; line-height: 1.1; }
.team__name .dim { font-weight: 450; }
.team__bar { display: block; height: 2px; margin-top: 6px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.team__bar i { display: block; height: 100%; width: var(--w); background: var(--ink); border-radius: 2px; }
.team__pct { font: 500 10.5px var(--mono); color: var(--ink-3); }
.side__foot { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.side__tools { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 0 10px; }
.side__reset { display: inline-flex; align-items: center; gap: 7px; font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.side__reset .ico { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.side__reset:hover { color: var(--ink); }
.side__reset:hover .ico { transform: rotate(-200deg); }
.credit {
  display: block; padding: 11px 12px; border-radius: 8px; border: 1px dashed var(--rule);
  font: 500 10px/1.45 var(--mono); letter-spacing: .02em; color: var(--ink-3); transition: color .2s, border-color .2s;
}
.credit b { font-weight: 500; color: var(--ink-2); }
.credit:hover { color: var(--ink); border-color: var(--ink-4); }
.credit:hover b { color: var(--ink); }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 18px;
  padding: 0 var(--pad); background: var(--paper); border-bottom: 1px solid var(--rule-2);
}
.top__brand { display: none; }
.top__brand .mark { width: 26px; height: 26px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.crumbs i { font-style: normal; color: var(--ink-4); }
.crumbs b { font-weight: 500; color: var(--ink); }
.jump { display: none; }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.top__clock { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.top__clock b { font-weight: 500; color: var(--ink); }
.me { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 500 10px var(--mono); letter-spacing: .04em; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--red); }

/* ---------- view ---------- */
.view { flex: 1; padding: 0 var(--pad) 64px; outline: 0; min-width: 0; }
.view > * { animation: rise .6s var(--ease) both; }
.view > *:nth-child(2) { animation-delay: .05s; }
.view > *:nth-child(3) { animation-delay: .1s; }
.view > *:nth-child(4) { animation-delay: .15s; }
.view > *:nth-child(5) { animation-delay: .2s; }
.view > *:nth-child(n+6) { animation-delay: .25s; }
.view.is-quiet > * { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 40px; padding: 24px 0 22px; }
.head__meta { display: flex; align-items: center; gap: 10px; }
.head__meta .live { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--red-wash); }
.title {
  margin-top: 12px; font-family: var(--display); font-weight: 800; font-stretch: 66%; text-transform: uppercase;
  font-size: clamp(56px, 22px + 5.6vw, 128px); line-height: .8; letter-spacing: -.012em; margin-left: -.03em;
}
.lede { margin-top: 13px; max-width: 58ch; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.lede b { font-weight: 600; color: var(--ink); }
.specs { display: flex; align-items: flex-end; }
.spec { position: relative; min-width: 104px; padding: 0 0 2px 22px; margin-left: 22px; border-left: 1px solid var(--rule); }
.spec:first-child { margin-left: 0; }
.spec__n { display: block; font-family: var(--display); font-weight: 800; font-stretch: 70%; font-size: 64px; line-height: .8; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.spec__n .u { font-size: .5em; }
.spec__l { display: block; margin-top: 10px; }
.spec--hot .spec__n { color: var(--red); }
a.spec:hover .spec__l, button.spec:hover .spec__l { color: var(--ink); }

.sec { margin-top: 44px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-head .label { margin-bottom: 8px; display: block; }
.sec-title { font-family: var(--display); font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: 30px; line-height: .9; letter-spacing: -.005em; }
.sec-note { color: var(--ink-2); font-size: 13.5px; max-width: 60ch; }

.panel { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; min-width: 0; }
.panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px 14px; border-bottom: 1px solid var(--rule-2); }
.panel__title { font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.panel__title + .label, .panel__head .label + .panel__title { margin-top: 6px; }
.panel__body { padding: 16px 20px 20px; }
.panel__note { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.panel__note b { font-weight: 600; color: var(--ink); }

.foot { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.foot a:hover, .foot__reset:hover { color: var(--ink); }
.foot__end { display: flex; align-items: center; gap: 22px; }
.foot__reset { text-transform: inherit; letter-spacing: inherit; color: inherit; }
.foot__reset::before { content: '↺'; margin-right: 6px; letter-spacing: 0; }

/* ==========================================================================
   Today
   ========================================================================== */

/* where the quarter stands: two rulers, time above money */
.qtr { position: relative; padding: 13px 0 14px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.qtr__top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.qtr__top > .label { white-space: nowrap; }
.qtr__verdict { font-size: 14px; font-weight: 600; }
.qtr__verdict .dim { font-weight: 450; }
.qtr__grid { display: grid; grid-template-columns: 74px minmax(0, 1fr) 150px; align-items: center; gap: 8px 14px; margin-top: 12px; }
.qtr__k { padding-top: 1px; }
.track { position: relative; height: 26px; }
.track--time { height: 22px; }
.ticks { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(13, 1fr); border-left: 1px solid var(--ink-4); }
.ticks span { position: relative; border-right: 1px solid var(--rule); font: 500 9.5px/1 var(--mono); color: var(--ink-4); padding: 1px 0 0; text-align: center; letter-spacing: .04em; }
.ticks span.is-mo { text-align: left; padding-left: 5px; color: var(--ink-2); }
.ticks span.is-month { border-right-color: var(--ink-4); }
.ticks span.is-past { color: var(--ink-3); }
.elapsed { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--w); background: var(--ink); transform-origin: left; }
.nowpin { position: absolute; top: -4px; bottom: -40px; left: var(--x); width: 0; border-left: 1.5px solid var(--red); z-index: 2; }
.nowpin::before { content: ''; position: absolute; top: -2px; left: -5.5px; border: 5px solid transparent; border-top: 7px solid var(--red); }
/* on a phone the end figures sit under each ruler, so the pin is drawn twice instead of crossing them */
.nowpin--money { display: none; top: 0; bottom: 0; }
.nowpin--money::before { display: none; }
.money { position: absolute; inset: 3px 0; border-radius: 3px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.money__won, .money__fc { position: absolute; top: 0; bottom: 0; left: var(--x, 0); width: var(--w); transform-origin: left; }
.money__won { background: var(--ink); border-radius: 3px 0 0 3px; }
.money__fc { background: repeating-linear-gradient(-45deg, var(--ink-2) 0 1.5px, transparent 1.5px 6px); opacity: .55; }
.money__tgt { position: absolute; top: -3px; bottom: -3px; right: 0; width: 2px; background: var(--ink); }
.qtr__end { text-align: right; }
.qtr__end .num { font-size: 22px; line-height: 1; }
.qtr__legend { display: flex; gap: 6px 22px; flex-wrap: wrap; grid-column: 2 / 3; }
.qtr__legend span { display: inline-flex; align-items: center; gap: 8px; }
.qtr__legend i { width: 14px; height: 8px; border-radius: 2px; background: var(--ink); }
.qtr__legend i.fc { background: repeating-linear-gradient(-45deg, var(--ink-2) 0 1.5px, transparent 1.5px 4px); opacity: .7; box-shadow: inset 0 0 0 1px var(--rule); }
.qtr__legend i.now { width: 2px; height: 12px; background: var(--red); border-radius: 0; }
.qtr .is-in-anim .money__won, .qtr .is-in-anim .money__fc, .qtr .is-in-anim .elapsed { animation: grow 1.1s var(--ease) both; }
.qtr .is-in-anim .money__fc { animation-delay: .35s; }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }

.today-grid { display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: var(--gap); margin-top: 20px; align-items: stretch; }
.today-main, .today-side { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.today-main > .panel:last-child, .today-side > .panel:last-child { flex: 1; display: flex; flex-direction: column; }
.panel__foot { margin-top: auto; padding: 12px 20px 14px; border-top: 1px solid var(--rule-2); }

/* ---------- the Rolodex ---------- */
.rdx {
  position: relative; display: flex; flex-direction: column; height: 468px; flex: none; min-width: 0; padding: 16px 22px 14px;
  border-radius: 14px; background: var(--housing); color: var(--housing-ink); overflow: hidden; isolation: isolate;
}
.rdx::before { /* faint ruler down the housing edge, like the portfolio's margins */
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 9px;
  background: repeating-linear-gradient(to bottom, #3a3732 0 1px, transparent 1px 8px); opacity: .7;
}
.rdx__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; position: relative; z-index: 3; }
.rdx__title { font-family: var(--display); font-weight: 800; font-stretch: 70%; font-size: 30px; line-height: .9; text-transform: uppercase; letter-spacing: -.005em; }
.rdx .label { color: var(--housing-dim); }
.rdx .label b { color: var(--housing-ink); }
.rdx .label .hot { color: #ff7a63; }
.rdx__keys { display: flex; align-items: center; gap: 6px; color: var(--housing-dim); font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.rdx .kbd { background: var(--housing-2); border-color: #3a3732; color: var(--housing-ink); }
.rdx__stage { position: relative; flex: 1; min-height: 280px; margin: 4px -6px 0; touch-action: pan-y; container: rdx / inline-size; }
.rdx__rail { position: absolute; left: 4px; right: 4px; bottom: 10px; height: 34px; display: flex; align-items: center; z-index: 1; }
.rod { flex: 1; height: 7px; margin: 0 -3px; border-radius: 4px; background: linear-gradient(#45423c, #2b2925 60%, #22201d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.knob {
  position: relative; z-index: 2; width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 50%, #34312c 0 38%, transparent 39%), repeating-conic-gradient(from 0deg, #4a4740 0 5deg, #2a2824 5deg 10deg);
  box-shadow: 0 0 0 1px #4d4943, 0 6px 14px -6px rgba(0, 0, 0, .8); transition: transform .62s var(--ease), box-shadow .2s;
  transform: rotate(var(--turn, 0deg));
}
.knob:hover { box-shadow: 0 0 0 1px #7a756b, 0 6px 14px -6px rgba(0, 0, 0, .8); }
.knob::after { content: ''; position: absolute; left: 50%; top: 5px; width: 2px; height: 6px; margin-left: -1px; border-radius: 1px; background: #8f897d; }
.knob:disabled { opacity: .45; cursor: default; }
.rdx__cards { position: absolute; inset: 0; perspective: 1500px; perspective-origin: 50% -20%; }

.ix {
  --d: 0; --tx: .5;
  position: absolute; left: 0; right: 0; top: 62px; bottom: 36px; margin: 0 auto; width: min(600px, calc(100% - 28px));
  transform-origin: 50% 100%;
  transform: translate3d(0, calc(var(--d) * -13px), calc(var(--d) * -1px)) scale(calc(1 - var(--d) * .035));
  filter: brightness(calc(1 - var(--d) * .085));
  transition: transform .64s var(--ease), opacity .18s linear, filter .64s var(--ease);
  will-change: transform; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.ix.is-gone { transform: translate3d(0, 34px, 40px) rotateX(-92deg); opacity: 0; filter: brightness(.78); pointer-events: none; transition: transform .58s var(--ease-io), opacity .14s linear .42s, filter .58s var(--ease-io); }
.ix.is-deep { opacity: 0; pointer-events: none; transform: translate3d(0, -56px, -5px) scale(.84); }
.ix.is-instant { transition: none !important; }
/* a narrower housing (tablets, the two-column desk at ~1280): the card stays between the knobs instead of on top of them */
@container rdx (max-width: 700px) { .ix { width: calc(100% - 96px); } }
.ix__paper {
  position: absolute; inset: 0; border-radius: 4px; background: var(--card); color: var(--ink);
  -webkit-mask: radial-gradient(10px 7px at 50% 100%, transparent 98%, #000 100%);
  mask: radial-gradient(10px 7px at 50% 100%, transparent 98%, #000 100%);
}
.ix__shadow { position: absolute; inset: 6px 10px -2px; border-radius: 6px; box-shadow: 0 22px 34px -14px rgba(0, 0, 0, .75); }
.ix__tab {
  position: absolute; top: -21px; left: calc(16px + (100% - 76px) * var(--tx)); width: 44px; height: 22px;
  display: grid; place-items: center; padding-top: 1px; border-radius: 5px 5px 0 0; background: var(--card); color: var(--ink);
  font: 800 13px/1 var(--display); font-stretch: 85%;
}
.ix__inner { position: relative; height: 100%; display: flex; flex-direction: column; padding: 15px 22px 14px; }
.ix__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ix__due { display: inline-flex; align-items: center; gap: 7px; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.ix__due::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); }
.ix__due.is-over { color: var(--red-ink); }
.ix__due.is-over::before { background: var(--red); }
.ix__due.is-today::before { background: var(--ink); }
.ix__code { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ix__name { margin-top: 12px; font-family: var(--display); font-weight: 800; font-stretch: 68%; font-size: 40px; line-height: .86; text-transform: uppercase; letter-spacing: -.008em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix__role { margin-top: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix__role b { font-weight: 600; color: var(--ink); }
.ix__rule { height: 0; margin: 10px -22px 0; border-top: 1.5px solid var(--red); }
.ix__lines { flex: 1; margin: 0 -22px; padding: 0 22px; background: repeating-linear-gradient(to bottom, transparent 0 25px, var(--blue-line) 25px 26px); line-height: 26px; overflow: hidden; }
.ix__line { display: flex; gap: 10px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.ix__line span:last-child { overflow: hidden; text-overflow: ellipsis; }
.ix__line--next { font-size: 15px; font-weight: 600; color: var(--ink); }
.ix__k { flex: none; width: 34px; font: 500 9.5px/26px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ix__line--next .ix__k { color: var(--red-ink); }
.ix__foot { display: flex; align-items: center; gap: 18px; padding-top: 8px; font: 500 10.5px/1 var(--mono); color: var(--ink-3); }
.ix__foot button { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.ix__foot button:hover { color: var(--ink); }
.ix__foot .ico { width: 13px; height: 13px; }
.ix__val { margin-left: auto; font-family: var(--display); font-weight: 800; font-stretch: 74%; font-size: 22px; color: var(--ink); letter-spacing: -.01em; }
.stamp {
  position: absolute; right: 22px; top: 44px; z-index: 3; padding: 4px 10px 3px; border: 2.5px solid var(--red); border-radius: 4px;
  font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: 26px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--red);
  transform: rotate(-9deg); opacity: .92; mix-blend-mode: multiply; animation: stamp .42s cubic-bezier(.2, 1.5, .4, 1) both; pointer-events: none;
}
.stamp--inline { position: static; display: inline-block; margin-left: auto; padding: 2px 6px 1px; border-width: 1.5px; font-size: 12px; transform: rotate(-6deg); animation: none; }
.stamp--sm { top: 8px; right: 8px; font-size: 13px; padding: 2px 6px 1px; border-width: 1.5px; animation: none; }
@keyframes stamp { from { transform: rotate(-9deg) scale(2.4); opacity: 0; } to { transform: rotate(-9deg) scale(1); opacity: .92; } }

.rdx__empty { position: absolute; inset: 20px 0 60px; display: grid; place-content: center; text-align: center; gap: 10px; }
.rdx__empty .num { font-size: 56px; line-height: .9; text-transform: uppercase; }
.rdx__empty p { color: var(--housing-dim); max-width: 34ch; margin: 0 auto; }

.rdx__foot { position: relative; z-index: 3; display: flex; align-items: center; gap: 18px; padding-top: 14px; border-top: 1px solid var(--housing-rule); }
.rdx__count { display: flex; align-items: baseline; gap: 6px; min-width: 76px; }
.rdx__count .num { font-size: 34px; line-height: .8; }
.rdx__count .label { letter-spacing: .08em; }
.rdx__ticks { flex: 1; display: flex; gap: 4px; min-width: 40px; }
.rdx__ticks button { flex: 1; height: 14px; display: flex; align-items: center; }
.rdx__ticks button::before { content: ''; flex: 1; height: 3px; border-radius: 2px; background: #3a3732; transition: background-color .3s, height .3s; }
.rdx__ticks button.is-over::before { background: #6a3328; }
.rdx__ticks button.is-cur::before { background: var(--housing-ink); height: 5px; }
.rdx__ticks button.is-cur.is-over::before { background: var(--red); }
.rdx__btns { display: flex; gap: 8px; }
.btn--dark { background: transparent; border-color: #3d3a35; color: var(--housing-ink); }
.btn--dark:hover { border-color: #6b665d; background: var(--housing-2); }
.btn--paper { background: var(--housing-ink); border-color: var(--housing-ink); color: var(--ink); }
.btn--paper:hover { background: #fff; border-color: #fff; }

/* ---------- side lists ---------- */
.list-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 20px; border-top: 1px solid var(--rule-2); cursor: pointer; transition: background-color .2s; }
.list-row:first-child { border-top: 0; }
.list-row:hover { background: var(--card-2); }
.list-row__top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.list-row__who { font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.list-row__co { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row__subj { margin-top: 2px; font-size: 13px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row__snip { margin-top: 2px; font-size: 12.5px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.list-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.age { font: 500 10.5px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.age--hot { color: var(--red-ink); }
.tick-btn { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--rule); color: var(--ink-3); transition: all .2s; }
.tick-btn .ico { width: 14px; height: 14px; }
.tick-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty { padding: 22px 20px; color: var(--ink-3); font-size: 13px; }
.empty b { color: var(--ink); font-weight: 600; }

.meets { position: relative; padding: 6px 0 8px; }
.meet { position: relative; display: grid; grid-template-columns: 54px 14px minmax(0, 1fr) auto; align-items: center; gap: 0 10px; padding: 7px 20px; min-height: 44px; cursor: pointer; transition: background-color .2s; }
.meet:hover { background: var(--card-2); }
.meet__t { font: 500 11px/1 var(--mono); color: var(--ink); }
.meet__dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--card); justify-self: center; position: relative; z-index: 1; }
.meet__what { min-width: 0; }
.meet__title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meet__who { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meet.is-past .meet__t, .meet.is-past .meet__title { color: var(--ink-3); }
.meet.is-past .meet__dot { background: var(--ink-4); border-color: var(--ink-4); }
.meet.is-next .meet__dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px var(--red-wash); }
.meets::before { content: ''; position: absolute; left: calc(20px + 54px + 10px + 7px); top: 18px; bottom: 18px; width: 1px; background: var(--rule); }
.nowline { position: relative; display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; padding: 0 20px; height: 14px; }
.nowline span { font: 500 9.5px/1 var(--mono); letter-spacing: .12em; color: var(--red-ink); }
.nowline i { height: 1.5px; background: var(--red); position: relative; }
.nowline i::before { content: ''; position: absolute; left: 3px; top: -3px; width: 7.5px; height: 7.5px; border-radius: 50%; background: var(--red); }

/* ---------- pipeline at a glance ---------- */
.stackbar { display: flex; height: 52px; gap: 3px; }
.stackbar__seg {
  position: relative; flex: var(--v) 1 0; min-width: 64px; padding: 8px 10px; border-radius: 4px; background: var(--c); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between; transform-origin: left; transition: filter .2s, flex-grow .6s var(--ease);
}
.stackbar__seg:hover { filter: brightness(1.08); }
.stackbar__seg.is-light { color: var(--ink); }
.stackbar__seg .label { color: inherit; opacity: .85; font-size: 9.5px; letter-spacing: .12em; }
.stackbar__seg .num { font-size: 19px; line-height: 1; }
.is-in-anim .stackbar__seg { animation: grow .9s var(--ease) both; animation-delay: calc(var(--i) * .07s); }
.glance { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 18px; }
.glance__col { padding: 0 16px 0 14px; border-left: 1px solid var(--rule); min-width: 0; }
.glance__col:first-child { padding-left: 0; border-left: 0; }
.glance__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.glance__v { margin-top: 10px; font-size: 36px; line-height: .85; }
.glance__w { margin-top: 6px; font: 500 10px/1.2 var(--mono); color: var(--ink-3); letter-spacing: .04em; }
.glance__deals { margin-top: 14px; border-top: 1px solid var(--rule-2); }
.glance__deal { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 7px 0; border-bottom: 1px solid var(--rule-2); font-size: 12.5px; transition: color .2s; }
.glance__deal { align-items: baseline; text-align: left; }
.glance__deal span:first-child { min-width: 0; overflow-wrap: anywhere; color: var(--ink-2); }
.glance__deal span:last-child { flex: none; }
.glance__deal span:last-child { font: 500 11px var(--mono); color: var(--ink); }
.glance__deal:hover span:first-child { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.glance__more { display: block; padding-top: 8px; font: 500 10px var(--mono); color: var(--ink-3); letter-spacing: .06em; }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.trio { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap); }

.cold-row, .move-row { display: grid; align-items: center; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--rule-2); cursor: pointer; transition: background-color .2s; }
.cold-row { grid-template-columns: minmax(0, 1fr) 76px 84px; }
.move-row { display: block; }
.move-row__line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.move-row__line + .move-row__line { margin-top: 7px; }
.move-row__line .row-sub { flex: none; }
.cold-row:first-child, .move-row:first-child { border-top: 0; }
.cold-row:hover, .move-row:hover { background: var(--card-2); }
.row-title { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frost { display: flex; gap: 3px; align-items: flex-end; height: 18px; padding-bottom: 1px; border-bottom: 1px solid var(--rule); }
.frost i { width: 5px; border-radius: 1px 1px 0 0; background: var(--ink-2); height: calc(var(--h) * 1px); }
.frost i.is-zero { background: var(--rule); }
.frost i.is-hot { background: var(--red); }
.hop { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }

/* signed this quarter */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 30px 16px; padding: 26px 4px 4px; }
.won-card {
  position: relative; display: flex; flex-direction: column; align-items: stretch; min-width: 0; min-height: 168px; padding: 14px 15px 13px;
  border-radius: 4px; background: var(--card); text-align: left; box-shadow: 0 0 0 1px var(--rule), 0 14px 24px -18px rgba(0, 0, 0, .4);
  transform: rotate(var(--r)); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.won-card:hover { transform: rotate(0deg) translateY(-5px); box-shadow: 0 0 0 1px var(--ink-4), 0 22px 30px -18px rgba(0, 0, 0, .45); }
.won-card__tab { position: absolute; top: -17px; left: calc(10px + (100% - 52px) * var(--tx)); width: 32px; height: 18px; display: grid; place-items: center; border-radius: 4px 4px 0 0; background: var(--card); box-shadow: 0 -1px 0 var(--rule), 1px 0 0 var(--rule), -1px 0 0 var(--rule); font: 800 11px/1 var(--display); font-stretch: 85%; }
.won-card__co { margin-top: 10px; font-family: var(--display); font-weight: 800; font-stretch: 70%; font-size: 23px; line-height: .9; text-transform: uppercase; overflow-wrap: anywhere; }
.won-card__rule { height: 0; margin: 11px -15px 0; border-top: 1.5px solid var(--red); }
.won-card__prod { padding-top: 7px; font-size: 12px; line-height: 1.35; color: var(--ink-2); background: repeating-linear-gradient(to bottom, transparent 0 17px, var(--blue-line) 17px 18px); }
.won-card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.won-card__foot .num { font-size: 28px; line-height: .8; }
.stamp--card { position: static; font-size: 14px; padding: 2px 7px 1px; border-width: 2px; animation: none; transform: rotate(-8deg); }
.anim-wait .won-card { opacity: 0; }
.is-in-anim .won-card { animation: pin .8s var(--ease) backwards; animation-delay: calc(var(--i) * .08s); }
@keyframes pin { from { opacity: 0; transform: translateY(-26px) rotate(calc(var(--r) * 5)); } }

/* team activity */
.feed { display: flex; flex-direction: column; }
.feed-row { display: grid; grid-template-columns: 34px 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--rule-2); transition: background-color .2s; }
.feed-row:first-child { border-top: 0; }
.feed-row[role="button"] { cursor: pointer; }
.feed-row[role="button"]:hover { background: var(--card-2); }
.feed-row__txt { font-size: 13px; line-height: 1.4; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-row__txt b { font-weight: 600; color: var(--ink); }
.tabav--xs { width: 22px; height: 22px; font-size: 10px; }
.tabav--xs::after { bottom: 5px; left: 4px; right: 4px; }
.sw { display: inline-block; width: 16px; height: 7px; border-radius: 2px; background: var(--ink); border: 0 !important; }
.sw--hatch { background: repeating-linear-gradient(-45deg, var(--ink-2) 0 1.5px, transparent 1.5px 4px); box-shadow: inset 0 0 0 1px var(--rule); opacity: .8; }
.hop .ico { width: 12px; height: 12px; color: var(--ink-3); }

/* reps (Today + Reports) */
.reps { display: flex; flex-direction: column; }
.rep { display: grid; grid-template-columns: 30px minmax(0, 1fr) 56px; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--rule-2); }
.rep:first-child { border-top: 0; }
.rep__name { font-weight: 600; font-size: 13.5px; }
.rep__name small { font-weight: 450; color: var(--ink-3); font-size: 12px; margin-left: 4px; }
.rep__bar { position: relative; height: 8px; margin-top: 8px; border-radius: 2px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule-2); overflow: hidden; }
.rep__bar i, .rep__bar b { position: absolute; top: 0; bottom: 0; left: var(--x, 0); width: var(--w); transform-origin: left; }
.rep__bar i { background: var(--ink); }
.rep__bar b { background: repeating-linear-gradient(-45deg, var(--ink-2) 0 1.5px, transparent 1.5px 5px); opacity: .5; }
.rep__meta { margin-top: 6px; font: 500 10px/1.2 var(--mono); color: var(--ink-3); letter-spacing: .03em; }
.rep__pct { text-align: right; font-size: 26px; line-height: .9; }
.is-in-anim .rep__bar i, .is-in-anim .rep__bar b { animation: grow 1s var(--ease) both; }
.is-in-anim .rep__bar b { animation-delay: .3s; }

/* ==========================================================================
   Charts (hand-built SVG)
   ========================================================================== */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--mono); font-weight: 500; font-size: 10px; fill: var(--ink-3); letter-spacing: .04em; }
.chart .t-ink { fill: var(--ink); }
.chart .t-red { fill: var(--red-ink); }
.chart .t-big { font-family: var(--display); font-weight: 800; font-stretch: 74%; font-size: 22px; letter-spacing: -.01em; }
.chart .t-mid { font-family: var(--display); font-weight: 800; font-stretch: 74%; font-size: 15px; letter-spacing: 0; }
.chart .t-halo { paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
.chart .grid { stroke: var(--rule-2); stroke-width: 1; }
.chart .axis { stroke: var(--ink-4); stroke-width: 1; }
.chart .pace { stroke: var(--ink-4); stroke-width: 1.2; stroke-dasharray: 2 4; fill: none; }
.chart .tgt { stroke: var(--ink); stroke-width: 1; }
.chart .area { fill: var(--ink); opacity: .06; }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .fc { fill: none; stroke: var(--red); stroke-width: 2; stroke-dasharray: 5 5; stroke-linecap: round; }
.chart .today { stroke: var(--red); stroke-width: 1.2; }
.chart .dot { fill: var(--card); stroke: var(--ink); stroke-width: 1.6; }
.chart .dot--red { fill: var(--red); stroke: var(--red); }
.chart .bar { fill: var(--paper-3); }
.chart .bar--ink { fill: var(--ink); }
.chart .bar--red { fill: var(--red); }
.chart .bar--hatch { fill: url(#hatch); }
.chart .thresh { stroke: var(--red); stroke-width: 1.5; }
.chart .seg { stroke: var(--card); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:hover + .dot { stroke-width: 2.6; }
/* waiting to be seen: hidden only when JS has armed the reveal */
.anim-wait .money__won, .anim-wait .money__fc, .anim-wait .elapsed, .anim-wait .stackbar__seg, .anim-wait .rep__bar i, .anim-wait .rep__bar b { transform: scaleX(0); }
.is-still .view > * { animation: none !important; }
/* draw-ins */
.chart .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.chart .fade { opacity: 0; }
.chart .grow-x { transform: scaleX(0); transform-box: fill-box; transform-origin: left center; }
.chart .grow-y { transform: scaleY(0); transform-box: fill-box; transform-origin: center bottom; }
.chart.is-in .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease-io) .1s; }
.chart.is-in .fade { opacity: 1; transition: opacity .7s var(--ease) calc(var(--dl, 0) * 1s + .2s); }
.chart.is-in .area.fade { opacity: .06; }
.chart.is-in .grow-x, .chart.is-in .grow-y { transform: none; transition: transform 1s var(--ease) calc(var(--dl, 0) * 1s); }
.chart.is-static .draw { stroke-dashoffset: 0; }
.chart.is-static .fade { opacity: 1; }
.chart.is-static .area.fade { opacity: .06; }
.chart.is-static .grow-x, .chart.is-static .grow-y { transform: none; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; padding: 7px 10px; border-radius: 8px; background: var(--ink); color: var(--paper);
  font-size: 12px; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .15s;
}
.chart-tip.is-on { opacity: 1; }
.chart-tip b { font-weight: 600; }
.chart-tip span { font: 500 10.5px var(--mono); opacity: .7; margin-left: 6px; }

/* ==========================================================================
   Pipeline
   ========================================================================== */
.toolbar { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--ink); }
.toolbar__chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.toolbar__sep { width: 1px; height: 20px; background: var(--rule); margin: 0 6px; }
.toolbar__find { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
.toolbar .field { width: 230px; height: 30px; border-radius: 999px; }
.btn--new { height: 30px; padding: 0 14px 0 10px; gap: 6px; font-size: 12.5px; }
.btn--new .ico { width: 15px; height: 15px; stroke-width: 1.9; }

/* a strip of stages over a board that scrolls sideways: tap to jump, drop a card on one to move it */
.stagebar { display: none; }
.stagebar__b {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 36px; padding: 0 6px; border-radius: 8px;
  background: var(--paper-2); font: 500 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), color .2s, transform .2s var(--ease);
}
.stagebar__b i { flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.stagebar__n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stagebar__b b { font-weight: 500; color: var(--ink-3); }
.stagebar__b.is-here { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-4); }
body.is-dragging .stagebar__b { box-shadow: inset 0 0 0 1px var(--ink-4); background: var(--card); }
.stagebar__b.is-over, body.is-dragging .stagebar__b.is-over { background: var(--ink); color: var(--paper); box-shadow: none; transform: translateY(2px) scale(1.05); }
.stagebar__b.is-over b { color: inherit; }
.stagebar__b[data-stage="won"].is-over { background: var(--red); color: #fff; }

.board-wrap { position: relative; }
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: start; }
.col-stack { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (min-width: 1200px) {
  /* the closed column is an outbox: it stays in view while you scroll the long columns */
  .col-stack { position: sticky; top: calc(var(--top-h) + 12px); max-height: calc(100vh - var(--top-h) - 24px); }
  .col-stack .col { min-height: 0; overflow: hidden; }
  .col-stack .col--closed:first-child { flex: 0 1 auto; }
  .col-stack .col--closed:last-child { flex: 0 1 auto; max-height: 44%; }
  .col-stack .col__cards {
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; margin: 0 -4px; padding: 2px 4px 20px;
    /* the last card fades out instead of being sliced by the edge of the outbox */
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent);
  }
}
.col-stack .col { min-height: 0; }
.col--closed .col__cards { min-height: 72px; gap: 6px; }
.col--closed .col__total { font-size: 28px; }
.col--closed .col__head { padding-bottom: 10px; }
.col--closed .col__empty { min-height: 72px; }
.deal--mini { padding: 9px 11px 8px; }
.deal--mini .deal__foot { margin-top: 7px; }
.deal--mini .deal__val { font-size: 17px; }
.deal__why { margin-left: auto; font: 500 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.deal__why.is-none { color: var(--red-ink); }
.col { display: flex; flex-direction: column; min-width: 0; min-height: 520px; padding: 8px; border-radius: 12px; background: var(--paper-2); transition: background-color .25s var(--ease), box-shadow .25s var(--ease); }
.col--closed { background: transparent; box-shadow: inset 0 0 0 1px var(--rule); }
.col.is-over { background: #e2dccf; box-shadow: inset 0 0 0 1.5px var(--ink); }
.col--closed.is-over { background: var(--red-wash); box-shadow: inset 0 0 0 1.5px var(--red); }
.col__head { padding: 6px 6px 12px; }
.col__name { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.col__name .label { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.col__name .label i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.col__count { font: 500 10.5px var(--mono); color: var(--ink-3); }
.col__total { margin-top: 12px; font-size: 34px; line-height: .8; }
.col__meter { height: 2px; margin-top: 12px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.col__meter i { display: block; height: 100%; width: var(--w); background: var(--c); transition: width .6s var(--ease); }
.col__sub { margin-top: 7px; font: 500 10px/1.2 var(--mono); color: var(--ink-3); letter-spacing: .03em; }
.col__cards { flex: 1; display: flex; flex-direction: column; gap: 7px; min-height: 120px; }
.col__empty { flex: 1; display: grid; place-items: center; min-height: 120px; border: 1px dashed var(--rule); border-radius: 8px; color: var(--ink-3); font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: 16px; }

.deal {
  position: relative; display: block; width: 100%; padding: 11px 12px 10px; border-radius: 7px; background: var(--card);
  box-shadow: 0 0 0 1px var(--rule-2), 0 1px 1px rgba(0, 0, 0, .03);
  cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), opacity .2s;
}
.deal:hover { box-shadow: 0 0 0 1px #c9c2b4, 0 10px 18px -12px rgba(0, 0, 0, .35); transform: translateY(-1px); }
.deal:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.deal__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.deal__co { min-width: 0; font-weight: 650; font-size: 13.5px; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; } /* names wrap; a cut-off company is a useless card */
.deal__val { font-family: var(--display); font-weight: 800; font-stretch: 74%; font-size: 19px; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.deal__rule { height: 0; margin: 8px -12px 0; border-top: 1px solid var(--red); opacity: .55; }
.deal__prod { padding-top: 6px; font-size: 12px; line-height: 1.35; color: var(--ink-2); }
.deal__next { margin-top: 4px; font-size: 12px; line-height: 1.35; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deal__next.is-over { color: var(--red-ink); }
.deal__next.is-none { color: var(--red-ink); font-style: italic; }
.deal__foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font: 500 10px/1 var(--mono); color: var(--ink-3); letter-spacing: .03em; }
.deal__foot .av { width: 20px; height: 20px; font-size: 7.5px; }
.deal__days { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; }
.deal__days.is-stale { color: var(--red-ink); }
.deal__days.is-stale::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.deal--closed .deal__co { color: var(--ink-2); }
.deal--lost { opacity: .82; }
.deal--lost .deal__val { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.deal.is-origin { opacity: .3; box-shadow: 0 0 0 1px var(--ink-4); transform: none; }
/* touch: the card lifts a little while the long-press is counting, so it's clear something is about to happen */
.deal.is-pressing { transform: scale(.985); box-shadow: 0 0 0 1.5px var(--ink-3); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.deal--ghost {
  position: fixed !important; left: 0; top: 0; z-index: 120; margin: 0; pointer-events: none; cursor: grabbing;
  box-shadow: 0 0 0 1px #c9c2b4, 0 28px 44px -18px rgba(0, 0, 0, .5), 0 4px 10px -4px rgba(0, 0, 0, .15);
  transition: none; will-change: transform;
}
.deal--ghost.is-small { opacity: .72; box-shadow: 0 0 0 1px var(--ink-3), 0 18px 30px -14px rgba(0, 0, 0, .5); }
.deal.is-landed { animation: land .5s var(--ease); }
@keyframes land { from { box-shadow: 0 0 0 2px var(--ink); } to { box-shadow: 0 0 0 1px var(--rule-2); } }
/* no universal selector here: flipping one class on <body> must not restyle the whole page mid-drag */
body.is-dragging, body.is-dragging .deal, body.is-dragging .col, body.is-dragging .col__cards, body.is-dragging .stagebar__b { cursor: grabbing !important; }
body.is-dragging { user-select: none; -webkit-user-select: none; }

/* ==========================================================================
   Contacts
   ========================================================================== */
.tabs { display: flex; gap: 28px; border-top: 1px solid var(--ink); }
.tab { position: relative; display: flex; align-items: baseline; gap: 8px; padding: 14px 0 12px; font-family: var(--display); font-weight: 800; font-stretch: 72%; font-size: 24px; line-height: 1; text-transform: uppercase; color: var(--ink-4); transition: color .2s; }
.tab .n { font: 500 11px var(--mono); letter-spacing: .04em; }
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--red); }
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0 16px; }
.filters .toolbar__find { margin-left: 0; margin-right: 8px; }
.filters__chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filters .field { width: 260px; height: 30px; border-radius: 999px; }
.filters__count { margin-left: auto; }
.m-stage { display: none; }

.tbl-wrap { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: start; }
.az { position: sticky; top: calc(var(--top-h) + 10px); display: flex; flex-direction: column; gap: 2px; padding-top: 40px; }
.az button { position: relative; width: 30px; height: 19px; border-radius: 4px 0 0 4px; background: var(--paper-2); font: 500 10px/19px var(--mono); text-align: center; color: var(--ink-2); transition: background-color .15s, color .15s, transform .2s var(--ease); }
.az button:hover:not(:disabled) { background: var(--ink); color: var(--paper); transform: translateX(-3px); }
.az button:disabled { background: transparent; color: var(--ink-4); cursor: default; opacity: .7; }
.az button.is-on { background: var(--red); color: #fff; }
.az-bubble {
  position: fixed; right: 52px; z-index: 50; display: grid; place-items: center; width: 54px; height: 54px; margin-top: -27px; border-radius: 10px 10px 2px 10px;
  background: var(--ink); color: var(--paper); font: 800 30px/1 var(--display); font-stretch: 80%; pointer-events: none; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
}
.az-bubble:empty { display: none; }
.tbl-box { min-width: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; }
.tbl { width: 100%; table-layout: fixed; }
/* column widths (the browser re-spreads them when a breakpoint hides a column) */
.tbl--people col.c-who { width: 21%; } .tbl--people col.c-co { width: 15%; } .tbl--people col.c-city { width: 9%; } .tbl--people col.c-owner { width: 6%; }
.tbl--people col.c-stage { width: 12%; } .tbl--people col.c-extra { width: 8%; } .tbl--people col.c-touch { width: 9%; } .tbl--people col.c-next { width: 20%; }
.tbl--companies col.c-who { width: 21%; } .tbl--companies col.c-co { width: 14%; } .tbl--companies col.c-city { width: 9%; } .tbl--companies col.c-extra { width: 6%; }
.tbl--companies col.c-owner { width: 6%; } .tbl--companies col.c-stage { width: 12%; } .tbl--companies col.c-open { width: 10%; } .tbl--companies col.c-touch { width: 9%; } .tbl--companies col.c-next { width: 13%; }
.tbl th {
  position: sticky; top: var(--top-h); z-index: 2; height: 40px; padding: 0 12px; text-align: left; background: var(--card);
  border-bottom: 1px solid var(--rule); font: 500 10px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.tbl th:first-child { border-top-left-radius: 12px; padding-left: 16px; }
.tbl th:last-child { border-top-right-radius: 12px; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl th { white-space: normal; line-height: 1.25; }
.tbl th button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; height: 100%; text-transform: inherit; letter-spacing: inherit; color: inherit; text-align: inherit; }
.tbl th.r button { justify-content: flex-end; }
/* names and categories wrap to a second line rather than lose their ends */
.tbl .cell-name, .tbl .cell-cat { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tbl td.c-who, .tbl td.c-co { padding-top: 8px; padding-bottom: 8px; }
.tbl .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; letter-spacing: .06em; padding: 0 7px; }
.tbl th button:hover { color: var(--ink); }
.tbl th button::after { content: '↕'; opacity: .35; font-size: 11px; letter-spacing: 0; }
.tbl th[aria-sort="ascending"] button, .tbl th[aria-sort="descending"] button { color: var(--ink); }
.tbl th[aria-sort="ascending"] button::after { content: '↑'; opacity: 1; color: var(--red-ink); }
.tbl th[aria-sort="descending"] button::after { content: '↓'; opacity: 1; color: var(--red-ink); }
.tbl td { height: 54px; padding: 0 12px; border-bottom: 1px solid var(--rule-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.tbl td:first-child { padding-left: 16px; }
.tbl tbody tr { cursor: pointer; transition: background-color .15s; }
.tbl tbody tr:hover td { background: var(--card-2); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:last-child td:first-child { border-bottom-left-radius: 12px; }
.tbl tbody tr:last-child td:last-child { border-bottom-right-radius: 12px; }
.tbl tbody tr:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.tbl tr.is-flash td { animation: flash 1.4s var(--ease); }
@keyframes flash { 0%, 30% { background: var(--red-wash); } 100% { background: transparent; } }
.cell-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-who > div { min-width: 0; }
.cell-name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-sub { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-co { display: none; }
.cell-mono { font: 500 11.5px var(--mono); letter-spacing: .01em; }
.cell-num { font-family: var(--display); font-weight: 800; font-stretch: 76%; font-size: 17px; letter-spacing: -.01em; }
.cell-next { color: var(--ink-2); }
.cell-next.is-over { color: var(--red-ink); }
.tbl mark { background: var(--red-wash); color: inherit; border-radius: 2px; padding: 0 1px; }
.tbl-empty { padding: 48px 24px; text-align: center; color: var(--ink-3); }
.tbl-empty .num { display: block; font-size: 40px; color: var(--ink); text-transform: uppercase; margin-bottom: 6px; }

/* ==========================================================================
   Reports
   ========================================================================== */
.rgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-12 { grid-column: span 12; }
.bigstat { display: flex; align-items: flex-end; gap: 14px; }
.bigstat .num { font-size: 88px; line-height: .78; }
.bigstat .num .u { font-size: .45em; }
.kv { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-top: 1px solid var(--rule-2); margin-top: 18px; }
.kv > div { padding: 12px 14px 0 0; }
.kv > div + div { padding-left: 14px; border-left: 1px solid var(--rule-2); }
.kv dd { margin-top: 6px; font-size: 22px; line-height: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--ink); }
.legend i.fc { border-top: 2px dashed var(--red); }
.legend i.pace { border-top: 1.5px dotted var(--ink-3); }
.legend i.tgt { border-top: 1px solid var(--ink); width: 10px; }

/* ==========================================================================
   Drawer — an index card pulled out of the box
   ========================================================================== */
.drawer { position: fixed; inset: 0; z-index: 60; pointer-events: none; visibility: hidden; transition: visibility 0s linear .5s; }
.drawer.is-open { pointer-events: auto; visibility: visible; transition: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(23, 22, 20, .3); opacity: 0; transition: opacity .4s var(--ease); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(600px, 100vw); display: flex; flex-direction: column;
  background: var(--paper); border-left: 1px solid var(--rule); box-shadow: -40px 0 80px -40px rgba(0, 0, 0, .45);
  transform: translateX(104%); transition: transform .5s var(--ease); outline: 0;
}
.drawer.is-open .drawer__panel { transform: none; }
.dw__bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 54px; padding: 0 14px 0 24px; border-bottom: 1px solid var(--rule-2); }
.dw__crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; }
.dw__crumbs a, .dw__crumbs button { color: var(--ink-3); transition: color .2s; text-transform: uppercase; }
.dw__crumbs a:hover, .dw__crumbs button:hover { color: var(--ink); }
.dw__nav { display: flex; gap: 2px; }
.dw__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 34px max(24px, env(safe-area-inset-right, 0px)) calc(48px + env(safe-area-inset-bottom, 0px)) 24px; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.dw__card { position: relative; padding: 20px 24px 0; border-radius: 6px; background: var(--card); box-shadow: 0 0 0 1px var(--rule), 0 18px 34px -26px rgba(0, 0, 0, .45); transform-origin: 50% 0; }
.dw__card.is-in { animation: cardIn .55s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: perspective(1000px) rotateX(-16deg) translateY(-8px); } to { opacity: 1; transform: none; } }
.dw__tab {
  position: absolute; top: -21px; left: calc(16px + (100% - 76px) * var(--tx, .1)); width: 44px; height: 22px; display: grid; place-items: center;
  border-radius: 5px 5px 0 0; background: var(--card); box-shadow: 0 -1px 0 var(--rule), 1px 0 0 var(--rule), -1px 0 0 var(--rule);
  font: 800 13px/1 var(--display); font-stretch: 85%;
}
.dw__kicker { display: flex; justify-content: space-between; gap: 12px; }
.dw__title { margin-top: 14px; font-family: var(--display); font-weight: 800; font-stretch: 66%; font-size: 52px; line-height: .84; text-transform: uppercase; letter-spacing: -.01em; overflow-wrap: anywhere; }
.dw__sub { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.dw__sub b { font-weight: 600; color: var(--ink); }
.dw__sub a, .dw__sub button { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.dw__value { position: absolute; right: 24px; top: 46px; text-align: right; }
.dw__value .num { font-size: 40px; line-height: .8; }
.dw__value .label { margin-top: 8px; display: block; }
.dw__rule { height: 0; margin: 18px -24px 0; border-top: 1.5px solid var(--red); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 -24px -1px; } /* -1px: the last row's line sits on the card edge */
.facts--wide { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, .75fr); } /* an email needs the room */
.facts > div { min-width: 0; padding: 12px 14px 12px 24px; border-bottom: 1px solid var(--blue-line); }
.facts > div:nth-child(3n+2), .facts > div:nth-child(3n) { padding-left: 14px; border-left: 1px solid var(--blue-line); }
.facts dd { margin-top: 2px; padding: 3px 0; display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 550; line-height: 1.3; min-width: 0; overflow: hidden; overflow-wrap: anywhere; }
.facts dd .av { width: 20px; height: 20px; font-size: 7.5px; }
.facts dd .av--me { margin-left: 3px; }
.facts dd button { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.facts dd button .ico { width: 13px; height: 13px; color: var(--ink-3); flex: none; }
.facts dd button:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.facts .mono { font-size: 12px; }

.dw__sec { margin-top: 28px; }
.dw__sec > .label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dw__sec-tools { display: inline-flex; align-items: center; gap: 16px; }
.dw__sec-tools .link-btn { color: var(--ink); letter-spacing: .1em; }
.dw__sec-tools .link-btn .ico { width: 13px; height: 13px; stroke-width: 2; }
.dw__sec-tools .link-btn:hover .ico { transform: none; }
.empty--flush { padding: 8px 0; }
.stagepick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-radius: 8px; box-shadow: 0 0 0 1px var(--rule); background: var(--card); overflow: hidden; }
.stagepick button { position: relative; height: 42px; padding: 0 4px; text-align: center; font: 500 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border-left: 1px solid var(--rule-2); transition: background-color .2s, color .2s; }
.stagepick button:first-child { border-left: 0; }
.stagepick button:hover { background: var(--card-2); color: var(--ink); }
.stagepick button.is-past { color: var(--ink); background: var(--paper-2); }
.stagepick button.is-past::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ink); }
.stagepick button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.stagepick button[aria-checked="true"].is-won { background: var(--red); color: #fff; }
.stagepick button[aria-checked="true"].is-lost { background: var(--ink-3); }
.reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.nextform { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 8px; }
.nextform .field { height: 38px; }
.nextform input[type="date"] { font: 500 12px var(--mono); }
.nextform .btn { height: 38px; }
.nextform__hint { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.nextform__hint.is-over { color: var(--red-ink); }

.composer { border-radius: 8px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); overflow: hidden; transition: box-shadow .2s; }
.composer:focus-within { box-shadow: 0 0 0 1px var(--ink), 0 0 0 4px rgba(21, 20, 19, .05); }
.composer__tabs { display: flex; padding: 0 8px; border-bottom: 1px solid var(--rule-2); }
.composer__tabs button { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); transition: color .2s; }
.composer__tabs button .ico { width: 14px; height: 14px; }
.composer__tabs button:hover { color: var(--ink); }
.composer__tabs button[aria-selected="true"] { color: var(--ink); }
.composer__tabs button[aria-selected="true"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--red); }
.ruled {
  display: block; width: 100%; min-height: 106px; padding: 4px 18px 0; border: 0; outline: 0; resize: vertical;
  font-size: 15px; line-height: 26px; color: var(--ink); background: repeating-linear-gradient(to bottom, transparent 0 25px, var(--blue-line) 25px 26px);
  background-attachment: local;
}
.ruled::placeholder { color: var(--ink-4); }
.composer__call { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px 6px; }
.composer__call .chip { height: 28px; font-size: 12px; }
.mins { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font: 500 10.5px var(--mono); color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.mins input { width: 58px; height: 28px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--rule); background: var(--paper); text-align: right; font: 500 12px var(--mono); color: var(--ink); }
.composer__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 10px 18px; border-top: 1px solid var(--rule-2); }

.tl { position: relative; }
.tl::before { content: ''; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 1px; background: var(--rule); }
.tl__item { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 9px 0; }
.tl__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px var(--rule); color: var(--ink-2); }
.tl__dot .ico { width: 13px; height: 13px; stroke-width: 1.8; }
.tl__item--stage .tl__dot { background: var(--ink); box-shadow: none; color: var(--paper); }
.tl__item--won .tl__dot { background: var(--red); color: #fff; }
.tl__item--in .tl__dot { background: var(--card); box-shadow: 0 0 0 1px var(--ink); color: var(--ink); }
.tl__item--wait .tl__dot { box-shadow: 0 0 0 1.5px var(--red); color: var(--red-ink); }
.tl__item--future .tl__dot { background: var(--card); box-shadow: none; outline: 1px dashed var(--ink-4); outline-offset: -1px; }
.tl__main { min-width: 0; padding-top: 4px; }
.tl__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tl__kind { font: 500 10px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.tl__kind b { font-weight: 500; color: var(--ink); }
.tl__time { font: 500 10.5px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.tl__subj { margin-top: 5px; font-weight: 600; font-size: 13.5px; }
.tl__body { margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.tl__hops { margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.tl__hops .ico { width: 12px; height: 12px; color: var(--ink-3); }
.tl__act { margin-top: 8px; }
.tl__item.is-new { animation: tlIn .7s var(--ease) both; }
.tl__item.is-new .tl__main { background: linear-gradient(90deg, var(--red-wash), transparent 80%); border-radius: 6px; padding-left: 8px; margin-left: -8px; animation: unwash 2.4s ease 1s forwards; }
@keyframes tlIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes unwash { to { background-color: transparent; background-image: none; } }
.mini-deals { display: flex; flex-direction: column; gap: 6px; }
.mini-deal { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 8px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); text-align: left; transition: box-shadow .2s, transform .2s var(--ease); }
.mini-deal:hover { box-shadow: 0 0 0 1px var(--ink-4), 0 8px 16px -12px rgba(0, 0, 0, .3); transform: translateY(-1px); }
.mini-deal .num { font-size: 18px; }
.mini-deal__main, .person__main { min-width: 0; }
.mini-deal__main > span, .person__main > span { display: block; }
.people { display: flex; flex-direction: column; }
.person { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule-2); text-align: left; width: 100%; }
.person:hover .cell-name { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }

/* ---------- blank cards: new deal, new person ---------- */
.dw__card--blank { padding-bottom: 20px; }
.dw__card--blank .dw__tab .ico { width: 14px; height: 14px; stroke-width: 2.2; color: var(--red-ink); }
.ff-sec { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
.ff-sec + .ff-sec { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--blue-line); }
.ff-sec > legend { float: left; width: 100%; margin-bottom: 12px; padding: 0; color: var(--ink); }
.ff-sec > legend + * { clear: both; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.ff, .ff-group { min-width: 0; }
.ff { display: flex; flex-direction: column; gap: 6px; }
.ff--wide, .ff-group { grid-column: 1 / -1; }
.ff-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.ff__l { letter-spacing: .12em; }
.ff__l i { font-style: normal; color: var(--red-ink); }
.ff .field { height: 40px; background: var(--card); }
.ff .field input, .ff .field select { font-size: 14px; }
.ff .field input[type="date"] { font: 500 12.5px var(--mono); }
.field--select { padding-right: 8px; }
.field--select select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 22px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a4741' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 2px center / 14px; }
.ff [list]::-webkit-calendar-picker-indicator { opacity: .35; cursor: pointer; }
.ff__hint { font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.ff__err { font-size: 12.5px; line-height: 1.4; font-weight: 550; color: var(--red-ink); }
.ff.is-bad .field { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-wash); }
.stagepick.stagepick--form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stagepick--form label { position: relative; display: block; border-left: 1px solid var(--rule-2); cursor: pointer; }
.stagepick--form label:first-child { border-left: 0; }
.stagepick--form input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.stagepick--form span { display: grid; place-items: center; height: 40px; padding: 0 4px; font: 500 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); transition: background-color .2s, color .2s; }
.stagepick--form label:hover span { background: var(--card-2); color: var(--ink); }
.stagepick--form input:checked + span { background: var(--ink); color: var(--paper); }
.stagepick--form input:focus-visible + span { outline: 2px solid var(--red); outline-offset: -4px; border-radius: 6px; }
.dw__formbar { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 24px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule-2); background: var(--paper); }
.dw__formnote { margin-right: auto; }
.dw__formnote i { font-style: normal; color: var(--red-ink); }
.dw__formbar .btn { height: 38px; }

/* ==========================================================================
   Command palette, shortcut sheet, toasts
   ========================================================================== */
.palette, .sheet { position: fixed; inset: 0; z-index: 80; }
.palette__scrim, .sheet__scrim { position: absolute; inset: 0; background: rgba(23, 22, 20, .34); animation: fadeIn .2s ease both; }
@keyframes fadeIn { from { opacity: 0; } }
.palette__box {
  position: absolute; left: 50%; top: 12vh; width: min(660px, calc(100vw - 24px)); overflow: hidden; border-radius: 14px; background: var(--card);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 50px 90px -30px rgba(0, 0, 0, .55); transform: translateX(-50%); animation: palIn .26s var(--ease) both;
}
@keyframes palIn { from { opacity: 0; transform: translate(-50%, -10px) scale(.985); } to { opacity: 1; transform: translateX(-50%); } }
.palette__field { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 18px; border-bottom: 1px solid var(--rule-2); color: var(--ink-3); }
.palette__field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 17px; color: var(--ink); }
.palette__field input::placeholder { color: var(--ink-4); }
.palette__list { max-height: min(56vh, 470px); overflow-y: auto; padding: 6px; scrollbar-width: thin; }
.pg { padding: 12px 12px 6px; }
.pi { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 6px 12px; border-radius: 8px; text-align: left; cursor: pointer; }
.pi[aria-selected="true"] { background: var(--paper-2); }
.pi[aria-selected="true"]::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; background: var(--red); border-radius: 2px; }
.pi__ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); }
.pi__ico .ico { width: 16px; height: 16px; }
.pi__main { min-width: 0; }
.pi__label { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi__meta { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi__right { font: 500 10.5px var(--mono); color: var(--ink-3); letter-spacing: .04em; white-space: nowrap; }
.pi mark { background: none; color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); }
.palette__foot { display: flex; align-items: center; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--rule-2); font-size: 10.5px; color: var(--ink-3); }
.palette__foot span { display: inline-flex; align-items: center; gap: 4px; }
.palette__esc { cursor: pointer; }
.palette__esc:hover { color: var(--ink); border-color: var(--ink-4); }
.palette__count { margin-left: auto; }
.palette__none { padding: 36px 20px; text-align: center; color: var(--ink-3); }

.sheet__box {
  position: absolute; left: 50%; top: 50%; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 22px 24px 18px; border-radius: 14px;
  background: var(--card); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 50px 90px -30px rgba(0, 0, 0, .55); transform: translate(-50%, -50%); animation: sheetIn .3s var(--ease) both;
}
@keyframes sheetIn { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.sheet__box:focus { outline: 0; }
.sheet__head { position: relative; padding-bottom: 16px; border-bottom: 1.5px solid var(--red); }
.sheet__title { margin-top: 8px; font-family: var(--display); font-weight: 800; font-stretch: 68%; font-size: 40px; line-height: .85; text-transform: uppercase; }
.sheet__head .icon-btn { position: absolute; right: -8px; top: -6px; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.keys > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--blue-line); }
.keys dt { order: 2; display: flex; align-items: center; gap: 2px; font: 500 11px var(--mono); color: var(--ink-3); white-space: nowrap; }
.keys dd { font-size: 13px; }
.sheet__foot { margin-top: 14px; font-size: 10.5px; color: var(--ink-3); letter-spacing: .04em; }

.toasts { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); z-index: 95; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 7px 7px 7px 16px; border-radius: 12px; background: var(--ink); color: var(--paper);
  font-size: 13.5px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); animation: toastIn .4s var(--ease) both; max-width: 100%;
}
.toast.is-out { animation: toastOut .3s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
.toast__msg { min-width: 0; }
.toast__msg b { font-weight: 600; }
.toast__btns { display: flex; gap: 6px; flex-wrap: wrap; }
.toast__btns button { height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid #3c3a36; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--paper); transition: background-color .2s, border-color .2s; }
.toast__btns button:hover { background: #2a2826; border-color: #5a5650; }
.toast__btns button.is-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.toast__mark { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
/* with a card open, toasts sit over the card rather than straddling its edge */
@media (min-width: 768px) { html.has-drawer .toasts { left: calc(100% - min(600px, 100%) / 2); max-width: calc(min(600px, 100%) - 32px); } }

/* mobile tab bar */
.tabbar { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1360px) {
  :root { --pad: 32px; --side-w: 232px; }
  .today-grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .spec { min-width: 92px; padding-left: 18px; margin-left: 18px; }
  .spec__n { font-size: 56px; }
}
@media (max-width: 1199px) {
  /* a phone on its side has a notch on one edge: the rail grows by it instead of sliding under it */
  :root { --side-w: calc(72px + env(safe-area-inset-left, 0px)); --pad: 28px; }
  .side { padding: 16px 12px 16px calc(12px + env(safe-area-inset-left, 0px)); align-items: center; }
  .top, .view { padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }
  .brand { padding: 2px 0 0; }
  .brand > div, .side__jump span, .side__jump .kbd, .nav__a span, .nav__n, .side__group > .label, .side__group--saved, .side__group--team, .credit, .side__reset span { display: none; }
  .side__row { flex-direction: column; align-items: center; gap: 8px; }
  .side__jump { flex: none; justify-content: center; padding: 0; width: 44px; height: 38px; }
  .side__new { width: 44px; height: 38px; }
  .nav__a { justify-content: center; width: 44px; padding: 0; }
  .nav__a[aria-current="page"]::before { left: -12px; }
  .side__tools { flex-direction: column; gap: 10px; padding: 0; }
  .jump { display: none; }
  .head { grid-template-columns: 1fr; align-items: start; }
  .specs { flex-wrap: wrap; }
  .today-grid { grid-template-columns: 1fr; }
  .today-side { display: grid; grid-template-columns: 1fr 1fr; }
  .glance { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 0; }
  .glance__col:nth-child(4) { padding-left: 0; border-left: 0; }
  .trio { grid-template-columns: 1fr; }
  .board-wrap { margin: 0 calc(var(--pad) * -1); }
  .board { overflow-x: auto; overscroll-behavior-x: contain; padding: 0 var(--pad) 12px; grid-template-columns: repeat(5, 236px); scroll-snap-type: x proximity; scroll-padding: 0 var(--pad); }
  .board > .col, .col-stack { scroll-snap-align: start; }
  body.is-dragging .board { scroll-snap-type: none; } /* snapping fights the auto-scroll while a card is carried */
  .stagebar {
    position: sticky; top: var(--top-h); z-index: 20; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px;
    margin: 0 calc(var(--pad) * -1) 12px; padding: 8px var(--pad); background: var(--paper); border-bottom: 1px solid var(--rule-2);
  }
  .span-8, .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; }
  .tbl col.c-next, .tbl th.c-next, .tbl td.c-next { display: none; }
  .top__clock { display: none; }
  .qtr__top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 860px) {
  .today-side { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .tbl col.c-city, .tbl th.c-city, .tbl td.c-city, .tbl col.c-touch, .tbl th.c-touch, .tbl td.c-touch { display: none; }
  .tbl--companies col.c-extra, .tbl--companies th.c-extra, .tbl--companies td.c-extra { display: none; } /* the head-count column gives its room to the stage */
}
@media (max-width: 767px) {
  :root { --pad: 16px; --top-h: 54px; --gap: 14px; }
  html { font-size: 14px; }
  .app { grid-template-columns: 1fr; background: none; }
  .side { display: none; }
  .top { gap: 10px; padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }
  .top__brand { display: inline-flex; flex: none; }
  .crumbs { flex: none; }
  .crumbs span, .crumbs i { display: none; }
  .crumbs b { font-size: 11px; }
  .jump { display: inline-flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; height: 36px; padding: 0 14px 0 12px; margin-left: auto; border-radius: 999px; border: 1px solid var(--rule); background: var(--card); color: var(--ink-3); font-size: 13px; }
  .jump .ico { width: 15px; height: 15px; }
  .jump .kbd { display: none; }
  .jump__text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .jump__short { display: none; }
  .top__right { margin-left: 0; gap: 6px; flex: none; }
  .top__right .icon-btn { display: none; }
  .me { width: 28px; height: 28px; font-size: 9px; }
  .view { padding-bottom: calc(96px + env(safe-area-inset-bottom)); padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }
  .head { padding: 22px 0 20px; gap: 18px; }
  .title { font-size: 76px; margin-top: 10px; }
  .lede { font-size: 14px; margin-top: 12px; }
  .specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; width: 100%; }
  .specs--money { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .specs--money .spec:nth-child(odd) { padding-left: 0; border-left: 0; }
  .specs--money .spec__n { font-size: 46px; }
  .panel__head { flex-direction: column; gap: 10px; padding: 14px 14px 12px; }
  .panel__body { padding: 14px 14px 16px; }
  .panel__foot { padding: 12px 14px 14px; }
  .wall { display: flex; overflow-x: auto; overscroll-behavior-x: contain; gap: 14px; padding: 26px 16px 14px; margin: 0 -16px; scroll-snap-type: x proximity; scroll-padding: 0 16px; }
  .won-card { flex: 0 0 168px; scroll-snap-align: start; }
  .feed-row { grid-template-columns: 30px 22px minmax(0, 1fr); padding: 10px 14px; }
  .feed-row .pill { display: none; }
  .feed-row__txt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .tbl, .tbl tbody { display: block; }
  .tbl colgroup, .tbl thead { display: none; }
  .tbl tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--rule-2); }
  .tbl tbody tr:last-child { border-bottom: 0; }
  .tbl td { display: none; height: auto; padding: 11px 12px; border: 0; }
  .tbl tbody td.c-who, .tbl tbody td.m-val { display: block; }
  .tbl td.c-who { padding-left: 12px; }
  .m-co { display: inline !important; }
  .m-stage { display: block; margin-top: 5px; font: 500 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
  .spec { min-width: 0; margin-left: 0; padding: 0 0 0 10px; }
  .spec:first-child { padding-left: 0; }
  .spec__n { font-size: 40px; }
  .spec__l { font-size: 9.5px; letter-spacing: .08em; margin-top: 8px; }
  .qtr__top { flex-direction: column; gap: 6px; }
  .qtr__top > .label { white-space: normal; }
  .qtr__grid { grid-template-columns: 44px minmax(0, 1fr); }
  .qtr__end { grid-column: 2; text-align: left; margin-top: -4px; }
  .qtr__end .num { font-size: 18px; }
  .qtr__legend { grid-column: 1 / -1; gap: 8px 14px; }
  .ticks span { font-size: 0; padding: 0; }
  .ticks span.is-mo::after { content: attr(data-m); position: absolute; left: 4px; top: 1px; font-size: 9px; letter-spacing: .04em; }
  .nowpin { bottom: -2px; }
  .nowpin--money { display: block; top: 0; bottom: 0; }

  /* the Rolodex on a phone: the card sits above the rod, never on top of it, and the housing grows to fit its footer */
  .rdx { height: auto; padding: 14px 14px 12px; border-radius: 12px; margin: 0 -6px; }
  .rdx::before { display: none; }
  .rdx__keys { display: none; }
  .rdx__title { font-size: 26px; }
  .rdx__stage { flex: none; height: 344px; min-height: 0; margin: 4px -4px 0; }
  .ix { top: 56px; bottom: 50px; height: auto; width: calc(100% - 8px); }
  .ix__inner { padding: 13px 16px 12px; }
  .ix__rule, .ix__lines { margin-left: -16px; margin-right: -16px; }
  .ix__lines { padding: 0 16px; }
  .ix__name { font-size: 32px; margin-top: 10px; }
  .ix__code { display: none; }
  .ix__line { font-size: 13px; }
  .ix__line--next { font-size: 14px; white-space: normal; line-height: 26px; max-height: 52px; }
  .ix__foot { gap: 12px; }
  .ix__foot .email { display: none; }
  .knob { width: 30px; height: 30px; }
  .rdx__rail { left: 0; right: 0; bottom: 8px; height: 30px; }
  .rdx__foot { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding-top: 12px; }
  .rdx__ticks { grid-column: 1 / -1; order: -1; }
  .rdx__count { min-width: 0; }
  .rdx__btns { justify-self: end; }
  .rdx__btns .btn { height: 36px; padding: 0 13px; }
  .rdx__btns .btn--open { display: none; }

  .list-row, .meet, .cold-row, .move-row, .rep { padding-left: 14px; padding-right: 14px; }
  .meets::before { left: calc(14px + 54px + 10px + 7px); }
  .nowline { padding: 0 14px; }
  .sec { margin-top: 36px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .sec-title { font-size: 26px; }
  .stackbar { height: 46px; }
  .stackbar__seg { min-width: 0; padding: 6px 7px; }
  .stackbar__seg .label { font-size: 8.5px; letter-spacing: .06em; }
  .stackbar__seg .num { font-size: 15px; }
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance__col:nth-child(odd) { padding-left: 0; border-left: 0; }
  .glance__col:nth-child(4) { padding-left: 14px; border-left: 1px solid var(--rule); }
  .glance__col:nth-child(even) { padding-right: 0; }
  .glance__v { font-size: 32px; }
  .cold-row { grid-template-columns: minmax(0, 1fr) auto; }
  .cold-row .frost { display: none; }
  .move-row { grid-template-columns: minmax(0, 1fr) auto; }
  .move-row .age { display: none; }
  .toolbar { gap: 10px; }
  .toolbar__find, .filters .toolbar__find { order: -1; width: 100%; margin: 0; }
  .toolbar__find .field, .filters .toolbar__find .field { flex: 1; width: auto; }
  .toolbar__sep { display: none; }
  .board { grid-template-columns: repeat(5, 80vw); scroll-snap-type: x mandatory; }
  .col { min-height: 420px; }
  .tabs { gap: 20px; }
  .tab { font-size: 20px; }
  .filters__count { margin-left: 0; width: 100%; }
  .tbl-wrap { grid-template-columns: minmax(0, 1fr) 24px; gap: 4px; }
  /* the letter rail: tall enough to slide a thumb down, short enough to clear the tab bar */
  .az { order: 2; padding-top: 6px; gap: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
  .az button { width: 24px; height: clamp(15px, calc((100svh - var(--top-h) - 150px) / 26), 21px); font-size: 9.5px; line-height: 1; border-radius: 0 3px 3px 0; background: transparent; }
  .tbl col.c-owner, .tbl th.c-owner, .tbl td.c-owner, .tbl col.c-stage, .tbl th.c-stage, .tbl td.c-stage, .tbl col.c-extra, .tbl th.c-extra, .tbl td.c-extra { display: none; }
  .tbl tbody td.c-extra.m-val { display: block; }
  .tbl td { height: auto; min-height: 58px; }
  .tbl td.c-who .cell-sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .tbl col.c-who { width: auto !important; }
  .bigstat .num { font-size: 68px; }
  .drawer__panel { width: 100vw; border-left: 0; }
  .dw__bar { padding: 0 8px 0 16px; }
  .dw__scroll { padding: 30px 16px 40px; }
  .dw__card { padding: 18px 16px 0; }
  .dw__card--blank { padding-bottom: 18px; }
  .dw__rule, .facts { margin-left: -16px; margin-right: -16px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div { padding-left: 16px; }
  .facts > div:nth-child(3n+2), .facts > div:nth-child(3n) { padding-left: 16px; border-left: 0; }
  .facts > div:nth-child(2n) { padding-left: 14px; border-left: 1px solid var(--blue-line); }
  .facts--wide > div:first-child { grid-column: 1 / -1; }
  .facts--wide > div:nth-child(2) { padding-left: 16px; border-left: 0; }
  .facts--wide > div:nth-child(3) { padding-left: 14px; border-left: 1px solid var(--blue-line); }
  .dw__title { font-size: 42px; padding-right: 0; }
  .dw__value { position: static; text-align: left; margin-top: 14px; display: flex; align-items: baseline; gap: 10px; }
  .dw__value .label { margin-top: 0; }
  .stagepick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stagepick button:nth-child(4) { border-left: 0; }
  .stagepick button:nth-child(n+4) { border-top: 1px solid var(--rule-2); }
  .nextform { grid-template-columns: 1fr 1fr; }
  .nextform .field:first-child { grid-column: 1 / -1; }
  .dw__formbar { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .dw__formnote { display: none; }
  .dw__formbar .btn { flex: 1; height: 44px; }
  .keys { grid-template-columns: 1fr; }
  .palette__box { top: 8px; }
  .toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .toast { flex-wrap: wrap; row-gap: 8px; }
  .toast__msg { flex: 1 1 12em; }
  .toast__btns { margin-left: auto; justify-content: flex-end; }
  .foot { margin-top: 40px; }

  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(62px + env(safe-area-inset-bottom)); padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background: var(--paper); border-top: 1px solid var(--rule);
  }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--ink-3); font: 500 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-align: center; }
  .tabbar .ico { width: 20px; height: 20px; }
  .tabbar { transition: transform .25s var(--ease); }
  body.is-dragging .tabbar { transform: translateY(100%); pointer-events: none; } /* a carried card gets the whole screen */
  .tabbar [aria-current="page"] { color: var(--ink); }
  .tabbar [aria-current="page"]::before { content: ''; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; background: var(--red); }
  .tabbar .badge { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 9px; display: grid; place-items: center; letter-spacing: 0; }
}
@media (max-width: 420px) {
  .stagebar { gap: 3px; }
  .stagebar__b { flex-direction: column; gap: 4px; height: 40px; padding: 0 2px; }
  .stagebar__b i { display: none; }
  .stagebar__n { font-size: 0; }
  .stagebar__n::after { content: attr(data-short); font-size: 9.5px; }
}
@media (max-width: 400px) {
  .jump__long { display: none; }
  .jump__short { display: inline; }
}
@media (max-width: 380px) {
  .rdx__when { display: none; }
  .title { font-size: 68px; }
  .specs .spec__n { font-size: 36px; }
}
/* a phone on its side: the rail sidebar, and less air so the Rolodex fits the screen */
@media (max-height: 520px) and (min-width: 768px) {
  .side { padding-top: 10px; }
  .side__row { margin-top: 10px; }
  .side__group { margin-top: 10px; }
  .nav__a { height: 34px; }
  .rdx { height: 400px; }
  .ix { top: 54px; bottom: 34px; }
  .ix__name { font-size: 34px; }
}

/* fingers: bigger hit areas for the small controls, 16px text in fields so phones don't zoom on focus, no keyboard hints */
@media (pointer: coarse) {
  .chip, .select { height: 38px; }
  .chip .av { width: 20px; height: 20px; }
  .btn--sm { height: 36px; padding: 0 13px; }
  .btn--new { height: 40px; }
  .toolbar .field, .filters .field { height: 40px; }
  .field input, .field select, .select, .mins input, .ruled, .ff .field input, .ff .field select { font-size: 16px; }
  .ff .field input[type="date"], .nextform input[type="date"] { font-size: 15px; }
  .tick-btn { width: 38px; height: 38px; }
  .icon-btn { width: 40px; height: 40px; }
  .link-btn { min-height: 36px; }
  .glance__more { padding: 10px 0 6px; }
  .glance__deal { padding: 10px 0; }
  .ix__foot button { min-height: 34px; }
  .rdx__ticks button { height: 30px; }
  .composer__tabs button { height: 46px; }
  .stagepick button, .stagepick--form span { height: 46px; }
  .mins input { height: 36px; width: 66px; }
  .dw__crumbs button { min-height: 40px; }
  .dw__sub button { padding: 6px 0; }
  .facts dd button { min-height: 32px; }
  .tbl th button { min-height: 40px; }
  .person, .mini-deal { min-height: 52px; }
  .feed-row { min-height: 52px; }
  .meet { min-height: 52px; }
  .keyhint, .palette__foot > span:not(.palette__count) { display: none; }
  .foot a, .foot__reset { display: inline-flex; align-items: center; min-height: 36px; }
  .palette__esc { min-width: 44px; height: 32px; }
  .pi { min-height: 54px; }
  .toast__btns button { height: 38px; padding: 0 13px; }
}
@media (pointer: coarse) and (max-width: 767px) {
  .az button { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
