/* Tamra site v2 — Documents & Sign module page (modules/documents.html).
   The Library drawn from src/modules/documents/Library.jsx and FolderArt.jsx, the Sign list from SignApp.jsx and
   SignCeremony.jsx, and the Signature Certificate page from docsLib.js (bakeSignedPdf). Quiet theme.
   Every selector is scoped to a mock-up (.vg-dm, .vg-dmc) or to this page (.dm-…). */

/* ── the Library: tree · path and actions · folders · files ─────────────────────────────────────── */
.vg-dm,.vg-dmc{isolation:isolate}                /* its layers stay under the tour's spotlight */
.vg-dm .page{display:grid;grid-template-columns:236px minmax(0,1fr)}
.vg-dm .dm-lib{display:flex;flex-direction:column;min-height:0;border-right:1px solid rgba(0,0,0,.07)}
.vg-dm .dm-k{padding:14px 12px 6px;font:700 10.5px/1 "Inter",sans-serif;letter-spacing:.07em;text-transform:uppercase;color:#626976}
.vg-dm .dm-tree{flex:1;min-height:0;overflow:hidden;padding:0 8px 8px}
.vg-dm .dm-tr{display:flex;align-items:center;gap:7px;padding:5px 8px;border-radius:8px;font-size:12.5px;font-weight:500;color:#444D5A}
.vg-dm .dm-tr.d1{padding-left:22px}
.vg-dm .dm-tr.on{background:rgba(0,0,0,.06);color:#0F1A2B}
.vg-dm .dm-tr.on b{font-weight:700}
.vg-dm .dm-tr b{flex:1;min-width:0;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vg-dm .dm-tr em{font-size:10.5px;color:#626976;font-variant-numeric:tabular-nums}
.vg-dm .dm-tr .cv{width:12px;display:inline-flex;justify-content:center;color:#626976}
.vg-dm .dm-tr .cv .ic{width:11px;height:11px}
.vg-dm .dm-tr .cv.open .ic{transform:rotate(90deg)}
.vg-dm .dm-tr .art{width:18px;display:grid;place-items:center;color:#626976}
.vg-dm .dm-tr .art .ic{width:14px;height:14px}
.vg-dm .dm-tr .art .glyph{width:15px;height:15px;color:#444D5A}
.vg-dm .dm-exp .art{color:#B45309}
.vg-dm .dm-tree .gap{display:block;height:7px}
.vg-dm .fs{width:18px;height:15px;flex:none;display:block}
.vg-dm .dm-quota{padding:10px 14px 14px;border-top:1px solid rgba(0,0,0,.07);font-size:11.5px;color:#626976}
.vg-dm .dm-quota span b{color:#444D5A;font-weight:700}

.vg-dm .dm-main{display:flex;flex-direction:column;min-width:0;min-height:0}
.vg-dm .dm-bar{display:flex;align-items:center;gap:10px;padding:14px 22px;border-bottom:1px solid rgba(0,0,0,.06)}
.vg-dm .dm-crumb{flex:1;min-width:0;position:relative;height:28px}
.vg-dm .dm-crumb b{position:absolute;left:0;top:0;padding:5px 8px;font:800 17px/18px "Plus Jakarta Sans",sans-serif;letter-spacing:-.01em;color:#0F1A2B;transition:opacity .35s}
.vg-dm .dm-crumb .c-srch{opacity:0}
.vg-dm .dm-srch{position:relative;display:flex;align-items:center;gap:6px;width:240px;height:32px;padding:0 10px;border-radius:10px;border:1px solid rgba(0,0,0,.10);background:#fff;font-size:12.5px;color:#8892A4;transition:border-color .35s}
.vg-dm .dm-srch .ic{width:13px;height:13px;color:#626976;flex:none}
.vg-dm .dm-srch .ph,.vg-dm .dm-srch .q{white-space:pre;transition:opacity .35s}
.vg-dm .dm-srch .q{position:absolute;left:29px;color:#0F1A2B;opacity:0}
.vg-dm .dm-ghost,.vg-dm .dm-pri{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:9px;font:600 12.5px/1 "Inter",sans-serif;white-space:nowrap}
.vg-dm .dm-ghost{border:1px solid rgba(0,0,0,.12);color:#0F1A2B}
.vg-dm .dm-ghost.sm{height:30px}
.vg-dm .dm-pri{padding:0 14px;background:#0F1A2B;color:#fff;font-weight:700}
.vg-dm .dm-ghost .ic,.vg-dm .dm-pri .ic{width:14px;height:14px}
.vg-dm .dm-body{position:relative;flex:1;min-height:0;overflow:hidden}
.vg-dm .dm-all,.vg-dm .dm-find{position:absolute;left:0;right:0;top:0;bottom:0;padding:18px 22px 0;transition:opacity .45s ease,visibility 0s}
.vg-dm .dm-sh{display:flex;align-items:baseline;gap:8px;font:700 10.5px/1 "Inter",sans-serif;letter-spacing:.07em;text-transform:uppercase;color:#626976}
.vg-dm .dm-sh small{font-size:11px;font-weight:400;letter-spacing:0;color:#626976}
.vg-dm .dm-all>.dm-sh{margin-bottom:10px}
.vg-dm .dm-folders{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px;margin-bottom:22px}
.vg-dm .dm-fo{display:flex;flex-direction:column;align-items:center;padding:12px 4px 10px;border-radius:14px;min-width:0}
.vg-dm .dm-fo .fd{width:92px;height:77px;overflow:visible;display:block}
.vg-dm .dm-fo b{max-width:100%;margin-top:8px;padding:0 4px;font:700 13px/1.3 "Plus Jakarta Sans",sans-serif;color:#0F1A2B;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vg-dm .dm-fo small{margin-top:2px;font-size:11px;color:#626976;white-space:nowrap}
.vg-dm .dm-fh{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.vg-dm .dm-fh .dm-sh{flex:1}
.vg-dm .dm-fh .dm-in{margin-left:-2px;font-size:11px;color:#626976;flex:1}
.vg-dm .dm-find .dm-fh .dm-sh{flex:none}
.vg-dm .dm-seg{display:inline-flex;padding:3px;border-radius:10px;background:rgba(0,0,0,.05);border:1px solid rgba(0,0,0,.08)}
.vg-dm .dm-seg span{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border-radius:8px;font:500 12px/1 "Inter",sans-serif;color:#626976}
.vg-dm .dm-seg .ic{width:13px;height:13px}
.vg-dm .dm-seg .on{background:#fff;color:#0F1A2B;font-weight:700;box-shadow:0 1px 2px rgba(15,23,42,.1)}
.vg-dm .sw{display:inline-grid}
.vg-dm .sw>span{grid-area:1/1}
.vg-dm .sw .n1{opacity:0}

/* the file list (SmartTable, List view) */
.vg-dm .dm-tbl{border:1px solid rgba(0,0,0,.08);border-radius:12px;overflow:hidden;background:#fff}
.vg-dm .dm-th,.vg-dm .dm-tr2{display:grid;grid-template-columns:26px minmax(0,2.6fr) minmax(0,1.95fr) minmax(0,1.1fr) 76px minmax(0,1fr) 78px;gap:12px;align-items:center;padding:0 14px}
.vg-dm .dm-th{height:36px;background:#FBFCFE;border-bottom:1px solid rgba(0,0,0,.07);font:700 10px/1 "Inter",sans-serif;letter-spacing:.05em;text-transform:uppercase;color:#626976}
.vg-dm .dm-tr2{height:45px;border-bottom:1px solid rgba(0,0,0,.06);font-size:12px;color:#444D5A;white-space:nowrap}
.vg-dm .dm-tr2>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.vg-dm .r{text-align:right;font-variant-numeric:tabular-nums}
.vg-dm .mut{color:#8892A4}
.vg-dm .st .ic{width:14px;height:14px;color:#9AA3AF}
.vg-dm .st.on .ic{color:#0F1A2B;fill:#0F1A2B}
.vg-dm .nm{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:600;color:#0F1A2B}
.vg-dm .nm i,.vg-dm .nm2 i{flex:none;width:26px;height:26px;border-radius:7px;display:grid;place-items:center;background:rgba(0,0,0,.05);border:1px solid rgba(0,0,0,.08);
  font:800 7.5px/1 "Inter",sans-serif;letter-spacing:.04em;font-style:normal;color:#444D5A}
.vg-dm .xd{display:flex;align-items:center;gap:6px;font-size:12px;color:#444D5A}
.vg-dm .xp{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;font:700 10.5px/1.45 "Inter",sans-serif;font-style:normal;white-space:nowrap}
.vg-dm .xp .ic{width:10px;height:10px}
.vg-dm .xp.a{background:#FFF7ED;color:#B45309}
.vg-dm .xp.r{background:#FEF2F2;color:#B91C1C}
.vg-dm .xp .t1,.vg-dm .xp .t2{display:inline-block;overflow:hidden;white-space:nowrap;vertical-align:bottom}
.vg-dm .xp .t1{max-width:0}
.vg-dm .xp .t2{max-width:140px}
.vg-dm .tg{display:inline-block;margin-right:4px;padding:2px 8px;border-radius:999px;background:rgba(0,0,0,.06);font-size:11px;font-weight:600;font-style:normal;color:#444D5A}
.vg-dm .dm-new{background:rgba(30,142,90,.05)}
/* search results: the Folder column, and the words found inside */
.vg-dm .dm-th.s,.vg-dm .dm-tr2.s{grid-template-columns:26px minmax(0,3.6fr) minmax(0,1fr) minmax(0,1.7fr) minmax(0,1fr) 70px 64px}
.vg-dm .dm-tr2.s{height:58px}
.vg-dm .nm2{display:flex;align-items:center;gap:9px}
.vg-dm .nm2>span{min-width:0}
.vg-dm .nm2 b{display:block;font-size:13px;font-weight:600;color:#0F1A2B;overflow:hidden;text-overflow:ellipsis}
.vg-dm .nm2 small{display:block;margin-top:2px;font-size:11.5px;color:#626976;overflow:hidden;text-overflow:ellipsis}
.vg-dm .nm2 u{text-decoration:none;font-weight:700;color:#0F1A2B;background:rgba(0,0,0,.10);border-radius:3px;padding:0 2px}
.vg-dm .fl{display:flex;align-items:center;gap:6px}
.vg-dm .dm-find{opacity:0;visibility:hidden;transition:opacity .45s ease,visibility 0s .45s}

/* Sign, laid over the Library (SignApp.jsx list row + the signers of SignCeremony.jsx) */
.vg-dm .dm-sign{position:absolute;z-index:4;right:22px;bottom:20px;width:452px;padding:16px;border-radius:16px;background:#fff;border:1px solid #D6DEE8;
  box-shadow:0 24px 50px -16px rgba(15,26,43,.35),0 2px 6px rgba(15,26,43,.06);transition:opacity .45s ease,transform .45s ease,visibility 0s}
.vg-dm .sg-h b{display:block;font:800 17px/1 "Plus Jakarta Sans",sans-serif;color:#0F1A2B}
.vg-dm .sg-h span{display:block;margin-top:5px;font-size:11.5px;color:#626976}
.vg-dm .sg-req{display:flex;align-items:center;gap:12px;margin-top:12px;padding:12px 13px;border-radius:13px;border:1px solid rgba(0,0,0,.08)}
.vg-dm .sg-ic{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:rgba(244,63,94,.12);color:#F43F5E}
.vg-dm .sg-ic .ic{width:16px;height:16px}
.vg-dm .sg-tt{flex:1;min-width:0}
.vg-dm .sg-tt b{display:block;font-size:13.5px;font-weight:750;color:#0F1A2B}
.vg-dm .sg-tt small{display:flex;flex-wrap:wrap;align-items:center;gap:2px 5px;margin-top:2px;font-size:10.5px;line-height:1.45;color:#626976;white-space:nowrap}
.vg-dm .sg-tt small i{font-style:normal}
.vg-dm .sg-tt .u{display:inline-flex;align-items:center;gap:4px}
.vg-dm .sg-tt .ic{width:10px;height:10px}
.vg-dm .sg-pill{position:relative;display:inline-grid;flex:none}
.vg-dm .sg-pill>span{grid-area:1/1;display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:8px;font:800 10px/1.4 "Inter",sans-serif;white-space:nowrap}
.vg-dm .sg-pill>span i{width:5px;height:5px;border-radius:3px;background:currentColor}
.vg-dm .sg-pill .p1{color:#F59E0B;background:#F59E0B14;border:1px solid #F59E0B28;opacity:0}
.vg-dm .sg-pill .p2{color:#10B981;background:#10B98114;border:1px solid #10B98128;justify-self:end}
.vg-dm .sg-who{display:flex;align-items:center;gap:8px;margin-top:6px;padding:6px 6px;border-radius:9px;font-size:12.5px}
.vg-dm .sg-who .dt{flex:none;width:7px;height:7px;margin:0 2px 0 3px;border-radius:4px;background:var(--c)}
.vg-dm .sg-who b{font-weight:600;color:#0F1A2B}
.vg-dm .sg-who small{flex:1;font-size:11px;color:#8892A4}
.vg-dm .sg-who em{display:inline-grid;font:800 9px/1.3 "Inter",sans-serif;font-style:normal;border-radius:6px;padding:2px 7px}
.vg-dm .sg-who em.ok,.vg-dm .sg-who em.pd{color:#10B981;background:#10B98116;border:1px solid #10B98130}
.vg-dm .sg-who em span{grid-area:1/1;transition:opacity .3s}
.vg-dm .sg-who em .c1{opacity:0}

/* phones see a 720px crop from --fx: the request moves up beside the folders, so the dates below stay in view */
@media (max-width:760px){
  .vg-dm .dm-sign{right:auto;bottom:auto;left:calc(var(--fx) + 186px);top:118px}      /* .page starts after the 70px rail */
}

/* the file's panel (DetailsPane: Details · Versions) */
.vg-dm .dm-pane{position:absolute;z-index:5;top:0;right:0;bottom:0;width:384px;display:flex;flex-direction:column;background:#fff;border-left:1px solid rgba(0,0,0,.08);
  box-shadow:-18px 0 40px -18px rgba(15,26,43,.22);opacity:0;visibility:hidden;transform:translateX(24px);transition:opacity .45s ease,transform .5s cubic-bezier(.2,.7,.2,1),visibility 0s .5s}
.vg-dm .pn-h{display:flex;align-items:flex-start;gap:12px;padding:18px 20px 12px}
.vg-dm .kb{flex:none;width:44px;height:44px;border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:rgba(0,0,0,.05);
  border:1px solid rgba(0,0,0,.08);font:800 8.5px/1 "Inter",sans-serif;letter-spacing:.04em;color:#444D5A}
.vg-dm .kb .ic{width:18px;height:18px;color:#626976}
.vg-dm .pn-h div{flex:1;min-width:0}
.vg-dm .pn-h b{display:block;font:800 16px/1.3 "Plus Jakarta Sans",sans-serif;color:#0F1A2B}
.vg-dm .pn-h small{display:block;margin-top:3px;font-size:12px;color:#626976}
.vg-dm .ib{flex:none;width:28px;height:28px;border-radius:8px;display:grid;place-items:center;color:#626976}
.vg-dm .ib .ic{width:14px;height:14px}
.vg-dm .pn-h .ib{width:30px;height:30px}
.vg-dm .pn-h .ib.x{background:rgba(0,0,0,.05)}
.vg-dm .pn-acts{display:flex;align-items:center;gap:6px;padding:0 20px 14px;border-bottom:1px solid rgba(0,0,0,.07)}
.vg-dm .pn-acts .dm-ghost,.vg-dm .pn-acts .dm-pri{padding:0 10px}
.vg-dm .pn-tabs{display:flex;gap:2px;padding:0 14px;border-bottom:1px solid rgba(0,0,0,.07)}
.vg-dm .pn-tabs span{padding:10px 10px 9px;margin-bottom:-1px;font:500 12.5px/1.2 "Inter",sans-serif;color:#626976;border-bottom:2px solid transparent}
.vg-dm .pn-tabs .t-d{font-weight:700;color:#0F1A2B;border-bottom-color:#0F1A2B}
.vg-dm .pn-body{position:relative;flex:1;min-height:0}
.vg-dm .pn-det,.vg-dm .pn-ver{position:absolute;inset:0;padding:8px 20px 20px;transition:opacity .35s ease,visibility 0s}
.vg-dm .pn-ver{padding-top:12px;opacity:0;visibility:hidden}
.vg-dm .pn-exp{margin:8px 0 14px;padding:12px 14px;border-radius:12px;border:1px solid rgba(0,0,0,.09);background:rgba(0,0,0,.02)}
.vg-dm .pn-exp .eh{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.vg-dm .pn-exp .eh>.ic{width:14px;height:14px;color:#B45309}
.vg-dm .pn-exp .eh b{flex:1;font-size:12.5px;font-weight:700;color:#0F1A2B}
.vg-dm .pn-exp p{margin-bottom:10px;font-size:11.5px;line-height:1.5;color:#626976}
.vg-dm .pn-exp .ef{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.vg-dm .pn-exp .in{display:inline-flex;align-items:center;gap:6px;padding:6px 8px;border-radius:8px;border:1px solid rgba(0,0,0,.14);font-size:12.5px;color:#0F1A2B;white-space:nowrap}
.vg-dm .pn-exp .in .ic{width:12px;height:12px;color:#626976}
.vg-dm .pn-exp .lk{font-size:12px;color:#626976;text-decoration:underline;font-weight:700}
.vg-dm .pn-k{display:flex;align-items:center;margin:4px 0 8px;font:700 10.5px/1 "Inter",sans-serif;letter-spacing:.07em;text-transform:uppercase;color:#626976}
.vg-dm .pn-k span{flex:1}
.vg-dm .pn-k u{font-size:12px;letter-spacing:0;text-transform:none;color:#444D5A}
.vg-dm .pn-mut{margin-bottom:14px;font-size:12px;line-height:1.5;color:#626976}
.vg-dm .pn-link{display:flex;align-items:center;gap:8px;padding:7px 0;margin-bottom:12px;border-bottom:1px solid rgba(0,0,0,.06);font-size:12.5px;color:#444D5A}
.vg-dm .pn-link .ic{width:13px;height:13px;color:#626976}
.vg-dm .pn-link span{flex:1}
.vg-dm .pn-link b{font-size:12px;color:#0F1A2B;text-decoration:underline}
.vg-dm .pn-link u{font-size:12px;color:#626976;font-weight:700}
.vg-dm .pn-row{display:flex;gap:12px;padding:8px 0;border-bottom:1px solid rgba(0,0,0,.06);font-size:12.5px}
.vg-dm .pn-row>span:first-child{width:92px;flex:none;color:#626976}
.vg-dm .pn-row .v{display:flex;align-items:center;gap:6px;color:#0F1A2B}
.vg-dm .dm-ghost.wide{width:100%;justify-content:center;margin-bottom:8px}
.vg-dm .vr{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid rgba(0,0,0,.06)}
.vg-dm .vn{flex:none;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:rgba(0,0,0,.06);font:800 11px/1 "Inter",sans-serif;color:#444D5A}
.vg-dm .vn.cur{background:#0F1A2B;color:#fff}
.vg-dm .vr>span:nth-child(2){flex:1;min-width:0}
.vg-dm .vr b{display:block;font-size:12.5px;font-weight:700;color:#0F1A2B}
.vg-dm .vr b.w{font-weight:600}
.vg-dm .vr small{display:block;font-size:11px;color:#626976}
.vg-dm .va{display:flex;gap:10px;padding-right:6px;color:#626976}
.vg-dm .va .ic{width:14px;height:14px}

/* ── the tour's states ──────────────────────────────────────────────────────────────────────────── */
.vg-dm[data-state=search] .dm-crumb .c-lib{opacity:0}
.vg-dm[data-state=search] .dm-crumb .c-srch{opacity:1}
.vg-dm[data-state=search] .dm-srch{border-color:rgba(15,26,43,.45)}
.vg-dm[data-state=search] .dm-srch .ph{opacity:0}
.vg-dm[data-state=search] .dm-srch .q{opacity:1}
.vg-dm[data-state=search] .dm-all{opacity:0;visibility:hidden;transition:opacity .35s ease,visibility 0s .35s}
.vg-dm[data-state=search] .dm-find{opacity:1;visibility:visible;transition:opacity .45s ease .1s,visibility 0s}
.vg-dm[data-state=search] .dm-sign,.vg-dm[data-state=expiry] .dm-sign,.vg-dm[data-state=versions] .dm-sign{opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .35s ease,transform .35s ease,visibility 0s .35s}
.vg-dm[data-state=expiry] .dm-pane,.vg-dm[data-state=versions] .dm-pane{opacity:1;visibility:visible;transform:none;transition:opacity .45s ease .1s,transform .55s cubic-bezier(.2,.7,.2,1) .1s,visibility 0s}
.vg-dm[data-state=versions] .pn-tabs .t-d{font-weight:500;color:#626976;border-bottom-color:transparent}
.vg-dm[data-state=versions] .pn-tabs .t-v{font-weight:700;color:#0F1A2B;border-bottom-color:#0F1A2B}
.vg-dm[data-state=versions] .pn-det{opacity:0;visibility:hidden;transition:opacity .25s ease,visibility 0s .25s}
.vg-dm[data-state=versions] .pn-ver{opacity:1;visibility:visible;transition:opacity .35s ease .1s,visibility 0s}

/* ── the hero plays once: the dates come up amber, one lapses to red, the last colleague signs ─────── */
.motion .m-shot:not(.in) .vg-dm .dm-all .xp{opacity:0;transform:scale(.6)}
.motion .m-shot.in .vg-dm .dm-all .xp{animation:dmPop .5s cubic-bezier(.2,.7,.2,1) calc(var(--x) * 320ms + 450ms) both}
.motion .m-shot:not(.in) .vg-dm .dm-all .xp.r{background:#FFF7ED;color:#B45309}
.motion .m-shot:not(.in) .vg-dm .dm-all .xp.r .t1{max-width:110px}
.motion .m-shot:not(.in) .vg-dm .dm-all .xp.r .t2{max-width:0}
.motion .m-shot.in .vg-dm .dm-all .xp.r{animation:dmPop .5s cubic-bezier(.2,.7,.2,1) 1.09s both,dmLapse .6s ease 2.05s both}
.motion .m-shot.in .vg-dm .dm-all .xp.r .t1{animation:dmT1 .5s ease 2.05s both}
.motion .m-shot.in .vg-dm .dm-all .xp.r .t2{animation:dmT2 .55s cubic-bezier(.2,.7,.2,1) 2.05s both}
.motion .m-shot:not(.in) .vg-dm .sw .n1{opacity:1}
.motion .m-shot:not(.in) .vg-dm .sw .n2{opacity:0}
.motion .m-shot.in .vg-dm .dm-sign .sw .n1{animation:dmFadeOut .3s ease 2.95s both}
.motion .m-shot.in .vg-dm .dm-sign .sw .n2{animation:dmFadeIn .3s ease 3s both}
.motion .m-shot.in .vg-dm .dm-sh .sw .n1,.motion .m-shot.in .vg-dm .dm-quota .sw .n1{animation:dmFadeOut .3s ease 3.5s both}
.motion .m-shot.in .vg-dm .dm-sh .sw .n2,.motion .m-shot.in .vg-dm .dm-quota .sw .n2{animation:dmFadeIn .3s ease 3.55s both}
.motion .m-shot:not(.in) .vg-dm .sg-pill .p1{opacity:1}
.motion .m-shot:not(.in) .vg-dm .sg-pill .p2{opacity:0}
.motion .m-shot.in .vg-dm .sg-pill .p1{animation:dmFadeOut .35s ease 2.95s both}
.motion .m-shot.in .vg-dm .sg-pill .p2{animation:dmStamp .5s cubic-bezier(.2,.7,.2,1) 3s both}
.motion .m-shot:not(.in) .vg-dm .sg-who em.pd{color:#F59E0B;background:#F59E0B16;border-color:#F59E0B30}
.motion .m-shot:not(.in) .vg-dm .sg-who em.pd .c1{opacity:1}
.motion .m-shot:not(.in) .vg-dm .sg-who em.pd .c2{opacity:0}
.motion .m-shot.in .vg-dm .sg-who em.pd{animation:dmSigned .45s ease 2.7s both}
.motion .m-shot.in .vg-dm .sg-who em.pd .c1{animation:dmFadeOut .3s ease 2.7s both}
.motion .m-shot.in .vg-dm .sg-who em.pd .c2{animation:dmFadeIn .3s ease 2.8s both}
.motion .m-shot.in .vg-dm .sg-last{animation:dmGlow 1.2s ease 2.55s both}
.motion .m-shot:not(.in) .vg-dm .dm-new{max-height:0;height:0;opacity:0;border-bottom-width:0}
.motion .m-shot.in .vg-dm .dm-new{animation:dmRow .7s cubic-bezier(.2,.7,.2,1) 3.5s both}
@keyframes dmPop{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
@keyframes dmLapse{from{background:#FFF7ED;color:#B45309}to{background:#FEF2F2;color:#B91C1C}}
@keyframes dmT1{from{max-width:110px}to{max-width:0}}
@keyframes dmT2{from{max-width:0}to{max-width:140px}}
@keyframes dmFadeOut{from{opacity:1}to{opacity:0}}
@keyframes dmFadeIn{from{opacity:0}to{opacity:1}}
@keyframes dmStamp{0%{opacity:0;transform:scale(1.5)}60%{opacity:1;transform:scale(.95)}100%{opacity:1;transform:none}}
@keyframes dmSigned{from{color:#F59E0B;background:#F59E0B16;border-color:#F59E0B30}to{color:#10B981;background:#10B98116;border-color:#10B98130}}
@keyframes dmGlow{0%{background:transparent}30%{background:rgba(16,185,129,.08)}100%{background:transparent}}
@keyframes dmRow{0%{height:0;opacity:0;border-bottom-width:0}60%{height:45px;opacity:1;border-bottom-width:1px;background:rgba(30,142,90,.16)}100%{height:45px;opacity:1;border-bottom-width:1px;background:rgba(30,142,90,.05)}}

/* ── the signed copy in the viewer (DocViewer.jsx, ViewerChrome.jsx), with the Signature Certificate page
      drawn where docsLib.js bakeSignedPdf draws it: 1 pt = 1.15 px ───────────────────────────────────── */
.vg-dmc{background:#E3E6EA}
.vg-dmc .dv-bar{position:absolute;z-index:3;left:0;right:0;top:0;height:52px;display:flex;align-items:center;gap:8px;padding:0 12px;background:#fff;border-bottom:1px solid rgba(0,0,0,.08)}
.vg-dmc .dv-g{display:inline-flex;align-items:center;gap:1px;padding:2px;border-radius:999px;background:rgba(0,0,0,.055);flex:none}
.vg-dmc .dv-b{height:30px;min-width:32px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;color:#444D5A;flex:none}
.vg-dmc .dv-b .ic{width:16px;height:16px}
.vg-dmc .dv-b.cv{min-width:20px;width:20px}
.vg-dmc .dv-b.cv .ic{width:13px;height:13px}
.vg-dmc .dv-b.r{width:34px;height:34px;background:rgba(0,0,0,.055)}
.vg-dmc .dv-b.r .ic{width:17px;height:17px}
.vg-dmc .dv-t{flex:1;min-width:0;margin-left:2px}
.vg-dmc .dv-t b{display:block;font:700 13.5px/1.3 "Inter",sans-serif;color:#0F1A2B;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vg-dmc .dv-t small{display:block;font-size:11.5px;line-height:1.35;color:#626976}
.vg-dmc .pg{position:absolute;left:38px;width:684px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.16),0 6px 20px rgba(0,0,0,.14)}
.vg-dmc .pg svg{display:block;width:684px;height:100%}
.vg-dmc .pg1{top:32px;height:230px}
.vg-dmc .pg2{top:280px;height:968px}
.vg-dmc .pg2 svg{height:968px}

/* plays once: Priya's signature is drawn, her name and date go in, then the certificate is written */
.motion .shot:not(.in) .vg-dmc .sig-p path{stroke-dasharray:1;stroke-dashoffset:1}
.motion .shot.in .vg-dmc .sig-p path{stroke-dasharray:1;animation:dmInk .9s cubic-bezier(.45,.1,.4,1) calc(var(--s) * 750ms + 500ms) both}
.motion .shot.in .vg-dmc .sig-p .dot{animation-duration:.15s}
.motion .shot:not(.in) .vg-dmc .bk,.motion .shot:not(.in) .vg-dmc .cl{opacity:0}
.motion .shot.in .vg-dmc .bk{animation:dmFadeIn .35s ease 2.2s both}
.motion .shot.in .vg-dmc .cl{animation:dmLine .45s ease calc(var(--l) * 90ms + 2.7s) both}
@keyframes dmInk{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes dmLine{from{opacity:0;transform:translateX(-6px)}to{opacity:1;transform:none}}
