/* deal room: the site's paper deal file, live. Loads after style.css. No entrance motion. */
.dr{min-height:100vh}
.dr-top{display:flex;align-items:center;gap:18px;font:11.5px var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--label)}
.dr-who b{color:var(--ink);font-weight:500}
.dr-live{display:inline-flex;align-items:center;gap:0}
.dr-live i{margin-right:7px}
.dr-live i{width:7px;height:7px;border-radius:50%;background:var(--hold)}
.dr-live.off i{background:var(--line)}
.dr-main{max-width:1240px;margin:0 auto;padding:96px var(--gut) 72px}
.dr-sim{font:11.5px var(--mono);letter-spacing:.04em;color:var(--label);margin-bottom:18px;display:flex;align-items:center;gap:8px}
.dr-sim::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--hold);flex:0 0 auto}
.dr-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px;align-items:start}
.dr-side{display:flex;flex-direction:column;gap:14px;position:sticky;top:84px}

/* file tweaks for a real deal */
.dr-file .f-title h3,.dr-file .f-title h1{font-size:clamp(24px,2.4vw,32px)}
.dr-file .f-parties b{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.dr-you{font:500 9.5px var(--mono);font-style:normal;letter-spacing:.1em;text-transform:uppercase;color:var(--label);border:1px solid var(--line);border-radius:99px;padding:1px 6px}
.dr-ps::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px;background:var(--ghost);vertical-align:0}
.dr-ps.in::before{background:var(--ink)}
.dr-ps.ok{color:var(--go)}
.dr-ps.ok::before{background:var(--go)}
.dr-note{font-size:13px;color:var(--ink2);line-height:1.45;margin-top:10px;padding:10px 12px;border-radius:10px;background:var(--bg)}
.dr-unsigned svg{border-bottom-style:dashed;border-bottom-color:var(--ghost)}
.dr-file .f-blk header time{opacity:1}
.dr-file[data-st="0"] .f-status i{background:var(--mute)}
.dr-loading{min-height:420px}
/* a dispute pauses the file: amber pill, nothing moves */
.dr-disputed .f-status{background:#fbf1dc;border-color:transparent;color:#8a5d06}
.dr-disputed .f-status i{background:var(--hold)}
.dr-refunded .f-status{background:var(--bg);color:var(--ink2)}
.dr-refunded .f-status i{background:var(--ink2)}
.dr-refunded .f-blk{opacity:1}
.f-stamp.f-stamp-ref{color:var(--ink2);background:var(--bg)}.f-stamp.f-stamp-ref::before{background:var(--ink2)}
.dr-refund{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;padding:6px 0 4px}
.dr-refund b{font:500 clamp(22px,2vw,28px) var(--mono);letter-spacing:-.04em}
.dr-refund time{font:11px var(--mono);color:var(--label)}

/* the signature moment */
.dr-moment{display:flex;align-items:center;gap:12px;font:500 clamp(18px,2vw,26px)/1.2 var(--mono);letter-spacing:-.02em;color:var(--go);margin:0 0 20px;font-variant-numeric:tabular-nums}
.dr-moment b{font-weight:500;color:var(--ink)}
.dr-moment i{width:10px;height:10px;border-radius:50%;background:var(--go);flex:0 0 auto}
.dr-moment-r{color:var(--ink2)}.dr-moment-r i{background:var(--ink2)}

/* side cards */
.dr-card{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:22px 22px 20px;font-size:14.5px}
.dr-card:empty{display:none}
.dr-card h3{font-weight:500;font-size:20px;letter-spacing:-.02em;line-height:1.2;margin-bottom:8px}
.dr-card p{color:var(--ink2);line-height:1.5}
.dr-card p b{color:var(--ink);font-weight:500}
.dr-card blockquote{margin:10px 0;padding:10px 12px;border-left:2px solid var(--hold);background:var(--bg);border-radius:0 10px 10px 0;font-size:14px}
.dr-card .btn{width:100%;margin-top:14px}
.dr-form{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.dr-form .btn{margin-top:6px}
.dr-in{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff;font:400 16px/1.45 var(--sans);color:var(--ink);outline:0;resize:vertical;transition:border-color .2s}
.dr-in:focus{border-color:var(--ink)}
.dr-in::placeholder{color:var(--mute)}
.dr-err{color:#a1361f;font-size:13px;min-height:0}
.dr-err:empty{display:none}
.dr-sigpre{margin-top:4px}
.dr-sigpre svg{height:44px}
.dr-link{display:flex;align-items:center;gap:9px;margin-top:16px;padding:0 14px;height:44px;border:1px solid var(--line);border-radius:12px;background:var(--soft);color:var(--mute);min-width:0}
.dr-link svg{flex:none}
.dr-link code{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 14px/1 var(--sans);color:var(--ink2);-webkit-user-select:all;user-select:all}
.dr-link+.dr-copy{margin-top:8px}
.dr-dispute{border:1px solid var(--line);border-radius:14px;padding:12px 16px;background:var(--paper);font-size:13.5px}
.dr-dispute summary{cursor:pointer;color:var(--ink2);list-style:none}
.dr-dispute summary::-webkit-details-marker{display:none}
.dr-dispute summary::after{content:" +";color:var(--mute)}
.dr-dispute[open] summary::after{content:" \2212"}
.dr-card-log{padding-top:16px}
.dr-log{list-style:none;margin-top:10px;display:flex;flex-direction:column;max-height:260px;overflow:auto}
.dr-log li{display:grid;grid-template-columns:76px 1fr;gap:10px;padding:7px 0;border-top:1px dashed var(--line2);font-size:12.5px;line-height:1.4;color:var(--ink2)}
.dr-log li:first-child{border-top:0}
.dr-log time{font:10.5px/1.6 var(--mono);color:var(--label)}
.dr-log b{color:var(--ink);font-weight:500}
.dr-gone{max-width:560px;margin:12vh auto 0;text-align:center}
.dr-gone p{color:var(--ink2);margin:14px 0 26px}

/* desk (admin) */
.dk-key{max-width:420px;margin:14vh auto 0}
.dk-list{width:100%;border-collapse:collapse;background:var(--paper);border:1px solid var(--line);border-radius:18px;overflow:hidden;font-size:14px}
.dk-list th,.dk-list td{text-align:left;padding:12px 16px;border-bottom:1px solid var(--line2)}
.dk-list th{font:10.5px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--label);font-weight:400}
.dk-list td:first-child{font-family:var(--mono);font-size:12.5px}
.dk-list a{text-decoration:underline;text-underline-offset:3px}
.dk-checks{list-style:none;display:flex;flex-direction:column;gap:6px;margin-top:12px}
.dk-checks label{display:flex;gap:10px;align-items:center;font-size:14px;cursor:pointer}
.dk-checks input{width:16px;height:16px;accent-color:var(--go)}
.dk-row{display:flex;gap:8px}
.dk-row .btn{flex:1}
.btn:disabled{opacity:.35;cursor:not-allowed;transform:none}
.dk-contacts{font:12px/1.6 var(--mono);color:var(--ink2);margin-top:8px;word-break:break-all}

@media (max-width:1000px){
  /* one column: your move first, then the file, then the log */
  .dr-grid{display:flex;flex-direction:column;gap:14px}
  .dr-side{display:contents}
  #drAct{order:1}.dr-filecol{order:2}#drDisp{order:3}.dr-card-log{order:4}
}
@media (max-width:560px){
  .dr-main{padding-top:78px}
  .dr-top{gap:12px;font-size:10.5px}
  .dr-who{white-space:nowrap}
  .dr-no{display:none}
  .dr-file .f-parties b{font-size:14px}
  .dr-moment{font-size:16px;gap:9px}
  .dr-card{padding:18px 16px}
  .dk-list th:nth-child(5),.dk-list td:nth-child(5){display:none}
}

/* your private link + your other deals */
.dr-key .f-k{margin-bottom:8px}
.dr-key-t{color:var(--ink)!important;font-weight:500;font-size:15px;letter-spacing:-.01em}
.dr-key-b{margin-top:12px;gap:8px;width:100%}
.dr-key-b.ok{border-color:var(--go);color:var(--go)}
.dr-key-s{margin-top:10px;font-size:12.5px;line-height:1.45!important;color:var(--label)!important}
.dr-top .mm-mine{height:30px;font-family:var(--sans);text-transform:none;letter-spacing:0}
.dr-top .mm-pill{font-size:12.5px}
@media (max-width:900px){#drKey{order:3}}
@media (max-width:560px){
  .dr-top .mm-pill.solo .mm-l{display:none}
  .dr-top .mm-ls{display:inline}
  .dr-top:has(.mm-mine){gap:10px}
  .dr-top:has(.mm-mine) .dr-live{font-size:0;gap:0}
}

/* notifications: one quiet card under the private link */
.dr-push .f-k{margin-bottom:8px;display:flex;align-items:center;gap:7px}
.dr-push .f-k::after{content:"";width:6px;height:6px;border-radius:50%;background:var(--ghost)}
.dr-push.st-on .f-k::after{background:var(--go)}
.dr-push.st-off .f-k::after,.dr-push.st-ios .f-k::after{background:var(--hold)}
.dr-push-h{color:var(--ink)!important;font-weight:500;font-size:15px;letter-spacing:-.01em}
.dr-push-s{margin-top:6px;font-size:12.5px;line-height:1.45!important;color:var(--label)!important}
.dr-push-b{margin-top:12px!important;gap:8px;width:100%}
.dr-push-b[hidden]{display:none}
.dr-push.st-on .dr-push-b{color:var(--ink2)}
.dr-push.st-busy .dr-push-b{opacity:.6}
@media (max-width:1000px){#drPush{order:3}}

/* messages: one quiet thread under the file. Plain text, no links, no motion. */
.dr-filecol{display:flex;flex-direction:column;gap:20px;min-width:0}
.dm[hidden]{display:none}
.dm{padding:22px 24px 20px}
.dm-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-bottom:14px;border-bottom:1px solid var(--line2)}
.dm .dm-h{font-size:20px;margin:0}
.dm-sub{font:10.5px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--label)}
.dm-scroll{max-height:min(70vh,620px);overflow-y:auto;overscroll-behavior:contain;padding:16px 2px 4px}
.dm-empty{font-size:13.5px;color:var(--label)!important;padding:6px 0 4px}
.dm-empty[hidden]{display:none}
.dm-list{list-style:none;display:flex;flex-direction:column;gap:14px}
.dm-msg{display:flex;flex-direction:column;align-items:flex-start;max-width:min(560px,86%)}
.dm-msg.me{align-self:flex-end;align-items:flex-end}
.dm-meta{display:flex;align-items:center;gap:8px;margin:0 2px 6px;font:10.5px var(--mono);letter-spacing:.03em;color:var(--label)}
.dm-meta b{font:500 12.5px var(--sans);letter-spacing:0;color:var(--ink)}
.dm-badge{font:500 9px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--go);background:var(--go-soft);border-radius:99px;padding:2px 7px}
.dm-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14.5px;line-height:1.5;color:var(--ink)!important;padding:10px 14px;border-radius:14px 14px 14px 4px;background:var(--bg)}
.dm-msg.me .dm-text{background:var(--ink);color:#fff!important;border-radius:14px 14px 4px 14px}
.dm-msg.desk:not(.me) .dm-text{background:#fff;border:1px solid var(--line)} /* round 44: no green left rule (it read heavy on phones); the Desk officer badge says who it is */
.dm-seen{font:10.5px var(--mono);letter-spacing:.03em;color:var(--label);margin:6px 2px 0}
.dm-gate{margin-top:14px;padding:12px 14px;border-radius:12px;background:var(--bg);font-size:13.5px;color:var(--ink2)}
.dm-gate[hidden],.dm-form[hidden]{display:none}
.dm-form{margin-top:14px;padding-top:14px;border-top:1px solid var(--line2)}
.dm-in{font-family:var(--sans);min-height:52px;max-height:200px;resize:vertical;font-size:15px;line-height:1.45}
.dm-bar{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:10px}
.dm-count{margin-right:auto;font:10.5px var(--mono);color:var(--label)}
.dr-card .dm-bar .btn{width:auto;margin:0;padding-left:22px;padding-right:22px}
.dm .dr-err{margin-top:8px}
@media (max-width:560px){
  .dm{padding:18px 16px 16px}
  .dm-scroll{max-height:60vh}
  .dm-msg{max-width:92%}
  .dm-in{font-size:16px}
}

/* demo room (?demo=1): one quiet bar above the file. The room itself is the real one. */
.dr-demo{position:relative;display:flex;align-items:center;gap:14px 18px;flex-wrap:wrap;margin:0 0 20px;padding:12px 14px 14px 16px;background:var(--paper);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.dr-demo-pill{display:inline-flex;align-items:center;gap:8px;font:500 11px var(--mono);letter-spacing:.06em;text-transform:uppercase;color:#8a5d06;background:#fbf1dc;border-radius:99px;padding:6px 11px;white-space:nowrap}
.dr-demo-pill i{width:6px;height:6px;border-radius:50%;background:var(--hold)}
.dr-demo-step{flex:1 1 220px;min-width:0;display:flex;align-items:baseline;gap:10px;font-size:15px;font-weight:500;letter-spacing:-.01em;color:var(--ink)}
.dr-demo-n{font:11px var(--mono);color:var(--label);letter-spacing:.04em;font-variant-numeric:tabular-nums}
.dr-demo-ctl{display:flex;align-items:center;gap:10px;margin-left:auto}
.dr-demo-view{align-items:center}
.dr-demo-vl{font:10.5px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--label);padding:0 6px 0 8px}
.dr-demo-view button{padding:7px 13px;font-size:13.5px}
.dr-demo-prog{position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--line2)}
.dr-demo-prog i{position:absolute;inset:0;background:var(--go);transform:scaleX(.143);transform-origin:0 50%;transition:transform .6s var(--ease)}
.dr-demo-note{margin-top:10px;font:11px var(--mono)!important;letter-spacing:.03em;color:var(--label)!important}
.dr-demo-end{display:flex;flex-direction:column}
.dr-demo-end .btn+.btn{margin-top:8px}
.dr-demo-on #drAct form,.dr-demo-on #drAct button[data-a]{pointer-events:none}
.dr-demo-on #drAct .dr-in{background:#fff}
.dr-press{transform:scale(.98);background:#2a2a2e!important}
.dr-demo-on .mm-mine{display:none}
.f-checks li.dr-pop::before{animation:drPop .5s var(--ease)}
@keyframes drPop{0%{transform:scale(.4)}60%{transform:scale(1.18)}100%{transform:scale(1)}}
@media (max-width:560px){
  .dr-demo{gap:10px;padding:12px 12px 14px}
  .dr-demo-step{flex-basis:100%;order:3;font-size:14.5px}
  .dr-demo-ctl{margin-left:0;width:100%;justify-content:space-between;order:4}
  .dr-demo-vl{padding:0 4px 0 6px}
}
@media (prefers-reduced-motion:reduce){.dr-demo-prog i{transition:none}.f-checks li.dr-pop::before{animation:none}}
.dr-demo-on .dr-sim{display:none}
.dr-demo-on .dr-side .dm{padding:20px 20px 18px}
.dr-demo-on .dr-side .dm-scroll{max-height:min(60vh,480px)}
.dr-demo-on .dr-side .dm-msg{max-width:92%}
/* round 46: the demo thread card on desktop is compact: bubbles use the card's width, tighter type and gaps, the scripted note is one quiet line */
@media (min-width:1001px){
  .dr-demo-on .dr-side .dm{padding:18px 18px 16px}
  .dr-demo-on .dr-side .dm-head{padding-bottom:12px}
  .dr-demo-on .dr-side .dm-scroll{padding-top:12px}
  .dr-demo-on .dr-side .dm-list{gap:10px}
  .dr-demo-on .dr-side .dm-msg{max-width:100%}
  .dr-demo-on .dr-side .dm-meta{margin-bottom:5px}
  .dr-demo-on .dr-side .dm-text{font-size:14px;line-height:1.45;padding:9px 12px}
  .dr-demo-on .dr-side .dm-gate{margin-top:10px;padding:10px 2px 0;border-top:1px solid var(--line2);border-radius:0;background:none;font-size:12.5px;line-height:1.45}
}
@media (max-width:1000px){.dr-demo-on #drMsgs{order:3}}
.dr-demo-on .dr-side{position:static}

/* ============ pass mph: phones ============ */
@media (max-width:1000px){
  /* one column: your move, then the conversation, then the file. The thread is one swipe away, not under a 1,100px file */
  .dr-filecol{display:contents}
  #drAct{order:1}#drMsgs{order:2}#drFile{order:3}#drKey,#drPush{order:4}#drDisp{order:5}.dr-card-log{order:6}
  /* the demo is the file's story: it keeps the file second and the thread after it */
  .dr-demo-on #drFile{order:2}.dr-demo-on #drMsgs{order:3}
}
@media (max-width:560px){
  /* the thread and its composer fit one screen, even with the keyboard up; the composer stays pinned while the card is on screen */
  .dm-scroll{max-height:min(62svh,520px)}
  .dm-form{position:sticky;bottom:0;z-index:2;margin:14px -16px -16px;padding:12px 16px max(14px,env(safe-area-inset-bottom));background:var(--paper);border-radius:0 0 18px 18px}
  .dm-in{min-height:48px}
  /* nothing under 11px */
  .dr-top{font-size:11px}
  .dr-you{font-size:11px;padding:1px 6px 0}
  .dm-sub,.dm-meta,.dm-seen,.dm-count,.dr-log time,.dr-demo-vl{font-size:11px}
  .dm-badge{font-size:11px;letter-spacing:.08em}
  .dr-key-s,.dr-push-s{font-size:13px}
  /* 44px touch targets */
  .dr-dispute{padding:0 16px}
  .dr-dispute summary{display:flex;align-items:center;min-height:46px}
  .dr-dispute[open]{padding-bottom:14px}
  .dr-top .mm-mine{height:44px}
  .dr-demo-view button{min-height:44px}
}
@media (max-width:560px){
  /* composer: the field and Send on one row, so the pinned bar stays short above the keyboard */
  .dm-form:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;align-items:end}
  .dm-form .dm-bar{margin-top:0;flex-direction:column;align-items:flex-end;gap:4px}
  .dm-form .dm-count{margin-right:0}
  .dm-form .dm-count:empty{display:none}
  .dm-form .dr-err{grid-column:1/-1}
  .dr-card .dm-bar .btn{min-height:48px;padding-left:18px;padding-right:18px}
  .dm-in{resize:none}
}

/* ============ round 5: the desk officer, the phone summary, the whole asset name at release ============ */
/* one named person on the file. Initials set in the serif, inside a thin ring: stationery, not a mark. */
.dr-off .f-k{margin-bottom:12px}
.off-top{display:flex;align-items:center;gap:14px}
.off-mono{flex:0 0 auto;width:50px;height:50px;border-radius:50%;border:1px solid var(--line);background:var(--bg);display:grid;place-items:center;font:italic 400 20px/1 var(--serif);letter-spacing:.04em;color:var(--ink);padding-right:1px}
.off-mono.off-wait{border-style:dashed;background:transparent}
.off-top b{display:block;font-weight:500;font-size:17px;letter-spacing:-.015em;line-height:1.2;color:var(--ink)}
.off-top small{display:block;font-size:13px;color:var(--ink2);line-height:1.35;margin-top:2px}
.off-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line2)}
.off-facts dt{font:10.5px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--label);margin-bottom:3px}
.off-reply{margin-top:12px;font-size:13px;line-height:1.45;color:var(--label)!important}
.off-facts dd{font:500 13.5px var(--mono);letter-spacing:-.01em;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.off-st{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:13.5px;color:var(--ink2)!important}
.off-st i{width:7px;height:7px;border-radius:50%;background:var(--mute);flex:0 0 auto}
.off-st.on{color:var(--go)!important}
.off-st.on i{background:var(--go)}
.dk-none{color:var(--mute)}

/* phones: what is changing hands, before anything else. Desktop already leads with the file's title. */
.dr-sum{display:none}
@media (max-width:1000px){
  .dr-sum:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:14px;row-gap:2px;margin:0 0 14px;padding:0 2px 14px;border-bottom:1px solid var(--line)}
  .dr-sum>b{font:400 21px/1.2 var(--serif);letter-spacing:-.015em;color:var(--ink);overflow-wrap:anywhere}
  .dr-sum>span{font:500 15px var(--mono);letter-spacing:-.03em;color:var(--ink);white-space:nowrap;font-variant-numeric:tabular-nums}
  .dr-sum small{grid-column:1/-1;font:11px var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--label)}
  /* then: next step, messages, the officer, the file */
  #drAct{order:1}#drMsgs{order:2}#drOff{order:3}#drFile{order:4}#drKey,#drPush{order:5}#drDisp{order:6}.dr-card-log{order:7}
  .dr-demo-on #drFile{order:2}.dr-demo-on #drMsgs{order:3}.dr-demo-on #drOff{order:4}
}
@media (max-width:560px){
  .off-facts dt{font-size:11px}
  .off-mono{width:46px;height:46px;font-size:19px}
}

