.proof-dialog{width:min(940px,calc(100% - 32px));max-height:calc(100dvh - 30px);background:#fcf9ed;color:#283b32;--proof-line:#dcded0;--leaf:#32604d;--leaf-dark:#234a3c}
.proof-dialog .layers-header{min-height:70px;padding:11px 18px}.proof-dialog .layers-heading h2{letter-spacing:.015em}.proof-dialog .layers-heading p{max-width:min(55vw,540px);font-size:12px}.proof-close{border:1px solid var(--proof-line);border-radius:10px;flex:none;width:44px;height:44px;margin-left:auto;color:#4b6256;background:#f5f5e9;font-size:24px;line-height:1}.proof-close:hover{background:#e9ede0}.proof-workspace{padding:16px 18px 20px}.proof-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.proof-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:4px;background:#eeeee3;border:1px solid #e3e4d8;border-radius:11px}.proof-steps button{display:flex;justify-content:center;align-items:center;gap:7px;white-space:nowrap;min-height:44px;padding:5px clamp(8px,1.8vw,16px);border-radius:7px;border:1px solid transparent;background:transparent;color:#3d5849;font-size:13px;font-weight:680}.proof-steps button span{color:#607a68;font:650 11px/1 ui-monospace,monospace}.proof-steps button[aria-pressed=true]{border-color:#b8c8b4;background:#fdfbf2;box-shadow:0 1px 2px #4355391c;color:#214a39}.proof-steps button:disabled{opacity:.47;cursor:not-allowed}.proof-badge{flex:none;white-space:nowrap;border-radius:50px;background:#e7eee2;color:#355f48;border:1px solid #c7d5c2;letter-spacing:.07em;font-size:11px;font-weight:700;padding:6px 11px}.proof-status{margin-top:12px;padding:10px 12px;border-radius:8px;background:#eef0e7;border:1px solid #dce1d1;color:#394e43;font-size:13px;line-height:1.5}.proof-status[data-state=ok]{background:#e8f0df;border-color:#c4d6b6;color:#2e523a}.proof-status[data-state=warn]{background:#f9ebd8;border-color:#e9ccab;color:#734221}.proof-mode-notes{padding:10px 2px 8px;color:#667268;font-size:12px;line-height:1.5}.proof-content{min-width:0}.proof-compare,.proof-motion{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.proof-compare[data-single=true]{grid-template-columns:1fr}.proof-card{margin:0;min-width:0;overflow:hidden;border-radius:10px;border:1px solid #475f52;background:#263d33}.proof-caption{display:flex;align-items:center;gap:8px;padding:9px 11px;color:#f0f5e9;font-size:12px;min-height:36px;line-height:1.32;background:#283f34}.proof-caption::before{content:'';width:6px;height:6px;flex:none;border-radius:50%;background:#a6ccae;box-shadow:0 0 9px #a6ccae45}.proof-image{position:relative;display:grid;place-items:center;height:clamp(204px,39dvh,418px);padding:10px;background-color:#33483d}.proof-grid{background-image:conic-gradient(#fbfff00b 25%,transparent 0 50%,#fbfff00b 0 75%,transparent 0);background-size:20px 20px}.proof-canvas{width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;display:block}.proof-placeholder{text-align:center;padding:12px;color:#ecf2e7;font-size:13px;line-height:1.6;max-width:20em}.proof-readout{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;border:1px solid var(--proof-line);border-radius:10px;padding:clamp(16px,3vw,32px);background:linear-gradient(145deg,#f3f4e9,#fbf7eb);gap:11px}.proof-readout h3{font-size:clamp(20px,2.8vw,31px);line-height:1.18;letter-spacing:-.015em}.proof-kicker{font-size:11px;letter-spacing:.16em;font-weight:750;color:#4d745d}.proof-readout p,.proof-import p,.proof-small{line-height:1.65;color:#506457;font-size:13px}.proof-small,.proof-readout .proof-small{font-size:12px}.proof-readout .proof-primary{margin-top:4px}.proof-btn{min-height:44px;border:1px solid #c6d2bd;background:#f9fbf1;border-radius:7px;padding:6px 12px;color:#315744;font-size:13px;font-weight:670;line-height:1.3;text-align:center}.proof-btn:hover:not(:disabled){background:#e6eedf;border-color:#a4bfa8}.proof-btn[aria-pressed=true]{background:#e6eedf;border-color:#97b09a;color:#234e39}.proof-btn:disabled{opacity:.52;cursor:not-allowed}.proof-primary{background:#35604d;border-color:#35604d;color:#fffdf0}.proof-primary:hover:not(:disabled){background:#234a3c;border-color:#234a3c}.proof-modes{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 9px}.proof-modes .proof-btn{flex:none}.proof-checkbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}.proof-import{margin-top:14px;padding:12px;border:1px solid var(--proof-line);border-radius:9px;background:#f5f5ea}.proof-import-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.proof-import h3,.proof-actions h3{font-size:15px;font-weight:710;line-height:1.3}.proof-import-head button{flex:none}.proof-import-head p{margin-top:4px}.proof-guide{margin-top:8px;color:#456451;font-size:12px;line-height:1.5}.proof-guide summary{cursor:pointer;min-height:44px;padding:12px 0 6px;font-weight:700}.proof-guide p{margin:3px 0 8px}.proof-guide a{color:#275d4a;font-weight:700;display:inline-flex;align-items:center;min-height:44px;text-underline-offset:3px}.proof-guide code{font-size:11px;overflow-wrap:anywhere}.proof-key-guide #proof-mask-keys{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:4px;padding:8px 0}.proof-key-guide #proof-mask-keys span{background:#e7ede0;padding:4px 6px;border-radius:4px}.proof-content .layers-content{padding:0}.proof-content .layer-list{max-height:calc(clamp(314px,55dvh,474px) - 76px)}.proof-part-solo{position:absolute;z-index:3;inset:5% 4% 15%;border-radius:10px;padding:10px;border:1px solid #96aa9d88;background:#e9ede1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.slice-card{margin:0;min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:6px;color:#24372e}.slice-frame{position:relative;min-height:0;overflow:hidden;border:1px solid #97a99d;border-radius:6px;background-color:#f9faf5;background-image:conic-gradient(#d9e2d8 25%,#f9faf5 0 50%,#d9e2d8 0 75%,#f9faf5 0);background-size:16px 16px}.slice-alpha .slice-frame{background:#26382f}.slice-frame .layer-art{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}.slice-card figcaption{font-size:12px;line-height:1.25;padding:2px 1px}@media(max-width:480px){.proof-part-solo{inset:4% 3% 17%;padding:6px;gap:5px}.slice-card figcaption{font-size:11px}}.proof-actions{align-self:start;display:grid;gap:6px;border:1px solid var(--proof-line);padding:12px;border-radius:9px;background:#f5f5ea}.proof-motion{grid-template-columns:minmax(0,1fr) minmax(200px,31%)}.proof-actions .motion-item{text-align:left}
@media(max-width:620px){.proof-dialog{width:calc(100% - 18px);max-height:calc(100dvh - 18px)}.proof-dialog .layers-header{min-height:55px;padding:6px 10px}.proof-workspace{padding:10px}.proof-top{align-items:flex-start;flex-wrap:wrap;gap:6px}.proof-steps{width:100%}.proof-steps button{padding-inline:4px;gap:4px;font-size:12px}.proof-badge{padding-block:3px}.proof-status{margin-top:8px}.proof-compare,.proof-motion{gap:7px}.proof-readout{padding:12px;gap:7px}.proof-readout h3{font-size:19px}.proof-readout p{font-size:12px}.proof-motion{grid-template-columns:1fr}.proof-motion .proof-image{height:clamp(210px,42dvh,320px)}.proof-content .layer-list{max-height:191px}.proof-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.proof-actions h3,.proof-actions p,.proof-actions .proof-primary{grid-column:1/-1}.proof-import-head{align-items:flex-start;flex-wrap:wrap}.proof-image{padding:5px}.proof-caption{padding-inline:7px;font-size:11px}}
@media(max-width:375px){.proof-compare:has(.proof-readout){grid-template-columns:1fr}.proof-compare:has(.proof-readout) .proof-image{height:180px}}

/* The folios use a common padded source rectangle. Only their display pose changes. */
.layer-board{height:clamp(314px,55dvh,474px);min-width:0;isolation:isolate;position:relative;overflow:hidden;border:1px solid #d9d3c5;border-radius:10px;background:radial-gradient(ellipse at 55% 38%,#f8f5eb,#efebe0 95%)}
.layer-diagram{position:absolute;inset:0;display:grid;grid-template-rows:minmax(0,1fr) 53px}
.layer-field{position:relative;container-type:size}
.layer-planes{position:absolute;inset:0}
.layer-sheet,.layer-composite{--folio-h:min(76cqh,calc(51cqw / var(--folio-ratio)));position:absolute;top:var(--sheet-y,50%);left:var(--sheet-x,56%);width:calc(var(--folio-h) * var(--folio-ratio));height:var(--folio-h);transform:translate(-50%,-50%)}
.layer-sheet{isolation:isolate;transform:translate(-50%,-50%) perspective(max(500px,135cqw)) rotateY(var(--sheet-tilt,0deg)) skewY(var(--sheet-slant,0deg))}
.layer-sheet::before{content:'';position:absolute;z-index:-1;inset:0;border:1px solid #a39e91a8;background:linear-gradient(155deg,#fffdf419,#fffdf402);opacity:var(--sheet-edge,0)}
.layer-sheet .layer-art,.layer-composite .layer-art{position:absolute;inset:0}
.layer-tab{position:absolute;left:2px;color:#4d4a40;font:650 10px/1 ui-monospace,monospace;letter-spacing:-.045em;white-space:nowrap;opacity:var(--sheet-label,0)}
.layer-sheet[data-label=top] .layer-tab{bottom:calc(100% + 4px)}
.layer-sheet[data-label=bottom] .layer-tab{top:calc(100% + 4px)}
.layer-scale{align-self:center;display:grid;grid-template-columns:auto minmax(70px,1fr) auto;align-items:center;gap:10px;width:min(60%,340px);min-width:min(100% - 30px,228px);margin-inline:clamp(14px,4%,26px);color:#615b4e;font-size:12px;line-height:1.2;white-space:nowrap}
.layer-range{appearance:none;width:100%;min-width:0;height:44px;margin:0;background:transparent;color:#242521;cursor:ew-resize;touch-action:pan-y}
.layer-range:focus-visible{outline:2px solid #237ddb;outline-offset:1px;border-radius:5px}
.layer-range::-webkit-slider-runnable-track{height:5px;border-radius:99px;box-shadow:inset 0 0 0 1px #b6b1a5;background:linear-gradient(to right,#242521 var(--range-fill),#e5e1d8 var(--range-fill))}
.layer-range::-moz-range-track{height:5px;border-radius:99px;box-shadow:inset 0 0 0 1px #b6b1a5;background:#e5e1d8}
.layer-range::-moz-range-progress{height:5px;border-radius:99px;background:#242521}
.layer-range::-webkit-slider-thumb{appearance:none;width:13px;height:13px;margin-top:-4px;border:0;border-radius:50%;background:#242521}
.layer-range::-moz-range-thumb{width:13px;height:13px;border:0;border-radius:50%;background:#242521}
.layer-board-caption{position:absolute;z-index:4;bottom:10px;left:11px;max-width:calc(100% - 24px);padding:4px 8px;border:1px solid #d7d1bf;border-radius:6px;background:#fbf8ed;color:#394b40;font-size:12px;line-height:1.3}
@media(max-width:620px){
  .layer-board{height:clamp(296px,48dvh,410px)}
  .layer-scale{width:min(82%,340px)}
  .layer-tab{font-size:9px}
  .layer-sheet[data-label=top] .layer-tab{bottom:calc(100% + 3px + var(--label-lift))}
  .layer-sheet[data-label=bottom] .layer-tab{top:calc(100% + 3px + var(--label-lift))}
}
