.edsw-device {
    --edsw-frame: #d6d9de;
    --edsw-radius: 20px;
    --edsw-bg-dark: #0e1116;
    --edsw-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
    width: 100%;
    margin: 0 auto;
    position: relative;
    user-select: none;
}

.edsw-empty {
    padding: 24px;
    border-radius: 16px;
    background: #f4f5f7;
    color: #333;
}

.edsw-device * {
    box-sizing: border-box;
}

.edsw-screen-shell,
.edsw-phone-shell {
    position: relative;
    margin: 0 auto;
}

.edsw-device-imac .edsw-screen-shell {
    background: linear-gradient(180deg, #f5f7fa 0%, var(--edsw-frame) 52%, #c2c8cf 100%);
    border-radius: calc(var(--edsw-radius) + 8px);
    padding: 1.2%;
    box-shadow: var(--edsw-shadow);
}

.edsw-screen-bezel {
    background: linear-gradient(180deg, #1f242c 0%, #0d1015 100%);
    border-radius: var(--edsw-radius);
    padding: 2.2%;
    position: relative;
}

.edsw-camera-dot {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #58616c, #111 70%);
    opacity: 0.85;
    z-index: 4;
}

.edsw-device-imac .edsw-screen-viewport {
    aspect-ratio: 16 / 10;
}

.edsw-bottom-chin {
    width: 100%;
    height: 42px;
    background: linear-gradient(180deg, #eef2f5 0%, #cad0d7 100%);
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.edsw-bottom-chin::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 50%;
    width: 76px;
    height: 6px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(150, 158, 168, 0.5);
}

.edsw-stand-neck {
    width: 14%;
    height: 86px;
    margin: 0 auto;
    background: linear-gradient(180deg, #dbe0e5 0%, #b9c0c8 100%);
    clip-path: polygon(26% 0%, 74% 0%, 88% 100%, 12% 100%);
}

.edsw-stand-base {
    width: 32%;
    height: 18px;
    margin: 0 auto;
    background: linear-gradient(180deg, #dce2e8 0%, #aeb5be 100%);
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.edsw-screen-viewport {
    position: relative;
    overflow: auto;
    border-radius: calc(var(--edsw-radius) - 6px);
    background: #fff;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: rgba(120,130,145,.75) rgba(0,0,0,.08);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.edsw-screen-viewport.dragging {
    cursor: grabbing;
}

.edsw-hide-scrollbar .edsw-screen-viewport {
    scrollbar-width: none;
}

.edsw-hide-scrollbar .edsw-screen-viewport::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.edsw-screen-viewport::-webkit-scrollbar {
    width: 10px;
}

.edsw-screen-viewport::-webkit-scrollbar-track {
    background: rgba(0,0,0,.08);
    border-radius: 99px;
}

.edsw-screen-viewport::-webkit-scrollbar-thumb {
    background: rgba(120,130,145,.75);
    border-radius: 99px;
}

.edsw-scroll-image {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
    pointer-events: none;
}

.edsw-with-glare .edsw-screen-bezel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--edsw-radius);
    background: linear-gradient(115deg, rgba(255,255,255,0.12) 8%, rgba(255,255,255,0.03) 28%, rgba(255,255,255,0) 45%);
    pointer-events: none;
}

.edsw-device-iphone {
    max-width: 420px;
}

.edsw-device-iphone .edsw-phone-shell {
    background: linear-gradient(180deg, #222831 0%, #090b0d 100%);
    border-radius: 42px;
    padding: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.edsw-device-iphone .edsw-screen-viewport {
    aspect-ratio: 9 / 19.5;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.08);
}

.edsw-phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    height: 28px;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    background: #090b0d;
    z-index: 4;
}

.edsw-phone-button {
    width: 34%;
    height: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    margin: 12px auto 2px;
}

@media (max-width: 767px) {
    .edsw-device-imac .edsw-bottom-chin {
        height: 28px;
    }

    .edsw-device-imac .edsw-stand-neck {
        height: 54px;
    }

    .edsw-device-imac .edsw-stand-base {
        height: 14px;
    }

    .edsw-device-iphone {
        max-width: min(100%, 360px);
    }
}
