.iya-secretaria {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 9999;
    font-family: "Source Sans 3", sans-serif;
}

.iya-secretaria__toggle {
    border: 0;
    border-radius: 999px;
    padding: 0.95rem 1.2rem;
    background: #6e2f2f;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 18px 45px rgba(43, 38, 35, 0.18);
    cursor: pointer;
}

.iya-secretaria__panel {
    width: min(390px, calc(100vw - 1.5rem));
    margin-top: 0.85rem;
    border-radius: 24px;
    overflow: hidden;
    background: #fbf7f0;
    border: 1px solid rgba(43, 38, 35, 0.1);
    box-shadow: 0 26px 60px rgba(43, 38, 35, 0.22);
}

.iya-secretaria__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.9rem;
    background: #efe3d0;
}

.iya-secretaria__header h2 {
    margin: 0.1rem 0 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
}

.iya-secretaria__eyebrow {
    margin: 0;
    color: #5e6b52;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.iya-secretaria__close {
    border: 0;
    background: transparent;
    color: #2b2623;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.iya-secretaria__messages {
    display: grid;
    gap: 0.75rem;
    max-height: 360px;
    padding: 1rem;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.55);
}

.iya-secretaria__message {
    max-width: 85%;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    white-space: pre-line;
    line-height: 1.5;
}

.iya-secretaria__message--assistant {
    background: #efe3d0;
    color: #2b2623;
}

.iya-secretaria__message--user {
    margin-left: auto;
    background: #6e2f2f;
    color: #fff;
}

.iya-secretaria__form {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    background: #fbf7f0;
}

.iya-secretaria__form textarea {
    width: 100%;
    min-height: 84px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(43, 38, 35, 0.15);
    border-radius: 16px;
    resize: vertical;
    font: inherit;
    color: #2b2623;
    background: #fff;
}

.iya-secretaria__form button {
    border: 0;
    border-radius: 999px;
    min-height: 46px;
    background: #6e2f2f;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.iya-secretaria__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 640px) {
    .iya-secretaria {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .iya-secretaria__panel {
        width: min(100vw - 1rem, 390px);
    }
}
