








.chard-avatar {
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    overflow: hidden;

    border: 1px solid rgba(111, 114, 201, 0.18);
    border-radius: 50%;
    background: #f0f1ff;
}

.chard-avatar img,
.chard-avatar .chat-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.chard-char .wd-entry-topline h3 {
    flex: 1;
}



.chard-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.chard-search {
    flex: 1;
    min-width: 0;
}

.chard-search-btn {
    flex: 0 0 auto;
    padding: 0 14px;

    border: 1px solid rgba(111, 114, 201, 0.4);
    border-radius: 11px;

    color: #5b5fc0;
    background: #eef0ff;

    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;

    transition: background 0.15s ease, transform 0.15s ease;
}

.chard-search-btn:hover {
    background: #e4e7ff;
}

.chard-search-btn:active {
    transform: scale(0.96);
}



.chard-profile {
    position: relative;
    display: flex;
    min-height: 72px;
    flex-direction: column;
    gap: 8px;

    margin-bottom: 13px;
    padding: 13px 14px 13px 17px;
    overflow: hidden;

    border: 1px solid rgba(111, 114, 201, 0.14);
    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.96),
            rgba(244, 245, 255, 0.9)
        );

    box-shadow:
        0 4px 13px rgba(63, 68, 115, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.chard-profile::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;

    content: '';

    background:
        linear-gradient(
            180deg,
            #8589df,
            #b0b2ee
        );
}

.chard-profile-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chard-profile-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.chard-profile-name {
    color: var(--wd-ink);
    font-size: 15px;
    font-weight: 700;
}

.chard-profile-sub {
    color: var(--wd-muted);
    font-size: 11px;
}

.chard-profile-state {
    color: var(--wd-text);
    font-size: 11px;
    line-height: 1.6;
}

.chard-profile-state.is-off {
    color: var(--wd-muted);
}



.chard-form-actions {
    display: flex;
    gap: 8px;
}

.chard-form-actions .wd-submit {
    width: auto;
    flex: 1;
}



.chard-toast {
    position: fixed;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%) translateY(8px);
    max-width: 78%;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(46, 50, 56, 0.92);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10000;
    pointer-events: none;
}

.chard-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
