:root{color-scheme:dark;font-family:Arial,Helvetica,sans-serif;color:#f4f2ee;background:#111214}
*{box-sizing:border-box}
body{margin:0;height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.preview-header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px;padding:10px 24px;background:#191919;border-bottom:2px solid #d7262e}
.brand{display:flex;align-items:center;gap:11px;color:inherit;text-decoration:none;font-weight:750;font-size:16px;white-space:nowrap}
.brand img{object-fit:contain}
.brand small{display:block;margin-top:4px;color:#b5b5bc;font-size:10px;font-weight:500;letter-spacing:.12em;text-transform:uppercase}
.preview-tools{margin-left:auto}
.device-switch{display:flex;gap:4px;padding:4px;border:1px solid #414145;border-radius:8px;background:#101012}
.device-switch button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 12px;border:0;border-radius:5px;background:transparent;color:#c7c7cd;font:600 12px Arial,sans-serif;cursor:pointer}
.device-switch button:hover{background:#303036;color:white}
.device-switch button[aria-pressed=true]{background:#d7262e;color:#fff;box-shadow:0 2px 8px #d7262e35}
.device-switch svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
button:focus-visible,.brand:focus-visible{outline:2px solid #70d5e7;outline-offset:3px}
.preview-caption{display:flex;justify-content:space-between;gap:12px;padding:10px 24px 0;color:#a9abb5;font-size:11px;line-height:16px;flex:none}
.preview-stage{min-height:0;flex:1;display:flex;justify-content:center;align-items:center;padding:16px 24px 24px;overflow:hidden;background:radial-gradient(ellipse at center,#23252a00,#08090a66)}
.device-frame{position:relative;flex:none;overflow:hidden;border-radius:8px;outline:1px solid #42444a;box-shadow:0 18px 60px #0008;background:#0d0d0e}
body[data-device=tablet] .device-frame{border-radius:18px}
body[data-device=mobile] .device-frame{border-radius:24px}
body[data-device=desktop] .preview-caption{display:none}
body[data-device=desktop] .preview-stage{padding:0;background:none}
body[data-device=desktop] .device-frame{border-radius:0;outline:none;box-shadow:none}
iframe{display:block;position:absolute;top:0;left:0;border:0;transform-origin:top left;background:#0d0d0e;color-scheme:normal}
@media(max-width:600px){.preview-header{padding:8px 12px;gap:8px}.brand{font-size:13px;gap:7px}.brand img{width:28px;height:28px}.brand small{font-size:8px}.device-switch button{padding:8px;gap:4px;font-size:11px}.device-switch svg{display:none}.preview-caption{padding:8px 12px 0;font-size:10px}.preview-caption>span:last-child{display:none}.preview-stage{padding:12px}}
@media(max-width:350px){.brand img{display:none}.device-switch button{padding:7px 5px}}
@media print{.preview-header,.preview-caption{display:none}body{overflow:visible}}
