.lx-page {
    --lx-ink: #312b43;
    --lx-muted: #8c839d;
    --lx-line: rgba(117, 101, 151, 0.16);
    --lx-paper: #f7f4fb;
    --lx-accent: #7566bd;
    --lx-accent-dark: #55468f;
    background: var(--lx-paper);
}

.lx-page .screen-content {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 240px),
        var(--lx-paper);
}

.lx-intro {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid rgba(117, 102, 189, 0.14);
    border-radius: 18px;
    background: linear-gradient(135deg, #eeeafd, #faf8ff);
}

.lx-intro-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, #9689db, #6657ad);
    font-size: 24px;
    box-shadow: 0 7px 16px rgba(102, 87, 173, 0.22);
}

.lx-intro h2 {
    color: var(--lx-ink);
    font-size: 20px;
}

.lx-intro p {
    margin-top: 3px;
    color: var(--lx-muted);
    font-size: 11px;
}

.lx-current-actor {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 7px;
    margin-bottom: 8px;
    color: var(--lx-muted);
    font-size: 11px;
}

.lx-current-actor strong {
    color: var(--lx-accent-dark);
}

.lx-current-actor span {
    flex-basis: 100%;
    color: #aaa2b0;
    font-size: 10px;
}

.lx-compose {
    padding: 12px;
    border: 1px solid var(--lx-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 5px 16px rgba(70, 55, 100, 0.06);
}

.lx-compose textarea {
    display: block;
    width: 100%;
    min-height: 74px;
    resize: vertical;
    border: 0;
    outline: 0;
    color: var(--lx-ink);
    background: transparent;
    font: inherit;
    font-size: 13px;
    line-height: 1.6;
}

.lx-compose textarea::placeholder {
    color: #b8b0c2;
}

.lx-compose-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--lx-line);
    color: #a49ab2;
    font-size: 10px;
}

.lx-compose-footer button,
.lx-topic-actions button {
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: var(--lx-accent);
    cursor: pointer;
    font-size: 11px;
}

.lx-compose-footer button {
    padding: 8px 13px;
}

.lx-compose-footer button:disabled {
    cursor: wait;
    opacity: 0.5;
}

.lx-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 2px 9px;
    color: var(--lx-ink);
    font-size: 14px;
}

.lx-section-title button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    color: var(--lx-accent);
    background: #ebe8f7;
    cursor: pointer;
    font-size: 17px;
}

.lx-topics {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
}

.lx-topic {
    padding: 13px;
    border: 1px solid var(--lx-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 4px 12px rgba(70, 55, 100, 0.045);
}

.lx-topic-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #aaa2b0;
    font-size: 9px;
}

.lx-topic-mark {
    color: var(--lx-accent);
    font-weight: 700;
}

.lx-topic-text {
    margin-top: 8px;
    color: var(--lx-ink);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.lx-topic-note {
    margin-top: 5px;
    color: #aa9bc5;
    font-size: 9px;
}

.lx-response-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 11px;
}

.lx-response {
    position: relative;
    padding: 9px 10px;
    border-left: 2px solid #c5bce8;
    border-radius: 4px 10px 10px 4px;
    background: #faf9fd;
}

.lx-response-label {
    margin-bottom: 3px;
    color: #8678b5;
    font-size: 10px;
    font-weight: 700;
}

.lx-response-text {
    color: #5b5368;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.lx-empty-response,
.lx-empty,
.lx-no-actor {
    color: var(--lx-muted);
    font-size: 11px;
    line-height: 1.6;
}

.lx-empty-response {
    padding: 8px 2px;
}

.lx-empty,
.lx-no-actor {
    padding: 22px 12px;
    text-align: center;
}

.lx-topic-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 11px;
}

.lx-topic-actions button {
    padding: 6px 9px;
    background: #eeeaf9;
    color: var(--lx-accent-dark);
}

.lx-topic-actions .lx-invite-btn {
    color: #fff;
    background: var(--lx-accent);
}

@media (max-width: 320px) {
    .lx-intro {
        padding: 13px;
    }

    .lx-intro-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 21px;
    }
}

