.syndicate-section { margin-top: 32px; position: relative; }
.syndicate-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.syndicate-badge-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: rgba(16, 185, 129, 0.12); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.25); }
.syndicate-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }

.synd-card { background: var(--surf); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--sh-card); transition: border-color 0.2s, transform 0.2s; position: relative; overflow: hidden; }
.synd-card:hover { border-color: rgba(59, 130, 246, 0.4); transform: translateY(-2px); }
.synd-card.is-hot { border-color: rgba(16, 185, 129, 0.45); background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, var(--surf) 100%); }

.synd-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 6px; }
.synd-num { font-size: 11px; font-weight: 700; color: var(--tx-dim); font-family: 'JetBrains Mono', monospace; }
.synd-pill { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 12px; font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
.synd-pill.hot { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.synd-pill.warm { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.synd-pill.calm { background: var(--bg-subtle); color: var(--tx-dim); }

.synd-teams { font-size: 12px; font-weight: 600; color: var(--tx); line-height: 1.3; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 31px; }

.synd-outcomes { display: flex; flex-direction: column; gap: 6px; }
.synd-row { display: flex; flex-direction: column; gap: 3px; }
.synd-row-info { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-family: 'JetBrains Mono', monospace; }
.synd-lbl { font-weight: 700; color: var(--tx-muted); width: 22px; }
.synd-pool { color: var(--tx); font-weight: 600; }
.synd-delta { font-weight: 700; font-size: 10px; }
.synd-delta.up { color: #10b981; }
.synd-delta.down { color: #ef4444; opacity: 0.75; }
.synd-delta.zero { color: var(--tx-dim); }

.synd-bar { width: 100%; height: 5px; background: var(--bg-subtle); border-radius: 3px; overflow: hidden; }
.synd-bar-fill { height: 100%; border-radius: 3px; transition: width 0.4s ease; background: #64748b; opacity: 0.45; }
.synd-row.active-flow .synd-bar-fill { background: linear-gradient(90deg, #3b82f6, #10b981); opacity: 1; }

.syndicate-wait-box { background: var(--surf); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; box-shadow: var(--sh-card); }
.synd-wait-left { display: flex; align-items: flex-start; gap: 16px; flex: 1; min-width: 260px; }
.synd-wait-ic { width: 44px; height: 44px; border-radius: 10px; background: rgba(37, 99, 235, 0.1); color: #3b82f6; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.synd-wait-time { background: var(--bg-subtle); border: 1px solid var(--line-subtle); padding: 10px 16px; border-radius: 8px; text-align: right; flex-shrink: 0; }

/* Выезжающий справа ярлык быстрого превью (только Десктоп) */
#rowDossierTrigger {
    position: fixed;
    z-index: 1040;
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-left: none;
    border-radius: 0 8px 8px 0;
    box-shadow: 4px 2px 12px rgba(37, 99, 235, 0.35);
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease, width 0.15s ease;
    padding: 0;
    outline: none;
}
#rowDossierTrigger:hover {
    width: 40px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}
/* Подсветка строки таблицы, когда наведен ярлык */
table.matches tbody tr.dossier-hover td {
    background-color: rgba(37, 99, 235, 0.06) !important;
}

/* Стили модального окна Досье Матча */
.dossier-modal .modal-content { background: var(--surf); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); color: var(--tx); }
.dossier-modal .modal-header { border-bottom: 1px solid var(--line-subtle); padding: 16px 20px; }
.dossier-modal .modal-body { padding: 20px; }
.dos-teams-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; background: var(--bg-subtle); padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line-subtle); margin-bottom: 18px; }
.dos-team-name { font-size: 16px; font-weight: 800; color: var(--tx); text-decoration: none; }
.dos-team-name:hover { color: var(--ac); }
.dos-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.dos-box { background: var(--bg-subtle); border: 1px solid var(--line-subtle); border-radius: 10px; padding: 12px 14px; }
.dos-box-title { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--tx-muted); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.dos-stat-line { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 4px 0; border-bottom: 1px dashed var(--line-subtle); }
.dos-stat-line:last-child { border-bottom: none; padding-bottom: 0; }
.dos-wdl { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 13px; }
.dos-bar-tri { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin-top: 8px; background: var(--line); }

@media (max-width: 1350px) { .syndicate-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px) {
    #rowDossierTrigger { display: none !important; }
}
@media (max-width: 768px) { 
    .syndicate-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } 
    .synd-card { padding: 10px; }
    .syndicate-wait-box { padding: 16px; }
    .synd-wait-time { width: 100%; text-align: left; }
}
@media (max-width: 420px) { .syndicate-grid { grid-template-columns: 1fr; } }