/* [ПРОТОТИП] Панель «Прототип» и рамка телефона (proto-tools.js). Только для предпросмотра, на сайте не показывается. */
.pt-proto { position: fixed; right: 12px; bottom: calc(var(--siteplayer-h, 0px) + 12px); z-index: 70; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 6px; font-size: 12px; }
html.pt-own-panel .pt-proto, html.pt-in-phone .pt-proto, html.pt-in-phone #vspProto { display: none; }
.pt-proto-t { height: 28px; padding: 0 12px; border-radius: 100px; border: 1px dashed var(--line2); background: var(--panel); color: var(--muted); font-size: 11.5px; cursor: pointer; }
.pt-proto-b { display: none; flex-wrap: wrap; gap: 6px; max-width: 360px; justify-content: flex-end; align-items: center; padding: 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 10px 30px color-mix(in srgb, var(--shade) 35%, transparent); }
.pt-proto.open .pt-proto-b { display: flex; }
.pt-proto-b span { width: 100%; text-align: right; color: var(--muted); font-size: 11px; }
.pt-proto-b button { height: 26px; padding: 0 10px; border-radius: 100px; border: 1px solid var(--line2); background: none; color: var(--fg2); font-size: 11.5px; cursor: pointer; }
.pt-proto-b button:hover { color: var(--fg); border-color: color-mix(in srgb, var(--fg) 30%, transparent); }
.pt-proto-b button[aria-pressed=true] { background: var(--hover); color: var(--fg); border-color: transparent; }
@media (max-width: 900px) { .pt-proto { bottom: calc(var(--mtab-h, 64px) + var(--siteplayer-h, 0px) + 10px); } }

/* рамка телефона — тёмная в обеих темах (это «устройство») */
.pt-phonew { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; gap: 32px; background: rgba(8, 8, 10, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pt-phone-dev { position: relative; display: flex; flex-direction: column; overflow: hidden; width: 390px; height: 844px; padding: 12px; box-sizing: content-box; border-radius: 56px; background: #000; box-shadow: 0 0 0 2px #2c2c30, 0 30px 80px rgba(0, 0, 0, .7); transform: scale(var(--k, 1)); transform-origin: center; flex: none; }
.pt-phone-dev iframe { display: block; width: 390px; height: 664px; border: 0; background: var(--bg); flex: none; }
.pt-phone-sb { position: relative; height: 47px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 30px 0 36px; border-radius: 44px 44px 0 0; background: var(--bg); color: var(--fg); font-size: 14px; }
.pt-phone-sb span { font-size: 10px; letter-spacing: 1px; }
.pt-phone-notch { position: absolute; top: 0; left: 50%; width: 160px; height: 32px; margin-left: -80px; border-radius: 0 0 20px 20px; background: #000; }
.pt-phone-bb { height: 133px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 44px; padding-top: 12px; border-radius: 0 0 44px 44px; background: #1c1c1e; }
.pt-phone-bb span { width: 340px; height: 44px; border-radius: 12px; background: #2c2c2e; display: grid; place-items: center; color: #fff; font-size: 15px; }
.pt-phone-bb i { width: 134px; height: 5px; border-radius: 3px; background: #fff; }
.pt-phone-side { width: 220px; display: flex; flex-direction: column; gap: 10px; color: #c9c9cb; font-size: 13px; line-height: 1.45; }
.pt-phone-side b { color: #fff; font-size: 16px; }
.pt-phone-side p { margin: 0; }
.pt-phone-side .pill { color: #fff; border-color: rgba(255, 255, 255, .25); background: none; }
@media (max-width: 900px) { .pt-phone-side { display: none; } }
