.paper-closing{position:relative;isolation:isolate;min-height:650px;display:grid;place-items:center;padding:80px 30px;background:#c2f622;overflow:hidden}
.paper-closing:before,.paper-closing:after{display:none}
.paper-desk{position:absolute;inset:0;z-index:0;overflow:hidden}
.paper-closing .closing-copy{position:relative;z-index:20;max-width:670px;padding:38px 30px 42px;border-radius:48%;background:radial-gradient(ellipse,#c2f622 57%,#c2f622f2 70%,#c2f62200 74%);pointer-events:none}
.closing-copy:before{content:'';position:absolute;z-index:-1;inset:-50px -35px;background:radial-gradient(ellipse,#c2f622 38%,#c2f622df 56%,#c2f62200 72%);pointer-events:none}
.paper-closing .closing-copy .eyebrow{justify-content:center;font-size:9px;letter-spacing:1.7px;opacity:.62}
.paper-closing .closing-copy h2{font-size:clamp(42px,5.2vw,68px);line-height:1.04;letter-spacing:-3px;margin:24px 0}
.paper-closing .closing-copy p{max-width:355px;margin:0 auto;font-size:14px;line-height:1.75;color:#374311}
.paper-closing .closing-copy .pill{pointer-events:auto;margin-top:28px;background:#0b0d12;color:#c2f622}
.paper-closing .closing-copy .pill:hover{background:#252c16}
.desk-paper{position:absolute;width:245px;height:306px;left:var(--left);top:var(--top);transform:translate(var(--dx,0px),var(--dy,0px)) rotate(var(--angle));transition:transform 1.2s cubic-bezier(.22,1,.36,1);cursor:grab;user-select:none;-webkit-user-select:none;touch-action:pan-y;will-change:transform}
.paper-stock{position:relative;width:100%;height:100%;padding:23px;background:#f7f5ed;color:#5f625b;text-align:left;overflow:hidden;box-shadow:1px 2px 3px #27330c20,3px 12px 22px #27330c27;transform:translateZ(0);transition:box-shadow .25s,transform .25s;border:1px solid #fff9}
.paper-stock:before{content:'';position:absolute;inset:0;pointer-events:none;opacity:.15;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23716d61' filter='url(%23n)' opacity='.45' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}
.paper-stock:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(92deg,transparent 49.3%,#b7b2a214 49.7%,#fff9 50.1%,transparent 50.8%),linear-gradient(177deg,#fff4,transparent 25%,#79715908)}
.paper-stock header{display:flex;justify-content:space-between;align-items:center;font-size:7px;letter-spacing:1.1px;border-bottom:1px solid #8a908155;padding-bottom:13px}.paper-stock header span{font-size:19px;font-weight:400}.paper-stock h3{font-family:Georgia,serif;font-weight:400;font-size:22px;line-height:1.15;margin:17px 0 9px;letter-spacing:-.5px}.paper-stock>small{font-size:6px;letter-spacing:1px;display:block;margin-bottom:20px}.paper-stock p{font-size:9px!important;line-height:1.5!important;margin:10px 0!important;max-width:none!important;color:#7c8174}.paper-stock b,.paper-stock>span{font-size:10px;font-weight:400}.paper-stock footer{position:absolute;bottom:17px;left:23px;font-size:5px;letter-spacing:1px;color:#9a9e92;padding:0;border:0}.paper-table{display:grid;grid-template-columns:1.2fr 1fr;gap:0;font-size:8px}.paper-table>*{padding:8px 0;border-bottom:1px solid #8a908126}.paper-table b{font-size:8px;text-align:right}.paper-table span:nth-child(2){text-align:right}.paper-rx-mark{font-family:Georgia,serif;font-size:35px;margin:-9px 0 8px}.paper-rule{height:1px;background:#8a908133;margin:15px 0}.paper-stock .paper-hand{font-family:Georgia,serif;font-style:italic;font-size:15px;color:#667879;display:block;line-height:1.6}.paper-lines{height:58px;background:repeating-linear-gradient(to bottom,#898d8038 0 2px,transparent 2px 11px);margin:18px 0}.paper-lines.short{width:73%;height:35px}.paper-stamp{border:2px solid #a6716244;color:#a6716288;display:inline-block;padding:5px 13px;letter-spacing:3px;font-size:13px;transform:rotate(-12deg)}.paper-time{font-family:Georgia,serif;font-size:38px;font-weight:400}.paper-stock svg{width:100%;height:80px;fill:none}
.paper-lab{--left:-4%;--top:-8%;--angle:-17deg}.paper-rx{--left:79%;--top:-14%;--angle:14deg}.desk-paper.paper-rx{font-family:inherit;font-size:inherit;margin:0}.paper-visit{--left:89%;--top:23%;--angle:-12deg}.paper-letter{--left:-10%;--top:38%;--angle:12deg}.paper-receipt{--left:72%;--top:71%;--angle:-18deg;width:285px;height:235px}.paper-chart{--left:8%;--top:77%;--angle:15deg}.paper-note{--left:30%;--top:-29%;--angle:8deg;height:250px;background:#fff}.paper-scan{--left:44%;--top:91%;--angle:-7deg}
.paper-closing:not(.is-visible) .desk-paper{transform:translate(calc(var(--reveal-x,0px) + var(--dx,0px)),calc(var(--reveal-y,0px) + var(--dy,0px))) rotate(0deg)}
.paper-lab,.paper-letter{--reveal-x:80px}.paper-rx,.paper-visit{--reveal-x:-80px}.paper-chart,.paper-receipt,.paper-scan{--reveal-y:-60px}.paper-note{--reveal-y:60px}
.desk-paper.is-dragging{transition:none;cursor:grabbing;z-index:15!important}.is-dragging .paper-stock{transform:scale(1.035);box-shadow:2px 4px 6px #27330c20,8px 28px 40px #27330c38}.desk-paper.is-settling{transition:transform .38s cubic-bezier(.2,.8,.2,1)}
.paper-drag-hint{position:absolute;bottom:24px;left:0;right:0;z-index:20;font-size:10px;color:#526117;pointer-events:none}
@media(max-width:800px){.paper-closing{min-height:600px;padding:85px 12px}.paper-closing .closing-copy{padding:36px 8px;max-width:100%;border-radius:20px}.closing-copy:before{inset:-35px -25px}.paper-closing .closing-copy h2{font-size:43px;letter-spacing:-2px;margin:21px 0}.paper-closing .closing-copy p{font-size:12px;max-width:240px}.paper-closing .closing-copy .eyebrow{font-size:7px;letter-spacing:1px}.desk-paper{width:175px;height:235px;cursor:default;pointer-events:none}.paper-stock{padding:17px}.paper-stock h3{font-size:18px}.paper-stock>small{font-size:5px;margin-bottom:13px}.paper-stock footer{left:17px;bottom:12px}.paper-stock header{font-size:5px}.paper-lab{--left:-19%;--top:-15%}.paper-rx{--left:71%;--top:-16%}.paper-letter{--left:-41%;--top:32%}.paper-visit{--left:91%;--top:30%}.paper-chart{--left:-17%;--top:87%}.paper-receipt{--left:69%;--top:84%}.paper-note,.paper-scan{display:none}.paper-drag-hint{display:none}}
@media(prefers-reduced-motion:reduce){.desk-paper,.paper-stock{transition:none!important}.paper-closing:not(.is-visible) .desk-paper{transform:rotate(var(--angle))}}
/* Papers sit above the unmasked copy and can be moved across it. */
.paper-closing .closing-copy{background:none}
.paper-closing .closing-copy:before{display:none}
.paper-desk{z-index:30;pointer-events:none}
.desk-paper{pointer-events:auto;width:260px;height:345px}
.desk-paper.is-dragging{z-index:var(--unused,10000)!important}
.paper-stock{padding:20px 21px;background:#f5f3e9;color:#535951}
.paper-stock h3{font-size:21px;margin:13px 0 7px}
.paper-stock>small{font-size:6px;letter-spacing:.6px;margin-bottom:10px}
.paper-stock header{font-size:6px;letter-spacing:.75px;padding-bottom:9px}
.paper-patient{font-size:5.8px;letter-spacing:.4px;border-top:1px solid #94988d33;border-bottom:1px solid #94988d33;padding:7px 0;margin-bottom:12px;display:flex;justify-content:space-between;gap:7px}
.paper-data{border-collapse:collapse;width:100%;font-family:Arial,sans-serif;font-size:7px;text-align:left;line-height:1.5;font-variant-numeric:tabular-nums}
.paper-data th{font-weight:600;color:#686e61;border-bottom:1px solid #92998877;padding:5px 3px;background:#e8e9df70}
.paper-data td{padding:6px 3px;border-bottom:1px solid #92998833;vertical-align:top}.paper-data td:not(:first-child),.paper-data th:not(:first-child){text-align:right;white-space:nowrap}
.paper-paragraph{margin:10px 0}.paper-paragraph>b{font-family:Arial,sans-serif;font-size:7px;font-weight:600;color:#555d50}.paper-stock .paper-paragraph p{font-size:7px!important;line-height:1.55!important;margin:3px 0 0!important;color:#717569}
.paper-stock footer{left:21px;right:21px;bottom:13px;font-size:4.7px;letter-spacing:.5px;display:flex;justify-content:space-between;border-top:1px solid #92998822;padding-top:7px}
.paper-stock .paper-hand{font-size:12px}.paper-stock .paper-rx-mark{font-size:26px;margin:-5px 0 5px}.paper-signature{font:italic 21px Georgia,serif;color:#687788;margin:9px 0}.paper-stock .paper-stamp{font-size:9px;padding:3px 9px}.paper-stock svg{height:60px;margin-top:12px}.paper-barcode{height:22px;width:130px;margin-top:14px;background:repeating-linear-gradient(90deg,#676c61 0 1px,transparent 1px 3px,#676c61 3px 5px,transparent 5px 7px,#676c61 7px 8px,transparent 8px 12px)}
.paper-pressure{--left:-13%;--top:15%;--angle:-9deg}.paper-metabolic{--left:88%;--top:-16%;--angle:-8deg}.paper-referral{--left:10%;--top:-37%;--angle:10deg}.paper-pharmacy{--left:91%;--top:61%;--angle:9deg}.paper-allergy{--left:-9%;--top:78%;--angle:-16deg}.paper-invoice{--left:28%;--top:89%;--angle:7deg}
.paper-lab{--left:-5%;--top:-12%}.paper-note{--top:-38%;height:325px}.paper-receipt{height:300px;--top:77%}.paper-letter{--left:-12%;--top:44%}.paper-visit{--left:90%}.paper-chart{--top:83%}.paper-scan{--left:52%;--top:91%}
.paper-stock:after{background:linear-gradient(92deg,transparent 49.3%,#b7b2a20d 49.7%,#fff6 50.1%,transparent 50.8%),linear-gradient(177deg,#fff3,transparent 25%,#79715908)}
.paper-rx .paper-stock,.paper-pharmacy .paper-stock{background:#f9f7f0}.paper-note .paper-stock{background:#f0ebd9}.paper-letter .paper-stock,.paper-referral .paper-stock{background:#edeee5}.paper-invoice .paper-stock{background:#f5efe5}
@media(max-width:800px){.desk-paper{width:175px;height:250px;pointer-events:none}.paper-stock{padding:13px}.paper-stock h3{font-size:15px;margin:9px 0 6px}.paper-stock header{font-size:4.4px;padding-bottom:4px}.paper-stock>small{font-size:4px;margin-bottom:7px}.paper-patient{font-size:4px;margin-bottom:7px;padding:4px 0}.paper-data{font-size:5px}.paper-data td,.paper-data th{padding:3px 1px}.paper-paragraph{margin:6px 0}.paper-paragraph>b{font-size:5px}.paper-stock .paper-paragraph p{font-size:5px!important}.paper-stock footer{left:13px;right:13px;bottom:8px;font-size:3.5px}.paper-lab{--left:-19%;--top:-19%}.paper-letter{--left:-46%;--top:35%}.paper-visit{--left:94%;--top:32%}.paper-chart{--left:-17%;--top:90%}.paper-receipt{--left:72%;--top:88%}.paper-pressure{--left:-37%;--top:-11%}.paper-metabolic{--left:85%;--top:-22%}.paper-referral,.paper-pharmacy,.paper-allergy,.paper-invoice{display:none}}

.paper-closing .closing-copy{width:100%;min-width:0}.paper-closing .closing-copy h2{max-width:100%;overflow-wrap:normal}
/* Compact mobile collage: more visible sheets, less empty lime space. */
@media(max-width:800px){
.paper-closing{min-height:465px;padding:65px 17px;border-radius:25px}
.paper-closing .closing-copy{padding:20px 0;max-width:330px}
.paper-closing .closing-copy h2{font-size:clamp(29px,7.5vw,38px);line-height:1.08;letter-spacing:-1.5px;margin:15px 0 20px;text-wrap:balance}
.paper-closing .closing-copy p{font-size:11px;line-height:1.65;max-width:220px}
.paper-closing .closing-copy .pill{margin-top:23px;padding:14px 22px;font-size:12px}
.desk-paper{width:137px;height:192px}
.paper-stock{padding:10px}.paper-stock h3{font-size:12px;margin:7px 0 5px}.paper-stock header{font-size:3.6px}.paper-stock header span{font-size:12px}.paper-stock>small{font-size:3.3px;margin-bottom:5px}.paper-patient{font-size:3px;padding:3px 0;gap:2px;margin-bottom:5px}.paper-data{font-size:4px}.paper-data td,.paper-data th{padding:2px 1px}.paper-paragraph{margin:4px 0}.paper-paragraph>b{font-size:4px}.paper-stock .paper-paragraph p{font-size:4px!important}.paper-stock footer{left:10px;right:10px;font-size:2.8px;bottom:7px}.paper-stock .paper-hand{font-size:8px}.paper-stock .paper-rx-mark{font-size:19px}.paper-stock .paper-signature{font-size:14px}.paper-stock svg{height:40px;margin-top:7px}.paper-stock .paper-time{font-size:24px}.paper-stock .paper-stamp{font-size:6px}.paper-rule{margin:9px 0}.paper-barcode{width:90px;height:14px;margin-top:8px}
.paper-lab{--left:-9%;--top:-24%;--angle:-17deg}
.paper-rx{--left:75%;--top:-25%;--angle:17deg}
.paper-pressure{--left:-29%;--top:3%;--angle:-8deg}
.paper-metabolic{--left:95%;--top:7%;--angle:-12deg}
.paper-referral{display:block;--left:16%;--top:-33%;--angle:9deg}
.paper-note{display:block;--left:49%;--top:-34%;--angle:-6deg}
.paper-letter{--left:-32%;--top:44%;--angle:9deg}
.paper-visit{--left:96%;--top:40%;--angle:-9deg}
.paper-chart{--left:-12%;--top:84%;--angle:14deg}
.paper-receipt{--left:75%;--top:81%;--angle:-16deg}
.paper-scan{display:block;--left:20%;--top:93%;--angle:-10deg}
.paper-invoice{display:block;--left:46%;--top:90%;--angle:12deg}
.paper-allergy,.paper-pharmacy{display:none}
}

@media(max-width:800px){.paper-pressure{--left:-36%;--top:0%}}
/* Uneven piles rather than a continuous paper border. */
@media(min-width:801px){
.paper-lab{--left:-5%;--top:-13%;--angle:-23deg;width:282px;height:366px}
.paper-pressure{--left:-14%;--top:13%;--angle:5deg;width:235px;height:332px}
.paper-referral{--left:8%;--top:-35%;--angle:19deg}
.paper-note{--left:32%;--top:-40%;--angle:-12deg;width:218px;height:290px}
.paper-rx{--left:94%;--top:-13%;--angle:28deg;width:230px;height:310px}
.paper-metabolic{--left:97%;--top:5%;--angle:8deg}
.paper-visit{--left:93%;--top:40%;--angle:15deg;width:225px;height:325px}
.paper-letter{--left:-17%;--top:64%;--angle:-8deg}
.paper-chart{--left:3%;--top:88%;--angle:-17deg;width:235px;height:315px}
.paper-allergy{--left:-9%;--top:91%;--angle:12deg}
.paper-receipt{--left:64%;--top:77%;--angle:-28deg;width:285px;height:290px}
.paper-pharmacy{--left:88%;--top:59%;--angle:16deg;width:215px;height:320px}
.paper-invoice{--left:77%;--top:83%;--angle:5deg;width:232px;height:302px}
.paper-scan{--left:48%;--top:97%;--angle:-6deg;width:240px;height:335px}
}
@media(max-width:800px){
.paper-closing{min-height:450px;padding:62px 22px}
.paper-closing .closing-copy{max-width:330px;padding:18px 0}
.paper-closing .closing-copy h2{font-size:clamp(28px,7vw,36px);letter-spacing:-1.4px;text-wrap:initial}
.paper-lab{--left:-14%;--top:-26%;--angle:-27deg;width:160px;height:216px}
.paper-referral{--left:7%;--top:-35%;--angle:15deg;width:145px;height:205px}
.paper-pressure{--left:-34%;--top:-2%;--angle:3deg;width:134px;height:203px}
.paper-note{--left:39%;--top:-34%;--angle:-13deg;width:118px;height:175px}
.paper-rx{--left:96%;--top:-21%;--angle:28deg;width:132px;height:182px}
.paper-metabolic{display:none}
.paper-visit{--left:98%;--top:40%;--angle:14deg;width:125px;height:191px}
.paper-letter{--left:-38%;--top:67%;--angle:-11deg;width:135px;height:191px}
.paper-chart{--left:-4%;--top:95%;--angle:-19deg;width:127px;height:176px}
.paper-receipt{--left:59%;--top:85%;--angle:-29deg;width:154px;height:183px}
.paper-invoice{--left:82%;--top:90%;--angle:8deg;width:133px;height:180px}
.paper-pharmacy{display:block;--left:94%;--top:70%;--angle:17deg;width:112px;height:178px}
.paper-scan,.paper-allergy{display:none}
}
/* Keep the original closing-banner proportions; papers are an overlay. */
.paper-closing{min-height:0;height:auto;padding:54px 30px 48px}
.paper-closing .closing-copy{max-width:880px;padding:0}
.paper-closing .closing-copy h2{font-size:clamp(42px,5.2vw,68px);line-height:1.04;margin:14px 0 23px;letter-spacing:-3px}
.paper-closing .closing-copy p{max-width:405px}
.paper-closing .closing-copy .pill{margin-top:25px}
.paper-drag-hint{bottom:15px;font-size:9px}
@media(min-width:801px){
.paper-lab{--top:-28%;--left:-8%}
.paper-referral{--top:-57%;--left:9%}
.paper-note{--top:-55%;--left:35%}
.paper-pressure{--left:-16%;--top:6%}
.paper-letter{--left:-20%;--top:66%}
.paper-chart{--left:0%;--top:86%}
.paper-rx{--left:98%;--top:-30%}
.paper-metabolic{--left:100%;--top:2%}
.paper-visit{--left:98%;--top:34%}
.paper-receipt{--left:71%;--top:82%}
.paper-pharmacy{--left:94%;--top:61%}
.paper-invoice{--left:83%;--top:83%}
.paper-scan{--left:42%;--top:96%}
}
@media(max-width:800px){
.paper-closing{min-height:0;padding:44px 20px 40px}
.paper-closing .closing-copy{max-width:390px;padding:0}
.paper-closing .closing-copy h2{font-size:clamp(28px,7vw,36px);line-height:1.08;letter-spacing:-1.4px;margin:7px 0 19px}
.paper-closing .closing-copy p{font-size:11px;line-height:1.65;max-width:240px}
.paper-closing .closing-copy .pill{margin-top:21px}
.paper-lab{--left:-24%;--top:-51%}
.paper-referral{--left:2%;--top:-66%}
.paper-note{--left:52%;--top:-60%}
.paper-pressure{--left:-37%;--top:-11%}
.paper-rx{--left:103%;--top:-38%}
.paper-visit{--left:108%;--top:31%}
.paper-letter{--left:-40%;--top:71%}
.paper-chart{--left:-13%;--top:94%}
.paper-receipt{--left:70%;--top:89%}
.paper-invoice{--left:93%;--top:78%}
.paper-pharmacy{--left:106%;--top:59%}
}

.paper-desk{z-index:auto}.desk-paper{z-index:1}

/* The footer line runs to the sheet edge on the sheet colour, so long content ends under it instead of showing through. */
.paper-stock footer{bottom:0;padding-bottom:13px;background:inherit;z-index:1}
@media(max-width:800px){.paper-stock footer{bottom:0;padding-bottom:7px}}
