#ml-suzy-root { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.suzy-btn {
    position: fixed; right: 18px; bottom: 18px; z-index: 9990;
    height: 56px; padding: 0 18px 0 16px; border: 0; border-radius: 999px;
    background: #111; color: #fff; cursor: pointer;
    box-shadow: 0 10px 28px rgba(17,17,17,.22);
    font-weight: 650; font-size: 15px;
    display: flex; align-items: center; gap: 8px;
}
.suzy-btn svg { display: block; }
.suzy-btn-label { line-height: 1; }
.suzy-panel {
    position: fixed; right: 18px; bottom: 84px; z-index: 9991;
    width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 120px));
    background: #fff; border: 1px solid rgba(17,17,17,.08); border-radius: 18px;
    box-shadow: 0 18px 48px rgba(17,17,17,.16);
    display: none; flex-direction: column; overflow: hidden;
}
.suzy-panel.open { display: flex; }
.suzy-head {
    padding: 12px 14px; background: #111; color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.suzy-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.suzy-who strong { display: block; font-size: 15px; }
.suzy-who-sub { display: block; font-size: 11px; color: rgba(255,255,255,.72); margin-top: 1px; }
.suzy-face { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto; background: #ead7c6; }
.suzy-head .suzy-x { background: none; border: 0; color: #fff; cursor: pointer; font-size: 22px; line-height: 1; padding: 0 2px; }
.suzy-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.suzy-tools { display: flex; gap: 12px; padding: 0 14px 10px; }
.suzy-new, .suzy-hist-open, .suzy-hist-back {
    border: 0; background: none; color: #5c5c5c; cursor: pointer;
    font-size: 12px; text-align: left; text-decoration: underline; padding: 0;
}
.suzy-wait {
    padding: 8px 14px; background: #f3efe8; color: #3a3a3a;
    font-size: 13px; font-weight: 650; border-bottom: 1px solid rgba(17,17,17,.06);
}
.suzy-typing { display: flex; gap: 4px; padding: 0 16px 10px; }
.suzy-typing[hidden] { display: none; }
.suzy-typing span {
    width: 6px; height: 6px; border-radius: 50%; background: #888;
    animation: suzyDot 1.2s infinite ease-in-out;
}
.suzy-typing span:nth-child(2) { animation-delay: .15s; }
.suzy-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes suzyDot { 0%,80%,100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.suzy-prompt {
    padding: 12px 14px; border-top: 1px solid rgba(17,17,17,.08); background: #fff;
}
.suzy-prompt p { margin: 0 0 10px; font-size: 13px; }
.suzy-prompt button {
    display: block; width: 100%; margin: 0 0 6px; border: 1px solid #111;
    background: #fff; border-radius: 10px; padding: 8px 12px; cursor: pointer; font-weight: 650;
}
.suzy-prompt-delete { color: #a33; border-color: #a33; }
.suzy-prompt-cancel { border-color: #ccc; font-weight: 500; }
.suzy-hist {
    position: absolute; inset: 0; background: #fafafa; display: flex; flex-direction: column;
}
.suzy-hist[hidden] { display: none; }
.suzy-hist-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-bottom: 1px solid rgba(17,17,17,.08); }
.suzy-hist-list, .suzy-hist-log { flex: 1; overflow-y: auto; padding: 10px 12px; font-size: 13px; color: #5c5c5c; }
.suzy-hist-item {
    display: block; width: 100%; text-align: left; border: 1px solid rgba(17,17,17,.08);
    background: #fff; border-radius: 12px; padding: 10px 12px; margin: 0 0 8px; cursor: pointer;
}
.suzy-hist-item strong { display: block; font-size: 12px; color: #111; margin-bottom: 4px; }
.suzy-hist-item span { color: #5c5c5c; }
.suzy-agents { display: flex; gap: 6px; padding: 8px 12px; background: #f6f4f1; font-size: 12px; color: #5c5c5c; align-items: center; }
.suzy-agents img, .suzy-dot {
    width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: #ccc;
}
.suzy-dot { display: inline-block; }
.suzy-log { flex: 1; overflow-y: auto; padding: 14px 14px 8px; background: #fafafa; min-height: 0; }
.suzy-msg { max-width: 88%; margin: 0 0 10px; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.suzy-msg.bot, .suzy-msg.system { background: #fff; border: 1px solid rgba(17,17,17,.08); }
.suzy-msg a { color: #111; font-weight: 650; text-decoration: underline; }
.suzy-msg.visitor { background: #111; color: #fff; margin-left: auto; }
.suzy-msg.agent { background: #ece7e0; }
.suzy-choices { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.suzy-choices button {
    border: 1px solid #111; background: #fff; border-radius: 999px;
    padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.suzy-form, .suzy-compose { padding: 10px 12px 12px; border-top: 1px solid rgba(17,17,17,.08); background: #fff; }
.suzy-form input, .suzy-compose input {
    width: 100%; box-sizing: border-box; border: 1px solid #ddd; border-radius: 10px;
    padding: 8px 10px; margin: 0 0 8px; font: inherit;
}
.suzy-form button, .suzy-send {
    width: 100%; border: 0; background: #111; color: #fff; border-radius: 10px;
    padding: 9px 12px; cursor: pointer; font-weight: 650;
}
.suzy-err { color: #a33; font-size: 12px; margin: 0 0 6px; }
.suzy-notice { font-size: 11px; color: #6a6a6a; line-height: 1.4; margin: -2px 0 10px; }
