:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface2: #eef2f5;
    --text: #17212b;
    --muted: #71808d;
    --red: #c62828;
    --red-light: #ffebee;
    --orange: #ef6c00;
    --orange-light: #fff3e0;
    --blue: #1565c0;
    --blue-light: #e3f2fd;
    --green: #2e7d32;
    --green-light: #e8f5e9;
    --purple: #6a1b9a;
    --purple-light: #f3e5f5;
    --border: #d9e0e5;
    --shadow: 0 4px 18px rgba(20,35,50,.07);
    --header: #7f1d1d;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    overflow-x: clip;
}

/* =====================================================
   HEADER
===================================================== */

header {
    background: var(--header);
    color: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

header.theme-navy {
    --header: #0f2744;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.back-link {
    color: rgba(255,255,255,.9);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    white-space: nowrap;
}

.back-link:hover {
    background: rgba(255,255,255,.22);
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title .icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

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

header small {
    display: block;
    opacity: .75;
    margin-top: 3px;
}

#clock {
    font-family: monospace;
    font-size: 20px;
}

/* =====================================================
   MAIN
===================================================== */

main {
    max-width: 1250px;
    margin: auto;
    padding: 20px;
}

/* =====================================================
   WARNING
===================================================== */

.warning {
    background: #fff8e1;
    border: 1px solid #f2c94c;
    color: #664d03;
    padding: 13px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.warning a {
    color: #8a4b00;
    text-decoration: none;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.5);
    transition: background 0.2s;
}

.warning a:hover {
    background: rgba(255,255,255,0.8);
}

/* =====================================================
   GRID
===================================================== */

.grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
    min-width: 0;
}

.grid > * {
    min-width: 0;
}

.full {
    grid-column: 1 / -1;
}

/* =====================================================
   CARDS
===================================================== */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-title h2 {
    margin: 0;
    font-size: 17px;
}

.subtitle {
    color: var(--muted);
    font-size: 12px;
}

/* =====================================================
   SOIGNANTS PRESENTS
===================================================== */

.care-team-table {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
}

.care-team-header,
.care-team-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
}

.care-team-header {
    background: var(--surface2);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid var(--border);
}

.care-team-header > div,
.care-team-row > div,
.care-team-row > input {
    padding: 10px 12px;
}

.care-team-row {
    border-bottom: 1px solid var(--border);
}

.care-team-row:last-child {
    border-bottom: 0;
}

.care-team-role {
    font-weight: 800;
    color: var(--text);
    background: #fafbfc;
    min-height: 46px;
    display: flex;
    align-items: center;
}

.care-team-row input {
    width: 100%;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--surface2);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition:
        border-color .2s,
        background .2s,
        box-shadow .2s;
}

.care-team-row input:focus {
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(21,101,192,.10);
}

.care-team-row input::placeholder {
    color: #9aa5ad;
}

/* Mobile */
@media(max-width: 600px) {

    .care-team-header,
    .care-team-row {
        grid-template-columns: 80px 1fr;
    }

    .care-team-header > div,
    .care-team-row > div,
    .care-team-row > input {
        padding: 9px 10px;
    }

    .care-team-row input {
        font-size: 13px;
    }
}


/* =====================================================
   CHRONOMETRE HPP
===================================================== */

body.entry-locked .grid > .card:not(.start-panel):not(:has(.journal-actions)),
body.entry-locked .ecmo-banner {
    pointer-events: none;
    opacity: .55;
}

body.entry-locked .card:has(.journal-actions) .card-title > *:not(.journal-actions),
body.entry-locked .card:has(.journal-actions) .log {
    pointer-events: none;
    opacity: .55;
}

body.entry-locked .journal-actions {
    pointer-events: auto;
    opacity: 1;
}

body.entry-locked .journal-actions button {
    opacity: 1;
}

.journal-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.start-panel {
    border-left: 6px solid var(--red);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 20px;
    background: #eceff1;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.status-badge.active {
    background: var(--red-light);
    color: var(--red);
}

.main-timer {
    font-family: monospace;
    font-size: clamp(55px, 9vw, 105px);
    font-weight: 800;
    text-align: center;
    letter-spacing: -4px;
    margin: 8px 0;
}

