/* ===== v2026 · iframe overlays =====
   .desktop-overlay  → Ubuntu Desktop (cross-origin iframe at /)
   .alice-overlay    → Alice voice agent (talk.andrebassi.com.br · mic+autoplay)
   Both share the same chrome (traffic lights bar + iframe frame); only id
   selectors below scope iframe-specific tweaks. */
.desktop-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    background: rgba(3, 6, 15, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.desktop-overlay[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
}
.desktop-bar {
    flex: 0 0 auto;
    display: flex; align-items: center; gap: 14px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(8, 14, 28, 0.92), rgba(5, 9, 20, 0.82));
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
}
.desktop-traffic {
    display: inline-flex; gap: 8px;
    align-items: center;
}
.desktop-traffic .tl {
    appearance: none;
    width: 13px; height: 13px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center; justify-content: center;
    font: 700 9px/1 var(--font-mono);
    color: rgba(0, 0, 0, 0.55);
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.12s ease;
}
.desktop-traffic .tl::before {
    content: "";
    opacity: 0;
    transition: opacity 0.15s ease;
}
.desktop-traffic:hover .tl-r::before { content: "×"; opacity: 1; }
.desktop-traffic:hover .tl-y::before { content: "−"; opacity: 1; }
.desktop-traffic:hover .tl-g::before { content: "↗"; opacity: 1; font-size: 8px; }
.desktop-traffic .tl-r { background: #ff5f56; }
.desktop-traffic .tl-y { background: #ffbd2e; cursor: default; }
.desktop-traffic .tl-g { background: #27c93f; }
.desktop-traffic .tl-r:hover,
.desktop-traffic .tl-g:hover { filter: brightness(1.15); transform: scale(1.08); }
.desktop-traffic .tl-r:focus-visible,
.desktop-traffic .tl-g:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.desktop-title {
    flex: 1 1 auto;
    display: inline-flex; align-items: baseline; gap: 8px;
    color: var(--fg-dim);
    text-transform: lowercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.desktop-prompt {
    color: var(--accent);
    font-weight: 700;
}
.desktop-name {
    color: var(--fg);
    font-weight: 600;
    letter-spacing: 0.08em;
}
.desktop-sep { color: var(--fg-mute); }
.desktop-host { color: var(--fg-mute); font-size: 11px; }
.desktop-frame {
    flex: 1 1 auto;
    position: relative;
    overflow: hidden;
    background: #03060f;
}
#desktop-iframe,
#alice-iframe {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: 0;
    background: transparent;
    /* let the iframe receive all its own input */
    touch-action: auto;
}

@media (max-width: 640px) {
    .desktop-bar  { padding: 8px 10px; gap: 10px; }
    .desktop-host { display: none; }
    .desktop-sep  { display: none; }
}
