/* EMOM timer, on top of base.css and calc.css */
.ex-fields {
    display: grid;
    gap: 8px;
}

input.txt {
    font-size: 1rem;
    font-weight: 500;
}

input.txt::placeholder {
    color: var(--steel);
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--muted);
    cursor: pointer;
}

.check input {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

/* Settings stay readable but can't change mid-workout */
.calc-form.is-locked {
    opacity: 0.45;
    pointer-events: none;
}

.emom-clock {
    font-size: clamp(5rem, 24vw, 8.5rem);
    transition: color 0.2s ease;
}

.emom.is-lead .emom-clock {
    color: #fff;
}

.emom.is-done .emom-clock {
    color: var(--sage);
}

.emom-bar {
    height: 6px;
    margin: 18px 0 22px;
    background: var(--line);
    border-radius: 3px;
    overflow: hidden;
}

.emom-bar span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--gold);
}

.emom-now {
    display: grid;
    gap: 2px;
}

.emom-label {
    font-family: var(--label);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
}

.emom-now strong {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.emom-next {
    margin-top: 4px;
    color: #d4dcde;
}

.emom .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.emom-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 24px;
}

.emom-start {
    min-width: 140px;
    min-height: 52px;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
}

.emom-reset {
    background: none;
    border: none;
    padding: 8px 0;
    color: var(--muted);
    font-family: var(--label);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.emom-reset:hover {
    color: #fff;
}

.emom-table td:last-child {
    text-align: right;
}

.emom-table td,
.emom-table th[scope="row"] {
    white-space: normal;
}

/* Phones: each workout becomes a small card (name and time, then the minutes, then Load) */
@media (max-width: 699px) {
    .emom-table thead {
        display: none;
    }

    .emom-table caption {
        display: block;
        width: 100%;
        text-align: left;
    }

    .emom-table,
    .emom-table tbody {
        display: block;
        width: 100%;
    }

    .emom-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 2px 14px;
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }

    .emom-table th,
    .emom-table td {
        padding: 0;
        border: 0;
        text-align: left;
    }

    .emom-table td:nth-child(2) {
        text-align: right;
        color: var(--muted);
    }

    .emom-table td:nth-child(3) {
        grid-column: 1 / -1;
    }

    .emom-table td:last-child {
        grid-column: 1 / -1;
        text-align: left;
    }
}
