/* =====================================================================
   Workvolve case studies, November 2026 batch. Loads after cases-v2.css.
   1. Example screens (.ms-*): product-style screens that sit inside the
      existing .dm-win window and play on the same data-at timeline.
   2. The five-step rail, and the "more builds" grid on the index.
   Every colour, radius and shadow comes from theme-v2.css tokens.
   ===================================================================== */

/* ---------- 1. example screens ---------- */
.cx-stage .dm-win.ms-wide{max-width:none}
.ms-wide .cx-mt b,.ms-wide .cx-mt span{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:break-word}
.ms{display:flex;flex-direction:column;gap:12px;padding:14px;min-width:0}
.ms-in{transition:opacity .4s var(--ease),transform .45s var(--ease)}
.js .cx-demo .ms-in:not(.on){opacity:0;transform:translateY(8px)}
.ms-mono{font-family:var(--mono);font-weight:500;letter-spacing:0}

/* an app with an icon rail down the left */
.ms-app{display:grid;grid-template-columns:44px minmax(0,1fr);min-width:0}
.ms-rail{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 0;border-right:1px solid var(--line);background:#fbf9f4}
.ms-rail span{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;color:var(--ink-4)}
.ms-rail span .i{width:15px;height:15px}
.ms-rail span.on{background:var(--gold-wash);color:var(--gold-ink);box-shadow:inset 0 0 0 1px rgba(200,164,85,.38)}

/* a heading row inside a screen */
.ms-h{display:flex;align-items:center;gap:10px;min-width:0}
.ms-h>div{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.3}
.ms-h b{font-size:14px;font-weight:600;letter-spacing:-.015em;color:var(--ink);overflow-wrap:anywhere}
.ms-h small{font-size:11.5px;color:var(--ink-3);overflow-wrap:anywhere}
.ms-av{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--gold-tint);color:var(--gold-ink);font-size:12px;font-weight:600;box-shadow:inset 0 0 0 1px rgba(200,164,85,.38)}

