.scot-election-results {
    border: 1px solid #ddd;
    padding: 20px;
    margin-top: 20px;
    background: #fff;
}

.scot-result-strap {
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 700;
}

.scot-status-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    border-radius: 0;
    margin-bottom: 16px;
    font-weight: 700;
}

.scot-status-not_started { background: #f2f2f2; }
.scot-status-counting { background: #fff4cf; }
.scot-status-declared { background: #f5f5f5; }

.scot-refresh-note {
    font-weight: 400;
    font-size: 0.95em;
}

.scot-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.scot-summary-card {
    border: 1px solid #ddd;
    padding: 14px;
    background: #fafafa;
}

.scot-summary-card strong,
.scot-summary-card span {
    display: block;
}

.scot-summary-card span {
    margin-top: 6px;
    font-size: 1.1em;
}

.scot-summary-card small {
    display: block;
    margin-top: 6px;
    color: #666;
}

.scot-winner-banner {
    border-left: 5px solid #111;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.scot-leading-banner {
    border-left-color: #1d70b8;
}

.scot-winner-kicker {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    font-weight: 700;
}

.scot-winner-main {
    font-size: 1.9rem;
    line-height: 1.15;
    font-weight: 800;
}

.scot-winner-sub,
.scot-swing-line,
.scot-comparison-note {
    margin-top: 8px;
}

.scot-results-table,
.scot-election-overview {
    width: 100%;
    border-collapse: collapse;
}

.scot-results-table th,
.scot-results-table td,
.scot-election-overview th,
.scot-election-overview td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.scot-results-table thead,
.scot-election-overview thead {
    background: #f5f5f5;
}

.scot-top-row {
    font-weight: 700;
}

.scot-party-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.scot-seat-counter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
}

.scot-seat-counter-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ddd;
    padding: 8px 12px;
    background: #fafafa;
}

.scot-ticker-wrap {
    border: 1px solid #ddd;
    background: #fff;
    padding: 16px;
    margin: 20px 0;
}

.scot-ticker-list {
    display: grid;
    gap: 8px;
}

.scot-ticker-item {
    border-top: 1px solid #eee;
    padding-top: 8px;
}

.scot-ticker-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.scot-ticker-time {
    display: inline-block;
    min-width: 165px;
    color: #666;
    font-size: 0.95em;
    margin-right: 10px;
}

@media (max-width: 1000px) {
    .scot-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .scot-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scot-status-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .scot-results-table,
    .scot-election-overview {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .scot-seat-map {
        grid-template-columns: 1fr;
    }

    .scot-winner-banner {
        position: sticky;
        top: 8px;
        z-index: 30;
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }

    .scot-winner-main {
        font-size: 1.45rem;
    }

    .scot-ticker-time {
        min-width: 0;
        display: block;
        margin: 0 0 4px;
    }
}

@media (max-width: 560px) {
    .scot-summary-grid {
        grid-template-columns: 1fr;
    }

    .scot-result-strap,
    .scot-winner-main {
        font-size: 1.15rem;
    }

    .scot-election-results {
        padding: 14px;
    }

    .scot-summary-card,
    .scot-seat-counter-item,
    .scot-seat-map-item {
        padding: 12px;
    }
}


.scot-seat-map {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.scot-seat-map-item {
    display: block;
    border: 1px solid #ddd;
    border-top: 5px solid #777;
    padding: 14px;
    text-decoration: none;
    color: inherit;
}

.scot-seat-map-title,
.scot-seat-map-meta,
.scot-seat-map-summary {
    display: block;
}

.scot-seat-map-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.scot-seat-map-meta {
    font-size: 0.92em;
    color: #555;
    margin-bottom: 8px;
}

.scot-seat-map-summary {
    font-size: 0.95em;
}

.scot-inline-lock-notice {
    margin: 8px 0 12px;
}
