* {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: system-ui, sans-serif;
            background: #f3f5f7;
            color: #222;
        }

        header {
            background: #1769aa;
            color: white;
            padding: 16px;
        }

        header h1 {
            margin: 0;
            font-size: 25px;
        }

        header p {
            margin: 3px 0 0;
            opacity: .85;
        }

        main {
            max-width: 700px;
            margin: auto;
            padding: 12px;
        }

        .nav {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 8px;
            margin-bottom: 10px;
        }

        button {
            border: 0;
            border-radius: 8px;
            padding: 11px 10px;
            min-height: 44px;
            font: inherit;
            font-weight: 650;
            background: white;
            color: #1769aa;
            box-shadow: 0 1px 3px #0002;
            cursor: pointer;
        }

        button:disabled {
            opacity: .35;
            cursor: default;
        }

        .next {
            justify-self: stretch;
        }

        .previous {
            justify-self: stretch;
        }

        .trinec-update {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }

        .trinec-update button {
            flex: 1;
        }

        .trinec-age {
            font-size: 13px;
            color: #667;
            white-space: nowrap;
        }

        .day-title {
            background: white;
            border-radius: 10px 10px 0 0;
            padding: 13px 14px;
            border-bottom: 1px solid #ddd;
        }

        .day-title strong {
            display: block;
            font-size: 20px;
        }

        .day-title span {
            color: #666;
            font-size: 14px;
        }

        .controls {
            display: flex;
            justify-content: flex-end;
            margin: 8px 0 10px;
        }

        #modeButton {
            font-size: 14px;
            padding: 7px 12px;
            min-height: 38px;
        }

        .schedule {
            background: white;
            border-radius: 0 0 10px 10px;
            overflow: hidden;
            box-shadow: 0 1px 4px #0002;
        }

        .slot {
            display: grid;
            grid-template-columns: 72px 1fr;
            border-top: 1px solid #eee;
            min-height: 62px;
        }

        .slot:first-child {
            border-top: 0;
        }

        .time {
            padding: 12px 10px;
            font-size: 17px;
            font-weight: 750;
            font-variant-numeric: tabular-nums;
            background: #f7f8f9;
        }

        .options {
            padding: 7px 11px;
        }

        .pool {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            padding: 3px 0;
            align-items: baseline;
        }

        .pool-name {
            font-weight: 650;
        }

        .lanes {
            color: #147a32;
            font-weight: 750;
            white-space: nowrap;
        }

        .none {
            color: #aaa;
        }

        .slot:not(.unavailable) {
            background: #e8f6e8;
        }

        .slot:not(.unavailable) .time {
            background: #d9efd9;
        }

        .unavailable {
            background: #ffe5e5;
        }

        .unavailable .time {
            background: #f6cccc;
            color: #9b2929;
        }

        .unavailable .no-swimming {
            color: #a33;
            font-weight: 700;
        }

        .current-block {
            position: relative;
        }

        .now-line {
            height: 2px;
            background: #1769aa;
            margin: 5px 0;
            position: relative;
        }

        .now-label {
            display: inline-block;
            background: #1769aa;
            color: white;
            font-size: 10px;
            font-weight: 800;
            line-height: 16px;
            padding: 0 5px;
            border-radius: 3px;
            position: absolute;
            right: 6px;
            top: -7px;
        }

        .empty {
            background: white;
            padding: 24px 15px;
            text-align: center;
            color: #777;
            border-radius: 0 0 10px 10px;
        }

        .warning {
            margin-top: 14px;
            background: #fff3cd;
            border-radius: 8px;
            padding: 10px 12px;
            font-size: 14px;
        }

        .now-marker {
            font-size: 11px;
            text-transform: uppercase;
            color: #1769aa;
            font-weight: 800;
            margin-top: 3px;
        }

        .note {
            margin: 16px 3px;
            color: #777;
            font-size: 13px;
        }