/* status pills */
.ms-pill{flex:none;display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 8px;border-radius:7px;font-size:11px;font-weight:600;white-space:nowrap;background:#faf8f3;box-shadow:inset 0 0 0 1px var(--line);color:var(--ink-2)}
.ms-pill .i{width:11px;height:11px}
.ms-pill.gold{background:var(--gold-wash);box-shadow:inset 0 0 0 1px rgba(200,164,85,.38);color:var(--gold-ink)}
.ms-pill.ok{background:#ebf4ec;box-shadow:inset 0 0 0 1px rgba(47,107,69,.2);color:#2f6b45}
.ms-pill.warn{background:#fbece6;box-shadow:inset 0 0 0 1px rgba(154,59,42,.18);color:#9a3b2a}
.ms-pill.ink{background:var(--ink);box-shadow:none;color:#fff}

/* number tiles */
.ms-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ms-kpis.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.ms-kpi{display:flex;flex-direction:column;gap:2px;min-width:0;padding:10px 11px;border-radius:12px;background:#fff;box-shadow:0 0 0 1px var(--line-2)}
.ms-kpi small{font-size:11px;line-height:1.25;color:var(--ink-3)}
.ms-kpi b{font-size:19px;line-height:1.2;font-weight:600;letter-spacing:-.035em;font-variant-numeric:tabular-nums;color:var(--ink);white-space:nowrap}
.ms-kpi span{font-size:11px;font-weight:550;color:var(--gold-ink);overflow-wrap:anywhere}
.ms-kpi.hi{background:var(--ink);box-shadow:none}
.ms-kpi.hi small{color:#b9b2a3}.ms-kpi.hi b{color:#fff}.ms-kpi.hi span{color:#f0d698}

/* a small bar chart */
.ms-chart{display:flex;flex-direction:column;gap:8px;padding:11px 12px 9px;border-radius:12px;background:#fff;box-shadow:0 0 0 1px var(--line-2)}
.ms-chart-h{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11.5px;font-weight:600;color:var(--ink-3)}
.ms-chart-h span{font-weight:500}
.ms-bars{display:flex;align-items:flex-end;gap:7px;height:84px}
.ms-bars>span{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;gap:5px;height:100%;min-width:0}
.ms-bars i{display:block;height:calc(var(--h)*1%);min-height:3px;border-radius:5px 5px 2px 2px;background:#ece4d2;transform-origin:50% 100%;transition:transform .7s var(--ease)}
.ms-bars i.g{background:linear-gradient(180deg,#d8bb73,#c39d4c)}
.ms-bars i.k{background:var(--ink)}
.ms-bars em{font-size:10px;line-height:1;text-align:center;color:var(--ink-4)}
.js .cx-demo .ms-bars:not(.on) i{transform:scaleY(.04)}

/* a table */
.ms-tbl{border-radius:12px;box-shadow:0 0 0 1px var(--line-2);overflow:hidden;background:#fff}
.ms-tr{display:grid;grid-template-columns:var(--cols);align-items:center;gap:10px;min-height:40px;padding:5px 12px;border-top:1px solid var(--line);font-size:12.5px;color:var(--ink);transition:opacity .4s var(--ease),transform .4s var(--ease)}
.ms-tr>span{min-width:0;line-height:1.3;overflow-wrap:break-word}
.ms-tr>span:first-child{font-weight:550}
.ms-tr>span:last-child{justify-self:end;text-align:right}
.ms-tr>span.r{text-align:right;font-variant-numeric:tabular-nums}
.ms-tr>span.m{color:var(--ink-3)}
.ms-tr.ms-th{min-height:32px;border-top:0;background:#fbf9f4;font-size:11px;font-weight:600;color:var(--ink-3)}
.ms-tr.ms-th>span:first-child{font-weight:600}
.ms-tr.hot{background:#fffbf1}
.js .cx-demo .ms-tr[data-at]:not(.on){opacity:0;transform:translateY(6px)}

/* a board with columns */
.ms-cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.ms-col{display:flex;flex-direction:column;gap:6px;min-width:0;padding:8px;border-radius:12px;background:#f8f5ee}
.ms-ch{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:11px;font-weight:600;color:var(--ink-3);white-space:nowrap}
.ms-ch i{font-weight:500;color:var(--ink-4)}
.ms-card{display:flex;flex-direction:column;gap:1px;min-width:0;padding:8px 9px;border-radius:9px;background:#fff;box-shadow:0 0 0 1px var(--line),0 4px 10px -8px rgba(60,44,12,.4);line-height:1.3}
.ms-card b{font-size:11.5px;line-height:1.25;font-weight:600;letter-spacing:-.01em;overflow-wrap:anywhere}
.ms-card span{font-size:11px;color:var(--ink-3);overflow-wrap:anywhere}
.ms-card.gold{box-shadow:0 0 0 1px rgba(200,164,85,.6),0 6px 14px -8px rgba(140,109,44,.55);background:#fffdf7}
.ms-card.gold span{color:var(--gold-ink);font-weight:550}

/* an activity timeline */
.ms-tl{position:relative;display:flex;flex-direction:column;gap:0;padding:2px 0}
.ms-tl::before{content:"";position:absolute;left:13px;top:14px;bottom:14px;width:2px;border-radius:2px;background:#ece4d2}
.ms-tl li{position:relative;display:flex;align-items:center;gap:11px;min-height:42px;padding:3px 0}
.ms-tl li>span:first-child{position:relative;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;flex:none;background:#fff;box-shadow:0 0 0 1px var(--line-2);color:var(--ink-2)}
.ms-tl li>span:first-child .i{width:13px;height:13px}
.ms-tl li.g>span:first-child{background:var(--gold-wash);box-shadow:0 0 0 1px rgba(200,164,85,.5);color:var(--gold-ink)}
.ms-tl li>div{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.3}
.ms-tl b{font-size:12.5px;font-weight:550;color:var(--ink);overflow-wrap:anywhere}
.ms-tl small{font-size:11.5px;color:var(--ink-3);overflow-wrap:anywhere}
.ms-tl time{flex:none;font-size:11px;color:var(--ink-4);font-variant-numeric:tabular-nums;white-space:nowrap}

/* a question box and its answer */
.ms-ask{display:flex;align-items:center;gap:9px;min-height:42px;padding:8px 12px;border-radius:12px;background:#fff;box-shadow:0 0 0 1px var(--line-2),0 8px 18px -14px rgba(60,44,12,.5);font-size:13px;font-weight:500;color:var(--ink);line-height:1.35}
.ms-ask .i{width:15px;height:15px;color:var(--gold-deep);flex:none}
.ms-ans{display:flex;flex-direction:column;gap:9px;padding:12px;border-radius:12px;background:var(--gold-wash);box-shadow:inset 0 0 0 1px rgba(200,164,85,.38)}
.ms-ans p{font-size:13px;line-height:1.5;color:var(--ink)}
.ms-ans p b{font-weight:600}
.ms-ans-h{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;color:var(--gold-ink)}
.ms-ans-h .i{width:12px;height:12px}
.ms-srcs{display:flex;flex-wrap:wrap;gap:6px}
.ms-src{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px 0 7px;border-radius:7px;background:#fff;box-shadow:0 0 0 1px var(--line-2);font-size:11px;font-weight:550;color:var(--ink-2);white-space:nowrap}
.ms-src .i,.ms-src img{width:12px;height:12px;color:var(--gold-deep)}

/* a sheet of paper: proposals, reports, procedures */
.ms-doc{display:flex;flex-direction:column;gap:10px;margin:14px;padding:16px 16px 14px;border-radius:10px;background:#fff;box-shadow:0 0 0 1px var(--line-2),0 14px 28px -22px rgba(60,44,12,.55)}
.ms-doc-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid var(--line);font-size:11px;color:var(--ink-3)}
.ms-doc-top b{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:var(--ink)}
.ms-doc-top b i{width:16px;height:16px;border-radius:5px;background:var(--gold-fill)}
.ms-doc h4{font-size:16px;line-height:1.2;font-weight:600;letter-spacing:-.025em;color:var(--ink)}
.ms-doc p{font-size:12px;line-height:1.5;color:var(--ink-2)}
.ms-lines{display:flex;flex-direction:column;gap:6px}
.ms-lines i{display:block;height:6px;border-radius:3px;background:#efe9dc}
.ms-lines i.s{width:62%}.ms-lines i.m{width:84%}
.ms-items{display:flex;flex-direction:column}
.ms-items li{display:flex;align-items:center;gap:9px;min-height:32px;padding:4px 0;line-height:1.3;border-top:1px solid var(--line);font-size:12px;color:var(--ink)}
.ms-items li:first-child{border-top:0}
.ms-items li>span:first-child{flex:1;min-width:0;overflow-wrap:anywhere}
.ms-items li .tk{width:16px;height:16px;box-shadow:none}
.ms-items li small{font-size:11px;color:var(--ink-3);white-space:nowrap}
.ms-sign{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding-top:6px}
.ms-sign>div{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.ms-sign svg{width:112px;height:34px;color:var(--ink);overflow:visible}
.ms-sign svg path{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:260;stroke-dashoffset:0;transition:stroke-dashoffset 1.1s var(--ease)}
.js .cx-demo .ms-sign:not(.on) svg path{stroke-dashoffset:260}
.ms-sign small{padding-top:4px;border-top:1px solid var(--line-2);font-size:10.5px;color:var(--ink-3)}
.ms-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:34px;padding:0 14px;border-radius:10px;background:var(--ink);color:#fff;font-size:12.5px;font-weight:600;white-space:nowrap;transition:transform .2s var(--ease)}
.ms-btn .i{width:13px;height:13px;color:#f0d698}
.ms-btn.block{align-self:stretch}
.ms-btn.ghost{background:#fff;color:var(--ink);box-shadow:0 0 0 1px var(--line-2)}
.ms-btn.ghost .i{color:var(--gold-deep)}
.ms-btn.press{transform:scale(.96)}
.ms-btnrow{display:flex;flex-wrap:wrap;gap:8px}

/* a status path: sent, viewed, signed, paid */
.ms-flow{display:flex;align-items:center;gap:0;padding:2px 0}
.ms-flow li{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11.5px;font-weight:550;color:var(--ink-2);text-align:center;transition:opacity .4s var(--ease)}
.ms-flow li::before{content:"";position:absolute;top:11px;left:-50%;right:50%;height:2px;background:linear-gradient(90deg,#e2cd98,#c8a455)}
.ms-flow li:first-child::before{display:none}
.ms-flow li .tk{position:relative;width:22px;height:22px}
.js .cx-demo .ms-flow li:not(.on){opacity:.35}
.js .cx-demo .ms-flow li.on .tk:not(.on){transform:none}

/* meters */
.ms-meters{display:flex;flex-direction:column;gap:9px}
.ms-meter{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.3fr) auto;align-items:center;gap:10px;font-size:12px;color:var(--ink)}
.ms-meter>span:first-child{font-weight:550;overflow-wrap:anywhere}
.ms-meter>i{display:block;height:7px;border-radius:4px;background:#efe9dc;overflow:hidden}
.ms-meter>i>i{display:block;height:100%;width:calc(var(--v)*1%);border-radius:inherit;background:linear-gradient(90deg,#e2cd98,#c39d4c);transform-origin:0 50%;transition:transform .9s var(--ease)}
.ms-meter>i>i.k{background:var(--ink)}
.js .cx-demo .ms-meter:not(.on)>i>i{transform:scaleX(0)}
.ms-meter>em{font-size:11.5px;color:var(--ink-3);font-variant-numeric:tabular-nums;white-space:nowrap}

/* a score ring */
.ms-score{display:flex;align-items:center;gap:14px;padding:12px;border-radius:12px;background:#fff;box-shadow:0 0 0 1px var(--line-2)}
.ms-ring{position:relative;width:76px;height:76px;flex:none}
.ms-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ms-ring circle{fill:none;stroke-width:3.4}
.ms-ring .t{stroke:#efe9dc}
.ms-ring .v{stroke:#c8a455;stroke-linecap:round;stroke-dasharray:var(--v) 100;transition:stroke-dasharray 1.1s var(--ease)}
.js .cx-demo .ms-score:not(.on) .ms-ring .v{stroke-dasharray:0 100}
.ms-ring b{position:absolute;inset:0;display:grid;place-items:center;font-size:22px;font-weight:600;letter-spacing:-.04em;color:var(--ink)}
.ms-score>div:last-child{display:flex;flex-direction:column;gap:3px;min-width:0;line-height:1.35}
.ms-score>div:last-child b{font-size:13.5px;font-weight:600;color:var(--ink)}
.ms-score>div:last-child span{font-size:12px;color:var(--ink-3)}

/* form choices */
.ms-q{font-size:14px;line-height:1.3;font-weight:600;letter-spacing:-.015em;color:var(--ink)}
.ms-opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.ms-opt{display:flex;align-items:center;gap:8px;min-height:36px;padding:6px 10px;border-radius:10px;background:#fff;box-shadow:0 0 0 1px var(--line-2);font-size:12px;font-weight:500;color:var(--ink-2);line-height:1.25;transition:background-color .3s,box-shadow .3s,color .3s}
.ms-opt::before{content:"";width:12px;height:12px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 1.5px #d8cfbc;transition:box-shadow .3s}
.ms-opt.on{background:var(--gold-wash);box-shadow:0 0 0 1px rgba(200,164,85,.6);color:var(--ink)}
.ms-opt.on::before{box-shadow:inset 0 0 0 4px #c39d4c}
.ms-prog{display:flex;gap:5px}
.ms-prog i{flex:1;height:4px;border-radius:2px;background:#ece4d2}
.ms-prog i.on{background:linear-gradient(90deg,#e2cd98,#c39d4c)}

/* a vertical video frame and its shot list */
.ms-video{display:grid;grid-template-columns:minmax(0,132px) minmax(0,1fr);gap:12px;align-items:stretch}
.ms-reel{position:relative;aspect-ratio:9/16;border-radius:14px;overflow:hidden;background:radial-gradient(90% 60% at 50% 30%,#4a3d22 0%,#26231f 62%,#1d1d1f 100%);box-shadow:0 0 0 1px rgba(29,29,31,.2),0 16px 30px -18px rgba(29,29,31,.7);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:10px;color:#fff;text-align:center}
.ms-reel b{font-size:22px;line-height:1.02;font-weight:600;letter-spacing:-.045em}
.ms-reel b span{color:#e8c877}
.ms-reel>span{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;background:#fff;color:var(--ink);font-size:10px;font-weight:600;white-space:nowrap}
.ms-reel>i{position:absolute;left:10px;right:10px;bottom:9px;height:3px;border-radius:2px;background:rgba(255,255,255,.22);overflow:hidden}
.ms-reel>i>i{display:block;height:100%;width:64%;border-radius:inherit;background:#e8c877;transform-origin:0 50%;transition:transform 2.4s linear}
.js .cx-demo .ms-reel:not(.on)>i>i{transform:scaleX(0)}
.ms-reel>em{position:absolute;left:9px;top:9px;display:inline-flex;align-items:center;gap:4px;font-size:9.5px;font-weight:600;color:rgba(255,255,255,.75)}
.ms-reel>em .i{width:10px;height:10px}
.ms-shots{display:flex;flex-direction:column;gap:6px;min-width:0}
.ms-shot{display:flex;align-items:center;gap:9px;min-height:36px;padding:5px 9px;border-radius:10px;background:#fff;box-shadow:0 0 0 1px var(--line-2);font-size:12px;line-height:1.3;color:var(--ink);min-width:0}
.ms-shot>em{flex:none;font-family:var(--mono);font-size:10.5px;color:var(--ink-4)}
.ms-shot>span:not(.tk){flex:1;min-width:0;overflow-wrap:anywhere}
.ms-shot .tk{width:16px;height:16px;box-shadow:none}

/* file names, before and after */
.ms-files{display:flex;flex-direction:column;gap:8px}
.ms-file{display:flex;flex-direction:column;gap:5px;padding:9px 11px;border-radius:11px;background:#fff;box-shadow:0 0 0 1px var(--line-2);min-width:0}
.ms-file>span{display:flex;align-items:center;gap:8px;min-width:0;font-family:var(--mono);font-size:11px;line-height:1.35}
.ms-file>span>i{flex:1;min-width:0;overflow-wrap:anywhere}
.ms-file .old{color:var(--ink-4)}
.ms-file .old .i{width:12px;height:12px;flex:none;color:var(--ink-4)}
.ms-file .new{color:var(--ink);transition:opacity .4s var(--ease),transform .45s var(--ease)}
.ms-file .new .i{width:12px;height:12px;flex:none;color:var(--gold-deep)}
.js .cx-demo .ms-file:not(.on) .new{opacity:0;transform:translateX(-6px)}

/* a small note under a screen body */
.ms-note{display:flex;align-items:center;gap:8px;padding:9px 11px;border-radius:11px;background:var(--ink);color:#fff;font-size:12px;font-weight:500;line-height:1.35}
.ms-note .i{width:13px;height:13px;color:#f0d698;flex:none}
.ms-sub{font-size:11px;font-weight:600;color:var(--ink-3)}
.ms-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ms-chat .cx-msgs{padding:0}

@media (max-width:720px){
  .ms{padding:12px;gap:10px}
  .ms-app{grid-template-columns:38px minmax(0,1fr)}
  .ms-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ms-kpi{padding:9px 9px}
  .ms-kpi b{font-size:16px}
  .ms-kpi small,.ms-kpi span{font-size:10.5px}
  .ms-doc{margin:12px;padding:14px 13px 12px}
  .ms-video{grid-template-columns:minmax(0,104px) minmax(0,1fr);gap:10px}
  .ms-reel b{font-size:17px}
  .ms-flow li{font-size:10.5px}
  .ms-meter{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px}
  .ms-tr{gap:8px;padding:5px 10px;font-size:12px}
  .ms-tr .hide-s{display:none}
}
@media (max-width:420px){
  .ms-opts{grid-template-columns:1fr}
  .ms-kpis:not(.two) .ms-kpi span{display:none}
}
@media (prefers-reduced-motion:reduce){
  .ms-in,.ms-bars i,.ms-meter>i>i,.ms-ring .v,.ms-sign svg path,.ms-reel>i>i{transition:none}
}

/* ---------- 2a. the rail with five steps instead of six ---------- */
@media (min-width:720.02px){
  .cx-cad5 .cx-cad-nodes{grid-template-columns:repeat(5,minmax(0,1fr))}
  .cx-cad5 .cx-cad-track{left:10%;right:10%}
  .cx-cad4 .cx-cad-nodes{grid-template-columns:repeat(4,minmax(0,1fr))}
  .cx-cad4 .cx-cad-track{left:12.5%;right:12.5%}
}

/* links inside the short-version panel */
.cx-more .cp-spec-v a{color:var(--gold-ink);text-decoration:underline;text-decoration-color:rgba(200,164,85,.6);text-underline-offset:3px;transition:color .25s}
.cx-more .cp-spec-v a:hover{color:var(--ink)}

/* the handover panel: every line shows */
.cm-own .cp-step{display:flex;align-items:center;gap:10px}

/* ---------- 2b. the index: every case study as an equal card, two to a row ---------- */
.cm-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:16px clamp(32px,5vw,80px);align-items:end;margin:clamp(64px,8vw,112px) 0 clamp(28px,3.4vw,44px)}
.cm-head h2{font-size:var(--fs-h2);line-height:1.04;letter-spacing:var(--tr-h2);font-weight:500;color:var(--ink);text-wrap:balance}
.cm-head p{font-size:var(--fs-lead);line-height:1.6;color:var(--ink-2);text-wrap:pretty}
.cm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,2.2vw,28px)}
.cm-card{display:flex;flex-direction:column;min-width:0;padding:12px;border-radius:34px;background:rgba(255,255,255,.66);border:1px solid #fff;box-shadow:var(--sh-md);transition:box-shadow .6s var(--ease)}
.cm-card:hover{box-shadow:var(--sh-lg)}
.cm-card .cx-stage{height:auto;min-height:392px;border-radius:26px;flex:none;justify-content:flex-start}
.cm-copy{display:flex;flex-direction:column;align-items:flex-start;gap:10px;flex:1;padding:22px clamp(12px,1.6vw,22px) 16px}
.cm-copy .cx-row-t{font-size:clamp(1.375rem,1.1rem + .8vw,1.75rem);letter-spacing:-.035em}
.cm-copy .cx-row-m{font-size:15.5px;line-height:1.55}
.cm-copy .btn{margin-top:auto}
.cm-copy .cx-row-who{margin-bottom:8px}
/* an odd number of cards: the last one sits in the middle, not alone on the left */
.cm-grid>.cm-card:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:calc(50% - clamp(9px,1.1vw,14px))}
@supports (grid-template-rows:subgrid){
  .cm-card{display:grid;grid-template-rows:subgrid;grid-row:span 2;gap:0}
  .cm-card .cx-stage{height:100%}
}
@media (max-width:940px){
  .cm-head{grid-template-columns:1fr}
  .cm-grid{grid-template-columns:1fr}
  .cm-grid>.cm-card:last-child:nth-child(odd){width:auto;justify-self:stretch}
  .cm-card .cx-stage{min-height:0}
}
@media (max-width:720px){
  .cm-card{padding:10px;border-radius:28px}
  .cm-card .dm-bar .dm-meta{display:none}
  .cm-card .cx-stage{border-radius:22px}
  .cm-copy{padding:18px 10px 12px}
}

/* ---------- 3. phone fixes that also apply to the four live case studies ---------- */
.cp-ba .cp-reg .tk{width:18px;height:18px;box-shadow:none;flex:none}
@media (max-width:720px){
  .cx .dm-bar .dm-meta{display:none}
  .cx-sheet .cx-sh-h,.cx-sheet .cx-sh-r{grid-template-columns:minmax(0,1.5fr) minmax(0,.9fr) minmax(0,.8fr)}
  .cx-sheet .cx-sh-h>span:nth-child(4),.cx-sheet .cx-sh-r>span:nth-child(4){display:none}
}
/* the "Typo" and "Missed update" flags on the CRM sync page were dark grey on dark */
.cx .cx-twice .cx-flag,.cx .cx-twice .cx-flag>*{color:#f3d48a}
@media (max-width:720px){.cm-copy .cx-row-t{font-size:1.25rem;line-height:1.15}}

/* ---------- 4. the example roadmap pages on the audit page and its index card: the current look (Geist, no serif,
   no italics), nothing smaller than 11px, and pages only as tall as their content ---------- */
.cx .rp{aspect-ratio:auto;padding:26px 26px 18px;border-radius:14px;background:#fff;color:var(--ink);box-shadow:0 0 0 1px var(--line-2),0 18px 36px -24px rgba(60,44,12,.45)}
.cx .rp-back{background:#fbf9f4}
.cx .rp-brand{font-family:var(--font);font-style:normal;font-size:14px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}
.cx .rp-meta b{font-size:11px;letter-spacing:.04em;text-transform:none;font-weight:600;color:var(--gold-ink)}
.cx .rp-hd,.cx .rp-title{font-family:var(--font);font-weight:550;letter-spacing:-.03em;color:var(--ink)}
.cx .rp-hd{margin-top:22px;font-size:21px;line-height:1.2}
.cx .rp-title{margin-top:26px;font-size:24px;line-height:1.15}
.cx .rp-in,.cx .rp-p,.cx .rp-subt{font-size:12.5px;line-height:1.5;color:var(--ink-2)}
.cx .rp-cv{padding-top:18px}
.cx .rp-prep{margin-top:34px;margin-bottom:18px;font-size:11.5px;color:var(--ink-3)}
.cx .rp-tb{font-size:12px;line-height:1.4}
.cx .rp-tb th{font-size:11px;color:var(--ink-3)}
.cx .rp-tb td{color:var(--ink-2)}
.cx .rp-note{font-size:12px;border-radius:10px;background:var(--gold-wash);box-shadow:inset 0 0 0 1px rgba(200,164,85,.38);color:var(--ink-2)}
.cx .rp-ol li{font-size:12.5px;padding-left:20px;color:var(--ink-2)}
.cx .rp-ol li::before{font-size:12.5px;color:var(--gold-ink);font-weight:600}
.cx .rp-blk>b{font-size:12px}
.cx .rp-blk li{font-size:12px;color:var(--ink-2)}
.cx .rp-f{margin-top:20px;justify-content:flex-end;font-size:11px;color:var(--ink-3);border-top-color:var(--line)}
.cx .rp-f span:first-child{display:none}
.cx .rp-stack{width:min(100%,460px)}
@media (max-width:600px){
  .cx .rp{padding:20px 18px 14px}
  .cx .rp-two{grid-template-columns:1fr;gap:0}
  .cx .rp-hd{font-size:19px}
  .cx .rp-title{font-size:21px}
  .cx .rp-tb,.cx .rp-blk li,.cx .rp-ol li,.cx .rp-p{font-size:12px}
  .cx .rp-tb th{font-size:11px}
  .cx .rp-meta b{font-size:11px}
  .cx .rp-f{font-size:11px}
}
/* the short video screen: room between the frame and the shot list */
.ms-video{gap:16px}
.ms-reel{min-width:0}
@media (max-width:720px){.ms-video{grid-template-columns:minmax(0,96px) minmax(0,1fr);gap:14px}.ms-reel b{font-size:15px}.ms-reel>span{font-size:9px;padding:0 6px}}
/* long rail chips wrap instead of running into each other */
.cx .cx-cad-node .cp-chip{white-space:normal;height:auto;min-height:22px;line-height:1.25;padding-top:3px;padding-bottom:3px;text-align:center}
.ms-ans-h .tk{margin-left:auto;width:16px;height:16px;box-shadow:none}
.ms-reel{aspect-ratio:auto;align-self:stretch;min-height:200px}