.timer-label {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.start-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

/* =====================================================
   BUTTONS
===================================================== */

button {
    border: 0;
    border-radius: 10px;
    padding: 12px 15px;
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
    font-weight: 700;
    cursor: pointer;
    transition: transform .1s, opacity .15s, background .2s;
}

button:hover {
    opacity: .88;
}

button:active {
    transform: scale(.97);
}

button:disabled {
    cursor: default;
    transform: none;
}

button.primary {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

button.orange {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}

button.blue {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

button.green {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

button.purple {
    background: var(--purple);
    color: white;
    border-color: var(--purple);
}

button.dark {
    background: #263238;
    color: white;
    border-color: #263238;
}

button.big {
    padding: 15px 22px;
    font-size: 15px;
}

button.done,
.action.done {
    background: var(--green-light);
    border-color: #a5d6a7;
    color: var(--green);
}

/* =====================================================
   TIMELINE
===================================================== */

.timeline-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.timeline-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.timeline {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    min-height: 200px;
    margin-top: 10px;
    border-left: 2px solid var(--blue);
    padding-left: 20px;
}

.timeline-inner {
    position: relative;
    min-width: 100%;
}

.timeline-axis {
    position: relative;
    height: 32px;
    margin-left: 0;
    margin-right: 0;
    font-size: 11px;
    color: var(--muted);
    background: var(--surface);
    z-index: 10;
    overflow: hidden;
}

.timeline-axis span {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
    text-align: center;
}

/* Première graduation : alignée à gauche */
.timeline-axis span:first-child {
    transform: translateX(0);
}

/* Dernière graduation : alignée à droite */
.timeline-axis span:last-child {
    transform: translateX(-100%);
}


.timeline-axis span::after {
    content: '';
    position: absolute;
    top: 17px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 10px;
    background: var(--border);
}


.timeline-events {
    position: relative;
    padding-top: 10px;
    min-height: 150px;
}

.timeline-event-row {
    position: relative;
    display: block;
    margin-bottom: 15px;
    height: 30px;
}

.timeline-event-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--red);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--red);
    z-index: 5;
    top: 7px;
}

.timeline-event-label {
    position: absolute;
    top: 0;
    padding: 5px 8px;
    font-size: 12px;
    color: var(--text);
    white-space: nowrap;
    background: var(--surface);
    border-radius: 4px;
    border: 1px solid var(--border);
}

.timeline-event-time {
    position: absolute;
    top: 17px;
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap;
    transform: translateX(-50%);
}

/* =====================================================
   BLOOD LOSS
===================================================== */

.blood-card {
    background: linear-gradient(135deg, #fff, #fff5f5);
    border-top: 5px solid var(--red);
}

.blood-value {
    font-size: 58px;
    font-weight: 800;
    text-align: center;
    color: var(--red);
    font-family: monospace;
}

.blood-unit {
    text-align: center;
    color: var(--muted);
    margin-bottom: 18px;
}

.blood-controls {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* =====================================================
   CHECKPOINT
===================================================== */

.checkpoint {
    background: var(--orange-light);
    border: 1px solid #ffcc80;
    border-radius: 13px;
    padding: 16px;
    text-align: center;
    transition: background .3s, border-color .3s;
}

.checkpoint.warning-state {
    background: var(--red-light);
    border-color: #ef9a9a;
}

.checkpoint-label {
    color: #8a4b00;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkpoint-time {
    font-family: monospace;
    font-size: 38px;
    font-weight: 800;
    color: var(--orange);
    margin: 5px 0;
}

.checkpoint.warning-state .checkpoint-time {
    color: var(--red);
}

/* =====================================================
   MEDICATION TIMERS
===================================================== */

.timers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.med-card {
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    background: var(--surface2);
    border: 1px solid var(--border);
    transition: background .2s, border-color .2s;
}

.med-card.tx {
    background: var(--blue-light);
    border-color: #90caf9;
}

.med-card.sulprostone {
    background: var(--purple-light);
    border-color: #ce93d8;
}

.med-card.antibioprophylaxie {
    background: var(--green-light);
    border-color: #a5d6a7;
}

.med-name {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
}

.med-time {
    font-family: monospace;
    font-size: 42px;
    font-weight: 800;
    margin: 8px 0;
}

.tx .med-time {
    color: var(--blue);
}

.sulprostone .med-time {
    color: var(--purple);
}

.antibioprophylaxie .med-time {
    color: var(--green);
}

.med-status {
    color: var(--muted);
    font-size: 12px;
    min-height: 32px;
}

.med-card.finished {
    background: var(--red-light);
    border-color: #ef9a9a;
}

.med-card.finished .med-time {
    color: var(--red);
    animation: pulse 1s infinite;
}

.med-card.finished button {
    animation: pulseButton 1s infinite;
}

@keyframes pulse {
    50% {
        opacity: .45;
    }
}

@keyframes pulseButton {
    50% {
        transform: scale(1.03);
    }
}

/* =====================================================
   SELECT
===================================================== */

select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface2);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
    margin-bottom: 10px;
}

select:focus {
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(21,101,192,.10);
}

/* =====================================================
   ACTIONS
===================================================== */

.actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.action {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* =====================================================
   TARGETS
===================================================== */

.targets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.target {
    padding: 15px;
    background: var(--surface2);
    border-radius: 12px;
    text-align: center;
}

.target strong {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
}

.target span {
    color: var(--muted);
    font-size: 12px;
}
/* =====================================================
   TABLEAU CONSTANTES
===================================================== */

.constants-card {
    border-top: 5px solid var(--blue);
    min-width: 0;
}

.constants-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.constants-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    background: var(--surface);
}

.constants-table th,
.constants-table td {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 8px;
    vertical-align: middle;
}

.constants-table th:last-child,
.constants-table td:last-child {
    border-right: 0;
}

.constants-table tr:last-child td {
    border-bottom: 0;
}

/* Colonne des noms de constantes */

.constants-variable {
    width: 190px;
    min-width: 190px;
    background: var(--surface2);
    font-weight: 800;
    position: sticky;
    left: 0;
    z-index: 3;
}

.constants-table thead th {
    background: #e8eef3;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
}

/* Cellule horaire */

.constants-time-cell {
    min-width: 150px;
    text-align: center;
    background: #eaf2f8 !important;
}

.constants-time-input {
    width: 120px;
    padding: 8px 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--text);
    font-family: monospace;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.constants-time-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(21,101,192,.10);
}

