/* Keep the reference typography and prose measure; recover unused right-margin width. */
.merge-stage{height:770px}
.carry-editor.editor{display:block!important;padding:0!important;gap:0;max-width:900px;margin:0;background:var(--editor);border-radius:18px}
.carry-editor .composition{display:grid;grid-template-columns:252px 500px;gap:28px;padding:64px 40px 45px;justify-content:start}
.carry-editor article.draft{font:17px/27px Quattro,monospace;letter-spacing:0}
.carry-editor .draft h1{font:inherit;margin:0 0 16px;letter-spacing:0}
.carry-editor .draft p{margin:0 0 12px!important}
.carry-editor .note-content em{font-size:15.2px}
.carry-editor .source-return{font:13.376px/1.4 var(--serif);padding:0;border:0;display:inline;color:rgb(29 26 21 / .6);background:none;text-align:left}
.carry-editor .recall-note blockquote{max-height:100.32px!important;margin:8px 0;background:transparent}
.carry-editor .right-margin{display:none!important}
.carry-caption{display:block!important;left:auto;right:calc(50% + 470px);top:188px;transform:translateY(-50%);width:min(224px,calc((100% - 900px)/2 - 36px));text-align:right;transition:none;color:#3b382f;z-index:7}
.carry-caption h3{font:400 clamp(27px,2.15vw,31px)/1.2 var(--serif);letter-spacing:-.015em;margin:0 0 16px;text-wrap:pretty}
.carry-caption p{font:14px/1.6 -apple-system,BlinkMacSystemFont,sans-serif;color:#756e62;margin:0;text-wrap:pretty}
.result{overflow:hidden}
.surface-switch{display:none!important}
.op-material{mask-image:linear-gradient(to bottom,#000 0,#000 calc(100% - 36px),transparent calc(100% - 4px))}

#carry-title .keep{white-space:nowrap}

.carry-editor .note-content{width:220px;max-width:calc(100% - 32px)}

/* One persistent frame: the same contact and cast shadow as the filing window. */
.workspace-shell{position:absolute;pointer-events:none;z-index:3;border:1px solid #746d5726;border-radius:18px;box-shadow:0 24px 50px -30px #3b352959,0 2px 6px #3b352912;opacity:0}
.merge-stage .result,.carry-editor.editor{border:0;box-shadow:none!important;transition:none}

html,body{overscroll-behavior-y:auto!important}
.result,.carry-editor{will-change:opacity}
.workspace-shell{z-index:0;background:var(--editor)}

/* Reserve the caption's place before the merge; the app never moves for it. */
@media(max-width:1260px){
 .merge-stage{margin-top:140px}
 .carry-caption{left:50%;right:auto;top:-120px!important;transform:translateX(-50%);width:620px;max-width:calc(100% - 80px);text-align:center}
 .carry-caption h3{font-size:31px;margin-bottom:12px}
 .carry-caption h3 br{display:none}
}
/* Outer book cloth changes caption ink only; the editor and reader are untouched. */
html[data-surround=cloth] .carry-caption { color: #38332e; }
html[data-surround=cloth] .carry-caption p { color: #514a43; }

.carry-editor .draft .draft-section{margin-top:32px;font:inherit}

/* A fixed canvas inside each moving frame: no line reflow or PDF zoom. */
.pair.writer article { width:450px; box-sizing:border-box; }
.pair.reader img { display:block; width:900px; max-width:none; margin:calc(-312 / 482 * 900px) 0 0; clip-path:inset(0 4%); }