/* release: a long asset name wraps inside its own half instead of being cut, centred on its lane */
.dr-file .f-tr-t.f-tr-wrap{white-space:normal;max-width:calc(50% - 24px);font-size:clamp(17px,1.5vw,21px);line-height:24px;margin-top:0;text-wrap:balance;
  transform:translate(calc(-50% + var(--e) * 50%),calc(-50% + var(--lane) * 40px))}
.dr-file .f-rel:has(.f-tr-wrap){height:150px}
@media (max-width:560px){.dr-file .f-tr-t.f-tr-wrap{line-height:22px;max-width:calc(50% - 14px)}.dr-file .f-rel:has(.f-tr-wrap){height:156px}}

/* ============ round 6 ============ */
/* phones: every card in the single column runs the full width (the grid's align-items:start shrank the officer card to its content) */
@media (max-width:1000px){.dr-grid{align-items:stretch}.dr-grid>*,#drOff,#drAct,#drMsgs,.dr-card-log{width:100%;align-self:stretch}}
/* the walkthrough with the visitor's own terms: one calm line under the demo bar, never an error */
.dr-demo-why{flex-basis:100%;order:6;margin:0;padding-top:10px;border-top:1px solid var(--line2);font-size:14px;line-height:1.45;color:var(--ink2)}
/* the log under the file in the demo: it keeps the file column as long as the side column */
.dr-demo-on .dr-filecol .dr-card-log{margin-top:14px}
@media (max-width:1000px){.dr-demo-on .dr-filecol .dr-card-log{margin-top:0}}

/* ============ round 7: the officer replies in the room ============ */
/* "Sofia L. is writing": one quiet line where her reply will land. The three dots breathe; nothing else moves. */
.dm-typing{display:flex;align-items:center;gap:4px;margin:14px 2px 2px;font-size:13px;color:var(--label)!important}
.dm-typing[hidden]{display:none}
.dm-typing-t{margin-right:4px}
.dm-typing i{width:4px;height:4px;border-radius:50%;background:var(--go);opacity:.25;animation:dmDot 1.4s ease-in-out infinite}
.dm-typing i:nth-of-type(2){animation-delay:.2s}
.dm-typing i:nth-of-type(3){animation-delay:.4s}
@keyframes dmDot{0%,80%,100%{opacity:.25}40%{opacity:1}}
@media (prefers-reduced-motion:reduce){.dm-typing i{animation:none;opacity:.6}}
/* a desk-only line, once the other side is in */
.dm-pv{font:10.5px var(--mono);letter-spacing:.03em;color:var(--label);border:1px solid var(--line);border-radius:99px;padding:1px 7px}
.dm-allp .dm-pv{display:none}
/* the suggested first question: one outlined line above the composer, tap to send */
.dm-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.dm-chips[hidden]{display:none}
.dm-chip{font:500 13.5px var(--sans);letter-spacing:-.005em;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:99px;padding:8px 14px;cursor:pointer;min-height:36px;text-align:left}
.dm-chip:hover{border-color:var(--ink)}
.dm-chip:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.dm-chip:disabled{opacity:.5;cursor:default}
/* before the other side joins: the desk thread sits in the side column, under the officer's card */
.dr-desk .dr-side{position:static}
.dr-desk .dr-side .dm{padding:20px 20px 18px}
.dr-desk .dr-side .dm-scroll{max-height:min(64vh,560px)}
.dr-desk .dr-side .dm-in{min-height:48px;height:48px}
.dr-desk .dr-side .dm-msg{max-width:92%}
.dr-desk .dr-side .dm-head{flex-direction:column;align-items:flex-start;gap:4px}
/* phones: the conversation first, then who you are talking to, then the invite */
@media (max-width:1000px){.dr-desk #drMsgs{order:1}.dr-desk #drOff{order:2}.dr-desk #drAct{order:3}}
@media (max-width:560px){
  .dm-typing{font-size:13px}
  .dm-pv{font-size:11px}
  .dm-chip{min-height:44px;font-size:14.5px}
  .dm-form .dm-chips{grid-column:1/-1}
}

/* the desk lines on the file (block 03): what the desk has done, with the second it happened. They read at full strength
   while the release checks below them wait (dimmed) until the funds are held. New lines tick in on a live poll. */
.file .f-blk.f-desk-on{opacity:1}
.file .f-blk.f-desk-on:not(.cur):not(.done) :is(header h4,header h2,.f-n,.f-rel-checks,.f-sub:last-of-type){opacity:1;color:var(--mute)}
/* round 38: blocks not reached yet read quieter by colour, not opacity (opacity took them under 4.5:1) */
.dr-file .f-blk:not(.cur):not(.done){opacity:1}
.dr-file .f-blk:not(.cur):not(.done) :is(header h2,.f-n,.f-cap,.f-rel-checks span){color:var(--mute)}
.dr-demo-vl{color:var(--ink2)}
.dm-badge{color:var(--go-ink)}
.f-sub{font:500 10px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--mute);margin:2px 0 8px}
.f-desk+.f-sub{margin-top:14px}
.f-desk{margin-bottom:0}
.f-desk li{font-size:12.5px;color:var(--ink)}
.f-desk li span{min-width:0}
.f-desk li time{opacity:1;font-variant-numeric:tabular-nums}
.f-desk li::before{width:13px;height:13px;background-size:7px}
/* round 22: a new desk line is simply there (no slide or fade in); its check still ticks (dr-pop) */
@media (max-width:560px){.f-desk li{font-size:12px}.f-sub{font-size:10px}}

/* ============ round 8 (m9): the phone room ============ */
/* the summary carries where the deal stands and who has it; the separate preview line folds into it on phones */
.dr-sum-sim{font:inherit;letter-spacing:inherit}
.dr-steps,.dr-sum-off{display:none}
@media (max-width:1000px){
  .dr-sum .dr-steps{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;list-style:none;margin:12px 0 0}
  .dr-steps li{display:flex;flex-direction:column;gap:6px;font:11px var(--mono);letter-spacing:.02em;color:var(--mute);min-width:0}
  .dr-steps li::before{content:"";height:3px;border-radius:2px;background:var(--line)}
  .dr-steps li.done{color:var(--ink2)}
  .dr-steps li.done::before{background:var(--go)}
  .dr-steps li.cur{color:var(--ink);font-weight:500}
  .dr-steps li.cur::before{background:var(--ink)}
  .dr-steps span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .dr-sum .dr-sum-off{grid-column:1/-1;display:flex;align-items:center;gap:10px;min-height:44px;margin:10px 0 -6px;font-size:13.5px;color:var(--ink2)}
  .dr-sum-off .off-mono{width:30px;height:30px;font-size:13px}
  .dr-sum-on{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .dr-sum-on b{font:500 13.5px var(--sans);letter-spacing:-.01em;color:var(--ink)}
  .dr-sum-st{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font:11px var(--mono);letter-spacing:.02em;color:var(--label);white-space:nowrap}
  .dr-sum-st i{width:6px;height:6px;border-radius:50%;background:var(--mute)}
  .dr-sum-st.on{color:var(--go)}.dr-sum-st.on i{background:var(--go)}
  .dr-sum:not([hidden])~.dr-sim{display:none}
  .dr-demo-on .dr-sum-sim{display:none}
  /* before the other side joins: the thread, then the invite (the creator's real next step), then the officer card */
  .dr-desk #drMsgs{order:1}.dr-desk #drAct{order:2}.dr-desk #drOff{order:3}
}
@media (max-width:380px){.dr-sum-st{display:none}}

/* sign: what you are signing, in four lines, above the name */
.dr-recap{margin:4px 0 12px;padding:12px 14px;border-radius:12px;background:var(--bg);display:flex;flex-direction:column;gap:7px}
.dr-recap div{display:grid;grid-template-columns:84px minmax(0,1fr);gap:10px;font-size:13.5px;line-height:1.4}
.dr-recap dt{font:11px/1.75 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--label)}
.dr-recap dd{color:var(--ink)}
.dr-sigpre{position:relative}
.dr-sigph{position:absolute;left:0;right:0;top:12px;text-align:center;font:italic 300 16px var(--serif);color:var(--mute);pointer-events:none;transition:opacity .2s}
.dr-sigpre.has .dr-sigph{opacity:0}

/* release: a receipt. Both lines tick at the same instant, under one stamp */
.dr-rc{margin-top:6px;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.dr-rc-row{position:relative;display:flex;flex-direction:column;gap:4px;padding:13px 14px 13px 44px;border-bottom:1px solid var(--line2)}
.dr-rc-row::before{content:"";position:absolute;left:14px;top:15px;width:18px;height:18px;border-radius:50%;background:var(--go) center/9px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")}
.dr-rc-row .f-k{font-size:11px;color:var(--label)}
.dr-rc-row b{font-weight:500;font-size:16px;letter-spacing:-.01em;line-height:1.3;color:var(--ink);overflow-wrap:anywhere}
.dr-rc-row b.dr-rc-m{font:500 18px var(--mono);letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.dr-rc-t{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0;padding:11px 14px;background:var(--go-soft);color:var(--go)!important;font:11px var(--mono);letter-spacing:.03em}
.dr-rc-t b{font:500 15px var(--mono)!important;color:var(--go)!important;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.dr-rc-s{margin-top:10px;font-size:13px;color:var(--label)!important}
.dr-rc.go .dr-rc-row::before{animation:drPop .5s var(--ease)}
.dr-rc.go .dr-rc-t{animation:drRc .9s var(--ease)}
@keyframes drRc{from{background:#bfe6d1}to{background:var(--go-soft)}}
@media (prefers-reduced-motion:reduce){.dr-rc.go .dr-rc-row::before,.dr-rc.go .dr-rc-t{animation:none}}
/* phones: the receipt is the moment, so the line above it does not repeat it */
@media (max-width:560px){#drMoment:has(.dr-moment){display:none}}

/* the desk lines: the two newest, the rest one tap away (round 22: on desktop too, so the release checks stay above the fold);
 * on phones the times sit on the first line of a wrapped step */
.f-desk-more+.f-sub{margin-top:14px}
.f-desk:not(.all) li:nth-last-child(n+3){display:none}
.f-desk-more{display:flex;align-items:center;gap:8px;width:100%;min-height:36px;margin:2px 0 4px;padding:0;border:0;border-bottom:1px dashed var(--line2);background:none;font:11px var(--mono);letter-spacing:.04em;color:var(--label);cursor:pointer;text-align:left}
.f-desk-more::after{content:"+";margin-left:auto;font-size:14px;color:var(--mute)}
@media (max-width:560px){
  .f-sub{font-size:11px}
  .f-desk-more{min-height:44px}
  .f-checks li{align-items:flex-start}
  .f-checks li time{line-height:18px}
  .f-checks li span{line-height:18px}
  .f-checks li::before{margin-top:1px}
}

/* the composer above the keyboard: the thread shrinks to what the keyboard leaves */
/* round 8: a long desk answer was cut off in a short box. The box now holds a full answer on a phone (and the room scrolls
   a tall new message to its first line); with the keyboard up it still shrinks to what the keyboard leaves */
@media (max-width:560px){.dm-scroll,.dr-desk .dr-side .dm-scroll,.dr-demo-on .dr-side .dm-scroll{max-height:min(62svh,520px,max(120px,calc(var(--vvh,100svh) - 250px)))}}

/* round 9: on a desktop the desk thread fills the right column. The officer card folds to who they are, and the thread
   runs to the bottom of the screen, so the newest message and the composer are both in view the moment the room opens. */
@media (min-width:1001px){
  .dr-desk .dr-off{padding:18px 22px}
  .dr-desk .dr-off .f-k,.dr-desk .dr-off .off-facts,.dr-desk .dr-off .off-reply{display:none}
  .dr-desk .dr-off .off-st{margin-top:10px}
  .dr-desk #drMsgs.dm:not([hidden]){display:flex;flex-direction:column;max-height:max(420px,min(calc(100vh - 280px),860px))} /* round 15: sized to the thread, capped at the screen; no empty block on a new draft */
  .dr-desk #drMsgs .dm-head{flex:0 0 auto}
  .dr-desk #drMsgs .dm-scroll{flex:1 1 auto;max-height:none;min-height:96px}
  .dr-desk #drMsgs .dm-form,.dr-desk #drMsgs .dm-gate{flex:0 0 auto}
  .dr-desk #drMsgs .dm-in{resize:none}
}
/* round 11: the practice run. One quiet outlined badge wherever the deal shows; the offer sits under the invite on the waiting card */
.f-hr{display:inline-flex;align-items:center;gap:8px}
.dr-prac{display:inline-block;font:500 10px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:#8a5d06;border:1px solid #e6cf9c;background:#fbf4e4;border-radius:99px;padding:4px 8px;vertical-align:1px;white-space:nowrap}
.dr-prac-offer{margin-top:18px;padding-top:16px;border-top:1px solid var(--line2)}
.dr-prac-offer h4{font:600 15px/1.3 var(--sans);letter-spacing:-.01em;color:var(--ink);margin:0 0 6px}
.dr-prac-offer p{font-size:13.5px;line-height:1.45;color:var(--ink2);margin:0 0 12px}
.dr-prac-offer .dr-prac-left{margin:8px 0 0;font:12px/1.5 var(--mono);color:var(--mute)}
.dr-prac-offer p a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.dr-prac-note{margin-top:14px;padding:10px 12px;border-radius:10px;background:var(--bg);font-size:13px;line-height:1.45;color:var(--ink2)}
.dr-prac-note .dr-prac{margin-right:6px}
.dr-prac-note a{color:var(--ink);text-decoration:underline;text-underline-offset:2px}
/* round 11: a wider side column on desktop, so the desk thread reads like a conversation, not a sidebar */
@media (min-width:1201px){.dr-grid{grid-template-columns:minmax(0,1fr) 440px}}
@media (min-width:1001px) and (max-width:1200px){.dr-grid{grid-template-columns:minmax(0,1fr) 400px}}
@media (max-width:560px){.dr-prac{font-size:11px}.dr-prac-offer .btn{min-height:44px;width:100%}}
@media (max-width:560px){#drWho .dr-prac{display:none}}

/* ============ round 13 ============ */
/* signature captions stay on one line */
.dr-file .f-sig span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the creator's invite link sits under the other side's "Invited" chip, with Copy beside it */
.dr-inv{display:flex;align-items:center;gap:6px;margin-top:8px;min-width:0;max-width:100%}
.dr-inv code{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:11px/1 var(--mono);color:var(--ink2);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:8px 8px;-webkit-user-select:all;user-select:all}
.dr-inv-copy{flex:none;font:500 12px/1 var(--sans,inherit);color:#fff;background:var(--ink);border:0;border-radius:8px;padding:9px 12px;cursor:pointer;min-height:30px}
.dr-inv-copy:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
/* round 19: on a phone the big "Copy the other side's invite link" button is the one copy; the small link + Copy go */
@media (max-width:560px){.dr-inv{display:none}}
.dr-file .f-parties{grid-template-columns:repeat(3,minmax(0,1fr))}
.dr-file .f-parties>div{min-width:0}
/* refund time in the refunded card, same quiet row as the release time */
.dr-rc-tr{background:var(--line2);color:var(--ink2)!important;border-radius:10px;margin-top:12px}
.dr-rc-tr b{color:var(--ink)!important}
/* round 14: after release/refund the tile leads with the payout, the empty balance is secondary */
.f-held-out b{color:var(--ink)!important;font-size:clamp(26px,2.4vw,34px)}
.f-held b em{font:400 15px/1 var(--sans,inherit);font-style:normal;letter-spacing:0;color:var(--ink2);margin-left:4px;white-space:nowrap}
.f-held-out b{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px}
.f-held-out b em{margin-left:0}
.f-held .f-split{display:flex;flex-wrap:wrap;gap:2px 14px;font:400 12.5px/1.35 var(--mono);color:var(--ink2);font-variant-numeric:tabular-nums}
.f-held .f-zero{font:400 12px/1.3 var(--mono);color:var(--mute);font-variant-numeric:tabular-nums}

/* round 15: the closing statement, opened from the released card */
.dr-stmt{width:100%;gap:10px;margin-top:16px;min-height:48px}
.dr-stmt-s{margin-top:8px;font-size:12.5px;line-height:1.45!important;color:var(--label)!important}

/* ============ round 18: phones show the officer once ============ */
/* the summary strip ("Priya N. has your file") already names the officer and their status, so the card under the
   conversation is dropped and the file moves up into its place. While the officer is still being assigned there is no
   strip, so the card ("Assigning your officer") stays. Desktop keeps the card: it has no strip. */
@media (max-width:1000px){
  .dr-sum:not([hidden]):has(.dr-sum-off)~.dr-grid #drOff{display:none}
}

/* ============ round 20: the receipt (settlement statement for a released deal) ============ */
.dr-rcpt{margin-top:12px;gap:8px;display:inline-flex;align-items:center}
.rc-dlg{border:0;padding:0;background:transparent;max-width:min(680px,calc(100vw - 32px));width:100%;max-height:calc(100dvh - 32px);margin:auto;overflow:auto;color:var(--ink)}
.rc-dlg::backdrop{background:rgba(12,12,13,.86);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.rc-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px 12px;color:#fff}
.rc-bar .rc-k{color:#e4e2db}
.rc-btns{display:flex;gap:8px}
.rc-bar .btn-line{color:var(--ink)}
.rc-k{font:11px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--label)}
.rc-paper{background:var(--paper);border-radius:6px;padding:44px 48px 40px;box-shadow:0 30px 80px -30px rgba(0,0,0,.6);font-variant-numeric:tabular-nums}
.rc-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;padding-bottom:22px;border-bottom:2px solid var(--ink)}
.rc-head>div{display:flex;flex-direction:column;gap:6px}
.rc-no{font:400 34px/1.05 var(--serif);letter-spacing:-.02em}
.rc-hr{text-align:right}
.rc-hr time{font:500 13px var(--mono);letter-spacing:-.01em}
.rc-flag{margin:14px 0 0;font:11px var(--mono);letter-spacing:.04em;color:var(--label)}
.rc-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 28px;margin:24px 0 26px}
.rc-meta div{display:flex;flex-direction:column;gap:3px;min-width:0}
.rc-meta dt{font:10.5px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--label)}
.rc-meta dd{font-size:15.5px;line-height:1.35;overflow-wrap:anywhere}
.rc-tbl{width:100%;border-collapse:collapse;border-top:1px solid var(--line)}
.rc-tbl th,.rc-tbl td{padding:13px 0;border-bottom:1px solid var(--line2);vertical-align:baseline}
.rc-tbl th{text-align:left;font-weight:400;font-size:15px;color:var(--ink2)}
.rc-tbl th small{display:block;font:11px var(--mono);color:var(--label);margin-top:3px;letter-spacing:.02em}
.rc-tbl td{text-align:right;font:500 16px var(--mono);letter-spacing:-.02em;white-space:nowrap;padding-left:16px}
.rc-tbl .rc-bal th,.rc-tbl .rc-bal td{border-top:2px solid var(--ink);border-bottom:0;color:var(--ink);font-weight:500;padding-top:15px}
.rc-tbl .rc-bal td{font-size:19px}
.rc-rel{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap;margin:22px 0 0;padding:12px 14px;background:var(--go-soft);color:var(--go);font:11px var(--mono);letter-spacing:.03em;border-radius:4px}
.rc-rel b{font:500 15px var(--mono);letter-spacing:-.01em}
.rc-sigs{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:30px}
.rc-sig{display:flex;flex-direction:column;min-width:0}
.rc-sig svg{width:100%;height:46px;border-bottom:1px solid var(--ink);overflow:visible}
.rc-sig path{fill:none;stroke:var(--ink);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.rc-sig-n{font-size:14px;margin-top:8px}
.rc-sig-k{font:10.5px var(--mono);color:var(--label);margin-top:2px;letter-spacing:.02em}
.rc-close{margin-top:30px;padding-top:16px;border-top:1px solid var(--line);font:500 13px var(--mono);letter-spacing:.02em;text-align:center}
@media (max-width:560px){
  .rc-paper{padding:26px 20px 24px}
  .rc-no{font-size:27px}
  .rc-head{flex-direction:column;align-items:flex-start;gap:12px}
  .rc-hr{text-align:left}
  .rc-meta{grid-template-columns:1fr;gap:12px}
  .rc-sigs{grid-template-columns:1fr;gap:20px}
  .rc-tbl th{font-size:14px}.rc-tbl td{font-size:15px}
}
@media print{
  @page{margin:16mm 18mm}
  body.rc-open>*:not(#drRcpt){display:none!important}
  body.rc-open{background:#fff}
  /* a modal dialog sits in the top layer and centres itself on the page: pin it to the top-left of page one instead */
  .rc-dlg{position:absolute;inset:0 auto auto 0;margin:0;max-width:none;max-height:none;overflow:visible;width:100%;color:#000}
  .rc-paper{break-inside:avoid;page-break-inside:avoid;background:#fff}
  .rc-tbl tr,.rc-sigs,.rc-rel{break-inside:avoid;page-break-inside:avoid}
  .rc-dlg::backdrop{display:none}
  .rc-bar{display:none}
  .rc-paper{box-shadow:none;border-radius:0;padding:0}
  .rc-rel{background:none;border:1px solid var(--go);flex-wrap:nowrap;letter-spacing:0}
  .rc-rel span{min-width:0}.rc-rel b{white-space:nowrap}
  .rc-sig-k{font-size:9.5px;letter-spacing:0;white-space:nowrap}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
.f-held b em.f-what{display:block;margin:6px 0 0;font:400 11px/1.4 var(--mono);letter-spacing:.04em;white-space:normal;color:var(--label)}
/* ============ round 22 ============ */
/* phone demo: the thread sits right under the action card, like the side column on desktop; the file follows */
@media (max-width:1000px){.dr-demo-on #drMsgs{order:2}.dr-demo-on #drOff{order:3}.dr-demo-on #drFile{order:4}}
.f-held b.f-long{font-size:clamp(26px,2.5vw,36px)}.f-held b.f-xlong{font-size:clamp(22px,2.1vw,30px)}.f-held-out b{overflow-wrap:anywhere}

/* round 22: phones keep the deal in sight. One thin line sticks under the nav: the item, the price, what is held. */
.dr-bar{display:none}
@media (max-width:1000px){
  .dr-bar:not([hidden]){position:sticky;top:var(--navh,58px);z-index:30;display:flex;align-items:baseline;gap:7px;margin:-10px calc(-1 * var(--gut)) 12px;padding:8px var(--gut) 8px;background:var(--bg);border-bottom:1px solid var(--line);font:500 12px/1.3 var(--mono);letter-spacing:-.01em;color:var(--ink2);white-space:nowrap;font-variant-numeric:tabular-nums}
  .dr-bar b{min-width:0;overflow:hidden;text-overflow:ellipsis;font:500 13.5px/1.3 var(--sans);letter-spacing:-.01em;color:var(--ink)}
  .dr-bar i{font-style:normal;color:var(--mute)}
  .dr-bar span{flex:0 0 auto}
  .dr-bar-st.on{color:var(--go)}
  /* anything the page jumps to lands below the nav and the bar */
  #drMsgs,#drFile,#drAct,#drOff{scroll-margin-top:calc(var(--navh,58px) + 48px)}
  /* the thread's newest lines scroll up under a soft edge, never a hard cut through a name line */
  .dm-scroll{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 18px);mask-image:linear-gradient(to bottom,transparent 0,#000 18px)}
}
/* round 22 WOW: the invite banner ("<name> invited you to a $X deal for <asset>, held by middleman") with their drafted terms */
.dr-invite{display:block}
.dr-inv-h{margin:0;font-size:16px;line-height:1.45;color:var(--ink)}
.dr-inv-h b{font-weight:500}
.dr-inv-t{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 18px;margin:12px 0 0}
.dr-inv-t div{min-width:0}
.dr-inv-t dt{font:10.5px var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--label)}
.dr-inv-t dd{margin:2px 0 0;font-size:13.5px;line-height:1.4;color:var(--ink)}
.dr-inv-s{margin:10px 0 0;font-size:13px;color:var(--ink2)}
@media (max-width:760px){.dr-inv-t{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.dr-inv-t div:first-child{grid-column:1/-1}}
/* round 22: in the demo on phones the thread is part of the page (no box of its own to scroll), so no line is ever cut at its top */
@media (max-width:1000px){.dr-demo-on .dm-scroll,.dr-demo-on .dr-side .dm-scroll{max-height:none;-webkit-mask-image:none;mask-image:none}}
/* round 23: a demo link without the visitor's name asks for it on the bar, so they sign as themselves */
.dr-demo-name{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0;max-width:560px}
.dr-demo-name .dr-in{flex:1 1 240px;width:auto;padding:10px 14px}
.dr-demo-name .btn{flex:0 0 auto}
.dr-demo-name .dr-err{flex-basis:100%;margin:0}
.dr-demo-name .dr-err:empty{display:none}
.dr-demo-as{margin:12px 0 0;font-size:13.5px;color:var(--ink2)}
.dr-demo-as b{font-weight:500;color:var(--ink)}
/* round 23 WOW: the receipt, both sides. Two copies side by side, one stamp: same file, same millisecond, same officer */
.dr-pair{margin:18px 0 0;padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:20px}
.dr-pair[hidden]{display:none}
.dr-pair-h{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 16px;margin-bottom:14px}
.dr-pair-h .f-k{margin:0;color:var(--go)}
.dr-pair-s{margin:0;font-size:13.5px;color:var(--ink2);max-width:440px}
.dr-pair-g{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.rp-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:16px 16px 14px;border:1px solid var(--line);border-radius:14px;background:var(--bg)}
.rp-card.rp-you{background:#fff;border-color:var(--ink)}
.rp-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:22px}
.rp-who{font:500 11px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--ink)}
.rp-you .rp-who{background:var(--ink);color:#fff;border-radius:99px;padding:3px 9px}
.rp-side{font:10.5px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--label)}
.rp-name{margin:10px 0 8px;font-weight:500;font-size:16px;letter-spacing:-.01em;overflow-wrap:anywhere}
.rp-dl{margin:0;display:grid;gap:0}
.rp-dl div{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-top:1px solid var(--line2);font-size:13px}
.rp-dl dt{color:var(--ink2)}
.rp-dl dd{margin:0;text-align:right;font:500 12.5px var(--mono);letter-spacing:-.02em;color:var(--ink);min-width:0;overflow-wrap:anywhere}
.rp-t{margin:8px 0 0;padding:10px 12px;border-radius:10px;background:var(--go-soft);display:flex;flex-direction:column;gap:2px}
.rp-t span{font:10.5px var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--go)}
.rp-t time{font:500 18px var(--mono);letter-spacing:-.03em;color:var(--ink);font-variant-numeric:tabular-nums}
.rp-t time em{font-style:normal;color:var(--go)}
.rp-t time small{font:11px var(--mono);color:var(--ink2);letter-spacing:0}
.rp-foot{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:12px;line-height:1.3;color:var(--ink2)}
.rp-seal{flex:0 0 auto;width:38px;height:38px;border-radius:50%;border:1.5px solid var(--go);color:var(--go);display:grid;place-items:center;font:italic 400 15px/1 var(--serif);letter-spacing:.04em;transform:rotate(-8deg)}
.rp-signed{display:block;margin:-4px 0 6px}
.rp-sig{display:block;width:110px;height:30px;margin-top:2px}
.rp-sig path{fill:none;stroke:var(--ink);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.dr-pair-act{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:14px}
.dr-pair-msg{margin:0;font:12px/1.5 var(--mono);color:var(--ink2);overflow-wrap:anywhere;flex:1 1 220px}
.dr-pair-msg:empty{display:none}
@media (max-width:560px){
  .dr-pair{padding:14px;border-radius:16px}
  .dr-pair-g{gap:8px}
  .rp-card{padding:12px 10px 10px;border-radius:12px}
  .rp-name{font-size:14px}
  .rp-dl div{flex-direction:column;gap:1px;padding:5px 0}
  .rp-dl dd{text-align:left}
  .rp-t{padding:8px}
  .rp-t time{font-size:14.5px}
  .rp-foot{gap:7px;font-size:11px}
  .rp-seal{width:30px;height:30px;font-size:12px}
  .rp-sig{width:80px;height:24px}
  .dr-pair-send{width:100%;justify-content:center}
}
/* ============ round 25 ============ */
/* phone demo: the deal file leads, so the checks, the release and the stamp are seen as they land; the next step and
   the thread follow it. The receipts (#drPair) stay right under the file. */
@media (max-width:1000px){.dr-demo-on #drFile{order:0}.dr-demo-on #drPair{order:0}.dr-demo-on #drAct{order:1}.dr-demo-on #drMsgs{order:2}.dr-demo-on #drOff{order:3}}

/* ============ round 26: the phone demo leads with the live file ============ */
.dr-why-t{display:none}
@media (max-width:1000px){
  /* one progress bar on phones: the steps under the deal bar (the card's own line would disagree with it) */
  .dr-demo-prog{display:none}
}
@media (max-width:700px){
  .dr-demo{gap:8px 10px;margin-bottom:14px;padding:10px 12px 12px}
  .dr-demo-pill{font-size:10.5px;padding:5px 9px}
  .dr-demo-step{order:2;flex-basis:100%}
  .dr-demo-ctl{order:3}
  /* the story folds to one line with a Terms toggle; the drafted terms are on the file right below */
  .dr-demo-why{order:4;padding-top:8px;min-width:0;max-width:100%}
  .dr-demo-why:not(.open){display:flex;align-items:center;gap:10px}
  .dr-demo-why:not(.open)>:not(.dr-inv-h):not(.dr-why-t):not(.dr-demo-name):not(.dr-demo-as){display:none}
  .dr-demo-why:not(.open) .dr-inv-h{flex:1 1 auto;min-width:0;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink2)}
  .dr-why-t{display:inline-flex;align-items:center;flex:none;min-height:36px;padding:0 12px;border:1px solid var(--line);border-radius:99px;background:var(--paper);font:500 12.5px var(--sans);color:var(--ink);cursor:pointer}
  .dr-demo-why.open .dr-why-t{margin:8px 0 4px}
}

/* round 27: honest preview desk. One quiet tag on the officer card and on officer lines, one line on the cards the desk moves */
.off-sim{display:inline-flex;align-items:center;gap:6px;margin-top:6px;font:500 10px var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--label)}
.off-sim::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--hold)}
.dm-sim{font:10px var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--label)}
.dr-auto{margin-top:12px;padding:10px 12px;border-radius:10px;background:var(--bg);font-size:13px!important;line-height:1.5!important;color:var(--ink2)!important}
.dr-auto-k{display:block;margin-bottom:3px;font:500 10px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:#8a5d06}
.dr-auto b{color:var(--ink);font-weight:500}
/* round 27: the creator waiting for the other side: the next step (and the one invite link) leads the side column and the phone */
body.dr-desk #drAct{order:-1}
@media (max-width:1000px){body.dr-desk #drAct{order:0}}

/* round 28: the inspection window (countdown + the rule), Accept / Raise a problem, the ruling in the Refunded card,
   and the phone steps on a refund (Disputed, then Refunded: never Verified or Released in green) */
.dr-acts{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
.dr-acts .btn{flex:1 1 140px}
.dr-win{margin-top:14px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.dr-win .f-k{display:block}
.dr-win .dr-cd{display:block;margin:4px 0 6px;font:500 22px var(--mono);letter-spacing:-.03em;color:var(--ink);font-variant-numeric:tabular-nums}
.dr-win small{display:block;font-size:12.5px;line-height:1.45;color:var(--ink2)}
.dr-win-r{margin-top:12px!important;font-size:13px!important;line-height:1.45!important;color:var(--ink2)!important}
.dr-win-r .f-k{display:block;margin-bottom:2px}
.dr-ruling{margin:12px 0;padding:10px 12px;border-radius:10px;background:var(--bg)}
.dr-ruling p{margin:0!important;font-size:13.5px;line-height:1.45;color:var(--ink)}
.dr-steps li.disp{color:#8a5d06}
.dr-steps li.disp::before{background:var(--hold)}
.dr-steps li.ref{color:var(--ink);font-weight:500}
.dr-steps li.ref::before{background:var(--ink2)}
.dr-gone-alt{font-size:13.5px;margin-top:18px!important}
.dr-gone-alt a{color:var(--ink2)}
@media (max-width:560px){.dr-acts .btn{min-height:44px}}
/* round 29: one line per open desk check with its time, and the carry-on ruling on the main card */
.dr-next ul{list-style:none;margin:2px 0 6px;padding:0}
.dr-next li{display:flex;flex-direction:column;padding:5px 0;border-top:1px dashed var(--line2,#e4e3dd)}
.dr-next li:first-child{border-top:0}
.dr-next li small{font-size:12px;color:var(--mute,#76767d)}
.dr-next p{margin:4px 0 0!important;font-size:12.5px!important;line-height:1.45!important;color:var(--ink2)!important}
.dr-dismissed{margin-top:0}
.dr-dismissed b{font-weight:600}
/* round 29: phones give the message time its own line, so the name and the tags never wrap into it */
@media (max-width:560px){.dm-meta{flex-wrap:wrap;row-gap:3px}.dm-meta b,.dm-badge,.dm-sim,.dm-pv{white-space:nowrap}.dm-meta time{flex-basis:100%}}

/* ============ round 31: phones ============ */
@media (max-width:560px){
  /* the composer sits in the Messages card's own flow, never pinned over the thread or the file (it was sticky to the screen
     bottom and covered the newest lines and the deal file while the card was half in view); focus still lifts it above the keyboard */
  .dm-form{position:static;z-index:auto;margin:12px -16px -16px}
  /* the nav in an open deal: one line. Dot + SIMULATED, then the MM number and the side; a practice run shows its badge in place of the side */
  .dr-top{gap:10px;white-space:nowrap;flex-wrap:nowrap;min-width:0}
  .dr-live .dr-lf,.dr-yl{display:none}
  .dr-who{display:inline;white-space:nowrap}
  #drWho .dr-no{display:inline;color:var(--ink);font-weight:500}
  #drWho .dr-prac{display:inline-block;margin-left:4px;font-size:11px;padding:3px 7px;vertical-align:0}
  #drWho.dr-who-p .dr-sep,#drWho.dr-who-p .dr-me{display:none}
  /* with the "Deals" pill (other deals in this browser) the row is tighter still, so it never runs into the wordmark */
  .dr-top:has(.mm-mine){gap:7px}
  .dr-top:has(.mm-mine) #drWho .dr-prac{padding:3px 5px;letter-spacing:.05em;margin-left:3px}
}

/* round 36: the desk list. Dates never wrap; on phones each deal is a small two-line row (file + status, asset, value + time) */
.dk-list td:last-child{white-space:nowrap}
@media (max-width:640px){
  .dk-list,.dk-list tbody{display:block}
  .dk-list thead{display:none}
  .dk-list tr{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:14px 16px;border-bottom:1px solid var(--line2)}
  .dk-list tr:last-child{border-bottom:0}
  .dk-list td{display:block;padding:0;border:0}
  .dk-list td:nth-child(1){grid-column:1;grid-row:1}
  .dk-list td:nth-child(3){grid-column:2;grid-row:1;text-align:right}
  .dk-list td:nth-child(2){grid-column:1/-1;grid-row:2;color:var(--ink)}
  .dk-list td:nth-child(6){grid-column:1;grid-row:3;color:var(--mute)}
  .dk-list td:nth-child(7){grid-column:2;grid-row:3;text-align:right;color:var(--mute)}
  .dk-list td:nth-child(4),.dk-list td:nth-child(5){display:none}
}
.dr-live .dr-lf{margin-left:.28em}

/* round 41: Demo chip beside the wordmark on every room screen; "Money is simulated" in full on wider screens */
.nav-l{display:flex;align-items:center;gap:10px}
.dr-top{font-family:var(--sans);letter-spacing:0;text-transform:none;font-size:14px}
.dr-live>span[data-s]{color:var(--mute)}
@media (max-width:560px){
  .nav-l{gap:7px}
  .nav-l .nav-demo{font-size:11.5px;padding:4px 6px 3px}
  .dr-top{font-size:12.5px}
  .dr-live>span[data-s]{font-size:0}
  .dr-live>span[data-s]::after{content:attr(data-s);font-size:12.5px}
}
/* the asset, in dots, under the terms: fills the room the signatures leave */
.dr-file .f-grid>.f-blk{display:flex;flex-direction:column}
.f-art{position:relative;flex:0 0 auto;height:200px;margin:28px 0 auto;border-radius:12px;background:var(--soft)}
.f-art canvas{position:absolute;inset:14px 18px;width:calc(100% - 36px);height:calc(100% - 28px)}
@media (max-width:900px){.f-art{display:none}}
.f-art:empty{display:none}
.dr-file .f-blk header h2{font:600 16px/1.2 var(--display);letter-spacing:-.02em;color:var(--ink)}
.dr-file .f-blk header .f-n{font-size:12.5px}

/* round 42: before release the 04 block is a quiet future state (grey, smaller, dashed frame); it goes big and ink only
   when the deal actually releases */
.dr-file .f-tr{transition:color .5s,font-size .5s}
.dr-file:not([data-st="4"]) .f-rel::before{content:"";position:absolute;inset:-10px 0 -8px;border:1px dashed var(--ghost);border-radius:12px;pointer-events:none}
.dr-file:not([data-st="4"]) .f-tr{color:var(--mute);background:transparent}
.dr-file:not([data-st="4"]) .f-tr-m{font-size:clamp(20px,1.9vw,26px)}
.dr-file:not([data-st="4"]) .f-tr-t{font-size:clamp(16px,1.4vw,19px)}
/* the terms get more of the file's width at desktop, so a term wraps to two lines, not three */
@media (min-width:1001px){
  .dr-file .f-grid{grid-template-columns:1.3fr 1fr}
  .dr-file .f-terms>div{grid-template-columns:96px 1fr}
  .dr-grid{grid-template-columns:minmax(0,1fr) 340px}
}
/* round 89: 1001-1200px the file column is too narrow for two sub-columns ("Account MM-x . this deal only" and the checks wrapped), so the file stacks: Terms, then Funds held, then Verified, each full width */
@media (min-width:1001px) and (max-width:1200px){
  .dr-file .f-grid{grid-template-columns:minmax(0,1fr)}
  .dr-file .f-grid>.f-blk{padding-right:0;border-right:0}
  .dr-file .f-col>.f-blk{padding-left:0;border-top:1px solid var(--line2)}
  .dr-file .f-art{height:170px}
  /* round 91: the full-width art tile read large and empty here; the asset now sits beside the terms table as a compact exhibit */
  .dr-file .f-blk[data-blk="1"]:has(>.f-art:not(:empty)){display:grid;grid-template-columns:minmax(0,1fr) clamp(150px,calc(100vw - 850px),188px);column-gap:clamp(20px,calc(100vw - 975px),28px);align-items:start}
  .dr-file .f-blk[data-blk="1"]:has(>.f-art:not(:empty))>*{grid-column:1/-1}
  .dr-file .f-blk[data-blk="1"]:has(>.f-art:not(:empty))>.f-terms{grid-column:1;grid-row:2}
  .dr-file .f-blk[data-blk="1"]:has(>.f-art:not(:empty))>.f-art{grid-column:2;grid-row:2;align-self:stretch;height:auto;min-height:150px;margin:0}
}

/* round 49: the locked desk. One centred sign-in, the demo line under it, the home page's dot floor at the bottom */
.dk-floor{display:none}
body.dk-locked{min-height:100vh;min-height:100svh;display:flex;flex-direction:column}
body.dk-locked .dr-main{flex:1 0 auto;width:100%}
body.dk-locked .dr-main>.dr-sim{display:none}
body.dk-locked .dk-floor{display:block;width:100%;height:clamp(150px,24vh,250px);flex:0 0 auto}
.dk-locked .dk-key{max-width:440px;margin:clamp(32px,11vh,120px) auto 0;padding:32px 32px 30px;border-radius:18px}
.dk-locked .dk-key h3{font:600 32px/1.1 var(--display);letter-spacing:-.035em;color:var(--ink);margin:0 0 10px}
.dk-locked .dk-key>p{font-size:15px;line-height:1.5;color:var(--ink2);margin:0 0 22px}
.dk-locked .dk-key .dr-form{display:flex;flex-direction:column;gap:10px}
.dk-locked .dk-key .dr-in{height:48px;font-size:15px}
.dk-locked .dk-key .btn{height:48px;width:100%;justify-content:center}
.dk-key-sim{display:flex;align-items:center;justify-content:center;gap:8px;margin:18px auto 0;font-size:13.5px;color:var(--mute)}
.dk-key-sim i{width:6px;height:6px;border-radius:50%;background:var(--hold)}
@media (max-width:560px){.dk-locked .dk-key{margin-top:28px;padding:24px 20px 22px}.dk-locked .dk-key h3{font-size:28px}body.dk-locked .dk-floor{height:150px}}
/* round 63: the phone room's top bar, simplified. The wordmark and the Demo chip on the left; on the right a two-line stack:
   the file number and your side ("MM-4182 · buyer", so a deal link says at a glance which side you are), and "Money is
   simulated" in full under it; the Deals pill (other deals in this browser) sits before the stack */
@media (max-width:560px){
  .dr-top{display:grid;justify-items:end;align-items:center;row-gap:5px;column-gap:8px;line-height:1}
  .dr-top>#drWho{grid-row:1}
  .dr-top>.dr-live{grid-row:2}
  .dr-top:has(.mm-mine)>#drWho,.dr-top:has(.mm-mine)>.dr-live{grid-column:2}
  .dr-top>.mm-mine{grid-column:1;grid-row:1/3}
  #drWho .dr-sep,#drWho .dr-me{font:500 14px/1 var(--sans);color:var(--ink2)}
  #drWho.dr-who-p .dr-sep,#drWho.dr-who-p .dr-me{display:none}
  #drWho .dr-no{font:600 14px/1 var(--sans);letter-spacing:-.01em;font-variant-numeric:tabular-nums}
  .dr-top .dr-live,.dr-top:has(.mm-mine) .dr-live{font-size:11.5px}
  .dr-live i{width:6px;height:6px;margin-right:5px}
  .dr-live>span[data-s]{font-size:11.5px}
  .dr-live>span[data-s]::after{content:none}
}
/* round 64: the desk's phone bar matches the room bar: "Desk, locked" (or "MM-4182, all deals") over a dot and "Money is
   simulated"; desktop keeps the dot + "Desk" and the long line */
.dk-ws,.dk-lm{display:none}
@media (max-width:560px){
  .dk-wl,.dk-ld{display:none}
  .dk-ws,.dk-lm{display:inline}
  .dr-top .dk-lm{color:var(--mute)}
  #drWho a.dr-me{color:var(--ink2);text-decoration:none}
}
/* round 64: a practice room on a phone keeps its side next to the Practice badge ("MM-2058 Â· buyer Practice") when the
   bar has room; with the Deals pill in the bar the badge stands alone, as before */
@media (max-width:560px){
  .dr-top:not(:has(.mm-mine)) #drWho.dr-who-p .dr-sep,.dr-top:not(:has(.mm-mine)) #drWho.dr-who-p .dr-me{display:inline}
}
/* round 71: the signed-in desk reads like the public pages: a page head, one toolbar row, status dots, one next move per card */
.dk-head{margin:6px 0 22px}
.dk-head h2{font:600 40px/1.05 var(--display);letter-spacing:-.035em;color:var(--ink);margin:0}
.dk-head p{font-size:15px;color:var(--ink2);margin:8px 0 0}
.dk-bar{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.dk-bar select.dr-in{flex:0 1 280px;width:auto;height:42px;padding:0 12px;font-size:14.5px;border-radius:10px;cursor:pointer}
.dk-count{margin-left:auto;font-size:13.5px;color:var(--mute);white-space:nowrap}
.dk-pg{display:flex;gap:8px;flex:0 0 auto}
.dk-st{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;color:var(--ink2)}
.dk-st::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--line);flex:0 0 auto}
.dk-st-act{color:var(--ink);font-weight:600}
.dk-st-act::before{background:var(--hold)}
.dk-act h3{margin-bottom:4px}
.dk-next{font-size:14px;line-height:1.45;color:var(--ink2);margin:0 0 10px}
.dk-act .dk-contacts{margin:0 0 14px;padding-top:10px;border-top:1px solid var(--line2)}
.dk-done{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--go);margin:0}
.dk-done i{width:6px;height:6px;border-radius:50%;background:var(--go)}
.dk-done time{color:var(--mute);margin-left:auto;font-size:13px}
.dk-act .dk-checks{margin:12px 0 14px}
.dk-act .btn{width:100%;justify-content:center}
.dk-act .btn-line:disabled{opacity:1;color:var(--mute);background:transparent}
.dk-dsp{border-color:color-mix(in srgb,var(--hold) 45%,var(--line))}
@media (max-width:560px){
  .dk-head{margin:0 0 16px}.dk-head h2{font-size:30px}.dk-head p{font-size:14px}
  .dk-bar{gap:10px;flex-wrap:wrap}.dk-bar select.dr-in{flex:1 1 0;min-width:0}
  .dk-pg{flex:1 1 100%}.dk-pg .btn{flex:1}
}
/* round 71 b (coordinator): disputes are the amber hold pill, funds sent reads ok, a stat strip on top, the floor under the list */
.dk-st-ok::before{background:var(--go)}
.dk-st-dsp{padding:4px 10px 4px 8px;border-radius:999px;background:#fbf0d9;color:#7a4f00}
.dk-st-dsp::before{background:var(--hold);box-shadow:0 0 0 3px rgba(192,138,26,.22)}
.dk-val{white-space:nowrap}
.dk-val small{display:block;font-size:12.5px;color:var(--mute);margin-top:2px}
.dk-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 0 22px}
.dk-stats>div{border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:#fff}
.dk-stats dt{font-size:13px;color:var(--ink2)}
.dk-stats dd{font:600 28px/1.1 var(--display);letter-spacing:-.03em;color:var(--ink);margin:6px 0 0;display:flex;align-items:baseline;gap:8px}
.dk-stats dd small{font:400 12.5px var(--sans);letter-spacing:0;color:var(--mute)}
.dk-stats .dk-stat-dsp{background:#fbf0d9;border-color:rgba(192,138,26,.35)}
.dk-stats .dk-stat-dsp dt{color:#7a4f00}
body.dk-listv{min-height:100vh;min-height:100svh;display:flex;flex-direction:column}
body.dk-listv .dr-main{flex:1 0 auto;width:100%}
body.dk-listv .dk-floor{display:block;width:100%;height:clamp(150px,22vh,230px);flex:0 0 auto;margin-top:40px}
@media (max-width:560px){
  .dk-stats{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px}
  .dk-stats>div{padding:12px 14px}.dk-stats dd{font-size:22px}
  .dk-val small{display:inline;margin:0 0 0 6px}
  body.dk-listv .dk-floor{height:130px;margin-top:28px}
}
/* round 72: the room's right column at desktop. The private link, notifications and "raise a dispute" were three separate
   cards with a full-width button row each; now each heading shares its row with a compact button and the three join into
   one card with hairline seams (where :has is supported; elsewhere they stay separate cards) */
@media (min-width:1001px){
  .dr-side #drKey:not([hidden]),.dr-side #drPush:not([hidden]){display:grid;grid-template-columns:1fr auto;column-gap:12px;align-items:center;padding:16px 20px}
  .dr-side .dr-key .f-k,.dr-side .dr-push .f-k{grid-column:1;grid-row:1;margin:0}
  .dr-side .dr-card .dr-key-b,.dr-side .dr-card .dr-push-b{grid-column:2;grid-row:1;width:auto;margin:0!important;height:32px;padding:0 11px;font-size:13.5px}
  .dr-side .dr-key-t,.dr-side .dr-push-h{grid-column:1/-1;grid-row:2;margin-top:8px;font-size:14.5px}
  .dr-side .dr-key-s,.dr-side .dr-push-s{grid-column:1/-1;grid-row:3;margin-top:4px}
  .dr-side #drKey:not([hidden]):has(+ #drPush:not([hidden])),
  .dr-side #drKey:not([hidden]):has(+ #drPush[hidden] + #drDisp > .dr-dispute),
  .dr-side #drPush:not([hidden]):has(+ #drDisp > .dr-dispute){border-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}
  .dr-side #drKey:not([hidden]) + #drPush:not([hidden]){margin-top:-14px;border-top-color:var(--line2);border-top-left-radius:0;border-top-right-radius:0}
  .dr-side #drPush:not([hidden]) + #drDisp:has(> .dr-dispute),
  .dr-side #drKey:not([hidden]) + #drPush[hidden] + #drDisp:has(> .dr-dispute){margin-top:-14px}
  .dr-side #drPush:not([hidden]) + #drDisp > .dr-dispute,
  .dr-side #drKey:not([hidden]) + #drPush[hidden] + #drDisp > .dr-dispute{border-top-color:var(--line2);border-top-left-radius:0;border-top-right-radius:0;padding:13px 20px}
}
@media (min-width:1001px){.dr-side .dr-key-t,.dr-side .dr-push-h{text-wrap:balance;max-width:none}}
/* r73: the step card's lead line is balanced, so it never ends on a lone word; at >=1001px the room's nav already says
   Demo + "Money is simulated", so the line above the file goes (it stays on phones, on the desk, and while the nav says Reconnecting) */
#drAct>h3+p{text-wrap:pretty}
@media (min-width:1001px){body[data-page="party"]:has(#drLive:not(.off)) .dr-main>.dr-sim{display:none}}
/* round 78: desk action card. Contacts are a two-row list (label, name, handle) in the page's own type, and the checks are
   the room's round marks (green filled with a white tick when passed, hairline ring while open, dashed while locked) */
.dk-act .dk-contacts{display:grid;gap:8px;font:inherit;word-break:normal}
.dk-contacts>div{display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px;align-items:baseline}
.dk-contacts dt{font-size:13px;color:var(--mute)}
.dk-contacts dd{margin:0;font-size:14px;line-height:1.4;color:var(--ink);overflow-wrap:anywhere}
.dk-contacts dd span{margin-left:8px;color:var(--ink2)}
.dk-checks{gap:0}
.dk-checks li+li{border-top:1px dashed var(--line2)}
.dk-checks label{gap:10px;padding:8px 0;line-height:1.4}
.dk-checks label span{flex:1 1 auto;min-width:0}
.dk-checks time{flex:none;font-size:12.5px;color:var(--mute)}
.dk-checks input{-webkit-appearance:none;appearance:none;flex:none;width:18px;height:18px;margin:0;border:1.5px solid var(--ghost);border-radius:50%;background:#fff;cursor:pointer;transition:background-color .15s,border-color .15s}
.dk-checks input:hover:not(:disabled){border-color:var(--ink2)}
.dk-checks input:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.dk-checks input:checked{border-color:var(--go);background:var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.2 9.3l2.5 2.4 5-5.2' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat}
.dk-checks input:disabled{cursor:default}
.dk-checks input:disabled:not(:checked){border-style:dashed}
.dk-checks label:has(input:disabled){cursor:default}
.dk-checks label:has(input:disabled:not(:checked)) span{color:var(--ink2)}
/* r79: the desk's own lines in its thread were heavy solid ink bubbles. Now a soft warm fill with a hairline edge: calm, on
   the page's palette, and still clearly apart from the parties' plain white lines */
.dm-msg.me.desk .dm-text{background:var(--soft);color:var(--ink)!important;border:1px solid var(--line2)}
/* r79: a closed room with no thread: the private link sits under the file as one wide strip (room.js keySpot) */
@media (min-width:1001px){
  .dr-filecol #drKey.dr-key-wide:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;row-gap:4px;align-items:center;padding:20px 24px}
  .dr-filecol .dr-key-wide .f-k{grid-column:1;grid-row:1;margin:0}
  .dr-filecol .dr-key-wide .dr-key-t{grid-column:1;grid-row:2;margin:4px 0 0;font-size:15px}
  .dr-filecol .dr-key-wide .dr-key-s{grid-column:1;grid-row:3;margin:2px 0 0;max-width:56ch}
  .dr-filecol .dr-card .dr-key-b{grid-column:2;grid-row:1/4;width:auto;margin:0!important;height:36px;padding:0 14px;font-size:13.5px}
  .dr-filecol .dr-key-wide .dr-link{grid-column:1/-1;grid-row:4;margin-top:10px}
}
/* r79: with the link moved left, the side column's activity log takes the freed height (it scrolls past that) */
@media (min-width:1201px){.dr-keyw .dr-side .dr-log{max-height:330px}}
/* round 80: the desk filter = a soft segmented row of tabs with counts (replaces the native select) */
.dk-tabs{display:flex;gap:2px;padding:3px;border:1px solid var(--line2);border-radius:12px;background:var(--soft);min-width:0;overflow-x:auto;scrollbar-width:none}
.dk-tabs::-webkit-scrollbar{display:none}
.dk-tab{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 12px;border-radius:9px;font-size:14px;color:var(--ink2);text-decoration:none;white-space:nowrap;flex:0 0 auto;border:1px solid transparent}
.dk-tab span{font-size:12.5px;color:var(--mute);font-variant-numeric:tabular-nums}
.dk-tab:hover{color:var(--ink)}
.dk-tab[aria-current]{background:#fff;color:var(--ink);font-weight:600;border-color:var(--line);box-shadow:0 1px 2px rgba(20,18,12,.06)}
.dk-tab[aria-current] span{color:var(--ink2);font-weight:500}
.dk-tab:focus-visible{outline:2px solid var(--ink);outline-offset:1px}
@media (max-width:560px){
  .dk-tabs{flex:1 1 100%;order:0}.dk-count{order:1;margin-left:0}.dk-tab{padding:0 11px}
}
@media (max-width:560px){.dk-bar:not(:has(.dk-pg)) .dk-count{display:none}}
.dk-tabs{position:relative}
.dk-tabs.dk-tabs-more{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent)}
.dk-tabs.dk-tabs-less{-webkit-mask-image:linear-gradient(90deg,transparent,#000 36px);mask-image:linear-gradient(90deg,transparent,#000 36px)}
.dk-tabs.dk-tabs-less.dk-tabs-more{-webkit-mask-image:linear-gradient(90deg,transparent,#000 36px,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,transparent,#000 36px,#000 calc(100% - 36px),transparent)}
/* round 85: replay polish. The other side's chat lines get a soft bubble (they read as stray text on white), and in the
   scripted demo the action buttons look scripted (dimmed, no pointer) until the script presses them. */
.dm-msg:not(.me):not(.desk) .dm-text{background:var(--soft);border:1px solid var(--line2)}
.dr-demo-on #drAct button[aria-disabled="true"]:not(.dr-press):not([data-receipt]){opacity:.6;cursor:default;pointer-events:none;box-shadow:none}
/* round 86: before release the row's caption, amount and asset are centred, but a long asset name kept the released
   layout's half-width box and left text, so on phones it wrapped left of centre. Until release it is a centred line. */
@media (max-width:560px){.dr-file:not([data-st="4"]) .f-tr-t{text-align:center;width:max-content;max-width:calc(100vw - 120px);padding-left:0}
  .dr-file[data-st="4"] .f-mid{display:none}} /* released on phones: the short line between item and amount is clean (the mid tick sat off-centre) */
@media (max-width:560px){.dr-file:not([data-st="4"]) .f-rel:not(:has(.f-tr-wrap)){height:100px}} /* r86: one-line asset, no empty band under it */
.dr-file[data-st="4"] .f-mid{display:none} /* r86: released, the line runs clean from item to amount at every size (the tick marked the row's centre, not the line's) */
/* r87: beside the file (>=1001px) the sign card no longer repeats the whole terms table that sits in 01 Terms on the
   left; one soft line points at it. Phones and narrow screens keep the full recap (the file is far above there). */
.dr-recap-s{display:none}
@media (min-width:1001px){
  .dr-recap{display:none}
  .dr-recap-s{display:flex;align-items:center;gap:10px;margin:2px 0 14px;padding:0 14px;height:44px;border:1px solid var(--line);border-radius:12px;background:var(--soft);font-size:14px;line-height:1.35;color:var(--ink)}
  .dr-recap-s .dr-recap-n{font:12px/1 var(--mono);color:var(--label);letter-spacing:.04em}
  .dr-recap-s b{margin-left:auto;font-weight:600;white-space:nowrap}
}
/* r87: desk list on tablets. A name, an officer or a status never breaks mid-word ("Henrik / A."); between 641 and
   900px the Officer column steps out (the deal view names the officer) so the asset and the sides get the room. */
.dk-list td:nth-child(3),.dk-list td:nth-child(4),.dk-list .dk-nm{white-space:nowrap}
@media (min-width:641px) and (max-width:900px){
  .dk-list th:nth-child(4),.dk-list td:nth-child(4){display:none}
  .dk-list th,.dk-list td{padding:12px 12px}
  .dk-list th:first-child,.dk-list td:first-child{padding-left:16px}
}
/* r88: phone party row. At 401-560px the side columns get a little more room and an even 12px pad, so the seller's
   "signed 09:29:15" no longer breaks while the buyer's stays on one line. Under 401px three columns cannot hold a name,
   a "you" pill and a stamp (coordinator, mm88d-demo-320): the parties stack as rows, label left, name and stamp
   right, hairlines between, like the terms table below them. */
@media (min-width:401px) and (max-width:560px){
  .dr-file .f-parties{grid-template-columns:minmax(0,1.07fr) minmax(0,.86fr) minmax(0,1.07fr)}
  .dr-file .f-parties>div:nth-child(2){padding-left:12px;padding-right:10px}
  .dr-file .f-parties>div:nth-child(3){padding-left:12px}
}
@media (max-width:400px){
  .dr-file .f-parties{grid-template-columns:minmax(0,1fr)}
  .dr-file .f-parties>div,.dr-file .f-parties>div:nth-child(2),.dr-file .f-parties>div:nth-child(3){display:grid;grid-template-columns:86px minmax(0,1fr) auto;align-items:baseline;column-gap:10px;padding:11px 0;border:0;border-top:1px solid var(--line2)}
  .dr-file .f-parties>div:first-child{border-top:0}
  .dr-file .f-parties .f-k{grid-column:1}
  .dr-file .f-parties b{grid-column:2;min-width:0;flex-wrap:nowrap;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
  .dr-file .f-parties small{grid-column:3;text-align:right;max-width:150px}
  .dr-file .f-parties small.dr-ps{white-space:nowrap;max-width:none}
  .dr-file .f-parties .dr-you{margin-left:6px}
}
/* r88: under 361px "View as" wrapped onto two lines inside the replay's segmented control; the Buyer / Seller toggle
   stays (its radiogroup label says "View the room as"), the visible label steps out. */
@media (max-width:360px){.dr-demo-vl{display:none}}
/* r88: under 361px the stamp drops under the name (one row would cut "Daniel Okafor" short) */
@media (max-width:360px){
  .dr-file .f-parties>div,.dr-file .f-parties>div:nth-child(2),.dr-file .f-parties>div:nth-child(3){grid-template-columns:86px minmax(0,1fr);row-gap:2px}
  .dr-file .f-parties small,.dr-file .f-parties small.dr-ps{grid-column:2;text-align:left;max-width:none}
}
/* round 90: on stacked phone rows (<=400px) "Marco Bellini" + the you pill + the stamp did not fit one row, so the pill was cut
   ("Marco Bellini y..."). The pill moves beside the side's label (Buyer you), the name keeps its row whole. */
.dr-you-k{display:none}
@media (max-width:400px){
  .dr-file .f-parties .f-k{display:flex;align-items:baseline;gap:6px;white-space:nowrap}
  .dr-file .f-parties .dr-you-k{display:inline-block}
  .dr-file .f-parties b .dr-you{display:none}
}
/* round 92: 1001-1200px a wide asset (car, jet) no longer stretches its exhibit to the terms height: a landscape tile centred on the table, the art filling its width */
@media (min-width:1001px) and (max-width:1200px){
  .dr-file .f-blk[data-blk="1"]:has(>.f-art:not(:empty))>.f-art[data-wide]{align-self:center;aspect-ratio:1.3;min-height:0}
  .dr-file .f-art[data-wide] canvas{inset:8px 10px;width:calc(100% - 20px);height:calc(100% - 16px)}
}
/* round 95: a refunded or cancelled file marks the checks it never reached as not run (dashed, muted), not open */
.f-checks li.na{color:var(--mute)}
.f-checks li.na::before{border:1.3px dashed var(--party);background:none}
.dr-cancel b{color:var(--ink2)}
/* round 96: desk view of a refunded or cancelled file: the end line in ink grey, never-run checks muted under their own label */
.dk-done.dk-end{color:var(--ink2)}
.dk-done.dk-end i{background:var(--ink2)}
.dk-done+.dk-done{margin-top:8px}
.dk-checks li.dk-na-k{font-size:12.5px;color:var(--mute);padding:12px 0 2px}
.dk-checks li.dk-na-k+li{border-top:0}
.dk-checks li.na span{color:var(--mute)}
.dk-checks li.na input:disabled:not(:checked){border-color:var(--party)}