/* Valeurs */

.constant-table-input {
    width: 100%;
    min-width: 105px;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface2);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
}

.constant-table-input:focus {
    outline: none;
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(21,101,192,.10);
}

/* Nom d'une variable personnalisée */

.constant-variable-name {
    width: 150px;
    padding: 8px 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--text);
    font-weight: 700;
}

/* Bouton supprimer variable */

.delete-variable-btn {
    margin-left: 6px;
    padding: 5px 7px;
    font-size: 11px;
    color: var(--red);
    background: var(--red-light);
    border-color: #ef9a9a;
}

/* Actions */

.constants-table-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.constants-table-actions button {
    flex: 0 0 auto;
}

.constants-last {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}

@media(max-width: 600px) {

    .constants-table-actions {
        flex-direction: column;
    }

    .constants-table-actions button {
        width: 100%;
    }

    .constants-last {
        text-align: left;
    }

}


/* =====================================================
   JOURNAL
===================================================== */

.log {
    max-height: 450px;
    overflow-y: auto;
}

.event {
    display: grid;
    grid-template-columns: 85px 95px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
}

.event-time {
    color: var(--blue);
    font-family: monospace;
}

.event-relative {
    color: var(--red);
    font-family: monospace;
    font-weight: 700;
}

.event-name {
    font-weight: 700;
}

.empty {
    text-align: center;
    color: var(--muted);
    padding: 35px;
}

