/* Scope the demo shell carefully: the nested editor keeps its own typography. */
/* Keep the page width unchanged when a dialog locks background scrolling. */
html{scrollbar-gutter:stable}
.cv-demo-bridge{margin:28px 0 0;padding:0;max-width:none;background:var(--paper,#f8f8f2);border:1px solid var(--line,#d7ded4);border-radius:5px;scroll-margin-top:90px}
.cv-demo-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;background:#f1f4ed;border-radius:5px}
.cv-demo-heading>div{min-width:0}.cv-demo-heading h3{font:italic 600 23px/1.2 Georgia,serif;letter-spacing:-.025em;color:var(--ink);margin:0 0 7px}.cv-demo-heading p{font-size:14px;line-height:1.55;color:var(--body);margin:0}
.cv-demo-bridge [data-demo-open],.cv-demo .db-export-actions .button,.demo-upgrade .button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:0;min-height:44px;margin:0;padding:10px 14px;gap:8px;font:600 13px/20px Arial,Helvetica,sans-serif;text-decoration:none}
.cv-demo-bridge [data-demo-open]{flex-shrink:0;background:transparent;border:1px solid #b4c0ae;color:var(--ink);border-radius:4px}
.cv-demo-bridge [data-demo-open]:hover{background:var(--soft,#eaf0e6);transform:none}
.demo-toggle-label{display:grid;text-align:center}.cv-demo-heading [data-demo-open] span{font:inherit}.demo-toggle-label>span{grid-area:1/1;white-space:nowrap}.demo-toggle-label .is-reserved{visibility:hidden}
[data-demo-open] svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;transition:transform .18s ease}[data-demo-open][aria-expanded=true] svg{transform:rotate(180deg)}
.cv-demo[hidden]{display:none}.cv-demo{border-top:1px solid var(--line);padding:22px 22px 0;scroll-margin-top:90px}
.demo-loading{padding:12px 0}.demo-purchase{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;padding:18px 0;border-top:1px solid var(--line);margin-top:16px}
.cv-demo .application-storage{justify-content:flex-end}
.demo-purchase .text-link{font-size:12px;line-height:1.6}.demo-purchase .text-link>span{white-space:nowrap}.demo-purchase .demo-customer-link{font-weight:400;color:var(--body)}
.cv-demo .db-paper-viewport{height:440px!important;max-height:440px!important;min-height:0!important;overflow:clip!important;overscroll-behavior:none}.cv-demo #db-preview-frame{pointer-events:none}
.db-demo-tier{display:inline-block;margin-left:7px;color:#647465;font:400 10px/1.4 Arial,Helvetica,sans-serif;vertical-align:middle;white-space:nowrap}
.cv-demo .db-demo-locked summary{cursor:pointer}.cv-demo .db-demo-locked summary::marker{color:#829185}.cv-demo .db-demo-locked summary:hover{color:#42634e}.cv-demo .db-demo-locked summary:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.cv-demo .db-preview-note,.cv-demo .db-review-sync,.cv-demo .db-apply,.cv-demo .db-completion-status{display:none!important}
.cv-demo .db-export-actions{gap:8px;margin-top:16px}.cv-demo .db-export-actions .button{flex:0 0 auto;background:transparent;border:1px solid #b4c0ae;color:var(--ink);box-shadow:none}
.cv-demo .db-export-actions .button:hover{background:var(--soft,#eaf0e6);transform:none}
.cv-demo .db-export-actions .db-demo-tier{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}
.db-demo-export-note{flex-basis:100%;order:-1;font-size:11px;line-height:1.5;color:#647465}
.cv-demo [data-demo-gate]{cursor:pointer}
.demo-upgrade{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:26px;border:1px solid var(--line);border-radius:5px;background:var(--paper,#f8f8f2);color:var(--ink);box-shadow:0 16px 60px #152d3326}
.demo-upgrade::backdrop{background:rgba(25,42,35,.3)}.demo-upgrade-open{overflow:hidden}
.demo-upgrade .eyebrow{margin:0 0 12px;color:#647465}.demo-upgrade h2{font:500 27px/1.18 Arial,Helvetica,sans-serif;letter-spacing:-.035em;margin:0 0 14px}.demo-upgrade #demo-upgrade-body{color:var(--body);font-size:14px;line-height:1.65;margin:0}
.demo-upgrade-price{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:18px 0 0;font-size:13px;line-height:1.5}.demo-upgrade-price strong{font-weight:600}.demo-upgrade-price span{font-size:12px;color:var(--body)}
.demo-upgrade-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;margin-top:18px}.demo-upgrade .button{white-space:normal;text-align:center}.demo-upgrade .text-button{min-height:44px;font-size:12px;padding:8px 0}.demo-upgrade-access{display:inline-block;text-align:left;font-size:12px;line-height:1.6;font-weight:400;margin-top:18px}
@media(max-width:650px){.cv-demo-heading{align-items:flex-start;flex-direction:column;gap:14px;padding:18px 16px}.cv-demo-heading h3{font-size:22px}.cv-demo-bridge [data-demo-open]{align-self:flex-start}.cv-demo{padding:16px 12px 0}.cv-demo-bridge{margin-top:22px}.demo-purchase{align-items:flex-start;flex-direction:column;gap:10px}.cv-demo .db-paper-viewport{height:280px!important;max-height:280px!important}.demo-upgrade{padding:22px}.demo-upgrade h2{font-size:25px}.demo-upgrade-actions{align-items:flex-start;flex-direction:column;gap:4px}}
@media(prefers-reduced-motion:reduce){[data-demo-open] svg{transition:none}}
@media print{.cv-demo-bridge,.demo-upgrade{display:none!important}}
