.assist-hp {
    position: absolute;
    left: -9999px;
}

.assist-greet,
.assist-reopen,
.assist-sheet {
    position: fixed;
    z-index: 70;
    right: 1rem;
    bottom: 1rem;
    width: min(22rem, calc(100vw - 2rem));
}

.assist-greet,
.assist-sheet {
    background: #0c1220;
    color: #e8eef7;
    border: 1px solid rgba(0, 180, 216, 0.45);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    padding: 0.9rem;
}

.assist-greet-text,
.assist-note,
.assist-log p {
    margin: 0 0 0.7rem;
}

.assist-greet-actions,
.assist-choices,
.assist-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.assist-reopen {
    width: auto;
    right: 1rem;
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    background: #00b4d8;
    color: #041018;
    font-weight: 700;
    cursor: pointer;
}

.assist-reopen.pulse {
    animation: assist-pulse 1s ease 1;
}

@keyframes assist-pulse {
    50% { transform: scale(1.06); }
}

.assist-sheet:not([hidden]) {
    display: flex;
    flex-direction: column;
    max-height: min(32rem, calc(100vh - 6rem));
}

.assist-sheet-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.assist-close,
.assist-choices button,
.assist-card-actions button,
.assist-card-actions a {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: inherit;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
}

.assist-note {
    font-size: 0.82rem;
    color: #b7c3d4;
}

.assist-log {
    overflow: auto;
    flex: 1;
    min-height: 4rem;
}

.assist-log .who {
    color: #8ecae6;
    font-size: 0.78rem;
}

.assist-card {
    border: 1px solid rgba(0, 180, 216, 0.35);
    border-radius: 8px;
    padding: 0.6rem;
    margin: 0.4rem 0 0.8rem;
}

.assist-card li {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    list-style: none;
}

.assist-card ul {
    margin: 0.3rem 0;
    padding: 0;
}

.assist-form textarea {
    width: 100%;
    margin: 0.3rem 0;
    resize: vertical;
}

.assist-label {
    font-size: 0.82rem;
}

@media (max-width: 768px) {
    .assist-greet,
    .assist-reopen,
    .assist-sheet {
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
        bottom: 68px;
    }
}
