/* Keep complete application windows rather than rebuilding them as summaries. */
.scene-layer.legacy-layer{display:flex;align-items:center;justify-content:center}
.animated-pro:not(.legacy-ready) .legacy-open{display:none}
.legacy-layer>.legacy-crm{flex:none}
body[data-page="restaurant"] .morph-stage[data-scene="0"]>.visual-card,
.morph-stage:is([data-scene="1"],[data-scene="4"])>.visual-card,
.snapshot-card>.visual-card:has(.legacy-layer){border-color:transparent;background:transparent;box-shadow:none;overflow:visible}
.animated-pro .legacy-open{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;margin:16px 0;padding:11px 16px;border:1px solid #c5ddd4;border-radius:13px;background:#fff;color:#235e56;font:600 14px/1.4 var(--f-display);cursor:pointer}
.legacy-open>span{font-size:23px;font-weight:400;line-height:1}
.animated-pro .legacy-open:hover{background:#ecf9f3;border-color:#44b798}
.contract-screen:has(.legacy-crm){max-width:760px;background:transparent;border:0;border-radius:0;overflow:visible}
.contract-figure:has(.legacy-crm){text-align:center}
.contract-figure:has(.legacy-crm) figcaption{margin-top:0}
.legacy-dialog{width:min(1120px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid #c4dfd5;border-radius:22px;background:#f4faf7;color:#163348;box-shadow:0 24px 80px #16334830;overflow:hidden}
.legacy-dialog::backdrop{background:#102f3c99}
.legacy-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 24px;border-bottom:1px solid #d0e3dc;background:#fff}
.animated-pro .legacy-dialog-head h2{font-size:20px;line-height:1.3;margin:0;letter-spacing:-.03em}
.animated-pro .legacy-dialog-head p{font-size:12px;margin:5px 0 0;color:#59766d}
.legacy-close{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid #cadfd7;border-radius:50%;background:#edf7f2;color:#163348;font:400 30px/1 sans-serif;cursor:pointer}
.legacy-expanded-scroll{overflow:auto;max-height:calc(100dvh - 150px);overscroll-behavior:contain;touch-action:pan-x pan-y;scrollbar-width:thin}
.legacy-expanded-scroll>.legacy-crm{width:max(840px,100%);max-width:none;margin:0}
.legacy-dialog .legacy-pan-hint{display:none}
@media(max-width:760px){
 .legacy-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:16px}
 .legacy-dialog-head{padding:14px;gap:12px}
 .animated-pro .legacy-dialog-head h2{font-size:17px}
 .legacy-dialog .legacy-pan-hint{display:block;margin:0;padding:10px 14px;font-size:12px;line-height:1.4;color:#4a6d62;background:#e9f5ee}
 .legacy-expanded-scroll{max-height:calc(100dvh - 160px)}
 .animated-pro .legacy-open{font-size:14px}
}
