.market-pulse {
    padding: 10px 0 18px;
    background: #f8f9fa;
}

.market-pulse-panel {
    background: #fff;
    border: 1px solid #e5edf6;
    border-radius: 14px;
    padding: 14px;
    color: #0f172a;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.market-pulse-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.market-pulse-head h2 {
    margin: 0 0 3px;
    font-size: 20px;
    line-height: 1.15;
    color: #0f172a;
}

.market-pulse-head p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.market-pulse-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #15803d;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.market-pulse-live span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, .14);
}

.market-pulse-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 330px;
    overflow: auto;
    padding: 2px 4px 2px 0;
    scrollbar-width: thin;
}

.market-pulse-msg {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.market-pulse-msg.is-user {
    flex-direction: row-reverse;
}

.market-pulse-avatar {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    color: #475569;
    font-size: 11px;
    font-weight: 900;
}

.market-pulse-msg.is-ai .market-pulse-avatar {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

.market-pulse-bubble {
    max-width: min(760px, calc(100% - 42px));
    padding: 9px 11px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1f2937;
}

.market-pulse-msg.is-user .market-pulse-bubble {
    background: #fff7ed;
    border-color: #fed7aa;
}

.market-pulse-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 4px;
    font-size: 11px;
    color: #64748b;
}

.market-pulse-msg.is-user .market-pulse-meta {
    color: #9a3412;
}

.market-pulse-meta strong {
    color: inherit;
    font-weight: 900;
}

.market-pulse-meta em {
    display: inline-flex;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef2f7;
    color: #475569;
    font-style: normal;
    font-weight: 800;
}

.market-pulse-mod-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.market-pulse-mod-btn:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.market-pulse-mod-btn.danger {
    border-color: #fecaca;
    color: #b91c1c;
}

.market-pulse-mod-btn.danger:hover {
    background: #fef2f2;
    border-color: #f87171;
}

.market-pulse-msg.is-user .market-pulse-meta em {
    background: rgba(234, 88, 12, .1);
    color: #9a3412;
}

.market-pulse-text {
    font-size: 14px;
    line-height: 1.35;
    word-break: break-word;
}

.market-pulse-product {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    max-width: 360px;
    padding: 6px;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    background: #fff;
    color: #c2410c;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
}

.market-pulse-product img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
}

.market-pulse-product span {
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.market-pulse-product.no-image {
    display: inline-flex;
    width: auto;
    padding: 5px 8px;
}

.market-pulse-product:hover {
    border-color: #fb923c;
    background: #fff7ed;
}

.market-pulse-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 12px;
}

.market-pulse-send-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    grid-column: 1 / -1;
}

.market-pulse-form input,
.market-pulse-product-select,
.market-pulse-login {
    min-height: 42px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    padding: 0 12px;
    outline: none;
    font-size: 14px;
}

.market-pulse-product-select {
    width: 100%;
    cursor: pointer;
    grid-column: 1 / -1;
}

.market-pulse-form input::placeholder {
    color: #94a3b8;
}

.market-pulse-login {
    display: flex;
    align-items: center;
    color: #64748b;
}

.market-pulse-form button {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: #ff6600;
    color: #fff;
    padding: 0 14px;
    font-weight: 900;
    cursor: pointer;
}

.market-pulse-form button:hover {
    background: #e65c00;
}

@media (max-width: 640px) {
    .market-pulse {
        padding: 8px 0 12px;
    }

    .market-pulse-panel {
        border-radius: 12px;
        padding: 11px;
    }

    .market-pulse-head h2 {
        font-size: 18px;
    }

    .market-pulse-head p {
        display: none;
    }

    .market-pulse-list {
        max-height: 300px;
        gap: 7px;
    }

    .market-pulse-bubble {
        padding: 8px 9px;
    }

    .market-pulse-text {
        font-size: 13px;
    }

    .market-pulse-form,
    .market-pulse-send-row {
        grid-template-columns: 1fr;
    }
}