.lx-topic-actions button:disabled {
    cursor: wait;
    opacity: 0.55;
}
.lx-mention-dot {
    position: absolute;
    top: 7px;
    right: 8px;
    display: grid;
    width: 16px;
    height: 16px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(117, 102, 189, 0.28);
    border-radius: 50%;
    color: #7566bd;
    background: #eeeafd;
    cursor: pointer;
    font: inherit;
    font-size: 8px;
    line-height: 1;
    opacity: 0.72;
    transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}

.lx-mention-dot::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.lx-mention-dot span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
}

.lx-mention-dot:hover {
    opacity: 1;
    background: #ddd6f7;
    transform: scale(1.12);
}

.lx-mention-dot:active {
    transform: scale(0.94);
}

.lx-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(42, 35, 58, 0.46);
    backdrop-filter: blur(4px);
}

.lx-mention-detail-card {
    width: min(100%, 320px);
    max-height: 80vh;
    overflow-y: auto;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    background: #faf8ff;
    box-shadow: 0 18px 50px rgba(42, 35, 58, 0.24);
}

.lx-mention-detail-title {
    color: #55468f;
    font-size: 16px;
    font-weight: 700;
}

.lx-mention-detail-name {
    margin-top: 10px;
    color: #7566bd;
    font-size: 14px;
    font-weight: 700;
}

.lx-mention-detail-caption {
    margin-top: 12px;
    color: #aaa2b0;
    font-size: 10px;
}

.lx-mention-detail-text {
    margin-top: 5px;
    padding: 10px;
    border-radius: 12px;
    color: #5b5368;
    background: #f1effb;
    font-size: 12px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.lx-mention-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(117, 101, 151, 0.12);
    color: #8c839d;
    font-size: 11px;
}

.lx-mention-detail-row strong {
    color: #55468f;
    text-align: right;
}

.lx-detail-close {
    width: 100%;
    margin-top: 16px;
    padding: 9px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: #7566bd;
    cursor: pointer;
    font-size: 12px;
}

.lx-answer-input {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    resize: vertical;
    border: 1px solid rgba(117, 101, 151, 0.28);
    border-radius: 12px;
    outline: none;
    color: #5b5368;
    background: #fff;
    font: inherit;
    font-size: 13px;
    line-height: 1.6;
    box-sizing: border-box;
}

.lx-answer-input:focus {
    border-color: #7566bd;
}

.lx-answer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

.lx-answer-actions button {
    padding: 8px 16px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
}

.lx-answer-cancel {
    color: #7a7288;
    background: #eeeaf9;
}

.lx-answer-submit {
    color: #fff;
    background: #7566bd;
}

.lx-toast {
    position: fixed;
    left: 50%;
    bottom: 84px;
    z-index: 1200;
    padding: 10px 18px;
    border-radius: 12px;
    color: #fff;
    background: rgba(50, 42, 66, 0.92);
    font-size: 13px;
    box-shadow: 0 8px 24px rgba(42, 35, 58, 0.28);
    opacity: 0;
    transform: translate(-50%, 8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.lx-toast-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.lx-answer-name {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 8px 10px;
    border: 1px solid rgba(117, 101, 151, 0.28);
    border-radius: 10px;
    outline: none;
    color: #5b5368;
    background: #fff;
    font: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.lx-answer-name:focus {
    border-color: #7566bd;
}

.lx-picker-list {
    max-height: 320px;
    margin-top: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lx-picker-item {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(117, 101, 151, 0.18);
    border-radius: 12px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.lx-picker-item:hover {
    background: #f5f2fc;
    border-color: rgba(117, 101, 151, 0.35);
}

.lx-picker-name {
    color: #55468f;
    font-size: 13px;
    font-weight: 700;
}

.lx-picker-text {
    display: block;
    max-height: 3.3em;
    margin-top: 4px;
    overflow: hidden;
    color: #8c839d;
    font-size: 11px;
    line-height: 1.65;
    word-break: break-word;
}

.lx-picker-empty {
    margin-top: 16px;
    padding: 20px 8px;
    text-align: center;
    color: #aaa2b0;
    font-size: 12px;
    line-height: 1.6;
}

