:root {
    --green-900: #173b37;
    --green-800: #176b63;
    --green-700: #1f7d73;
    --green-100: #dff2ed;
    --green-050: #eef8f5;
    --cream: #fbfaf6;
    --paper: #ffffff;
    --ink: #18312e;
    --muted: #60716e;
    --line: #d8e3df;
    --danger: #a33434;
    --danger-bg: #fff0f0;
    --warning: #8b5b08;
    --shadow: 0 12px 34px rgba(23, 59, 55, 0.08);
    --radius: 20px;
    --focus: 0 0 0 4px rgba(31, 125, 115, 0.25);
}

* { box-sizing: border-box; }

html { font-size: 17px; scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background: #f4f7f5;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

button, input { font: inherit; }
a { color: inherit; }

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 8px;
    left: 8px;
    transform: translateY(-150%);
    background: var(--paper);
    border: 2px solid var(--green-800);
    border-radius: 8px;
    padding: 10px 14px;
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
    outline: 3px solid var(--green-700);
    outline-offset: 3px;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    width: min(1560px, 100%);
    min-height: 76px;
    margin: 0 auto;
    padding: 10px 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: max-content;
    color: var(--green-900);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    background: var(--green-800);
    color: white;
    font-size: 25px;
}

.brand-logo {
    display: block;
    width: auto;
    height: 56px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.main-nav a {
    border-radius: 10px;
    padding: 11px 15px;
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.main-nav a:hover, .main-nav a[aria-current="page"] {
    background: var(--green-050);
    color: var(--green-800);
}

.account-area { display: flex; align-items: center; gap: 12px; }
.account-area form { margin: 0; }
.account-name { font-weight: 700; }

.page-shell {
    width: min(1560px, 100%);
    margin: 0 auto;
    padding: 36px 24px 110px;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--green-700);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -0.035em; }
h2 { margin-bottom: 12px; line-height: 1.2; }
.muted { color: var(--muted); }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--green-800); color: white; box-shadow: 0 7px 18px rgba(23, 107, 99, 0.2); }
.button-primary:hover { background: var(--green-900); }
.button-secondary { border: 1px solid var(--line); background: var(--paper); color: var(--green-900); }
.button-secondary:hover { border-color: #9fbcb5; background: var(--green-050); }
.button-quiet { background: transparent; color: var(--muted); }
.button-quiet:hover { background: #f0f4f2; color: var(--ink); }
.button-large { min-height: 56px; padding: 14px 24px; font-size: 18px; }
.button-small { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.button-full { width: 100%; }

.messages {
    position: fixed;
    z-index: 100;
    top: 88px;
    left: 50%;
    width: min(540px, calc(100% - 28px));
    transform: translateX(-50%);
}

.message {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    border: 1px solid #b9ddd5;
    border-radius: 14px;
    background: #effaf7;
    box-shadow: var(--shadow);
    padding: 14px 18px;
    color: var(--green-900);
    font-weight: 700;
}

.message > span:first-child {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    border-radius: 50%;
    background: var(--green-800);
    color: white;
}

.message-error { border-color: #e6b6b6; background: var(--danger-bg); color: var(--danger); }
.message-error > span:first-child { background: var(--danger); }

/* Login */
.login-page { background: linear-gradient(135deg, #eaf5f1 0%, #f8f7ef 100%); }
.login-page .site-header { position: static; background: transparent; border: 0; }
.login-page .header-inner { justify-content: center; }

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 500px);
    align-items: center;
    gap: clamp(40px, 8vw, 110px);
    min-height: calc(100vh - 190px);
    width: min(1120px, 100%);
    margin: 0 auto;
}

.login-welcome h1 { max-width: 700px; font-size: clamp(38px, 6vw, 64px); }
.login-welcome > p { max-width: 620px; color: var(--muted); font-size: 20px; }
.welcome-steps { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.welcome-steps span { display: flex; align-items: center; gap: 9px; font-weight: 750; }
.welcome-steps b { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--green-100); color: var(--green-800); }

.login-card { padding: clamp(28px, 5vw, 46px); }
.login-icon { display: grid; width: 62px; height: 62px; margin-bottom: 22px; place-items: center; border-radius: 20px; background: var(--green-100); color: var(--green-800); font-size: 32px; }
.login-card h2 { margin-bottom: 6px; font-size: 30px; }
.login-help { margin: 24px 0 0; color: var(--muted); font-size: 14px; text-align: center; }

.stacked-form { display: grid; gap: 20px; margin-top: 26px; }
.field { display: grid; gap: 7px; }
.field label { color: var(--green-900); font-weight: 800; }
.field input, .inline-pin-form input {
    width: 100%;
    min-height: 54px;
    border: 2px solid #cddbd7;
    border-radius: 12px;
    background: white;
    padding: 11px 14px;
    color: var(--ink);
    font-size: 18px;
}
.field input:focus, .inline-pin-form input:focus { border-color: var(--green-700); outline: 0; box-shadow: var(--focus); }
.field-help { color: var(--muted); font-size: 13px; }
.field-error { color: var(--danger); font-size: 14px; font-weight: 700; }
.form-errors { border-radius: 10px; background: var(--danger-bg); padding: 12px; color: var(--danger); }
.form-errors ul { margin: 0; padding-left: 20px; }
.remember-row { display: flex; align-items: center; gap: 10px; color: var(--muted); cursor: pointer; }
.remember-row input { width: 24px; height: 24px; accent-color: var(--green-800); }

/* Page heading and week selection */
.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 26px;
}
.page-heading > div:first-child > p { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 18px; }
.friendly-note { display: flex; align-items: center; gap: 12px; max-width: 420px; border: 1px solid #c5e1db; border-radius: 14px; background: var(--green-050); padding: 13px 16px; }
.friendly-note > span { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border-radius: 50%; background: var(--green-800); color: white; font-weight: 900; }
.friendly-note p { margin: 0; color: var(--green-900); font-size: 14px; font-weight: 700; }
.next-week-banner { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; border-radius: 12px; background: #e8f6ef; padding: 11px 16px; color: #176443; font-weight: 800; }

.week-toolbar {
    display: grid;
    grid-template-columns: minmax(135px, 1fr) auto minmax(135px, 1fr);
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.week-toolbar > :last-child { justify-self: end; }
.week-title { text-align: center; }
.week-title span, .week-title strong { display: block; }
.week-title span { margin-bottom: 2px; color: var(--muted); font-size: 13px; font-weight: 750; text-transform: uppercase; }
.week-title strong { font-size: clamp(18px, 3vw, 25px); }

.day-tabs { display: none; }

/* Calendars */
.week-columns {
    display: grid;
    grid-template-columns: repeat(7, minmax(145px, 1fr));
    gap: 9px;
    align-items: start;
}

.day-column {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--paper);
    box-shadow: 0 5px 18px rgba(23, 59, 55, 0.045);
}

.day-header {
    display: flex;
    min-height: 101px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    background: #fbfcfb;
    padding: 15px 13px 12px;
}
.day-header h2 { margin: 0 0 2px; font-size: clamp(15px, 1.3vw, 18px); }
.day-header time { color: var(--muted); font-size: 13px; font-weight: 700; }
.day-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.day-actions button { border: 0; background: transparent; padding: 2px 0; color: var(--green-700); font-size: 11px; font-weight: 800; cursor: pointer; }
.day-actions button:hover { text-decoration: underline; }

.slot-list { display: grid; }
.attendance-slot {
    position: relative;
    display: grid;
    grid-template-columns: 30px 1fr;
    grid-template-rows: auto auto;
    column-gap: 8px;
    min-height: 70px;
    align-content: center;
    border-bottom: 1px solid #edf1ef;
    padding: 8px 9px;
    cursor: pointer;
    transition: background 100ms ease;
}
.attendance-slot:last-child { border-bottom: 0; }
.attendance-slot:hover { background: #f7fbf9; }
.attendance-slot.selected { background: var(--green-100); }
.attendance-slot.disabled { background: #f2f3f2; color: #8b9693; cursor: not-allowed; }
.attendance-slot input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.custom-check { display: grid; grid-row: 1 / span 2; width: 28px; height: 28px; align-self: center; place-items: center; border: 2px solid #9eb5af; border-radius: 8px; background: white; color: transparent; font-size: 17px; font-weight: 900; }
.attendance-slot input:focus-visible + .custom-check { box-shadow: var(--focus); outline: 2px solid var(--green-700); }
.attendance-slot input:checked + .custom-check { border-color: var(--green-800); background: var(--green-800); color: white; }
.attendance-slot input:disabled + .custom-check { border-color: #c9d0ce; background: #e2e6e4; }
.slot-time { align-self: end; font-size: clamp(12px, 1vw, 14px); font-weight: 850; white-space: nowrap; }
.slot-occupancy { align-self: start; color: var(--muted); font-size: 10px; font-weight: 650; }

.save-bar {
    position: sticky;
    z-index: 30;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(720px, calc(100% - 28px));
    margin: 26px auto 0;
    border: 1px solid #b9d4ce;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 15px 45px rgba(23, 59, 55, 0.18);
    padding: 13px 15px 13px 21px;
    backdrop-filter: blur(10px);
}
.save-bar span, .save-bar strong { display: block; }
.save-bar .save-state { color: var(--muted); font-size: 13px; }
.save-bar strong { font-size: 17px; }
.save-bar.dirty { border-color: #c7953e; }
.save-bar.dirty .save-state { color: var(--warning); font-weight: 800; }

.schedule-slot {
    min-height: 96px;
    border-bottom: 1px solid #edf1ef;
    padding: 9px 10px;
}
.schedule-slot:last-child { border-bottom: 0; }
.schedule-slot-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.schedule-slot-heading time { font-size: 12px; font-weight: 850; white-space: nowrap; }
.schedule-slot-heading span { border-radius: 999px; background: #edf2f0; padding: 2px 6px; color: var(--muted); font-size: 10px; font-weight: 850; white-space: nowrap; }
.schedule-slot ul { display: grid; gap: 3px; margin: 7px 0 0; padding: 0; list-style: none; }
.schedule-slot li { overflow: hidden; font-size: 11px; font-weight: 750; line-height: 1.25; text-overflow: ellipsis; }
.schedule-slot li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--green-700); vertical-align: 1px; }
.empty-slot { margin: 8px 0 0; color: #87928f; font-size: 10px; font-style: italic; }
.schedule-slot.load-1 { background: #f4fbf8; }
.schedule-slot.load-2 { background: #e9f7f2; }
.schedule-slot.load-3 { background: #d9f0e9; }
.schedule-slot.load-4 { background: #c8e9df; }
.print-button { min-width: max-content; }
.print-schedule { display: none; }

/* Coordinator */
.admin-layout { display: grid; grid-template-columns: minmax(300px, 390px) minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-create { position: sticky; top: 100px; padding: 24px; }
.admin-create h2 { font-size: 23px; }
.volunteer-list { padding: 24px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.section-heading h2 { margin: 0; }
.section-heading span { color: var(--muted); font-weight: 750; }
.volunteer-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 15px; border-bottom: 1px solid #e7eeeb; padding: 18px 0; }
.volunteer-row:last-child { border-bottom: 0; }
.volunteer-row.inactive { opacity: 0.62; }
.avatar { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 15px; background: var(--green-100); color: var(--green-800); font-weight: 900; }
.volunteer-data h3 { margin: 0 0 2px; font-size: 18px; }
.volunteer-data p { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.status { display: inline-block; border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 850; }
.status-active { background: #e1f4e9; color: #176443; }
.status-inactive { background: #eee; color: #666; }
.status-admin { background: #e9e4f8; color: #59429a; }
.volunteer-actions { display: flex; align-items: center; gap: 7px; }
.volunteer-actions form { margin: 0; }
.volunteer-actions details { position: relative; }
.volunteer-actions summary { list-style: none; }
.volunteer-actions summary::-webkit-details-marker { display: none; }
.inline-pin-form { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: 260px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); padding: 14px; }
.inline-pin-form label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 800; }
.inline-pin-form input { min-height: 44px; margin-bottom: 8px; }
.empty-state { margin: 30px 0; color: var(--muted); text-align: center; }

/* Privacy and audit */
.security-warning { margin: 0 0 22px; border: 1px solid #d8a84d; border-radius: 16px; background: #fff8e9; padding: 16px 18px; color: #694914; }
.security-warning strong { display: block; margin-bottom: 3px; }
.privacy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.privacy-card { padding: 24px; }
.privacy-card h2 { margin-top: 0; font-size: 23px; }
.retention-list { display: grid; gap: 10px; margin: 20px 0; }
.retention-list div { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.retention-list dt { font-weight: 750; }
.retention-list dd { margin: 0; color: var(--muted); text-align: right; }
.retention-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding: 22px 24px; }
.retention-card h2 { margin: 0 0 4px; font-size: 22px; }
.retention-card p { margin: 0 0 4px; color: var(--muted); }
.retention-card small { color: var(--muted); }
.audit-card { padding: 24px; }
.audit-table-wrap { overflow-x: auto; }
.audit-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.audit-table th, .audit-table td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; vertical-align: top; }
.audit-table th { color: var(--muted); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.audit-table time { white-space: nowrap; }
.audit-outcome { display: inline-block; border-radius: 999px; padding: 3px 7px; font-size: 10px; font-weight: 850; }
.audit-success { background: #e1f4e9; color: #176443; }
.audit-failure { background: #fde7e7; color: #9b2d2d; }
.audit-blocked { background: #fff0d7; color: #86560a; }
.audit-details { min-width: 180px; }
.audit-details span { display: inline-block; margin: 0 4px 4px 0; border-radius: 6px; background: #edf2f0; padding: 2px 5px; color: var(--muted); font-size: 10px; }

.mobile-nav { display: none; }

.error-card { max-width: 620px; margin: 50px auto; padding: 42px; text-align: center; }
.error-card .brand-mark { margin: 0 auto 22px; }
.error-card h1 { font-size: 32px; }
.error-card p { color: var(--muted); font-size: 18px; }

.install-card { max-width: 620px; margin: 30px auto; padding: clamp(24px, 5vw, 44px); }
.install-card h1 { font-size: clamp(30px, 5vw, 42px); }
.install-card code { border-radius: 5px; background: #edf2f0; padding: 2px 5px; }

@media (max-width: 1120px) {
    .week-columns { overflow-x: auto; grid-template-columns: repeat(7, minmax(145px, 1fr)); padding-bottom: 10px; }
    .day-column { min-width: 145px; }
    .account-name { display: none; }
}

@media (max-width: 850px) {
    html { font-size: 18px; }
    body { padding-bottom: 72px; }
    .site-header { position: static; }
    .header-inner { min-height: 66px; padding: 9px 16px; }
    .brand-logo { height: 42px; }
    .brand-mark { width: 42px; height: 42px; border-radius: 13px; }
    .main-nav, .account-area { display: none; }
    .page-shell { padding: 24px 14px 70px; }
    .page-heading { display: block; margin-bottom: 20px; }
    .page-heading h1 { font-size: 31px; }
    .page-heading > div:first-child > p { font-size: 16px; }
    .friendly-note { margin-top: 16px; }
    .print-button { width: 100%; margin-top: 18px; }
    .week-toolbar { grid-template-columns: 52px 1fr 52px; gap: 8px; }
    .week-arrow { min-width: 52px; padding: 8px; font-size: 27px; }
    .week-arrow span { display: none; }
    .week-title span { font-size: 11px; }
    .week-title strong { font-size: 17px; }
    .day-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -14px 13px; padding: 2px 14px 8px; scrollbar-width: none; }
    .day-tabs::-webkit-scrollbar { display: none; }
    .day-tabs button { display: grid; min-width: 58px; min-height: 58px; place-items: center; gap: 0; border: 1px solid var(--line); border-radius: 13px; background: white; padding: 6px 8px; color: var(--muted); font-weight: 850; cursor: pointer; }
    .day-tabs button small { font-size: 11px; font-weight: 650; }
    .day-tabs button.active { border-color: var(--green-800); background: var(--green-800); color: white; box-shadow: 0 6px 16px rgba(23, 107, 99, 0.18); }
    .week-columns { display: block; overflow: visible; padding: 0; }
    .day-column { display: none; min-width: 0; border-radius: 18px; }
    .day-column.active { display: block; }
    .day-header { min-height: 82px; align-items: center; padding: 14px 16px; }
    .day-header h2 { font-size: 22px; }
    .day-header time { font-size: 14px; }
    .day-actions { gap: 7px; }
    .day-actions button { min-height: 26px; font-size: 12px; }
    .attendance-slot { grid-template-columns: 38px 1fr auto; grid-template-rows: 1fr; min-height: 68px; column-gap: 10px; padding: 9px 14px; }
    .custom-check { grid-row: 1; width: 36px; height: 36px; border-radius: 10px; }
    .slot-time { align-self: center; font-size: 16px; }
    .slot-occupancy { align-self: center; font-size: 12px; }
    .save-bar { bottom: 86px; width: 100%; margin-top: 18px; border-radius: 16px; padding: 10px 10px 10px 15px; }
    .save-bar .button { min-height: 52px; padding: 12px 16px; font-size: 16px; }
    .save-bar .save-state { font-size: 11px; }
    .save-bar strong { font-size: 14px; }
    .schedule-slot { min-height: 88px; padding: 12px 15px; }
    .schedule-slot-heading time { font-size: 15px; }
    .schedule-slot-heading span { font-size: 12px; }
    .schedule-slot li { font-size: 15px; }
    .empty-slot { font-size: 13px; }
    .mobile-nav { position: fixed; z-index: 60; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; gap: 2px; min-height: 72px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.98); padding: 7px max(8px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); backdrop-filter: blur(12px); }
    .mobile-nav a { display: grid; width: min(33%, 140px); place-items: center; gap: 1px; border-radius: 11px; padding: 5px; color: var(--muted); font-size: 11px; font-weight: 800; text-align: center; text-decoration: none; }
    .mobile-nav a > span { font-size: 22px; line-height: 1; }
    .mobile-nav a[aria-current="page"] { background: var(--green-050); color: var(--green-800); }
    .login-layout { display: block; min-height: 0; }
    .login-welcome { margin: 4px auto 25px; text-align: center; }
    .login-welcome h1 { font-size: 32px; }
    .login-welcome > p { font-size: 17px; }
    .welcome-steps { justify-content: center; margin-top: 20px; }
    .welcome-steps span { font-size: 13px; }
    .login-card { max-width: 500px; margin: 0 auto; }
    .login-page { padding-bottom: 0; }
    .admin-layout { display: block; }
    .admin-create { position: static; margin-bottom: 20px; }
    .volunteer-row { grid-template-columns: 48px minmax(0, 1fr); }
    .volunteer-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .privacy-grid { grid-template-columns: 1fr; }
    .retention-card { display: block; }
    .retention-card form { margin-top: 15px; }
    .mobile-nav a { width: auto; flex: 1 1 0; }
}

@media (max-width: 470px) {
    .login-page .page-shell { padding-top: 8px; }
    .login-welcome .welcome-steps { display: none; }
    .login-card { padding: 24px 20px; }
    .login-icon { display: none; }
    .attendance-slot { grid-template-columns: 38px 1fr; grid-template-rows: auto auto; }
    .custom-check { grid-row: 1 / span 2; }
    .slot-time { align-self: end; }
    .slot-occupancy { align-self: start; }
    .save-bar > div { min-width: 0; }
    .save-bar .button { padding-inline: 13px; }
    .volunteer-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .volunteer-actions .button { width: 100%; }
    .inline-pin-form { right: auto; left: 0; width: min(280px, calc(100vw - 56px)); }
}

@media print {
    @page { size: A4 landscape; margin: 15mm; }
    * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    body { background: white; color: #000; font-family: Arial, sans-serif; }
    .no-print, .site-header, .mobile-nav, .messages, .screen-calendar { display: none !important; }
    .page-shell { width: 100%; padding: 0; }
    .print-schedule { display: block; }
    .print-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 4mm; }
    .print-heading h1 { margin: 0; font-size: 16pt; }
    .print-heading p { margin: 0; font-size: 10pt; font-weight: bold; }
    .print-schedule table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 7pt; }
    .print-schedule th, .print-schedule td { border: 0.3mm solid #7c8885; padding: 1.4mm; vertical-align: top; }
    .print-schedule thead th { background: #dcece8; font-size: 8pt; }
    .print-schedule th:first-child { width: 25mm; white-space: nowrap; }
    .print-schedule tbody th { background: #f0f3f2; }
    .print-schedule td span { display: block; margin-bottom: 0.5mm; font-weight: bold; line-height: 1.15; }
    .print-footer { margin: 3mm 0 0; font-size: 7pt; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
