.device-preview{--ink:#17333a;box-sizing:border-box;border:0;padding:0;width:100vw;max-width:none;height:100svh;max-height:none;margin:0;background:radial-gradient(ellipse at 50% 38%,#faf9f5,#e1e7e3);color:var(--ink);overflow:hidden;font-family:Arial,sans-serif}.device-preview::backdrop{background:#122c32b0;backdrop-filter:blur(14px)}.device-toolbar{position:absolute;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:22px 36px;z-index:4}.device-toolbar h2{font:500 20px/1.2 Arial,sans-serif;letter-spacing:-.4px;margin:0;color:var(--ink)}.device-close{border:1px solid #18333b25;background:#ffffff90;border-radius:50%;width:42px;height:42px;font-size:20px;color:var(--ink);cursor:pointer;transition:background .2s,transform .2s}.device-close:hover{background:white;transform:rotate(90deg)}.device-preview button:focus-visible{outline:3px solid #bd7b23;outline-offset:5px}.device-stage{position:absolute;left:50%;top:49%;transform:translate(-50%,-50%);width:min(1040px,85vw,calc((100svh - 210px)*1.65));perspective:1800px;filter:drop-shadow(0 30px 24px #19323230)}.device-shell{position:relative;box-sizing:border-box;padding:16px 10px 11px;border:2px solid #bac0c1;background:linear-gradient(120deg,#24292c,#080b0d 60%,#3b4143);border-radius:19px 19px 10px 10px;box-shadow:inset 0 0 0 1px #030607,0 0 0 1px #778486;transform-origin:50% 90%}.device-camera{position:absolute;top:5px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:#203b4e;box-shadow:0 0 0 2px #080b0e,inset 1px 1px #6394a5}.device-screen{position:relative;width:100%;aspect-ratio:16/10;overflow:hidden;background:#faf9f3;border-radius:5px}.device-screen iframe{position:absolute;inset:0;width:100%;height:100%;display:block;border:0;background:white}.device-base{height:16px;margin-left:-5%;width:110%;border-radius:2px 2px 50% 50% / 2px 2px 14px 14px;background:linear-gradient(90deg,#899193,#e2e5e3 9%,#c5ccca 50%,#eceeeb 91%,#929b9c);box-shadow:inset 0 2px #fff9,inset 0 -4px 4px #65747788;position:relative}.device-base:before{content:'';position:absolute;left:43%;width:14%;height:5px;background:#a1aaa9;border-radius:0 0 10px 10px;box-shadow:inset 0 1px 3px #44545744}.device-home{display:none}.device-stage[data-mode=phone]{width:min(300px,calc((100svh - 185px)*.47),74vw)}[data-mode=phone] .device-shell{padding:7px;border-radius:43px;background:linear-gradient(105deg,#adb5b4,#3c4546 2%,#171c1e 3%,#090c0e 97%,#a9b1ae 99%);border:2px solid #73807f;box-shadow:inset 0 0 0 2px #11181b,0 0 0 1px #d9dfdb}.device-shell:before,.device-shell:after{content:'';position:absolute;opacity:0;background:#66716e;border-radius:3px;transition:opacity .2s}[data-mode=phone] .device-shell:before{opacity:1;left:-5px;top:24%;width:3px;height:48px}[data-mode=phone] .device-shell:after{opacity:1;right:-5px;top:30%;width:3px;height:66px}[data-mode=phone] .device-screen{aspect-ratio:9/19.5;border-radius:34px}[data-mode=phone] .device-camera{z-index:2;top:15px;left:calc(50% - 34px);width:68px;height:19px;background:#06090b;border:1px solid #242d32;border-radius:14px;box-shadow:inset -8px 0 5px #11181c}[data-mode=phone] .device-screen iframe{width:390px;height:845px;transform:scale(var(--phone-scale, .7));transform-origin:top left}[data-mode=phone] .device-home{display:block;position:absolute;bottom:13px;left:36%;width:28%;height:4px;border-radius:4px;background:#eee;box-shadow:0 1px 3px #0009}[data-mode=phone] .device-base{display:none}.device-modes{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);display:flex;gap:5px;padding:6px;background:#fcfdf9e8;border:1px solid #fff;border-radius:20px;box-shadow:0 8px 30px #15363818,0 1px 3px #15363818;backdrop-filter:blur(20px)}.device-modes button{display:flex;align-items:center;gap:10px;border:0;padding:12px 19px;border-radius:14px;color:#62706c;background:transparent;font:500 13px Arial,sans-serif;cursor:pointer;transition:background .25s,color .25s,box-shadow .25s}.device-modes button svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.5}.device-modes button[aria-pressed=true]{background:#193c40;color:#fff;box-shadow:0 3px 8px #193c4030}.device-loading{position:absolute;inset:0;padding:8%;z-index:1;background:#f4f4ee}.device-loading[hidden]{display:none}.device-loading i{display:block;height:22px;width:60%;background:#dfe4de;margin-bottom:25px;border-radius:5px;animation:skeleton 1s ease-in-out infinite alternate}.device-loading i:nth-child(2){width:100%;height:50%}.device-loading i:nth-child(3){width:75%}@keyframes skeleton{to{opacity:.4}}@media(max-width:600px){.device-toolbar{padding:18px}.device-toolbar h2{font-size:17px}.device-stage{width:88vw}.device-stage[data-mode=phone]{width:min(300px,calc((100svh - 190px)*.47),74vw)}.device-modes{bottom:20px}.device-modes button{padding:11px 17px}.device-shell{padding:12px 6px 7px;border-radius:12px}.device-base{height:10px}}@media(prefers-reduced-motion:reduce){.device-preview *{animation:none!important;transition:none!important}}

/* Device geometry is independent of the enclosing browser's width. */
.device-stage[data-mode=phone] .device-shell{padding:28px 7px 12px}
.device-stage[data-mode=phone] .device-screen{border-radius:22px}
.device-stage[data-mode=phone] .device-camera{top:9px;height:11px;width:48px;left:calc(50% - 24px)}
.device-toolbar h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.device-toolbar{justify-content:flex-end}
.device-stage{top:47%;width:min(1040px,85vw,calc((100svh - 180px)*1.6))}
.device-screen iframe{width:1440px;height:900px;transform:scale(var(--preview-scale,1));transform-origin:top left}
[data-mode=phone] .device-screen iframe{width:390px;height:845px;transform:scale(var(--preview-scale,.7))}
.device-modes{bottom:max(24px,env(safe-area-inset-bottom));border-radius:999px;padding:4px 12px;gap:14px;box-shadow:0 3px 18px #15363812}
.device-modes button{border-radius:0;background:none!important;box-shadow:none!important;padding:12px 5px;color:#596b68;border-bottom:2px solid transparent}
.device-modes button[aria-pressed=true]{color:#173c40;border-bottom-color:currentColor}
.device-modes button svg{width:19px;height:19px}
.device-close:hover{transform:none}
@media(max-width:600px){.device-stage{width:min(88vw,calc((100svh - 180px)*1.6))}.device-stage[data-mode=phone]{width:min(300px,calc((100svh - 175px)*.455),80vw)}.device-modes{bottom:max(18px,env(safe-area-inset-bottom))}}
