/* Amparo â€” Triagem IA imersiva (jornada gamificada) */
:root {
    --at-blue-950: #001a3d;
    --at-blue-900: #002a66;
    --at-blue-800: #004aad;
    --at-blue-700: #0a5ec9;
    --at-blue-600: #1a7ae0;
    --at-blue-500: #38b6ff;
    --at-blue-400: #5fc4ff;
    --at-blue-300: #9adbff;
}

/* FAB â€” padrÃ£o baixo (visitante); sobe quando o widget de chat estÃ¡ na pÃ¡gina */
#amparo-triage-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9510;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: linear-gradient(145deg, var(--at-blue-400), var(--at-blue-800));
    box-shadow: 0 10px 28px rgba(0, 26, 61, 0.55), 0 0 0 0 rgba(56, 182, 255, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease;
    animation: at-fab-pulse 2.4s ease-in-out infinite;
}

/* WhatsApp - imediatamente acima do FAB da IA */
#amparo-whatsapp-fab {
    position: fixed;
    right: 22px;
    bottom: 90px;
    z-index: 9510;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(145deg, #3ee07a, #128c7e);
    box-shadow: 0 10px 28px rgba(18, 140, 126, 0.45);
    font-size: 1.55rem;
    transition: transform 0.18s ease;
}

#amparo-whatsapp-fab:hover {
    transform: translateY(-3px) scale(1.06);
    color: #fff;
}

body.amparo-triage-open #amparo-whatsapp-fab {
    opacity: 0;
    pointer-events: none;
}

body:has(#acw-root) #amparo-whatsapp-fab {
    bottom: 164px;
}

#amparo-triage-fab:hover {
    transform: translateY(-3px) scale(1.06);
}

#amparo-triage-fab img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

#amparo-triage-fab.is-open {
    animation: none;
    opacity: 0;
    pointer-events: none;
}

body:has(#acw-root) #amparo-triage-fab {
    bottom: 96px;
}

@keyframes at-fab-pulse {
    0%,
    100% {
        box-shadow: 0 10px 28px rgba(0, 26, 61, 0.55), 0 0 0 0 rgba(56, 182, 255, 0.45);
    }
    50% {
        box-shadow: 0 14px 32px rgba(0, 26, 61, 0.6), 0 0 0 14px rgba(56, 182, 255, 0);
    }
}

/* Overlay imersivo */
#amparo-triage-root {
    position: fixed;
    inset: 0;
    z-index: 9600;
    display: flex;
    flex-direction: column;
    font-family: "Quicksand", sans-serif;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    color: #fff;
    overflow: hidden;
}

#amparo-triage-root.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#amparo-triage-root *,
#amparo-triage-root *::before,
#amparo-triage-root *::after {
    box-sizing: border-box;
}

.at-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56, 182, 255, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(26, 122, 224, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 85% 70%, rgba(95, 196, 255, 0.12) 0%, transparent 45%),
        linear-gradient(165deg, var(--at-blue-700) 0%, var(--at-blue-800) 38%, var(--at-blue-900) 72%, var(--at-blue-950) 100%);
}

.at-bg-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.at-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    animation: at-float linear infinite;
}

@keyframes at-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

.at-shell {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 16px 20px 24px;
}

/* Top bar minimal */
.at-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
}

.at-top-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
}

.at-top-actions {
    display: flex;
    gap: 8px;
}

.at-glass-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: background 0.15s ease, transform 0.15s ease;
}

.at-glass-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.04);
}

.at-glass-btn.is-active {
    background: rgba(56, 182, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Progress â€” gamificado */
.at-progress {
    flex-shrink: 0;
    margin: 18px 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.at-progress-track {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.at-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--at-blue-400), #fff);
    box-shadow: 0 0 12px rgba(56, 182, 255, 0.6);
    transition: width 0.6s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.at-progress-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    min-width: 52px;
    text-align: right;
}

/* Stage principal */
.at-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 8px 0;
}

.at-stage.is-results {
    justify-content: flex-start;
    padding-top: 12px;
}

/* Orb / cÃ©rebro */
.at-orb-zone {
    position: relative;
    width: min(220px, 48vw);
    height: min(220px, 48vw);
    margin-bottom: 28px;
    flex-shrink: 0;
    cursor: pointer;
}

.at-orb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    animation: at-ring-idle 3s ease-in-out infinite;
}

.at-orb-ring:nth-child(2) {
    inset: -12px;
    animation-delay: 0.4s;
    border-color: rgba(56, 182, 255, 0.2);
}

