.qp-card {
    margin: 0;
    padding: 20px 20px 16px;
    background: var(--card, #fff);
    border-radius: var(--radius, 20px);
    box-shadow: var(--card-shadow)
}

.qp-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.02em
}

.qp-top {
    display: flex;
    align-items: center;
    gap: 10px
}

.qp-cat {
    flex: 0 0 148px;
    width: 148px
}

.qp-cat .uc-select,
.qp-cat select.input {
    width: 100%
}

.qp-cat .uc-select-trigger {
    height: 42px;
    border-radius: 10px;
    background: var(--chip, #fff);
    font-size: 13px
}
.qp-cat .uc-select.is-open .uc-select-trigger,
.qp-cat .uc-select-trigger:hover,
.qp-cat .uc-select-trigger:focus {
    background: var(--chip, #fff)
}

.qp-title-wrap {
    position: relative;
    flex: 1;
    min-width: 0
}

.qp-title-input {
    width: 100%;
    height: 42px;
    padding-right: 132px;
    border-radius: 10px;
    background: var(--chip, #fff)
}

.qp-title-count {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 12px;
    pointer-events: none;
    white-space: nowrap
}

.qp-title-count b {
    color: #f43f5e;
    font-weight: 800
}

.qp-editor {
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--chip, #fff)
}

.qp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px;
    height: 42px;
    background: var(--surface, #f6f8fb);
    border-bottom: 1px solid var(--line)
}

.qp-tools {
    display: flex;
    align-items: center;
    gap: 2px
}

.qp-tool {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--text-soft, #334155);
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px
}

.qp-tool b {
    font-size: 14px;
    font-weight: 800
}

.qp-tool:hover {
    background: var(--accent-soft, rgba(15, 23, 42, .06))
}

.qp-advanced {
    color: var(--muted, #64748b);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap
}

.qp-advanced:hover {
    color: var(--accent)
}

.qp-body-wrap {
    position: relative;
    min-height: 148px
}

.qp-body {
    min-height: 148px;
    padding: 14px 16px;
    outline: none;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text)
}

.qp-body:empty:before {
    content: attr(data-placeholder);
    color: var(--muted, #c0c4cc)
}

.qp-body img {
    max-width: 100%;
    border-radius: 8px
}

.qp-guest {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted, #94a3b8);
    font-size: 14px;
    background: transparent;
    pointer-events: none
}

.qp-guest a {
    pointer-events: auto;
    color: var(--accent, #2563eb);
    font-weight: 700;
    text-decoration: none
}

.qp-guest span {
    color: var(--line, #cbd5e1)
}

.qp-color,
.qp-emoji {
    position: absolute;
    left: 12px;
    top: 8px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    background: var(--card, #fff);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--card-shadow)
}

.qp-color[hidden],
.qp-emoji[hidden] {
    display: none
}

.qp-color button {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    cursor: pointer
}

.qp-emoji {
    max-width: 280px
}

.qp-emoji button {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px
}

.qp-emoji button:hover,
.qp-color button:hover {
    background: var(--chip)
}

.qp-captcha {
    margin-top: 12px
}

.qp-captcha .field {
    margin: 0
}

.qp-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px
}

.qp-submit {
    height: 38px;
    min-width: 108px;
    border-radius: 10px;
    padding: 0 18px
}

.qp-rules {
    margin-left: auto;
    color: var(--muted, #94a3b8);
    font-size: 13px;
    text-decoration: none
}

.qp-rules:hover {
    color: var(--accent)
}

@media (max-width: 720px) {
    .qp-card {
        padding: 16px 14px 14px
    }

    .qp-top {
        flex-direction: column;
        align-items: stretch
    }

    .qp-cat {
        width: 100%;
        flex-basis: auto
    }

    .qp-title-input {
        padding-right: 14px
    }

    .qp-title-count {
        display: none
    }

    .qp-toolbar {
        padding: 0 8px
    }
}
