.expect-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.expect-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #111;
    border-radius: 10px;
    padding: 0.45rem 0.85rem;
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.22);
}
.expect-pdf-btn:hover { filter: brightness(1.06); color: #111; }
.expect-dd {
    position: relative;
    margin: 0;
}
.expect-dd > summary {
    list-style: none;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #e5e7eb;
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    user-select: none;
}
.expect-dd > summary::-webkit-details-marker { display: none; }
.expect-dd > summary::before {
    content: '▾';
    font-size: 0.72rem;
    opacity: 0.7;
}
.expect-dd[open] > summary {
    border-color: rgba(251,191,36,0.45);
    background: rgba(251,191,36,0.1);
    color: #fde68a;
}
.expect-dd[open] {
    flex: 1 0 100%;
}
.expect-actions:has(> .expect-dd[open]),
.group-actions:has(.expect-dd[open]) {
    flex: 1 0 100%;
    justify-content: flex-start;
}
.expect-dd-panel {
    margin-top: 0.65rem;
    padding: 0.85rem 0.9rem 0.75rem;
    background: rgba(8,10,18,0.92);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
}
.expect-legend {
    margin: 0 0 0.7rem;
    color: #cbd5e1;
    font-size: 0.8rem;
    line-height: 1.45;
}
.expect-legend b { color: #fff; }
.expect-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.expect-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    min-width: 560px;
}
.expect-table th,
.expect-table td {
    padding: 0.5rem 0.45rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    vertical-align: top;
}
.expect-table th {
    color: #94a3b8;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}
.expect-table th small {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #64748b;
    font-weight: 500;
    margin-top: 0.15rem;
}
.expect-table td { color: #e5e7eb; }
.expect-team-cell {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 160px;
}
.expect-logo,
.expect-mark {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    flex-shrink: 0;
    object-fit: cover;
    background: #1f2937;
}
.expect-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.78rem;
    color: #f8fafc;
}
.expect-team-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}
.expect-team-copy strong {
    color: #fff;
    font-size: 0.84rem;
    line-height: 1.2;
}
.expect-team-copy em {
    font-style: normal;
    color: #94a3b8;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}
.expect-flag {
    width: 14px;
    height: 10px;
    object-fit: cover;
    border-radius: 2px;
}
.expect-kicker {
    display: block;
    color: #e2e8f0;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.3;
}
.expect-table td small {
    display: block;
    color: #94a3b8;
    font-size: 0.7rem;
    margin-top: 0.18rem;
    font-weight: 500;
}
.expect-table td small b { font-weight: 800; }
.expect-hit { background: rgba(16,185,129,0.08); }
.expect-hit .expect-kicker,
.expect-hit small b { color: #34d399; }
.expect-above { background: rgba(56,189,248,0.10); }
.expect-above .expect-kicker,
.expect-above small b { color: #38bdf8; }
.expect-miss { background: rgba(248,113,113,0.08); }
.expect-miss .expect-kicker,
.expect-miss small b { color: #f87171; }
.expect-na { color: #6b7280; }
.expect-na .expect-kicker { color: #6b7280; font-weight: 600; }
.expect-empty { color: #94a3b8; font-size: 0.8rem; margin: 0; }

.group-card-header,
.cross-cumulative-header,
.manage-standings-view .group-card-header,
.match-head {
    overflow: visible;
    flex-wrap: wrap;
}
.group-actions .expect-dd,
.group-actions .expect-actions,
.group-actions .expect-pdf-btn,
.cross-cumulative-header .expect-dd,
.cross-cumulative-header .expect-actions,
.cross-cumulative-header .expect-pdf-btn,
.manage-standings-view .expect-dd,
.manage-standings-view .expect-actions,
.manage-standings-view .expect-pdf-btn,
.match-head .expect-dd,
.match-head .expect-actions,
.match-head .expect-pdf-btn {
    display: inline-flex;
    flex-shrink: 0;
}

@media (max-width: 860px) {
    .expect-pdf-btn {
        padding: 0.28rem 0.5rem;
        font-size: 0.7rem;
        border-radius: 8px;
    }
    .expect-dd > summary {
        padding: 0.28rem 0.45rem;
        font-size: 0.7rem;
        border-radius: 8px;
    }
    .expect-table { font-size: 0.74rem; min-width: 480px; }
    .expect-logo, .expect-mark { width: 24px; height: 24px; }
}
