
/* =====================================================
   DIGITAL PRO — VOICE CONTROL
   PL / EN / DE, WCAG 2.2 AA
   ===================================================== */

.voice-control{
    position:fixed;
    right:18px;
    bottom:74px;
    z-index:99980;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:10px;
    font-family:inherit;
}

.voice-control__button{
    display:inline-flex;
    min-width:48px;
    min-height:48px;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:0 16px;
    border:1px solid rgba(74,128,238,.45);
    border-radius:999px;
    color:#fff;
    background:
        linear-gradient(145deg,#225edc,#174bb9);
    box-shadow:0 14px 34px rgba(17,54,135,.28);
    font:inherit;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
    transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease;
}

.voice-control__button:hover,
.voice-control__button:focus-visible{
    transform:translateY(-2px);
    box-shadow:0 18px 40px rgba(17,54,135,.36);
    outline:none;
}

.voice-control__button:focus-visible{
    box-shadow:
        0 0 0 4px rgba(119,164,255,.28),
        0 18px 40px rgba(17,54,135,.36);
}

.voice-control__button[aria-pressed="true"]{
    background:linear-gradient(145deg,#d9364a,#a71f34);
    animation:voice-pulse 1.3s ease-in-out infinite;
}

.voice-control__button svg{
    width:20px;
    height:20px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.voice-control__panel{
    width:min(360px,calc(100vw - 28px));
    padding:16px;
    border:1px solid rgba(130,160,219,.28);
    border-radius:16px;
    color:#fff;
    background:
        radial-gradient(circle at 0 0,rgba(62,112,222,.16),transparent 28%),
        linear-gradient(180deg,#0b1c3d,#07142c);
    box-shadow:0 22px 58px rgba(2,8,20,.34);
}

.voice-control__panel[hidden]{
    display:none !important;
}

.voice-control__head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    margin-bottom:12px;
}

.voice-control__head strong{
    display:block;
    color:#fff;
    font-size:14px;
    line-height:1.3;
}

.voice-control__head span{
    display:block;
    margin-top:3px;
    color:#a8b6cc;
    font-size:11px;
    line-height:1.5;
}

.voice-control__close{
    display:grid;
    width:34px;
    height:34px;
    flex:0 0 34px;
    place-items:center;
    border:1px solid rgba(130,160,219,.28);
    border-radius:50%;
    color:#fff;
    background:transparent;
    font-size:18px;
    cursor:pointer;
}

.voice-control__status{
    min-height:58px;
    padding:11px 12px;
    border:1px solid rgba(130,160,219,.2);
    border-radius:11px;
    color:#d8e3f5;
    background:rgba(255,255,255,.035);
    font-size:12px;
    line-height:1.55;
}

.voice-control__status strong{
    color:#86adff;
}

.voice-control__actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:12px;
}

.voice-control__actions button{
    min-height:38px;
    padding:0 12px;
    border:1px solid rgba(130,160,219,.26);
    border-radius:9px;
    color:#fff;
    background:rgba(255,255,255,.04);
    font:inherit;
    font-size:11px;
    font-weight:750;
    cursor:pointer;
}

.voice-control__actions button:hover,
.voice-control__actions button:focus-visible,
.voice-control__close:hover,
.voice-control__close:focus-visible{
    border-color:#5d91ff;
    background:rgba(93,145,255,.12);
    outline:none;
}

.voice-control__commands{
    margin:12px 0 0;
    padding:11px 12px;
    border-top:1px solid rgba(130,160,219,.17);
    color:#9aaac2;
    font-size:10.5px;
    line-height:1.55;
}

.voice-control__commands b{
    color:#dce6f7;
}

.voice-control__unsupported{
    color:#ffd0d6;
}

@keyframes voice-pulse{
    0%,100%{box-shadow:0 14px 34px rgba(167,31,52,.28)}
    50%{box-shadow:0 14px 40px rgba(217,54,74,.5),0 0 0 8px rgba(217,54,74,.10)}
}

@media (max-width:620px){
    .voice-control{
        right:12px;
        bottom:66px;
    }

    .voice-control__button{
        width:48px;
        padding:0;
    }

    .voice-control__button span{
        display:none;
    }

    .voice-control__panel{
        width:min(340px,calc(100vw - 24px));
    }
}

@media (prefers-reduced-motion:reduce){
    .voice-control *,
    .voice-control *::before,
    .voice-control *::after{
        transition:none !important;
        animation:none !important;
    }
}

@media print{
    .voice-control{
        display:none !important;
    }
}