:root {
    --lucy-ink: #2b2522;
    --lucy-muted: #796b61;
    --lucy-cream: #f3fbf8;
    --lucy-paper: rgba(255, 254, 250, .95);
    --lucy-line: rgba(15, 86, 88, .16);
    --lucy-teal: #279f9b;
    --lucy-teal-dark: #167a78;
    --lucy-teal-deep: #0c5556;
    --lucy-apricot: #e5a66d;
    --lucy-sky: #4d91aa;
    --lucy-gold: #e6ae3d;
    --lucy-coral: #e66c55;
    --lucy-rose: #d9697e;
    --lucy-green: #548b62;
    --bs-body-font-family: "Inter", sans-serif;
    --bs-body-color: var(--lucy-ink);
    --bs-primary: #167a78;
    --bs-primary-rgb: 22, 122, 120;
    --bs-border-radius: .8rem;
}

* { box-sizing: border-box; }

html {
    min-height: 100%;
    font-size: 15px;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--lucy-ink);
    background:
        radial-gradient(circle at 8% 4%, rgba(39, 159, 155, .2), transparent 28rem),
        radial-gradient(circle at 94% 18%, rgba(229, 166, 109, .17), transparent 30rem),
        linear-gradient(180deg, #f8fdfb 0%, #faf1e7 100%);
    font-family: "Inter", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
a { color: var(--lucy-teal-dark); }

:focus-visible {
    outline: 3px solid rgba(22, 122, 120, .58);
    outline-offset: 3px;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding-top: env(safe-area-inset-top);
    border-bottom: 1px solid var(--lucy-line);
    background: rgba(247, 253, 250, .91);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    min-width: 0;
    margin-right: 1.2rem;
    padding-block: .2rem;
}

.app-icon-link {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    place-items: center;
    border: 1px solid transparent;
    border-radius: .58rem;
    text-decoration: none;
    opacity: .5;
}

.app-icon-link:hover,
.app-icon-link-active {
    opacity: 1;
    border-color: rgba(22, 122, 120, .24);
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 .35rem .9rem rgba(39, 33, 31, .08);
}

.app-brand img {
    display: block;
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
}

.app-family-link {
    overflow: hidden;
    color: var(--lucy-teal-dark) !important;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-family-link:hover { color: var(--lucy-teal-dark) !important; }
.nav-link { color: var(--lucy-ink); font-weight: 650; border-radius: 999px; }
.nav-link:hover { color: var(--lucy-teal-dark); background: rgba(39, 159, 155, .1); }
.navbar-actions { display: flex; align-items: center; gap: .5rem; }

.app-header .navbar { --bs-navbar-padding-y: .5rem; }
.app-header .btn-sm {
    --bs-btn-padding-y: .25rem;
    --bs-btn-padding-x: .5rem;
    --bs-btn-font-size: .875rem;
    --bs-btn-border-radius: .25rem;
    font-weight: 400;
    line-height: 1.5;
}

.app-header form { display: flex; margin: 0; }

.account-button {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border: 1px solid rgba(22, 122, 120, .25);
    border-radius: 999px;
    padding: .28rem .8rem .28rem .32rem;
    color: var(--lucy-ink);
    background: linear-gradient(135deg, rgba(39, 159, 155, .1), rgba(229, 166, 109, .16)), #fff;
    text-decoration: none;
    box-shadow: 0 .45rem 1rem rgba(39, 33, 31, .08);
}

.account-button:hover {
    color: var(--lucy-ink);
    border-color: rgba(22, 122, 120, .45);
    transform: translateY(-1px);
}

.account-button-avatar {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--lucy-teal), var(--lucy-teal-deep));
    font-weight: 900;
}

