/* A single moving sheet carries the real contribution ledger. */
.template-scene{container-type:inline-size}
.template-scene .mechanism-stage{padding:24px 18px;aspect-ratio:auto;min-height:390px;overflow:hidden}
.template-scene .visual-floor{left:8%;right:7%;bottom:10%;height:42%}
.template-scene .visual-assembly{position:relative;inset:auto;width:100%;min-width:0;height:auto;transform:rotateX(calc(7deg + var(--tilt-x,0deg))) rotateY(calc(-7deg + var(--tilt-y,0deg)))}
.template-scene .motion-rig{position:relative;inset:auto;min-height:340px;padding:24px 0 32px;box-sizing:border-box}
.template-sheet{position:relative;width:64%;min-height:310px;margin:0 0 0 7%;padding:clamp(14px,4.5cqw,28px);color:#182746;background:linear-gradient(138deg,#f4f1e8,#d7ddeb);border:1px solid #fff8;box-shadow:3px 4px #a8b2c6,7px 8px #455675,16px 23px 32px #0004;transform:rotateZ(-7deg) translateZ(20px);border-radius:5px;box-sizing:border-box}
.template-sheet>span{display:block;font-size:clamp(6px,1.5cqw,9px);letter-spacing:.1em;border-bottom:1px solid #aab1c1;padding-bottom:9px;line-height:1.5}
.template-sheet>b{display:block;font-size:clamp(19px,5.1cqw,32px);line-height:1.08;letter-spacing:-.045em;margin:16px 0 9px;font-weight:600}
.template-sheet>small{display:block;font-size:clamp(7px,1.7cqw,10px);line-height:1.5;margin:0 0 18px;color:#4b6081}
.template-sheet .template-recipients{position:static;inset:auto;width:auto;transform:none;display:grid;gap:0;margin-top:18px;border-top:1px solid #899bb9}
.template-allocation-heading{font-size:clamp(6px,1.5cqw,9px);line-height:1.5;letter-spacing:.06em;padding:10px 0;color:#435b82;overflow-wrap:anywhere}
.template-sheet .template-recipient{position:relative;display:flex;justify-content:space-between;align-items:baseline;gap:10px;min-height:0;padding:10px 0 12px;background:none;border:0;border-bottom:1px solid #acb9ce;border-radius:0;box-shadow:none;transform:none}
.template-sheet .template-recipient>span{min-width:0;max-width:none;font-size:clamp(8px,2cqw,12px);line-height:1.5;color:#253d63;overflow-wrap:anywhere}
.template-sheet .template-recipient>b{flex-shrink:0;font-size:clamp(12px,3cqw,19px);font-weight:600;letter-spacing:-.03em;line-height:1.3;color:#263f77}
.template-sheet .template-recipient>i{position:absolute;left:0;bottom:0;height:2px;background:#516ab0;max-width:100%}
.template-total{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding-top:12px;color:#243d67}
.template-total>span{font-size:clamp(7px,1.8cqw,11px);line-height:1.4}.template-total>b{font-size:clamp(12px,3cqw,19px)}
.template-paper-note,.template-empty{font-size:clamp(7px,1.6cqw,10px);line-height:1.6;color:#4b6081;margin-top:10px;overflow-wrap:break-word}
.template-tool{position:absolute;transform:translateZ(45px);box-sizing:border-box}
.research-grid{width:22%;height:110px;max-height:24%;left:76%;top:13%;background:#2d4269;border:1px solid #a1b5d6;padding:12px;transform:rotateZ(10deg) translateZ(50px);box-shadow:4px 5px #14233d,9px 14px 20px #0004;display:grid;grid-template-columns:1fr 1fr;gap:6px}
.research-grid i{border:1px solid #9bb0d3;background:#6986bb55}.research-grid>span{position:absolute;bottom:4px;right:5px;font-size:7px;color:#dae4f6}
.study-lens{width:18%;aspect-ratio:1;border:clamp(4px,1.5cqw,8px) solid #7c9bda;border-radius:50%;left:78%;top:57%;background:#9cb8ff33;box-shadow:3px 4px #1d3458}.study-lens:after{content:"";position:absolute;width:35%;height:7px;background:#7c9bda;right:-25%;bottom:-14%;transform:rotate(48deg)}
.template-scene .illustration-sheet{position:absolute;left:76%;top:12%;width:22%;height:34%;min-height:100px;max-height:175px;padding:8px;margin:0;background:#becdf4;transform:rotateZ(10deg) translateZ(45px)}
.illustration-sheet>span{font-size:clamp(5px,1.2cqw,8px);letter-spacing:0;padding-bottom:5px}.illustration-sheet>small{font-size:6px;margin:8px 0 0}
.editorial-shape{height:50%;margin-top:15%;border-radius:50% 3px 50% 3px;background:linear-gradient(140deg,#293f79 50%,#6589cf 50%);border:1px solid #fff9}
.editorial-pen{width:4%;height:28%;max-height:145px;background:linear-gradient(90deg,#536dfe 35%,#99b0ec 35% 65%,#344b8a 65%);left:83%;top:60%;transform:rotateZ(20deg) translateZ(65px);border-radius:5px 5px 0 0;box-shadow:5px 5px #10203a66}.editorial-pen:after{content:"";position:absolute;bottom:-12px;left:0;width:100%;height:13px;background:#c2cee3;clip-path:polygon(0 0,100% 0,50% 100%)}
.template-scene .original-sheet{position:absolute;left:2%;top:10%;width:34%;min-height:270px;margin:0;padding:clamp(10px,3cqw,18px);transform:rotateZ(-10deg) translateZ(20px)}
.template-scene .translated-sheet{width:53%;margin-left:43%;transform:rotateZ(5deg) translateZ(45px);background:linear-gradient(138deg,#e5ebf8,#bacbee)}
.scene-template-translation .template-sheet>b{font-size:clamp(16px,4.1cqw,26px)}
.scene-template-translation .template-sheet>small{font-size:clamp(7px,1.6cqw,10px)}
.edition-notes{border-top:1px solid #98a9c4;margin-top:18px;padding-top:10px;font-size:clamp(7px,1.7cqw,10px);line-height:1.6}.edition-notes b{font-weight:600}.edition-notes p{margin:5px 0 14px;color:#465c7c}
.translation-bridge{left:9%;top:auto;bottom:3%;padding:9px 13px;color:#e4ebff;background:#263e71;border:1px solid #91adea;border-radius:7px;letter-spacing:.13em;font-size:clamp(9px,2.3cqw,13px);transform:translateZ(50px)}
.template-scene .solo-sheet{transform:rotateZ(-5deg) translateZ(25px)}
.author-stamp,.agreement-seal{left:77%;top:50%;width:21%;aspect-ratio:1;border-radius:50%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#2d4879;border:2px solid #a9c0ef;box-shadow:3px 4px #0d1c32,0 0 0 3px #253b60;font-size:clamp(13px,3.6cqw,25px);color:#dde8fd}.author-stamp small,.agreement-seal small{font-size:clamp(5px,1.1cqw,7px);letter-spacing:.05em;margin-top:4px}
@container(max-width:480px){
 .template-scene .mechanism-stage{padding:24px 12px;min-height:0}
 .template-scene .motion-rig{min-height:0}
 .template-scene .template-sheet{width:71%;margin-left:4%}
 .template-scene .research-grid,.template-scene .illustration-sheet{left:81%;width:18%}
 .template-scene .study-lens{left:83%;width:14%}.template-scene .editorial-pen{left:87%;width:4%}
 .template-scene .author-stamp,.template-scene .agreement-seal{left:82%;width:17%}
 .template-scene .original-sheet{left:1%;width:33%;margin:0;min-height:250px}
 .template-scene .translated-sheet{width:57%;margin-left:40%}
}
/* A tall custom ledger stays nearly upright so its long edges clear the frame. */
.template-scene:has(.template-recipient:nth-of-type(6)) .template-sheet:not(.illustration-sheet):not(.original-sheet){transform:rotateZ(-1deg) translateZ(20px)}

/* Identity is printed in the same flow as the contribution ledger. */
.paper-work-identity{display:grid;gap:10px;padding:12px 0;border-top:1px solid #a2afc5;min-width:0}
.paper-work-identity .network-identity{gap:8px;min-width:0;align-items:center}
.paper-work-identity .network-identity img{width:28px;height:28px;flex:0 0 28px;object-fit:contain}
.paper-work-identity .network-identity>span{min-width:0}
.paper-work-identity .network-identity b{font-size:clamp(9px,2.2cqw,13px);line-height:1.3;color:#182746;overflow-wrap:anywhere}
.paper-work-identity .network-identity small{font-size:clamp(6px,1.5cqw,9px);line-height:1.5;color:#435b82;overflow-wrap:anywhere}
.paper-work-symbol{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.paper-work-symbol>span{font-size:clamp(7px,1.6cqw,10px);color:#435b82}
.paper-work-symbol>b{font-size:clamp(14px,3.8cqw,22px);letter-spacing:.035em;overflow-wrap:anywhere;max-width:100%;color:#254eca}
.paper-work-identity>p{margin:0;font-size:clamp(6px,1.5cqw,9px);line-height:1.5;color:#435b82}

.scene-consent .launch-paper-identity{min-width:0;flex-shrink:0}
.scene-consent .paper-work-identity{padding:6px 0;gap:6px}
.scene-consent .paper-work-identity .network-identity img{width:24px;height:24px;flex-basis:24px}
.scene-consent .paper-work-identity .network-identity b{font-size:clamp(7px,1.8cqw,11px)}
.scene-consent .paper-work-identity .network-identity small,.scene-consent .paper-work-symbol>span,.scene-consent .paper-work-identity>p{font-size:clamp(5px,1.4cqw,8px)}
.scene-consent .paper-work-symbol>b{font-size:clamp(10px,2.5cqw,16px)}
