/* Only the added interactive product preview. Original site.css is unchanged. */
.app-preview-shell{text-align:left;scroll-margin-top:80px}
.app-preview-shell [hidden]{display:none!important}
.app-preview-shell button{font:inherit;cursor:pointer}
.app-preview-shell button:focus-visible,#preview-dialog button:focus-visible{outline:3px solid #e8a33d;outline-offset:3px}
.product-surface{background:#191a18;border:1px solid #31332d;border-radius:12px;overflow:hidden;box-shadow:0 22px 60px -20px #2427203a}
.preview-top{display:flex;justify-content:space-between;align-items:center;padding:13px 18px;gap:16px;background:#20211e;border-bottom:1px solid #ffffff16;color:#bebfb8}
.product-tabs{display:flex;gap:4px;align-items:center}
.product-tabs button{display:flex;gap:8px;align-items:center;border:1px solid transparent;background:none;color:#9b9d93;font-weight:600;font-size:13px;padding:8px 16px;border-radius:6px;min-height:36px}
.product-tabs button[aria-selected=true]{background:#35372f;color:#fff;border-color:#56594b}
.product-tabs img{width:20px;height:20px}
.code-symbol{font-size:21px;line-height:1;display:inline-flex;align-items:center;justify-content:center;color:#b5bba4}
.preview-tools{display:flex;gap:24px;align-items:center}
.preview-label{font:9px var(--mono);letter-spacing:1.1px;color:#91958a}
.preview-tools button,.preview-reset{background:none;border:0;color:#c4c7bc;display:flex;align-items:center;gap:8px;padding:7px;font-size:11px}
.preview-tools button:hover,.preview-reset:hover{color:#fff}
.preview-browser{position:relative;height:660px;background:#181916}
#app-preview{border:0;display:block;width:100%;height:100%;color-scheme:dark}
.preview-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:18px;padding:24px;text-align:center;color:#d0d2c9;font-size:14px;background:#20211f;z-index:1}
.preview-status button{background:#e8a33d;border:0;border-radius:5px;padding:8px 14px;color:#1a1a17;white-space:nowrap}
.preview-bottom{padding:12px 20px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #ffffff14;background:#20211e;gap:12px}
.scene-actions{display:flex;gap:22px;flex-wrap:wrap}
.scene-actions button{display:flex;align-items:center;gap:9px;background:none;border:0;color:#afb3a5;font-size:12px;padding:6px 0}
.scene-actions button>span:first-child{font-family:var(--mono);font-size:10px;color:#6c7460}
.scene-actions button:hover,.scene-actions button[aria-pressed=true]{color:#f1c985}
.scene-actions button:disabled{opacity:.5;cursor:wait}
.preview-footnote{display:flex;justify-content:space-between;gap:10px 25px;flex-wrap:wrap;padding-top:18px;color:#b0b0b5;font-size:12px;line-height:1.8}
.preview-footnote p{margin:0;max-width:720px}
.preview-footnote #ide-scope,.preview-footnote #preview-language-note{flex-basis:100%}
#preview-dialog{width:calc(100vw - 40px);max-width:1500px;height:calc(100dvh - 40px);max-height:1000px;padding:0;border:1px solid #555a4c;border-radius:10px;background:#181916;color:#e0e4d7;box-shadow:0 20px 100px #0008}
#preview-dialog::backdrop{background:#10130dd9;backdrop-filter:blur(8px)}
.dialog-bar{height:54px;display:flex;align-items:center;gap:25px;padding:0 18px;background:#242820;border-bottom:1px solid #454c3a;font-size:12px}
.dialog-bar>span{font-size:10px;color:#929c83}
.dialog-bar button{margin-left:auto;white-space:nowrap;font-size:12px;border:1px solid #555a4c;background:#343a2c;color:#e0e4d7;border-radius:5px;padding:7px 12px}
#preview-dialog-slot{height:calc(100% - 54px)}
#preview-dialog-slot iframe{width:100%;height:100%;border:0;display:block}
body.preview-modal-open{overflow:hidden}
.nojs-message{padding:24px;background:#242820;color:#e0e4d7}

@media(max-width:680px){
 .app-preview-shell .preview-top{padding:10px 9px;gap:8px}
 .app-preview-shell .product-tabs button{padding:7px 9px;font-size:12px}
 .app-preview-shell .preview-label{display:none}
 .app-preview-shell .preview-tools button{font-size:11px;padding:6px}
 .app-preview-shell .preview-browser{height:780px}
 .app-preview-shell .preview-bottom{padding:10px;align-items:start;gap:8px}
 .app-preview-shell .scene-actions{flex-direction:column;gap:2px}
 .app-preview-shell .scene-actions button{font-size:11px;min-height:30px}
 .app-preview-shell .preview-reset{white-space:nowrap;font-size:11px}
 .app-preview-shell .preview-footnote{font-size:11px;padding-top:15px;gap:8px}
 .app-preview-shell .interaction-hint{display:none}
 #preview-dialog{width:100vw;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0}
 #preview-dialog .dialog-bar>span{display:none}
}
