/* Voice Focus — standalone "tap and talk" coworker screen (opt-in via ?voice).
   Full-screen overlay that covers the portal; the app still loads underneath
   (so voice-mode.js keeps working) but is visually replaced by this screen. */

body.voice-focus-mode {
    overflow: hidden;
}

#voice-focus {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(120% 120% at 50% 18%, #16243b 0%, #0b1220 60%, #070b14 100%);
    color: #e8eefc;
    padding: calc(env(safe-area-inset-top) + 24px) 24px calc(env(safe-area-inset-bottom) + 24px);
    -webkit-user-select: none;
    user-select: none;
}

#voice-focus .vf-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
    width: 100%;
    max-width: 420px;
}

#voice-focus .vf-head-wrap {
    position: relative;
    width: 198px;
    height: 242px;
}

#voice-focus .vf-head {
    width: 198px;
    height: 242px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    background: #1b2942;
}

#voice-focus .vf-ring {
    position: absolute;
    inset: -8px;
    border-radius: 26px;
    border: 2px solid rgba(120, 170, 255, 0.35);
    opacity: 0;
}

#voice-focus.vf-active .vf-ring {
    opacity: 1;
    animation: vf-pulse 1.8s ease-out infinite;
}

@keyframes vf-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

#voice-focus .vf-name {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

#voice-focus .vf-talk {
    width: 93px;
    height: 93px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(160deg, #3b82f6, #2563eb);
    box-shadow: 0 12px 34px rgba(37, 99, 235, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

#voice-focus .vf-talk:active {
    transform: scale(0.96);
}

#voice-focus .vf-talk--active {
    background: linear-gradient(160deg, #ef4444, #dc2626);
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0.18), 0 12px 34px rgba(220, 38, 38, 0.5);
}

/* Mic + Record live in a centered row so the layout stays balanced when
   the record button shows up. The talk button remains the primary action. */
#voice-focus .vf-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

#voice-focus .vf-record {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(160deg, #ef4444, #dc2626);
    box-shadow: 0 10px 28px rgba(220, 38, 38, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
#voice-focus .vf-record[hidden] { display: none; }
#voice-focus .vf-record:active { transform: scale(0.96); }

#voice-focus .vf-signin {
    margin-top: 4px;
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(160deg, #3b82f6, #2563eb);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.4);
}

#voice-focus .vf-status {
    font-size: 15px;
    color: #aebfdc;
    min-height: 20px;
}

#voice-focus .vf-foot {
    margin-top: 8px;
    font-size: 13px;
}

#voice-focus .vf-foot a {
    color: #6b87b8;
    text-decoration: none;
}

#voice-focus .vf-foot a:active {
    color: #aebfdc;
}
