:root
{
    font-family: system-ui, sans-serif;
    font-size: 18px;
    background: #eeeae1;
    color: #161616;
}

*
{
    box-sizing: border-box;
}

body
{
    margin: 0;
    min-height: 100vh;
}

button,
select
{
    font: inherit;
}

.station
{
    min-height: 100vh;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.topbar
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

h1
{
    margin: 0;
    font-size: 1.45rem;
}

.connection
{
    display: inline-block;
    margin-top: .35rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: #d8e9d8;
    font-weight: 700;
}

.connection.running
{
    background: #bfe4bf;
}

.connection.bad
{
    background: #efbcbc;
}

.counter-age
{
    font-size: .85rem;
}

.grid
{
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card
{
    background: white;
    border: 1px solid #c9c4b9;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 .15rem .45rem rgba(0, 0, 0, .08);
}

.metric,
.people-card
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.label,
.selector-card label
{
    font-size: .9rem;
    font-weight: 700;
    opacity: .7;
}

.metric strong,
.people-card strong
{
    font-size: clamp(2rem, 7vw, 4.8rem);
    line-height: 1;
    margin-top: .4rem;
}

.metric small
{
    margin-top: .5rem;
}

.work-time-card
{
    gap: .15rem;
}

.person-time-block
{
    width: 100%;
    margin-top: 1rem;
    padding-top: .8rem;
    border-top: 1px solid #d8d3c8;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.person-time-value
{
    margin-top: .25rem;
    font-size: clamp(1.6rem, 4vw, 3rem);
    line-height: 1;
    font-weight: 800;
}

.selector-card
{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.selector-card select
{
    width: 100%;
    min-height: 4rem;
    margin-top: .5rem;
    padding: .65rem;
    border-radius: .75rem;
    border: 1px solid #aaa;
    background: white;
    font-size: 1.35rem;
}

.people-controls
{
    width: 100%;
    display: grid;
    grid-template-columns: 5rem 1fr 5rem;
    align-items: center;
    gap: .75rem;
    margin-top: .5rem;
}

.round
{
    width: 5rem;
    height: 5rem;
    border: 0;
    border-radius: 50%;
    font-size: 3rem;
    font-weight: 800;
    box-shadow: inset 0 0 .45rem rgba(0, 0, 0, .3);
}

.green
{
    background: #72bf6a;
}

.yellow
{
    background: #e4c85e;
}

.actions
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.action
{
    min-height: 6rem;
    border: 0;
    border-radius: 1rem;
    font-size: 2.2rem;
    font-weight: 900;
}

.start
{
    background: #63b95e;
}

.stop
{
    background: #d66058;
}

button:disabled,
select:disabled
{
    opacity: .45;
}

.message
{
    min-height: 1.5rem;
    font-weight: 700;
}

.message.error
{
    color: #8a1616;
}

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