.rod-shell {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 120;
    font-family: 'Inter', sans-serif;
}

.rod-nudge {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.85rem);
    max-width: min(18rem, calc(100vw - 2rem));
    padding: 0.85rem 0.95rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 12, 24, 0.94);
    color: #e2e8f0;
    font-size: 0.82rem;
    line-height: 1.5;
    box-shadow: 0 20px 50px -30px rgba(2, 6, 23, 0.96);
    display: none;
}

.rod-nudge.is-visible {
    display: block;
}

.rod-nudge button {
    margin-top: 0.65rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 180, 216, 0.18);
    background: rgba(0, 180, 216, 0.12);
    color: #67e8f9;
    font-size: 0.72rem;
    font-weight: 700;
}

.rod-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 14, 28, 0.88);
    color: #f8fafc;
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px -35px rgba(0, 180, 216, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rod-toggle:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 180, 216, 0.4);
}

.rod-toggle-badge {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.2), rgba(16, 185, 129, 0.18));
    border: 1px solid rgba(0, 180, 216, 0.28);
    color: #38bdf8;
}

.rod-toggle-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rod-toggle-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.rod-toggle-subtitle {
    font-size: 0.72rem;
    color: #94a3b8;
}

.rod-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.9rem);
    width: min(26rem, calc(100vw - 2rem));
    max-height: min(80vh, 46rem);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 12, 24, 0.96);
    backdrop-filter: blur(24px);
    box-shadow: 0 32px 80px -30px rgba(2, 6, 23, 0.96);
}

.rod-panel.is-open {
    display: flex;
}

.rod-header {
    padding: 1rem 1rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.rod-header-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.rod-avatar {
    width: 2.65rem;
    height: 2.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.18), rgba(16, 185, 129, 0.12));
    color: #22d3ee;
    border: 1px solid rgba(0, 180, 216, 0.22);
}

.rod-title-copy h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #f8fafc;
}

.rod-title-copy p {
    margin: 0.2rem 0 0;
    font-size: 0.76rem;
    color: #94a3b8;
}

.rod-header-actions {
    display: flex;
    gap: 0.4rem;
}

.rod-icon-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
}

.rod-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    overflow: hidden;
}

.rod-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

.rod-status-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12);
}

.rod-messages {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-height: 20rem;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.rod-bubble {
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    line-height: 1.55;
    font-size: 0.92rem;
    white-space: pre-wrap;
}

.rod-bubble.bot {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.rod-bubble.user {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.18), rgba(2, 132, 199, 0.16));
    border: 1px solid rgba(0, 180, 216, 0.18);
    color: #f8fafc;
    align-self: flex-end;
}

.rod-bubble.typing {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
}

.rod-typing-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #94a3b8;
    opacity: 0.65;
    animation: rodTyping 1.2s infinite ease-in-out;
}

.rod-typing-dot:nth-child(2) {
    animation-delay: 0.12s;
}

.rod-typing-dot:nth-child(3) {
    animation-delay: 0.24s;
}

@keyframes rodTyping {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.45;
    }
    40% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

.rod-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.rod-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.rod-action {
    padding: 0.7rem 0.95rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(0, 180, 216, 0.14);
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.92), rgba(14, 165, 233, 0.88));
    color: #020617;
    font-size: 0.8rem;
    font-weight: 800;
}

.rod-action.secondary {
    background: rgba(255, 255, 255, 0.03);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.08);
}

.rod-suggestion {
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    font-size: 0.78rem;
    text-align: left;
}

.rod-input-row {
    display: flex;
    gap: 0.6rem;
    align-items: flex-end;
}

.rod-input {
    flex: 1;
    min-height: 3rem;
    max-height: 8rem;
    resize: none;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #f8fafc;
    font-size: 0.92rem;
}

.rod-input::placeholder {
    color: #64748b;
}

.rod-send {
    min-width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 180, 216, 0.18);
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.98), rgba(14, 165, 233, 0.9));
    color: #020617;
    font-weight: 800;
}

.rod-footer-note {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .rod-shell {
        right: 0.9rem;
        left: 0.9rem;
        bottom: 0.9rem;
    }

    .rod-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .rod-panel {
        width: min(100vw - 1.8rem, 28rem);
        right: 0;
        left: auto;
        bottom: calc(100% + 0.75rem);
    }

    .rod-nudge {
        left: 0;
        right: 0;
        max-width: none;
    }

    .rod-toggle-text {
        min-width: 0;
        flex: 1;
    }

    .rod-toggle-title,
    .rod-toggle-subtitle {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
