.source-layout-reader .panel-col { width:100%; max-width:1512px; padding:74px 36px 80px; }
.panel.source-layout-lab.has-reader-jump .panel-col { padding-top:76px; }
.panel.source-layout-reader { height:100dvh; max-height:100dvh; overflow-y:auto; }
.source-layout-context { font:14px/1.5 Roboto,Arial,sans-serif; color:#655f54; border-bottom:1px solid #e7e1d7; margin:0 0 28px; padding-bottom:16px; }
.source-layout-jump { margin:0 0 26px; }
.source-layout-jump[hidden] { display:none; }
.source-layout-jump label { display:grid; gap:7px; width:min(100%,360px); color:#655f54; font:500 12px/1.2 Roboto,Arial,sans-serif; letter-spacing:.08em; text-transform:uppercase; }
.source-layout-jump select { min-height:44px; width:100%; border:1px solid #cfc8bc; border-radius:3px; background:#fff; color:#181818; font:400 16px/1.2 Roboto,Arial,sans-serif; letter-spacing:0; text-transform:none; padding:9px 36px 9px 12px; }
.source-layout-jump select:focus-visible { outline:2px solid #191919; outline-offset:2px; }
.source-layout-stage { position:relative; width:100%; margin-bottom:48px; }
.source-layout-canvas { position:relative; transform:scale(var(--source-scale,1)); transform-origin:top left; font-family:open-sans-v2,Arial,sans-serif; color:rgb(24,24,24); }
.source-layout-canvas .source-layout-node { position:absolute; margin:0; padding:0; white-space:pre-wrap; overflow-wrap:break-word; max-width:none; max-height:none; box-sizing:border-box; }
.source-layout-canvas img,.source-layout-canvas video { display:block; }
.recommendation-letter-trigger { border:0; background:transparent; cursor:zoom-in; overflow:visible; transition:transform .2s ease,box-shadow .2s ease; }
.recommendation-letter-image { display:block; width:100%; height:100%; object-fit:contain; }
.recommendation-letter-trigger:focus-visible { outline:3px solid #746a58; outline-offset:5px; }
.recommendation-preview[hidden] { display:none; }
.recommendation-preview { position:fixed; inset:0; z-index:140; display:grid; place-items:center; padding:72px 24px 24px; background:#181715e8; }
.recommendation-preview img { display:block; width:auto; height:auto; max-width:min(94vw,900px); max-height:calc(100dvh - 100px); object-fit:contain; background:#fff; box-shadow:0 18px 70px #0008; }
.recommendation-preview-close { position:fixed; top:max(14px,env(safe-area-inset-top)); right:max(16px,env(safe-area-inset-right)); z-index:1; min-width:88px; min-height:44px; border:1px solid #fff; border-radius:999px; background:#fff; color:#181818; font:500 13px/1 Roboto,Arial,sans-serif; cursor:pointer; }
.panel.has-recommendation-preview { overflow:hidden; }
@media (hover:hover) and (pointer:fine) {
  .recommendation-letter-trigger:hover { z-index:4; transform:scale(1.12); box-shadow:0 16px 48px #0002; }
}
.source-layout-media-content { position:absolute; display:block; max-width:none; max-height:none; transform-origin:center; }
.source-layout-reader.source-layout-lab .panel-col { max-width:1440px; padding:0 0 60px; }
.panel.source-layout-lab > .panel-controls { background:none; }
.source-related-analysis { display:grid; grid-template-columns:1fr 1fr; gap:36px; }
.source-related-analysis img { max-width:100%; max-height:260px; object-fit:contain; }
.source-related-analysis h3 { font-size:24px; font-weight:400; }
.source-related-analysis p { font-size:17px; line-height:1.6; }
/* The source geometry remains intact while a reader has room for its original type scale.
   source-layout-flow is assigned from the live reader container, not the viewport. */
.source-layout-stage.source-layout-flow .source-layout-canvas { width:100% !important; height:auto !important; transform:none; display:flex; flex-direction:column; gap:22px; }
.source-layout-stage.source-layout-flow .source-layout-canvas .source-layout-node { position:static; width:100% !important; min-height:0 !important; height:auto !important; }
.source-layout-stage.source-layout-flow .source-layout-canvas .source-layout-prose { font-size:clamp(16px,1.55vw,18px) !important; line-height:1.65 !important; }
.source-layout-stage.source-layout-flow .source-layout-canvas :is(h1,h2,h3,h4).source-layout-node:not(.source-layout-prose) { font-size:clamp(24px,3vw,32px) !important; line-height:1.2 !important; }
.source-layout-stage.source-layout-flow .source-layout-canvas .source-layout-node.source-layout-media { position:relative; aspect-ratio:var(--source-media-aspect); overflow:visible; }
.source-layout-stage.source-layout-flow .source-layout-node span { font-size:inherit !important; line-height:inherit !important; }
.source-layout-stage.source-layout-flow .recommendation-letter-trigger { width:min(100%,392px) !important; height:auto !important; align-self:center; }
.source-layout-stage.source-layout-flow .recommendation-letter-image { height:auto; }
@media (max-width:760px) {
  .source-layout-reader .panel-col { padding:72px 22px 60px; }
  .source-layout-stage .source-layout-canvas { width:100% !important; height:auto !important; transform:none; display:flex; flex-direction:column; gap:22px; }
  .source-layout-stage .source-layout-canvas .source-layout-node { position:static; width:100% !important; min-height:0 !important; height:auto !important; }
  .source-layout-stage .source-layout-canvas .source-layout-prose { font-size:17px !important; line-height:1.65 !important; }
  .source-layout-stage .source-layout-canvas :is(h1,h2,h3,h4).source-layout-node:not(.source-layout-prose) { font-size:clamp(24px,6vw,34px) !important; line-height:1.2 !important; }
  .source-related-analysis { grid-template-columns:1fr; }
  .source-layout-reader.source-layout-lab .panel-col { padding:76px 22px 60px; }
  .source-layout-stage .source-layout-canvas .source-layout-node.source-layout-media { position:relative; aspect-ratio:var(--source-media-aspect); }
  .source-layout-stage .source-layout-node span { font-size:inherit !important; line-height:inherit !important; }
}
