.nino-dock {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100000;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
body:has(#cookie-notice[style*="display: block"]) .nino-dock,
body:has(#cookie-notice[style*="display:block"]) .nino-dock {
    bottom: 108px;
}
.nino-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0056d2;
    flex: 0 0 auto;
}
.nino-avatar-lg {
    width: 60px;
    height: 60px;
}
.nino-avatar-lg .nino-face {
    width: 40px;
    height: 40px;
}
.nino-launcher {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
}
.nino-launcher .nino-avatar {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}
.nino-launcher[aria-expanded="true"] {
    display: none;
}
.nino-panel {
    display: none;
    width: min(380px, calc(100vw - 32px));
    height: min(540px, calc(100vh - 120px));
    margin-bottom: 12px;
    background: #f1f5f9;
    color: #0f172a;
    border-radius: 22px;
    overflow: hidden;
    flex-direction: column;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}
.nino-panel.is-open {
    display: flex;
}
.nino-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px 12px 14px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}
.nino-id {
    flex: 1;
    min-width: 0;
}
.nino-id strong {
    display: block;
    font-size: 15px;
    line-height: 1.2;
}
.nino-status {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #64748b;
}
.nino-status.is-typing {
    color: #0056d2;
}
.nino-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nino-log {
    flex: 1;
    overflow: auto;
    padding: 16px 14px 8px;
}
.nino-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 0 0 12px;
}
.nino-row.user {
    justify-content: flex-end;
}
.nino-bubble {
    position: relative;
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 18px;
    line-height: 1.45;
    font-size: 14.5px;
    white-space: pre-wrap;
}
.nino-row.bot .nino-bubble {
    background: #fff;
    color: #0f172a;
    border-bottom-left-radius: 6px;
}
.nino-row.bot .nino-bubble::after {
    content: "";
    position: absolute;
    left: -6px;
    bottom: 8px;
    border-width: 6px 8px 6px 0;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}
.nino-row.user .nino-bubble {
    background: #0056d2;
    color: #fff;
    border-bottom-right-radius: 6px;
}
.nino-row.user .nino-bubble::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: 8px;
    border-width: 6px 0 6px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #0056d2;
}
.nino-typing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 52px;
    min-height: 18px;
}
.nino-typing i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
    display: block;
    animation: nino-dot 1s infinite ease-in-out;
}
.nino-typing i:nth-child(2) { animation-delay: 0.15s; }
.nino-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes nino-dot {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
    40% { transform: translateY(-4px); opacity: 1; }
}
.nino-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
}
.nino-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 16px;
    color: #0f172a;
}
.nino-form input:focus {
    outline: 2px solid #bfdbfe;
    border-color: #0056d2;
}
.nino-form button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #0056d2;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nino-form button:disabled {
    opacity: 0.55;
    cursor: default;
}
@media (max-width: 640px) {
    .nino-dock {
        right: 12px;
        bottom: 12px;
    }
    .nino-panel {
        height: min(72vh, 540px);
    }
}
