.adv-disputes-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 16px;
    padding: 0 20px 20px;
}

@media (max-width: 900px) {
    .adv-disputes-layout {
        grid-template-columns: 1fr;
    }
}

.adv-disputes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 520px;
    overflow-y: auto;
}

.adv-dispute-item {
    text-align: left;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
}

.adv-dispute-item:hover,
.adv-dispute-item.active {
    border-color: #6366f1;
    background: #f8fafc;
}

.adv-dispute-item-id {
    font-weight: 600;
    font-size: 0.875rem;
    color: #0f172a;
}

.adv-dispute-item-summary {
    margin-top: 6px;
    font-size: 0.78rem;
    color: #334155;
    line-height: 1.35;
}

.adv-dispute-item-meta {
    margin-top: 4px;
    font-size: 0.75rem;
    color: #64748b;
}

.adv-dispute-order-card {
    margin: 14px 0 16px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.adv-dispute-order-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.adv-dispute-order-service {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6366f1;
    margin-bottom: 4px;
}

.adv-dispute-order-title {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
    line-height: 1.35;
}

.adv-dispute-order-id {
    margin: 4px 0 0;
    font-size: 0.75rem;
    color: #64748b;
}

.adv-dispute-order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px 16px;
    margin: 0;
}

.adv-dispute-order-row {
    margin: 0;
}

.adv-dispute-order-row dt {
    margin: 0 0 2px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

.adv-dispute-order-row dd {
    margin: 0;
    font-size: 0.8125rem;
    color: #0f172a;
    word-break: break-word;
}

.adv-dispute-order-row dd a {
    color: #2563eb;
}

.adv-dispute-order-missing {
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.8125rem;
}

.adv-disputes-detail {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    padding: 16px 18px;
    min-height: 280px;
}

.adv-disputes-placeholder {
    color: #94a3b8;
    font-size: 0.875rem;
    margin: 0;
}

.adv-dispute-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.adv-dispute-thread-title {
    margin: 16px 0 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

.adv-dispute-platform-note {
    margin: 0 0 12px;
    padding: 10px 12px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #475569;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
}

.adv-dispute-resolution-card {
    margin: 14px 0;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
}

.adv-dispute-resolution-title {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: #166534;
}

.adv-dispute-resolution-main {
    margin: 0;
    font-weight: 700;
    color: #14532d;
}

.adv-dispute-resolution-note,
.adv-dispute-resolution-time {
    margin: 8px 0 0;
    font-size: 0.8125rem;
    color: #334155;
}

.adv-dispute-msg.is-admin {
    border-left: 3px solid #6366f1;
    background: #eef2ff;
}

.adv-dispute-closed-note {
    margin-top: 12px;
}

.adv-dispute-status.open {
    background: #fef3c7;
    color: #b45309;
}

.adv-dispute-status.resolved {
    background: #dcfce7;
    color: #15803d;
}

.adv-dispute-messages {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
}

.adv-dispute-msg {
    padding: 10px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    font-size: 0.8125rem;
}

.adv-dispute-msg.buyer {
    background: #eef2ff;
}

.adv-dispute-msg.publisher {
    background: #ecfdf5;
}

.adv-dispute-msg.admin {
    background: #fff7ed;
}

.adv-dispute-resolution {
    margin: 12px 0;
    padding: 10px 12px;
    background: #f0fdf4;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #166534;
}

.adv-dispute-msg-head {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 4px;
}

.adv-dispute-reply {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adv-dispute-reply textarea {
    width: 100%;
    min-height: 72px;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
}

.adv-dispute-reply button {
    align-self: flex-start;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background: #4f46e5;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.adv-disputes-empty {
    padding: 24px;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

.adv-disputes-empty a {
    color: #4f46e5;
}
