.nav-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .6rem .9rem;
    border: 1px solid #475569;
    border-radius: .8rem;
    font-size: .875rem;
    color: #cbd5e1;
    min-height: 44px;
}

.nav-tab.active {
    color: #22d3ee;
    border-color: #0891b2;
    background: #083344;
}

.field {
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: .75rem;
    padding: .55rem;
    color: #f1f5f9;
    color-scheme: dark;
}

button:disabled {
    opacity: .5;
    cursor: wait;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 3px;
}

/* Koffi 3: compact navigation and accessible mobile forms. */
.feature-nav {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    padding-bottom: .5rem;
}

.feature-nav a {
    flex-shrink: 0;
    font-size: .8rem;
}

.feature-form label {
    display: block;
    margin-top: 1rem;
    margin-bottom: .4rem;
}

.feature-form .field {
    width: 100%;
    min-width: 0;
    color-scheme: dark;
}

.feature-form input,
.feature-form select,
.feature-form textarea {
    font-size: 16px;
}

.heatmap-scroll {
    overflow-x: auto;
    padding: 4px;
}

.heatmap-grid {
    display: grid;
    grid-template-rows: repeat(7, 16px);
    grid-auto-flow: column;
    grid-auto-columns: 16px;
    gap: 4px;
    width: max-content;
}

.heat-cell {
    display: block;
    border-radius: 3px;
    background: #334155;
}

.heat-cell.level-1 {
    background: #44657b;
}

.heat-cell.level-2 {
    background: #557e98;
}

.heat-cell.level-3 {
    background: #6b96af;
}

.heat-cell.level-4 {
    background: #8cb6cd;
}

.heat-cell.free-day {
    outline: 2px solid #a3b8c7;
    outline-offset: -3px;
}

.heat-cell:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}