/* Scope confirmed 2026-10-24: outer frame only; original input UI retained. */
body.sp-system{margin:0;background:var(--sp-outside)}
.sp-system .shell.sp-app-shell{width:100%;max-width:480px;margin-inline:auto}
/* Shared wrapper must not change the existing controls' inherited line-height. */
body.sp-system:has(#app){font-family:var(--sans);line-height:normal;word-break:normal;overflow-wrap:normal}

/* Final preview footer: same hierarchy and spacing as the approved reunion footer. */
.sp-system .shell.result .preview-footer{--sp-footer-bg:#000;--sp-footer-text:#e8dfc7;--sp-footer-muted:#b3ad9e;--sp-font:Arial,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;margin-top:36px;padding:32px 0 28px;background:#000;box-shadow:0 0 0 100vmax #000;clip-path:inset(0 -100vmax);border-top:1px solid #3b322d;text-align:left}
.sp-system .shell.result .preview-footer .sp-footer-brand{font-family:var(--serif);font-size:28px;line-height:1.4;gap:10px 16px}
.sp-system .shell.result .preview-footer .sp-footer-brand span{font-family:var(--serif);font-size:16px;line-height:24px}
.sp-system .shell.result .preview-footer .sp-footer-policy{margin-top:30px;gap:0 16px}
.sp-system .shell.result .preview-footer .sp-footer-policy a{font-family:var(--sp-font);font-size:13px;white-space:nowrap}
.sp-system .shell.result .preview-footer p{font-family:var(--sp-font);font-size:12px;line-height:20px;letter-spacing:0}
.sp-system .shell.result .preview-footer .sp-footer-contact{font-size:13px;line-height:22px;margin:26px 0 0}
.sp-system .shell.result .preview-footer .sp-footer-email{font-family:var(--sp-font);font-size:15px;overflow-wrap:anywhere}
.sp-system .shell.result .preview-footer .sp-footer-hosting{margin:30px 0 0}
.sp-system .shell.result .preview-footer .sp-footer-copyright{margin:8px 0 0}
.sp-system .shell.result .purchase-content-notice{margin:32px 0 0;padding:24px 0 0;border-top:1px solid #292929;color:#999;text-align:center}
.sp-system .shell.result .purchase-content-notice p{font-family:var(--sp-font);font-size:12px;font-weight:400;color:#999;line-height:1.95;letter-spacing:0;word-break:keep-all;overflow-wrap:break-word;margin:0}
.sp-system .shell.result .purchase-content-notice p+p{margin-top:20px}

/* Return to a saved preview: same palette as the book and payment controls. */
.hon-return-dialog{box-sizing:border-box;width:min(420px,calc(100% - 40px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #7b6445;background:#17120f;color:#eee2cb;padding:38px 28px 26px;text-align:center;box-shadow:0 16px 70px #0009;font-family:"Noto Serif KR",serif}
.hon-return-dialog::backdrop{background:#000b;backdrop-filter:blur(4px)}
.hon-return-dialog .hon-return-close{position:absolute;right:12px;top:8px;min-width:44px;min-height:44px;border:0;background:none;color:#bdb2a0;font:28px Arial;cursor:pointer}
.hon-return-dialog .hon-return-eyebrow{font-size:12px;letter-spacing:.18em;color:#ad9165;margin:0 0 20px}
.hon-return-dialog h2{font-size:23px;line-height:1.55;font-weight:600;margin:0 0 18px;color:#e4c994}
.hon-return-dialog .hon-return-description{font-size:15px;line-height:1.9;word-break:keep-all;margin:0 0 28px;color:#d1c4ae}
.hon-return-dialog button:focus-visible{outline:2px solid #e4c994;outline-offset:4px}
.hon-return-dialog .hon-return-continue{display:block;width:100%;min-height:52px;padding:13px 12px;border:1px solid #a28a60;background:#4b2e34;color:#f4e5ce;font-family:inherit;font-weight:600;font-size:16px;line-height:1.5;cursor:pointer}
.hon-return-dialog .hon-return-new{display:block;margin:12px auto 0;padding:12px;min-height:44px;border:0;background:none;color:#bdb2a0;font-family:inherit;font-size:14px;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.hon-return-dialog .hon-return-error{font:13px/1.7 Arial,sans-serif;color:#e7a59b;margin:0 0 16px}
.hon-return-dialog button:disabled{opacity:.6;cursor:wait}
@media(max-width:600px){.hon-return-dialog{width:100%;max-width:100%;margin:auto 0 0;padding:36px 28px max(24px,env(safe-area-inset-bottom));border-bottom:0;border-left:0;border-right:0;border-radius:18px 18px 0 0}}