/* =====================================================
   MODALES
===================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.modal {
    width: min(460px, 100%);
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0,0,0,.25);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 18px;
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    margin: 0;
    font-size: 17px;
}

.modal-header button {
    padding: 7px 10px;
}

.modal-body {
    padding: 20px;
}

.modal-body label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 800;
}

.modal-body select,
.modal-body input,
.modal-body textarea {
    width: 100%;
    margin-bottom: 15px;
}

.modal-body input,
.modal-body textarea {
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface2);
    font-size: 15px;
    font-family: inherit;
}

.modal-body textarea {
    min-height: 64px;
    resize: vertical;
}

.modal-body input:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(21,101,192,.10);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 5px;
}

@media(max-width:600px) {

    .modal-overlay {
        padding: 10px;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }

    .modal-actions button {
        width: 100%;
    }

}



/* =====================================================
   CUSTOM EVENT
===================================================== */

.custom-row {
    display: flex;
    gap: 10px;
}

.custom-row input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border);
    background: var(--surface2);
    padding: 13px;
    border-radius: 10px;
    font-size: 15px;
}

/* =====================================================
   FOOTER
===================================================== */

.footer-note {
    color: var(--muted);
    font-size: 11px;
    margin-top: 16px;
    line-height: 1.5;
}

.footer-note a {
    color: inherit;
    font-weight: 700;
}

/* =====================================================
   MOBILE
===================================================== */

@media(max-width: 1000px) {

    .constants-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timers {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-event-label {
        font-size: 11px;
    }
}

@media(max-width: 850px) {

    .grid {
        grid-template-columns: 1fr;
    }

    .full {
        grid-column: auto;
    }

    .timers {
        grid-template-columns: 1fr;
    }

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

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

    .timeline {
        min-height: 150px;
    }

    .timeline-event-dot {
        width: 10px;
        height: 10px;
    }

    .timeline-event-label {
        font-size: 10px;
    }
}

@media(max-width: 600px) {

    main {
        padding: 10px;
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }

    header {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
        padding-top: max(12px, env(safe-area-inset-top));
        gap: 10px;
    }

    .header-title {
        min-width: 0;
    }

    .header-title > div {
        min-width: 0;
    }

    .header-title .icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        flex-shrink: 0;
    }

    header h1 {
        font-size: 15px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    header small {
        font-size: 11px;
    }

    .header-meta {
        width: 100%;
        justify-content: space-between;
    }

    #clock {
        font-size: 16px;
    }

    .warning {
        flex-direction: column;
        align-items: stretch;
    }

    .warning a {
        text-align: center;
    }

    .card {
        padding: 14px;
    }

    .card-title {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
    }

    .card-title h2 {
        font-size: 16px;
    }

    .main-timer {
        font-size: clamp(40px, 12vw, 64px);
        letter-spacing: -2px;
    }

    .start-buttons {
        flex-direction: column;
    }

    .start-buttons button {
        width: 100%;
    }

    .journal-actions {
        width: 100%;
    }

    .journal-actions button {
        flex: 1;
    }

    .blood-value {
        font-size: 42px;
    }

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

    .actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .action,
    .action-wrap > .action {
        min-height: 52px;
        padding: 10px 8px;
        font-size: 12px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .constants-grid {
        grid-template-columns: 1fr;
    }

    .constants-table {
        min-width: 0;
        width: max-content;
    }

    .constants-variable {
        width: 118px;
        min-width: 118px;
        font-size: 12px;
    }

    .constants-time-cell {
        min-width: 118px;
    }

    .constants-time-input {
        width: 100%;
        max-width: 108px;
        font-size: 16px;
    }

    .constant-table-input,
    .constant-variable-name,
    .care-team-row input,
    .custom-row input,
    select,
    .modal-body input,
    .modal-body textarea {
        font-size: 16px;
    }

    .constant-variable-name {
        width: 100%;
        max-width: 100px;
    }

    .constants-actions,
    .constants-table-actions {
        flex-direction: column;
    }

    .constants-actions button,
    .constants-table-actions button {
        width: 100%;
    }

    .constants-last {
        text-align: left;
    }

    .event {
        grid-template-columns: auto auto 1fr;
        gap: 6px 8px;
        font-size: 13px;
    }

    .event-name {
        grid-column: 1 / -1;
    }

    .event button {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .custom-row {
        flex-direction: column;
    }

    .custom-row button {
        width: 100%;
    }

    .timeline-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .timeline-controls button {
        width: 100%;
    }

    .checkpoint-time {
        font-size: 32px;
    }

    .med-time {
        font-size: 36px;
    }
}
