:root {
    color-scheme: light;
    --navy: #11324a;
    --ink: #142c42;
    --muted: #486077;
    --blue: #165c91;
    --border: #cbdbe8;
    --pale: #edf6fd;
    font: 16px/1.5 Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f3f7fb; color: var(--ink); overflow-wrap: anywhere; }
.shell { width: min(100%, 48rem); margin-inline: auto; padding-inline: 1rem; }
.top { background: var(--navy); color: white; }
.brand { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand strong { display: block; font-size: 1.4rem; line-height: 1.2; }
.airport { color: #bedcf1; font-size: .84rem; }
.profile { color: white; padding: .6rem .85rem; border: 1px solid #6d91ad; border-radius: .65rem; }
main.shell { padding-top: 1.35rem; padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
h1 { margin: 0 0 1rem; font-size: clamp(1.6rem, 5vw, 2.1rem); line-height: 1.2; }
h2 { margin: 0 0 .35rem; font-size: 1.06rem; line-height: 1.4; }
p { margin: .35rem 0 .65rem; }
.eyebrow, .muted, .day span, .shift span { color: var(--muted); }
.eyebrow { font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.card, .schedule li { background: white; border: 1px solid var(--border); border-radius: .85rem; padding: 1rem; margin-bottom: .85rem; }
.card.accent { background: var(--pale); }
.intro { margin-top: 1rem; padding: 1.25rem; }
.metric { display: block; font-size: 1.55rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.section-head, .week-nav { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.week-nav { text-align: center; margin-bottom: .75rem; }
.text-link { color: var(--blue); font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.primary, .secondary, .profile { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 700; text-decoration: none; }
.primary, .secondary { border: 1px solid var(--border); border-radius: .6rem; padding: .55rem .8rem; cursor: pointer; }
.primary { background: var(--blue); border-color: var(--blue); color: white; }
.secondary { background: white; color: var(--blue); }
:focus-visible { outline: 3px solid #bd6409; outline-offset: 3px; }
.schedule, .requests { list-style: none; padding: 0; margin: 0; }
.schedule li { padding: 0; margin-bottom: .5rem; }
.schedule .today { border-left: .3rem solid var(--blue); background: var(--pale); }
.day span { display: block; font-size: .88rem; }
.shift > div + div { margin-top: .35rem; }
.shift span { font-size: .9rem; }
.shift strong + span:not(:empty) { margin-left: .25rem; }
.requests li { border-top: 1px solid var(--border); padding-top: .7rem; margin-top: .7rem; }
.badge { background: #e8eef4; color: var(--ink); border-radius: 999px; padding: .15rem .55rem; font-size: .83rem; font-weight: 700; }
.badge.approved, .notice.success { background: #e4f5e9; color: #145438; }
.badge.pending { background: #fff0cd; color: #654500; }
.badge.rejected, .notice.error { background: #ffeded; color: #8d2424; }
.notice { background: var(--pale); border-radius: .65rem; padding: .75rem; }
.leave-form { display: grid; gap: .75rem; margin-top: .75rem; }
.leave-form label { display: block; min-width: 0; font-weight: 650; }
.leave-form select, .leave-form input, .leave-form textarea { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: .25rem; padding: .45rem .55rem; border: 1px solid #8ca8bf; border-radius: .55rem; font: inherit; color: var(--ink); background: white; }
.leave-form textarea { resize: vertical; }
.leave-form button { justify-self: start; }
.bottom { position: fixed; inset: auto 0 0; padding-bottom: env(safe-area-inset-bottom); background: white; border-top: 1px solid var(--border); }
.bottom .shell { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; padding-block: .4rem; }
.bottom a { display: grid; place-items: center; min-height: 48px; border-radius: .6rem; color: var(--blue); text-decoration: none; font-weight: 700; }
.bottom a[aria-current] { background: var(--pale); box-shadow: inset 0 -3px var(--blue); }
@media (max-width: 420px) {
    .week-nav strong { order: -1; flex-basis: 100%; }
    .week-nav { flex-wrap: wrap; }
}
@media (max-width: 360px) {
    .dates { grid-template-columns: 1fr; }
}

.schedule-link { display: grid; grid-template-columns: minmax(6rem,32%) minmax(0,1fr); gap: .7rem; padding: 1rem; color: inherit; text-decoration: none; border-radius: inherit; }
.schedule-link:hover { background: var(--pale); }
.day .day-details { margin-top: .3rem; color: var(--blue); font-weight: 700; }
.staff-list > li { display: grid; gap: .35rem; }
.staff-list .badge { justify-self: start; }
.staff-shifts { list-style: none; margin: 0; padding: 0; }
.staff-shifts li { border: 0; margin: .15rem 0; padding: 0; }
