*,*::before,*::after{box-sizing:border-box}
html,body{height:100%;margin:0}
body{display:flex;flex-direction:column;background:#eef1f7;color:#0f172a;font:14px/1.4 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased}
.pv-bar{display:flex;align-items:center;gap:16px;height:60px;padding:0 16px;background:#fff;border-bottom:1px solid #e2e8f0;flex:none}
.pv-back{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 12px 0 8px;border-radius:10px;color:#334155;text-decoration:none;font-weight:600}
.pv-back:hover{background:#f1f5f9}
.pv-title{display:flex;align-items:baseline;gap:10px;min-width:0;flex:1}
.pv-title strong{font-size:15px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pv-title span{flex:none;padding:2px 9px;border-radius:999px;background:#eef2ff;color:#3347c8;font-size:12px;font-weight:600}
.pv-devices{display:flex;gap:2px;padding:3px;border-radius:12px;background:#f1f5f9}
.pv-devices button{display:grid;place-items:center;width:38px;height:34px;border:0;border-radius:9px;background:transparent;color:#64748b;cursor:pointer}
.pv-devices button:hover{color:#0f172a}
.pv-devices button[aria-pressed=true]{background:#fff;color:#3d5af1;box-shadow:0 1px 2px rgba(15,23,42,.12)}
.pv-actions{display:flex;align-items:center;gap:8px;flex:1;justify-content:flex-end}
.pv-ghost,.pv-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:38px;border-radius:10px;font-weight:600;text-decoration:none}
.pv-ghost{width:38px;color:#475569;border:1px solid #e2e8f0}
.pv-ghost:hover{background:#f8fafc}
.pv-cta{padding:0 16px;background:#3d5af1;color:#fff}
.pv-cta:hover{background:#2f46d1}
.pv-back:focus-visible,.pv-ghost:focus-visible,.pv-cta:focus-visible,.pv-devices button:focus-visible{outline:2px solid #3d5af1;outline-offset:2px}
.pv-stage{flex:1;min-height:0;display:flex;justify-content:center;padding:0}
.pv-frame{position:relative;width:100%;height:100%;background:#fff;transition:width .25s ease,margin .25s ease,box-shadow .25s ease}
.pv-frame[data-device=tablet]{width:820px;max-width:100%;margin:20px 0;height:calc(100% - 40px);border-radius:14px;box-shadow:0 12px 40px rgba(15,23,42,.14);overflow:hidden}
.pv-frame[data-device=phone]{width:390px;max-width:100%;margin:20px 0;height:calc(100% - 40px);border-radius:22px;box-shadow:0 12px 40px rgba(15,23,42,.14);overflow:hidden}
.pv-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#fff}
.pv-loader{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:#fff;color:#475569;font-weight:600;transition:opacity .3s ease}
.pv-loader p{margin:0}
.pv-loader[hidden]{display:none}
.pv-loader.is-done{opacity:0;pointer-events:none}
.pv-spin{width:34px;height:34px;border-radius:50%;border:3px solid #e2e8f0;border-top-color:#3d5af1;animation:pv-rot .8s linear infinite}
@keyframes pv-rot{to{transform:rotate(360deg)}}
@media (max-width:760px){
.pv-bar{gap:8px;padding:0 10px}
.pv-back span,.pv-cta span,.pv-title span,.pv-devices{display:none}
.pv-back{padding:0 8px}
.pv-cta{width:38px;padding:0}
}
@media (prefers-reduced-motion:reduce){.pv-spin{animation-duration:2s}.pv-frame,.pv-loader{transition:none}}
