.trc-asst {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 80;
    font-family: Manrope, system-ui, sans-serif;
}
.trc-asst-fab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: #003d9b;
    box-shadow: 0 12px 28px rgba(0, 61, 155, 0.35);
    border-radius: 999px;
    padding: 13px 18px 13px 14px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.01em;
    transition: transform 0.15s ease, background 0.15s ease;
}
.trc-asst-fab:hover {
    background: #002f78;
    transform: translateY(-1px);
}
.trc-asst-fab i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.trc-asst.is-open .trc-asst-fab-label {
    display: none;
}
.trc-asst.is-open .trc-asst-fab {
    padding: 12px;
    border-radius: 50%;
}
.trc-asst-panel {
    display: none;
    flex-direction: column;
    width: min(400px, calc(100vw - 24px));
    height: min(560px, calc(100vh - 110px));
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 28, 45, 0.18);
    overflow: hidden;
}
.trc-asst.is-open .trc-asst-panel {
    display: flex;
}
.trc-asst-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 12px;
    background: linear-gradient(135deg, #003d9b 0%, #0A2540 100%);
    color: #fff;
}
.trc-asst-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.trc-asst-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}
.trc-asst-head p {
    margin: 2px 0 0;
    font-size: 11px;
    opacity: 0.8;
    font-weight: 600;
}
.trc-asst-head-actions {
    margin-left: auto;
    display: flex;
    gap: 4px;
}
.trc-asst-icon-btn {
    border: 0;
    background: transparent;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
}
.trc-asst-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}
.trc-asst-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 14px 14px 8px;
    background: #f8f9fb;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.trc-asst-bubble {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #0f1c2d;
    white-space: pre-wrap;
    word-break: break-word;
}
.trc-asst-bubble.bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}
.trc-asst-bubble.user {
    align-self: flex-end;
    background: #003d9b;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.trc-asst-bubble.bot strong {
    color: #0A2540;
}
.trc-asst-typing {
    align-self: flex-start;
    display: inline-flex;
    gap: 4px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}
.trc-asst-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    animation: trc-asst-dot 1s infinite ease-in-out;
}
.trc-asst-typing span:nth-child(2) { animation-delay: 0.15s; }
.trc-asst-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes trc-asst-dot {
    0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}
.trc-asst-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px 10px;
    background: #f8f9fb;
}
.trc-asst-chip {
    border: 1px solid #c7d7f5;
    background: #fff;
    color: #003d9b;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.trc-asst-chip:hover {
    background: #eef4ff;
}
.trc-asst-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}
.trc-asst-form textarea {
    flex: 1;
    resize: none;
    min-height: 42px;
    max-height: 96px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    font-size: 13.5px;
    outline: none;
}
.trc-asst-form textarea:focus {
    border-color: #003d9b;
    box-shadow: 0 0 0 3px rgba(0, 61, 155, 0.12);
}
.trc-asst-send {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #003d9b;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}
.trc-asst-send:disabled {
    opacity: 0.5;
    cursor: default;
}
.trc-asst-note {
    font-size: 10px;
    color: #94a3b8;
    padding: 0 12px 10px;
    background: #fff;
}
@media (max-width: 520px) {
    .trc-asst {
        right: 12px;
        bottom: 12px;
    }
    .trc-asst-fab-label {
        display: none;
    }
    .trc-asst-fab {
        padding: 13px;
        border-radius: 50%;
    }
}
