/* ── 秒表 ── */
.sw-wrapper {
    text-align: center;
    padding: 1.5rem 0;
}

.sw-display {
    font-family: 'Fira Code', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.sw-actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.sw-btn {
    min-width: 100px;
}

.sw-btn.running {
    background: #dc2626;
    color: white;
}

.sw-btn.running:hover {
    background: #b91c1c;
}

/* ── 分圈记录 ── */
.sw-laps {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.sw-lap-header,
.sw-lap-row {
    display: grid;
    grid-template-columns: 60px 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.88rem;
}

.sw-lap-header {
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
}

.sw-lap-row {
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.sw-lap-row:nth-child(even) {
    background: #fafafa;
}

.sw-lap-row .lap-time {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
}

.sw-lap-row .lap-best {
    color: #059669;
    font-weight: 600;
}

.sw-lap-row .lap-worst {
    color: #dc2626;
    font-weight: 600;
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .sw-display {
        font-size: 2.5rem;
    }
    .sw-btn {
        min-width: 80px;
        padding: 0.65rem 1rem;
    }
}