.account-button strong,
.account-button small { display: block; line-height: 1.05; }
.account-button strong { font-size: .9rem; font-weight: 850; }
.account-button small { color: var(--lucy-muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }

.app-main { padding-top: .75rem; padding-bottom: 4rem; }
.app-footer { padding: 1.6rem max(.75rem, env(safe-area-inset-right)) calc(1.6rem + env(safe-area-inset-bottom)); color: var(--lucy-muted); text-align: center; font-size: .8rem; }
.app-footer a { font-weight: 800; text-decoration: none; }

.eyebrow { margin: 0 0 .35rem; color: var(--lucy-teal-dark); font-size: .69rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }

.lucy-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    min-height: 154px;
    overflow: hidden;
    border: 1px solid rgba(15, 86, 88, .14);
    border-radius: 1.55rem;
    background: linear-gradient(115deg, #76c9bf, #2ca49f 62%, #157574);
    box-shadow: 0 16px 42px rgba(18, 93, 92, .16);
}

.lucy-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255, 244, 220, .14), transparent 62%); }
.lucy-hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 1.15rem 0 1.15rem 1.15rem; }
.lucy-hero-copy .eyebrow { color: rgba(7, 67, 68, .82); }
.lucy-hero h1 { margin: 0; color: #fffdf9; font-size: clamp(3rem, 14vw, 5.5rem); font-weight: 900; letter-spacing: -.075em; line-height: .86; text-shadow: 0 3px 20px rgba(7, 73, 73, .25); }
.lucy-hero-copy > p:last-child { margin: .65rem 0 0; color: rgba(5, 61, 62, .86); font-size: .82rem; font-weight: 750; }
.lucy-hero-photo {
    min-width: 0;
    background-image: var(--lucy-hero-image, url("../img/heroes/lucy-hero-beach.jpg"));
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

.lucy-board-region { margin-top: .85rem; }
.care-summary { display: flex; align-items: center; gap: .75rem; min-height: 76px; padding: .85rem; border: 1px solid var(--lucy-line); border-radius: 1.15rem; background: var(--lucy-paper); box-shadow: 0 8px 28px rgba(70, 48, 33, .08); }
.care-summary-complete { border-color: rgba(84, 139, 98, .28); background: linear-gradient(110deg, rgba(241, 250, 239, .98), rgba(255, 253, 248, .95)); }
.summary-paw { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--lucy-teal), var(--lucy-teal-deep)); }
.care-summary-complete .summary-paw { background: linear-gradient(135deg, #6ca77a, #3f8051); }
.summary-paw svg { width: 25px; fill: currentColor; stroke: none; }
.care-summary > div:nth-child(2) { display: grid; min-width: 0; gap: .1rem; }
.care-summary strong { font-size: .93rem; font-weight: 850; }
.care-summary span { color: var(--lucy-muted); font-size: .72rem; }
.live-badge { display: flex; align-items: center; gap: .3rem; margin-left: auto; padding: .38rem .58rem; border-radius: 999px; color: var(--lucy-green) !important; background: rgba(84, 139, 98, .1); font-size: .65rem !important; font-weight: 850; text-transform: uppercase; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--lucy-green); box-shadow: 0 0 0 4px rgba(84, 139, 98, .12); }

.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .72rem; margin-top: .75rem; }
.activity-tile { position: relative; display: flex; min-width: 0; min-height: 214px; flex-direction: column; overflow: hidden; padding: .9rem; border: 1px solid rgba(80, 55, 39, .11); border-radius: 1.3rem; background: var(--lucy-paper); box-shadow: 0 8px 24px rgba(70, 48, 33, .08); }
.activity-tile::before { content: ""; position: absolute; z-index: 2; inset: 0 0 auto; height: 5px; background: var(--activity-accent); }
.activity-tile > * { position: relative; z-index: 1; }
.activity-tile-up-to-date { border-color: rgba(84, 139, 98, .3); background: linear-gradient(145deg, rgba(241, 250, 239, .97), var(--lucy-paper) 72%); }
.activity-complete-mark { position: absolute; z-index: 0; top: 52%; left: 50%; color: var(--lucy-green); font-family: "Segoe UI Symbol", sans-serif; font-size: clamp(7rem, 10vw, 9.5rem); font-weight: 900; line-height: 1; opacity: .22; pointer-events: none; transform: translate(-50%, -50%); }
.activity-caramel { --activity-accent: var(--lucy-teal-dark); --activity-soft: #dff4f1; }
.activity-sky { --activity-accent: var(--lucy-sky); --activity-soft: #e3f1f7; }
.activity-gold { --activity-accent: var(--lucy-gold); --activity-soft: #fff1c9; }
.activity-coral { --activity-accent: var(--lucy-coral); --activity-soft: #fde3dd; }
.activity-rose { --activity-accent: var(--lucy-rose); --activity-soft: #fae2e8; }
.activity-tile-top { display: flex; align-items: center; justify-content: space-between; }
.activity-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 1rem; color: var(--activity-accent); background: var(--activity-soft); }
.activity-icon svg, .event-icon svg, .award-icon svg, .history-counts svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.activity-count { display: grid; min-width: 34px; height: 34px; place-items: center; border-radius: 999px; color: var(--activity-accent); background: var(--activity-soft); font-size: .85rem; font-weight: 900; }
.activity-copy { flex: 1; padding: .75rem 0 .65rem; }
.activity-copy h2 { margin: 0; font-size: 1.05rem; font-weight: 850; letter-spacing: -.025em; }
.activity-goal-state { display: block; margin-top: .22rem; color: var(--activity-accent); font-size: .61rem; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.activity-copy p { min-height: 2.1em; margin: .24rem 0 0; color: var(--lucy-muted); font-size: .68rem; line-height: 1.45; }
.feed-plan { margin-top: .42rem; color: var(--lucy-teal-dark); font-size: .64rem; font-weight: 750; line-height: 1.45; }
.feed-plan span { white-space: nowrap; }
.activity-button { display: flex; width: 100%; min-height: 66px; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .8rem; border: 0; border-radius: 1rem; color: #fff; background: var(--activity-accent); box-shadow: 0 8px 16px color-mix(in srgb, var(--activity-accent) 22%, transparent); font-size: .82rem; font-weight: 850; text-align: left; transition: transform .12s ease, filter .12s ease; touch-action: manipulation; }
.activity-button span:last-child { font-size: 1.5rem; font-weight: 500; line-height: 1; }
.activity-button:active { transform: scale(.97); }
.activity-button:disabled { filter: grayscale(.35); opacity: .65; }
.activity-rose:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 188px; }

.evidence-card, .page-card { margin-top: .8rem; padding: 1rem; border: 1px solid var(--lucy-line); border-radius: 1.35rem; background: var(--lucy-paper); box-shadow: 0 9px 28px rgba(70, 48, 33, .07); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.section-heading h2, .page-card h2 { margin: 0; font-size: 1.3rem; font-weight: 850; letter-spacing: -.035em; }
.quiet-link { padding: .4rem .65rem; border-radius: 999px; background: rgba(39, 159, 155, .11); font-size: .73rem; font-weight: 800; text-decoration: none; }
.event-list, .history-event-list { display: grid; }
.event-row { display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; align-items: center; gap: .7rem; min-height: 64px; padding: .6rem 0; border-top: 1px solid var(--lucy-line); }
.event-row:first-child { border-top: 0; }
.event-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: .85rem; color: var(--lucy-teal-dark); background: #dff4f1; }
.event-icon svg { width: 23px; height: 23px; stroke-width: 2.7; }
.event-main { display: grid; min-width: 0; }
.event-main strong { font-size: .82rem; font-weight: 800; }
.event-main span { overflow: hidden; color: var(--lucy-muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.event-row time { color: var(--lucy-muted); font-size: .7rem; font-weight: 750; white-space: nowrap; }
.event-row form { grid-column: 2 / -1; justify-self: start; margin-top: -.25rem; }
.undo-button { padding: .25rem .55rem; border: 1px solid rgba(22, 122, 120, .32); border-radius: 999px; color: var(--lucy-teal-dark); background: transparent; font-size: .65rem; font-weight: 800; }
.empty-state { display: grid; justify-items: center; gap: .5rem; padding: 1.6rem .75rem; color: var(--lucy-muted); text-align: center; }
.empty-state p { max-width: 28rem; margin: 0; font-size: .82rem; }
.empty-paw { color: rgba(39, 159, 155, .42); }
.empty-paw svg { width: 44px; fill: currentColor; }

.lucy-status { position: fixed; z-index: 100; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); left: .75rem; padding: .75rem 1rem; border-radius: 999px; color: #fff; background: var(--lucy-teal-dark); box-shadow: 0 12px 35px rgba(12, 85, 86, .28); font-size: .8rem; font-weight: 800; text-align: center; pointer-events: none; opacity: 0; transform: translateY(18px); transition: opacity .18s ease, transform .18s ease; }
.lucy-status.is-visible { opacity: 1; transform: translateY(0); }
.lucy-status.is-error { background: #a83f34; }

.page-hero { padding: 1.25rem; border: 1px solid rgba(15, 86, 88, .12); border-radius: 1.5rem; background: linear-gradient(120deg, rgba(117, 202, 192, .96), rgba(42, 164, 159, .94)); box-shadow: 0 12px 34px rgba(17, 92, 91, .12); }
.page-hero h1 { margin: 0; color: #fff; font-size: clamp(2rem, 10vw, 4.3rem); font-weight: 900; letter-spacing: -.065em; line-height: .95; }
.page-hero > p:last-child { max-width: 44rem; margin: .7rem 0 0; color: rgba(5, 61, 62, .84); font-size: .83rem; line-height: 1.55; }
.compact-hero { padding-block: 1.4rem; }
.alert { margin: .8rem 0 0; border-radius: 1rem; font-size: .8rem; }

.date-navigator { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: end; gap: .65rem; padding: .75rem; }
.date-navigator form { display: grid; gap: .25rem; }
.date-navigator label, .history-form label, .add-schedule-card label { color: var(--lucy-muted); font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.date-navigator input { width: 100%; min-height: 48px; padding: .5rem; border: 1px solid var(--lucy-line); border-radius: .8rem; background: #fff; font-weight: 750; }
.date-arrow { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--lucy-line); border-radius: .85rem; background: #fff; font-size: 1.2rem; font-weight: 900; text-decoration: none; }
.date-arrow.disabled { opacity: .32; }
.history-summary { display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem; margin: 1rem .2rem .3rem; }
.history-summary h2 { margin: 0; font-size: 1.25rem; font-weight: 850; }
.history-counts { display: none; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.history-counts span { display: flex; align-items: center; gap: .3rem; padding: .35rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .7); color: var(--lucy-muted); font-size: .65rem; font-weight: 750; }
.history-counts svg { width: 16px; height: 16px; stroke-width: 3; }
.history-layout, .settings-layout { display: grid; gap: .8rem; }
.history-layout .page-card, .settings-layout .page-card { margin-top: 0; }
.history-form { display: grid; gap: .85rem; }
.history-form > div { display: grid; gap: .28rem; }
.history-form small { font-size: .62rem; font-weight: 500; text-transform: none; }
.form-pair { grid-template-columns: 1fr 1fr; gap: .65rem !important; }
.form-pair > div { display: grid; gap: .28rem; }
.form-control, .form-select { min-height: 48px; border-color: var(--lucy-line); background-color: #fff; font-size: .86rem; }
.history-event { padding: .75rem 0; border-top: 1px solid var(--lucy-line); }
.history-event:first-child { border-top: 0; }
.history-event-summary { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: .7rem; }
.history-event-summary > div { display: grid; }
.history-event-summary strong { font-size: .84rem; }
.history-event-summary span, .history-event-summary small { color: var(--lucy-muted); font-size: .7rem; }
.correction-panel { margin: .55rem 0 0 3.25rem; }
.correction-panel summary { width: fit-content; cursor: pointer; color: var(--lucy-teal-dark); font-size: .7rem; font-weight: 800; }
.compact-form { margin-top: .75rem; padding: .75rem; border-radius: 1rem; background: #eff9f6; }
.correction-actions { display: flex !important; flex-wrap: wrap; gap: .5rem !important; }

.awards-hero { background: linear-gradient(120deg, #78cbbf, #2aa49f 64%, #147878); }
.period-tabs { display: flex; gap: .35rem; margin-top: 1rem; overflow-x: auto; scrollbar-width: none; }
.period-tabs a { flex: 0 0 auto; padding: .55rem .8rem; border-radius: 999px; color: rgba(5, 61, 62, .86); background: rgba(255, 255, 255, .38); font-size: .7rem; font-weight: 800; text-decoration: none; }
.period-tabs a.active { color: var(--lucy-teal-deep); background: #fff; box-shadow: 0 6px 18px rgba(12, 85, 86, .14); }
.awards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: .8rem; }
.award-card { display: flex; min-height: 220px; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; border: 1px solid var(--lucy-line); border-radius: 1.3rem; background: var(--lucy-paper); box-shadow: 0 8px 25px rgba(70, 48, 33, .07); text-align: center; }
.award-card:last-child { grid-column: 1 / -1; }
.award-icon { display: grid; width: 56px; height: 56px; place-items: center; margin-bottom: .75rem; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--lucy-teal), var(--lucy-teal-deep)); box-shadow: 0 8px 18px rgba(18, 112, 111, .22); }
.award-icon svg { width: 30px; height: 30px; }
.award-icon svg:not([stroke]) { fill: none; }
.award-card h2 { margin: 0; font-size: .93rem; font-weight: 850; line-height: 1.25; }
.award-card > strong { margin-top: .65rem; color: var(--lucy-teal-dark); font-size: .9rem; }
.award-card > span:last-child, .award-card > p:last-child { margin: .25rem 0 0; color: var(--lucy-muted); font-size: .68rem; }
.award-empty { filter: saturate(.45); }

.schedule-list { display: grid; gap: .65rem; margin-top: 1rem; }
.schedule-row { display: grid; gap: .6rem; padding: .75rem; border: 1px solid var(--lucy-line); border-radius: 1rem; background: #fff; }
.schedule-inactive { opacity: .62; background: #edf4f1; }
.schedule-time-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
.schedule-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.schedule-actions form { margin: 0; }
.icon-button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--lucy-line); border-radius: .65rem; background: #fff; font-weight: 900; }
.icon-button:disabled { opacity: .3; }
.add-schedule-card form { display: grid; gap: .75rem; }
.add-schedule-card p:not(.eyebrow), .settings-layout .page-card > p:not(.eyebrow) { color: var(--lucy-muted); font-size: .8rem; line-height: 1.55; }

.login-shell { display: grid; overflow: hidden; margin-top: .4rem; border: 1px solid var(--lucy-line); border-radius: 1.5rem; background: var(--lucy-paper); box-shadow: 0 16px 44px rgba(70, 48, 33, .12); }
.login-photo { position: relative; min-height: 220px; background: linear-gradient(0deg, rgba(12, 85, 86, .08), transparent), url("../img/lucy-hero.jpg") 45% 42% / cover no-repeat; }
.login-photo::after { content: ""; position: absolute; right: 1rem; bottom: 1rem; width: 68px; height: 68px; border: 3px solid rgba(255, 255, 255, .86); border-radius: 1.25rem; background: url("../android-chrome-192x192.png") center / cover no-repeat; box-shadow: 0 8px 24px rgba(7, 73, 73, .24); }
.login-card { padding: 1.25rem; }
.login-card h1 { margin: 0; font-size: 2.1rem; font-weight: 900; letter-spacing: -.055em; }
.login-card > p:not(.eyebrow) { color: var(--lucy-muted); font-size: .82rem; }
.login-card label { font-size: .75rem; font-weight: 800; }
.error-card { max-width: 42rem; margin-inline: auto; text-align: center; }
.error-card h1 { font-size: 2.2rem; font-weight: 900; }
.error-card small { display: block; margin-top: 1rem; color: var(--lucy-muted); }

.btn-primary {
    --bs-btn-bg: #167a78;
    --bs-btn-border-color: #167a78;
    --bs-btn-hover-bg: #0f6665;
    --bs-btn-hover-border-color: #0f6665;
    --bs-btn-active-bg: #0c5556;
    --bs-btn-active-border-color: #0c5556;
    font-weight: 800;
}

@media (max-width: 359.98px) {
    .app-family-link { display: none; }
}

@media (min-width: 576px) {
    .lucy-hero { min-height: 190px; grid-template-columns: 1fr 1fr; }
    .lucy-hero-copy { padding-left: 1.8rem; }
    .activity-tile { min-height: 225px; padding: 1rem; }
    .activity-rose:last-child:nth-child(odd) { grid-column: auto; min-height: 225px; }
    .activity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .activity-tile:first-child { grid-column: span 2; }
    .event-row { grid-template-columns: 42px minmax(0, 1fr) auto auto; }
    .event-row form { grid-column: auto; margin: 0; }
    .history-counts { display: flex; }
}

@media (min-width: 768px) {
    .app-main { padding-top: 1.2rem; }
    .lucy-hero { min-height: 230px; }
    .lucy-hero-copy { padding-left: 2.2rem; }
    .care-summary { padding: 1rem 1.2rem; }
    .care-summary strong { font-size: 1.02rem; }
    .care-summary span { font-size: .8rem; }
    .evidence-card, .page-card { padding: 1.25rem; }
    .history-layout { grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); align-items: start; }
    .settings-layout { grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); align-items: start; }
    .awards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .award-card:last-child { grid-column: span 2; }
    .login-shell { grid-template-columns: 1.05fr .95fr; min-height: 560px; }
    .login-photo { min-height: 100%; }
    .login-card { align-self: center; padding: 2.5rem; }
}

@media (min-width: 992px) {
    html { font-size: 16px; }
    .activity-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .activity-tile:first-child { grid-column: auto; }
    .activity-tile { min-height: 244px; }
    .activity-button { font-size: .88rem; }
    .lucy-status { right: 1.2rem; bottom: 1.2rem; left: auto; width: auto; min-width: 260px; }
}

@media (max-width: 359px) {
    .activity-grid { gap: .55rem; }
    .activity-tile { min-height: 205px; padding: .72rem; }
    .activity-button { min-height: 62px; padding: .6rem; font-size: .72rem; }
    .activity-copy h2 { font-size: .95rem; }
    .form-pair { grid-template-columns: 1fr; }
    .awards-grid { grid-template-columns: 1fr; }
    .award-card:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