.at-orb-ring:nth-child(3) {
    inset: -24px;
    animation-delay: 0.8s;
    border-color: rgba(255, 255, 255, 0.06);
}

.at-orb-zone.is-thinking .at-orb-ring {
    animation: at-ring-spin 2s linear infinite;
    border-color: rgba(56, 182, 255, 0.45);
}

.at-orb-zone.is-speaking .at-orb-ring {
    animation: at-ring-speak 0.8s ease-in-out infinite;
    border-color: rgba(255, 255, 255, 0.5);
}

.at-orb-zone.is-awaiting-tap .at-orb-ring {
    animation: at-ring-listen 1.2s ease-in-out infinite;
    border-color: rgba(255, 255, 255, 0.55);
}

.at-orb-zone.is-awaiting-tap .at-ia-mark {
    animation: at-sparkle-speak 0.7s ease-in-out infinite;
}

.at-orb-zone.is-listening .at-orb-ring {
    animation: at-ring-listen 1.2s ease-in-out infinite;
    border-color: rgba(255, 143, 171, 0.55);
}

@keyframes at-ring-idle {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.85;
    }
}

@keyframes at-ring-spin {
    from {
        transform: rotate(0deg) scale(1);
    }
    to {
        transform: rotate(360deg) scale(1.05);
    }
}

@keyframes at-ring-speak {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes at-ring-listen {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

.at-orb-core {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle at 38% 32%,
        #9adbff 0%,
        #5fc4ff 28%,
        #38b6ff 55%,
        #1a7ae0 100%
    );
    box-shadow:
        0 0 48px rgba(95, 196, 255, 0.55),
        0 0 80px rgba(56, 182, 255, 0.35),
        inset 0 -6px 20px rgba(0, 74, 173, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s ease;
}

.at-orb-zone.is-speaking .at-orb-core {
    box-shadow:
        0 0 60px rgba(255, 255, 255, 0.45),
        0 0 100px rgba(56, 182, 255, 0.55),
        inset 0 -6px 20px rgba(0, 74, 173, 0.2);
}

.at-orb-core .at-ia-mark {
    width: 38%;
    height: 38%;
    object-fit: contain;
    animation: at-sparkle-float 3s ease-in-out infinite;
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.85));
    pointer-events: none;
}

.at-orb-zone.is-speaking .at-ia-mark {
    animation: at-sparkle-speak 0.55s ease-in-out infinite;
}

@keyframes at-sparkle-float {
    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.06) rotate(3deg);
    }
}

@keyframes at-sparkle-speak {
    0%,
    100% {
        transform: scale(1);
        filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.85));
    }
    50% {
        transform: scale(1.12);
        filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(255, 255, 255, 1));
    }
}

/* Boas-vindas â€” botÃµes de inÃ­cio */
.at-welcome-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    animation: at-fade-up 0.45s ease;
}

.at-welcome-actions .at-emergency-cvv {
    margin-top: 14px;
    width: 100%;
}

.at-welcome-actions[hidden] {
    display: none !important;
}

/* Telas maiores que celular â€” botÃµes de boas-vindas na base */
@media (min-width: 641px) {
    .at-stage.is-welcome {
        justify-content: flex-start;
        padding-top: 16px;
    }

    .at-stage.is-welcome .at-welcome-actions {
        margin-top: auto;
        padding-top: min(14vh, 72px);
        padding-bottom: 12px;
    }
}

.at-start-journey {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 16px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--at-blue-900);
    background: linear-gradient(135deg, #fff 0%, #e8f5ff 100%);
    box-shadow: 0 8px 28px rgba(0, 26, 61, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.at-start-journey-ia {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    animation: at-start-ia-float 2.2s ease-in-out infinite;
    filter: drop-shadow(0 3px 10px rgba(56, 182, 255, 0.45));
}

@keyframes at-start-ia-float {
    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 3px 10px rgba(56, 182, 255, 0.4));
    }
    50% {
        transform: translateY(-4px) scale(1.08);
        filter: drop-shadow(0 8px 16px rgba(56, 182, 255, 0.65));
    }
}

.at-start-journey:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 26, 61, 0.42);
}

.at-skip-solo {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    transition: background 0.15s ease;
}

.at-skip-solo:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Escolha ouvir vs texto â€” antes de iniciar */
.at-mode-picker {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: at-fade-up 0.35s ease;
}

.at-mode-picker[hidden] {
    display: none !important;
}

.at-mode-picker-label {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
    line-height: 1.4;
}

.at-mode-picker-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.at-mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 108px;
    padding: 14px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.at-mode-btn > i {
    font-size: 1.35rem;
    color: var(--at-blue-300);
}

