/* /Components/Desenhos/LinhaDoTempo.razor.rz.scp.css */
/* A linha do tempo do desenho (fatia G). Só a disposição: as cores vêm do tema (docs/tema.md). */
.ldt[b-z28qmpmnkg] { margin-top: var(--t-espaco); gap: 8px; }
.ldt-cab[b-z28qmpmnkg] { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.ldt-dica[b-z28qmpmnkg] { color: var(--t-texto-fraco); font-size: var(--t-pequeno); }
.ldt-faixa[b-z28qmpmnkg] { position: relative; min-width: 0; }
.ldt-cursor[b-z28qmpmnkg] { display: block; width: 100%; margin: 0; accent-color: var(--t-info); }
/* As marcas dos incidentes, por baixo do cursor, no mesmo sítio da hora em que abriram. */
.ldt-marcas[b-z28qmpmnkg] { position: relative; height: 14px; margin: 2px 8px 0; }
.ldt-marca[b-z28qmpmnkg] { position: absolute; top: 0; width: 6px; height: 12px; margin-left: -3px; padding: 0; border: 0;
    min-width: 0; min-height: 0; border-radius: 2px; background: var(--t-aviso); cursor: pointer; }
.ldt-marca.mau[b-z28qmpmnkg] { background: var(--t-mau); }
.ldt-escala[b-z28qmpmnkg] { display: flex; justify-content: space-between; gap: 8px; color: var(--t-texto-fraco); font-size: var(--t-pequeno);
    font-variant-numeric: tabular-nums; }
.ldt-botoes .ldt-ir[b-z28qmpmnkg] { min-width: 0; }
.ldt-explica[b-z28qmpmnkg] { display: grid; gap: 6px; min-width: 0; }
.ldt-causas small[b-z28qmpmnkg] { display: block; color: var(--t-texto-fraco); }

/* Telemóvel: marcas maiores para o dedo (o cursor e os botões continuam a ser o caminho principal), e o «Ir para» numa linha sua. */
@media (max-width: 520px) {
    .ldt-botoes .ldt-ir[b-z28qmpmnkg] { flex: 1 1 100%; }
}
/* No telemóvel e no tablet (19/10, «500 % mobile»): o cursor e cada marca são alvos de 44 px; a marca que se vê é a
   barrinha de dentro (::before), o resto do alvo é transparente. */
@media (max-width: 1024px), (pointer: coarse) {
    .ldt-cursor[b-z28qmpmnkg] { min-height: 44px; }
    .ldt-marcas[b-z28qmpmnkg] { height: 44px; }
    .ldt-marca[b-z28qmpmnkg] { width: 44px; height: 44px; margin-left: -22px; background: transparent; }
    .ldt-marca[b-z28qmpmnkg]::before { content: ""; position: absolute; left: 16px; top: 12px; width: 12px; height: 20px; border-radius: 2px;
                         background: var(--t-aviso); }
    .ldt-marca.mau[b-z28qmpmnkg] { background: transparent; }
    .ldt-marca.mau[b-z28qmpmnkg]::before { background: var(--t-mau); }
}
/* /Components/Layout/EditorLayout.razor.rz.scp.css */
/* A barra de erro do Blazor, escondida até haver erro — a mesma do MainLayout (o CSS isolado de um layout não vale no outro:
   sem isto, o ecrã do editor mostrava «Ocorreu um erro inesperado» sempre, por baixo). */
#blazor-error-ui[b-sko288crq0] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-sko288crq0] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-xb9g08lvmz] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-xb9g08lvmz] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-djuk4bamkw],
.components-reconnect-repeated-attempt-visible[b-djuk4bamkw],
.components-reconnect-failed-visible[b-djuk4bamkw],
.components-pause-visible[b-djuk4bamkw],
.components-resume-failed-visible[b-djuk4bamkw],
.components-rejoining-animation[b-djuk4bamkw] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-djuk4bamkw],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-djuk4bamkw],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-djuk4bamkw],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-djuk4bamkw],
#components-reconnect-modal.components-reconnect-retrying[b-djuk4bamkw],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-djuk4bamkw],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-djuk4bamkw],
#components-reconnect-modal.components-reconnect-failed[b-djuk4bamkw],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-djuk4bamkw] {
    display: block;
}


#components-reconnect-modal[b-djuk4bamkw] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-djuk4bamkw 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-djuk4bamkw 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-djuk4bamkw 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-djuk4bamkw]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-djuk4bamkw 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-djuk4bamkw {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-djuk4bamkw {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-djuk4bamkw {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-djuk4bamkw] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-djuk4bamkw] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-djuk4bamkw] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-djuk4bamkw] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-djuk4bamkw] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-djuk4bamkw] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-djuk4bamkw] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-djuk4bamkw 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-djuk4bamkw] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-djuk4bamkw {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/PainelDaEstacao.razor.rz.scp.css */
/* Só a disposição: as cores vêm do tema (docs/tema.md). A janela abre com 700 × 400 e tem de caber lá. */
.painel[b-p2xawoyb0v] { max-width: 1100px; margin: 0 auto; padding: 10px 12px; display: grid; gap: 10px; }
.painel-topo[b-p2xawoyb0v] { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; min-width: 0; }
.painel-topo h1[b-p2xawoyb0v] { margin: 0; font-size: 1.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.painel-topo .t-logo[b-p2xawoyb0v] { height: 32px; width: auto; }
.painel-escolha[b-p2xawoyb0v] { margin-left: auto; font-size: .95rem; padding: 4px 8px; max-width: 40%; }
[b-p2xawoyb0v] .painel-ar .t-titulo { font-size: 2rem; line-height: 1.1; letter-spacing: .04em; }
[b-p2xawoyb0v] .painel-ar .t-sub { font-size: .85rem; }
.painel-accoes[b-p2xawoyb0v], .painel-gravacao[b-p2xawoyb0v] { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.painel-gravacao audio[b-p2xawoyb0v] { width: 100%; }
.painel-gravacao input[b-p2xawoyb0v] { width: auto; flex: 0 0 auto; }
.painel-metricas[b-p2xawoyb0v] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.painel-accoes[b-p2xawoyb0v] { justify-content: flex-end; }

/* Telemóvel (09/10): a escolha da estação desce para a sua linha, as medidas passam a duas colunas (três de 110 px
   não leem «A gravar há 12 min»), e os botões e a escolha levam alvos de 44 px e letra de 16 px (o iOS faz zoom abaixo). */
@media (max-width: 520px) {
    .painel[b-p2xawoyb0v] { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
    .painel-topo[b-p2xawoyb0v] { flex-wrap: wrap; }
    .painel-topo h1[b-p2xawoyb0v] { flex: 1 1 0; min-width: 0; }
    .painel-escolha[b-p2xawoyb0v] { margin-left: 0; max-width: 100%; flex: 1 1 100%; min-height: 44px; font-size: 16px; }
    .painel-metricas[b-p2xawoyb0v] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .painel-accoes[b-p2xawoyb0v] { justify-content: stretch; }
    .painel-accoes > *[b-p2xawoyb0v] { flex: 1 1 auto; min-height: 44px; }
    .painel-gravacao input[b-p2xawoyb0v] { flex: 1 1 40%; min-width: 0; width: auto; }
}
