/* EdgeFabric Dashboard — phone-twin-3d
   3D iPhone twins (Three.js WebGL) with live screen texture. */

.phone-twin .phone-twin-canvas-wrap {
    min-height: 440px;
    height: 540px;
}

.phone-twin .phone-twin-canvas-wrap.is-mini {
    height: 420px;
    min-height: 360px;
}

.phone-view-seg {
    display: inline-flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.phone-view-seg button {
    appearance: none;
    border: none;
    background: transparent;
    color: #8daac4;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
}

.phone-view-seg button.is-active {
    background: rgba(56, 189, 248, 0.2);
    color: #e0f2fe;
}

.phone-view-seg button:disabled {
    opacity: 0.45;
    cursor: default;
}

.fold-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(19, 31, 48, 0.92), rgba(10, 19, 31, 0.96));
    font-size: 0.72rem;
    color: #8daac4;
}

.fold-control input[type="range"] {
    flex: 1;
    min-width: 120px;
    accent-color: #38bdf8;
}

.fold-control .btn {
    white-space: nowrap;
}

/* ── 2D bezels: iPhone 18 Pro (smaller island) + iPhone Duo (closed book) ── */

.phone-frame.ios.iphone-18-pro {
    background: linear-gradient(145deg, #3a3f47 0%, #17191d 30%, #0c0d10 70%, #23262c 100%);
    border-radius: 54px;
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.14),
        inset 0 0 0 5px #000,
        0 24px 60px rgba(0, 0, 0, 0.55);
}

.dynamic-island.is-sm {
    width: 68px;
    height: 22px;
}

.phone-frame.ios.iphone-duo {
    background: linear-gradient(145deg, #4a4f58 0%, #1a1c20 35%, #0c0d10 70%, #262a31 100%);
    border-radius: 30px;
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.16),
        inset 0 0 0 5px #000,
        inset 3px 0 0 0 rgba(255, 255, 255, 0.06),
        0 24px 60px rgba(0, 0, 0, 0.55);
}

.phone-notch.duo-cover-top {
    height: 30px;
    background: #000;
    border-radius: 0 0 14px 14px;
}

.duo-cover-cam {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #1d3a5f 0%, #05080e 70%);
    box-shadow: inset 0 0 0 2px rgba(120, 150, 190, 0.25);
    margin: 8px auto 0;
}