.at-mode-btn span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.at-mode-btn strong {
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.25;
}

.at-mode-btn small {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.35;
}

.at-mode-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.32);
}

.at-mode-btn--voice:hover > i {
    color: #fff;
}

.at-mode-btn--text:hover > i {
    color: var(--at-blue-300);
}

.at-mode-back {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: color 0.15s ease;
}

.at-mode-back:hover {
    color: rgba(255, 255, 255, 0.88);
}

/* DiÃ¡logo â€” uma mensagem, nÃ£o chat */
.at-dialogue {
    width: 100%;
    text-align: center;
    padding: 0 4px;
    animation: at-fade-up 0.45s ease;
}

@keyframes at-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.at-dialogue-text {
    font-size: clamp(1.05rem, 4.2vw, 1.28rem);
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 26, 61, 0.35);
    margin: 0;
}

.at-dialogue-text.is-typing::after {
    content: "|";
    animation: at-cursor 0.9s step-end infinite;
    margin-left: 2px;
    opacity: 0.7;
}

@keyframes at-cursor {
    0%,
    100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

.at-status {
    margin-top: 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
}

.at-user-echo {
    margin-top: 12px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Resultados */
.at-results {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    animation: at-fade-up 0.5s ease;
}

.at-results-head {
    text-align: center;
    margin-bottom: 16px;
}

.at-results-head h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.at-results-head p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.at-rec-scroll {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.at-pro-card {
    display: flex;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    color: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    animation: at-card-in 0.45s ease both;
}

.at-pro-card:nth-child(2) {
    animation-delay: 0.08s;
}
.at-pro-card:nth-child(3) {
    animation-delay: 0.16s;
}
.at-pro-card:nth-child(4) {
    animation-delay: 0.24s;
}
.at-pro-card:nth-child(5) {
    animation-delay: 0.32s;
}

@keyframes at-card-in {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.at-pro-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
}

.at-pro-card img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.at-pro-meta {
    min-width: 0;
    flex: 1;
}

.at-pro-meta strong {
    display: block;
    font-size: 0.98rem;
}

.at-pro-meta span {
    display: block;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
}

.at-pro-reason-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 8px 0 4px;
    color: rgba(255, 255, 255, 0.55);
}

.at-pro-reason {
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
}

.at-pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(56, 182, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 8px;
}

.at-results-cta {
    flex-shrink: 0;
    margin-top: 12px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 16px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #fff, var(--at-blue-300));
    color: var(--at-blue-900);
    box-shadow: 0 8px 24px rgba(0, 26, 61, 0.35);
    transition: transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.at-results-cta:hover {
    transform: translateY(-2px);
}

/* Controles inferiores */
.at-controls {
    flex-shrink: 0;
    padding-top: 16px;
}

.at-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.at-mic-main {
    width: 72px;
    height: 72px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: linear-gradient(145deg, #fff, var(--at-blue-300));
    color: var(--at-blue-900);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 28px rgba(0, 26, 61, 0.4),
        0 0 0 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.15s ease;
}

.at-mic-main:hover {
    transform: scale(1.06);
}

.at-mic-main.is-listening {
    background: linear-gradient(145deg, #ff8fab, #ff6b8a);
    color: #fff;
    animation: at-mic-glow 1.2s ease-in-out infinite;
}

@keyframes at-mic-glow {
    0%,
    100% {
        box-shadow: 0 8px 28px rgba(255, 107, 138, 0.45), 0 0 0 0 rgba(255, 143, 171, 0.5);
    }
    50% {
        box-shadow: 0 12px 32px rgba(255, 107, 138, 0.55), 0 0 0 16px rgba(255, 143, 171, 0);
    }
}

.at-side-btn {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: background 0.15s ease;
}

.at-side-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.at-type-panel {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.at-type-panel[hidden] {
    display: none !important;
}

.at-type-input {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    backdrop-filter: blur(8px);
}

.at-type-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.at-send-mini {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--at-blue-900);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.at-send-mini:disabled {
    opacity: 0.4;
}

.at-hint {
    text-align: center;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 10px;
    line-height: 1.4;
}

.at-emergency-cvv[hidden] {
    display: none !important;
}

.at-emergency-cvv {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: 0 0 10px;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: rgba(229, 57, 53, 0.28);
    border: 1px solid rgba(255, 138, 128, 0.55);
    color: #fff;
    font-size: 0.88rem;
    line-height: 1.35;
    text-align: center;
}

.at-emergency-cvv i {
    color: #ff8a80;
    font-size: 1rem;
    flex-shrink: 0;
}

.at-emergency-cvv a {
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.at-emergency-meta {
    opacity: 0.88;
    font-weight: 500;
}

.at-stage[hidden],
.at-results[hidden],
.at-controls[hidden] {
    display: none !important;
}

/* Home highlights */
.pro-card.is-triage-match {
    box-shadow: 0 8px 28px rgba(0, 74, 173, 0.22);
}

.pro-card.is-triage-top::before {
    content: "Indicado pela Amparo";
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8fab, var(--at-blue-700));
    color: #fff;
}

.pro-card.is-triage-top {
    position: relative;
}

body.amparo-triage-open {
    overflow: hidden;
}

/* Notebook / telas baixas â€” nÃ£o altera celular (â‰¤640px) */
@media (max-width: 1366px) and (min-width: 641px) {
    #amparo-triage-fab {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
    }

    #amparo-whatsapp-fab {
        right: 16px;
        bottom: 74px;
        width: 46px;
        height: 46px;
        font-size: 1.3rem;
    }

    #amparo-triage-fab img {
        width: 24px;
        height: 24px;
    }

    body:has(#acw-root) #amparo-triage-fab {
        bottom: 84px;
    }

    body:has(#acw-root) #amparo-whatsapp-fab {
        bottom: 142px;
    }
}

@media (max-width: 1366px) and (min-width: 641px),
    (max-height: 768px) and (min-width: 641px) {
    .at-shell {
        padding: 10px 16px 14px;
        max-width: 460px;
    }

    .at-top-pill {
        font-size: 0.66rem;
        padding: 5px 10px;
    }

    .at-glass-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .at-progress {
        margin: 10px 0 6px;
    }

    .at-stage {
        justify-content: flex-start;
        overflow-y: auto;
        padding: 4px 0 8px;
        -webkit-overflow-scrolling: touch;
    }

    .at-orb-zone {
        width: min(148px, 30vw);
        height: min(148px, 30vw);
        margin-bottom: 10px;
    }

    .at-orb-ring:nth-child(2) {
        inset: -8px;
    }

    .at-orb-ring:nth-child(3) {
        inset: -14px;
    }

    .at-dialogue-text {
        font-size: clamp(0.92rem, 2.6vw, 1.08rem);
        line-height: 1.42;
    }

    .at-status {
        margin-top: 8px;
        font-size: 0.72rem;
    }

    .at-user-echo {
        margin-top: 8px;
        font-size: 0.78rem;
    }

    .at-welcome-actions {
        gap: 8px;
    }

    .at-stage.is-welcome .at-welcome-actions {
        margin-top: auto;
        padding-top: min(10vh, 40px);
    }

    .at-start-journey {
        padding: 11px 14px;
        font-size: 0.88rem;
    }

    .at-skip-solo {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .at-controls {
        padding-top: 8px;
    }

    .at-mic-main {
        width: 58px;
        height: 58px;
        font-size: 1.25rem;
    }

    .at-type-input {
        padding: 10px 12px;
        font-size: 0.86rem;
    }

    .at-send-mini {
        width: 40px;
        height: 40px;
    }

    .at-hint {
        font-size: 0.7rem;
        line-height: 1.35;
        margin-top: 8px;
    }

    .at-results-head h2 {
        font-size: 1.05rem;
    }

    .at-results-head p {
        font-size: 0.8rem;
    }

    .at-pro-card {
        padding: 12px;
    }

    .at-pro-card img {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 640px) {
    #amparo-triage-fab {
        right: 16px;
        bottom: 22px;
        width: 52px;
        height: 52px;
    }

    #amparo-whatsapp-fab {
        right: 16px;
        bottom: 86px;
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }

    body:has(#acw-root) #amparo-triage-fab {
        bottom: 88px;
    }

    body:has(#acw-root) #amparo-whatsapp-fab {
        bottom: 152px;
    }

    .at-shell {
        padding: 12px 16px 20px;
    }

    .at-orb-zone {
        width: min(180px, 44vw);
        height: min(180px, 44vw);
        margin-bottom: 20px;
    }

    .at-mic-main {
        width: 64px;
        height: 64px;
    }

    .at-mode-picker-options {
        grid-template-columns: 1fr;
    }

    .at-mode-btn {
        flex-direction: row;
        min-height: 0;
        padding: 12px 14px;
        text-align: left;
    }

    .at-mode-btn span {
        align-items: flex-start;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    #amparo-triage-fab,
    .at-orb-ring,
    .at-ia-mark,
    .at-start-journey-ia,
    .at-mic-main.is-listening,
    .at-particle {
        animation: none;
    }
}
