:root {
  --ink: #1d2b24;
  --muted: #718078;
  --line: #e4e9e4;
  --paper: #ffffff;
  --canvas: #f7f8f6;
  --green: #2e694d;
  --green-dark: #234f3a;
  --green-soft: #edf5ef;
  --amber: #a56d20;
  --amber-soft: #fff5e3;
  --red: #a64c43;
  --red-soft: #fff0ee;
  --shadow: 0 16px 42px rgba(34, 55, 42, .07);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.48;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.shell { max-width: 1280px; margin: 0 auto; padding: 0 34px 32px; }
.topbar {
  min-height: 74px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); margin-bottom: 34px;
}
.brand { display: inline-flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Manrope, sans-serif; font-size: 14px; letter-spacing: -.02em; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 12px; }
.brand-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--green); color: #fff; font: 800 14px Manrope, sans-serif; letter-spacing: -.03em; box-shadow: 0 6px 14px #2e694d2b; }
.brand-mark.small { width: 37px; height: 37px; border-radius: 12px; font-size: 12px; }
.topbar-right { display: flex; align-items: center; gap: 17px; }
.save-state { font-size: 12px; color: var(--muted); }
.status-dot { display: inline-block; vertical-align: 1px; width: 7px; height: 7px; border-radius: 50%; background: #54a776; margin-right: 5px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 25px; }
h1, h2, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, "DM Sans", sans-serif; letter-spacing: -.035em; }
.page-heading h1 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; margin: 5px 0 9px; font-weight: 700; }
.eyebrow { color: var(--green); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 700; margin: 0 0 4px; }
.muted { color: var(--muted); margin: 0; font-size: 13px; }
.round-picker { display: flex; gap: 9px; align-items: center; }
select, input {
  min-height: 42px; border: 1px solid #dfe5df; border-radius: 9px; background: #fff; color: var(--ink); padding: 9px 12px; outline: none;
}
select:focus, input:focus { border-color: #76a68a; box-shadow: 0 0 0 3px #2e694d18; }
.round-picker select { min-width: 195px; font-weight: 600; }
.button { border: 1px solid transparent; border-radius: 9px; min-height: 40px; padding: 9px 14px; font-weight: 600; font-size: 13px; white-space: nowrap; transition: .15s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--green); color: white; box-shadow: 0 5px 12px #2e694d22; }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { background: var(--green-soft); color: var(--green-dark); border-color: #d7e8da; }
.button.quiet { background: white; color: #4e5e55; border-color: var(--line); }
.button.danger { background: var(--red-soft); color: var(--red); border-color: #f0d7d4; }
.button.quiet:hover, .button.secondary:hover { border-color: #a8c9b2; }
.button.full { width: 100%; margin-top: 7px; }
.small-button { min-height: 35px; padding: 7px 11px; }
.text-button { border: 0; background: none; color: var(--red); font-size: 12px; padding: 5px 0; }
.round-banner { display: flex; justify-content: space-between; gap: 25px; align-items: center; border: 1px solid #dce8df; border-radius: 15px; background: linear-gradient(110deg, #f1f7f2, #f8fbf8 70%); padding: 22px 24px; margin-bottom: 25px; }
.round-copy { min-width: 230px; }
.round-title-line { display: flex; gap: 11px; align-items: center; }
.round-title-line h2 { font-size: 19px; margin: 0; }
.round-dates { font-size: 12px; margin-top: 4px; }
.round-message { min-height: 16px; margin-top: 7px; font-size: 12px; color: var(--green); }
.round-actions { display: flex; flex: 0 1 640px; max-width: 640px; flex-direction: column; gap: 0; align-items: stretch; }
.round-action-buttons { display: flex; width: 100%; gap: 8px; align-items: center; justify-content: flex-end; }
.wishes-link-slot { display: flex; width: 100%; height: 72px; flex: 0 0 72px; align-items: flex-start; }
.badge { display: inline-flex; align-items: center; min-height: 23px; border-radius: 99px; padding: 3px 9px; background: #e7f2ea; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.badge.open { color: #886016; background: #fff1d8; }
.badge.published { color: #236043; background: #dff0e3; }
.tabs { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 10px 1px 12px; color: #7a867f; font-size: 13px; font-weight: 600; }
.tab.active { color: var(--green-dark); border-bottom-color: var(--green); }
.tab-count { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 12px; background: #e9eee9; color: #637168; display: inline-grid; place-items: center; font-size: 10px; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 28px; }
.metric-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; min-height: 94px; }
.metric-label { display: block; color: var(--muted); font-size: 11px; }
.metric-card strong { display: inline-block; font: 700 24px Manrope, sans-serif; margin: 4px 8px 0 0; letter-spacing: -.04em; }
.metric-card small { color: #96a099; font-size: 10px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 0 0 15px; }
.section-heading h2, .share-card h2 { margin: 0 0 4px; font-size: 20px; }
.section-heading p { font-size: 12px; }
.services-list { display: grid; gap: 12px; }
.service-card { display: grid; grid-template-columns: 134px minmax(170px, 1fr) repeat(3, minmax(155px, 1fr)) 34px; gap: 12px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 14px 13px; }
.service-date { border-right: 1px solid #edf0ed; padding-right: 10px; }
.service-date strong { display: block; font: 700 15px Manrope, sans-serif; }
.service-date span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.service-meta strong { display: block; font-size: 13px; font-weight: 700; }
.service-meta span { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.service-role label { display: block; text-transform: uppercase; letter-spacing: .08em; color: #8a958e; font-size: 9px; font-weight: 700; margin-bottom: 4px; }
.service-role select { width: 100%; min-width: 0; min-height: 38px; padding: 7px 26px 7px 9px; font-size: 11px; }
.service-role select.unfilled { color: #9c6059; background: #fff8f7; border-color: #ecd6d3; }
.print-value { display: none; }
.icon-button { border: 0; background: transparent; color: #8c9890; font-size: 20px; line-height: 1; padding: 5px; border-radius: 6px; }
.icon-button:hover { background: #f2f4f2; color: var(--red); }
.empty-state { text-align: center; padding: 44px 20px; border: 1px dashed #d7ded8; border-radius: 12px; background: #fbfcfb; }
.empty-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 10px; background: var(--green-soft); color: var(--green); border-radius: 50%; font-size: 21px; }
.empty-state h3 { font-size: 16px; margin: 0 0 5px; }
.empty-state p { margin: 0 0 15px; font-size: 12px; color: var(--muted); }
.availability-toolbar { display: flex; align-items: center; gap: 10px; padding: 15px; background: white; border: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.availability-toolbar label { font-size: 12px; color: var(--muted); }
.availability-toolbar select { min-width: 230px; }
.site-chip { color: var(--green); background: var(--green-soft); border-radius: 99px; padding: 5px 9px; font-size: 10px; font-weight: 700; }
.availability-grid { background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.availability-grid:has(.calendar-grid) { overflow-x: auto; border: 0; background: transparent; }
.availability-list { display: grid; gap: 7px; }
.availability-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.availability-row { display: grid; grid-template-columns: 1.15fr 1.15fr 2.4fr; gap: 15px; align-items: center; padding: 12px 15px; border-top: 1px solid #edf0ed; }
.availability-row:first-child { border-top: 0; }
.availability-date strong { display: block; font-size: 12px; }
.availability-date span, .availability-note { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.availability-state { display: flex; gap: 5px; justify-content: flex-end; }
.choice { min-height: 31px; border: 1px solid #e4e9e4; border-radius: 7px; padding: 5px 8px; color: #6d7871; background: #fff; font-size: 10px; font-weight: 600; }
.choice.active-can { color: #2c6847; background: var(--green-soft); border-color: #cde2d2; }
.choice.active-cannot { color: #a24f44; background: var(--red-soft); border-color: #f0d7d4; }
.choice.active-open { color: #896519; background: var(--amber-soft); border-color: #f1e2bd; }
.availability-closed { padding: 26px; text-align: center; color: var(--muted); font-size: 13px; }
.submission-meta { color: var(--muted); font-size: 10px; margin-left: auto; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 3px 0 12px; }
.calendar-modes { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.calendar-mode { border: 0; border-radius: 6px; background: transparent; padding: 6px 11px; color: var(--muted); font-size: 11px; font-weight: 600; }
.calendar-mode.active { color: var(--green-dark); background: var(--green-soft); }
.calendar-navigation { display: flex; align-items: center; gap: 9px; color: #536158; font-size: 12px; }
.calendar-navigation .icon-button { min-width: 30px; min-height: 30px; border: 1px solid var(--line); background: white; font-size: 24px; padding: 0 6px 3px; }
.calendar-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: white; }
.calendar-grid { min-width: 760px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekday { background: #f5f7f5; color: #758179; font-size: 10px; font-weight: 700; text-align: right; padding: 8px 9px; border-bottom: 1px solid var(--line); }
.calendar-day { min-width: 0; min-height: 115px; padding: 6px; border-right: 1px solid #e8ede8; border-bottom: 1px solid #e8ede8; background: white; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.outside-month { background: #f8faf8; }
.calendar-day.outside-month .calendar-day-head { color: #adb6b0; }
.calendar-day.outside-period { background: #f7f8f6; }
.calendar-day.has-events { background: #fcfdfc; }
.calendar-day.has-school-holiday { background-image: linear-gradient(180deg, #f8f0db 0, #fffdf8 58%); }
.calendar-day-head { display: flex; align-items: center; justify-content: space-between; min-height: 20px; color: #607066; font-size: 10px; font-weight: 700; }
.calendar-day-name { display: block; max-width: 100%; overflow: hidden; color: #774898; font-size: 8px; line-height: 1.15; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.calendar-holiday-name { color: #8a7448; font-weight: 500; }
.calendar-add { opacity: 0; width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 15px; line-height: 18px; }
.calendar-day:hover .calendar-add, .calendar-add:focus { opacity: 1; }
.calendar-empty-add { opacity: 0; border: 0; border-radius: 5px; background: #f1f6f2; color: #6a8b73; width: 100%; padding: 4px; font-size: 9px; }
.calendar-day:hover .calendar-empty-add, .calendar-empty-add:focus { opacity: 1; }
.calendar-day-events { display: grid; align-content: start; gap: 4px; margin-top: 3px; }
.calendar-event { display: grid; gap: 2px; width: 100%; min-width: 0; padding: 5px 6px; border: 0; border-left: 3px solid #6c9c79; border-radius: 5px; background: #eef5ef; color: #31483a; text-align: left; font-size: 9px; line-height: 1.25; }
.calendar-event.site-frickhofen { border-left-color: #db9a4f; background: #fff5e8; color: #624a2a; }
.calendar-event strong { font-size: 9px; }
.calendar-event span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #64746a; }
.calendar-event em { color: #8d6a35; font-style: normal; }
.week-view .calendar-day { min-height: 220px; }
.availability-event { display: grid; gap: 4px; margin: 2px 0; padding: 5px; border-left: 3px solid #6c9c79; border-radius: 5px; background: #eef5ef; color: #31483a; }
.availability-event.site-frickhofen { border-left-color: #db9a4f; background: #fff5e8; color: #624a2a; }
.availability-event strong { font-size: 9px; }
.availability-event-note { color: #7e887f; font-size: 9px; }
.availability-choices { display: flex; flex-wrap: wrap; gap: 3px; }
.availability-choices .choice { min-height: 23px; padding: 3px 5px; font-size: 8px; }
.calendar-empty-state { padding: 28px; text-align: center; color: var(--muted); font-size: 12px; }
.wishes-link-panel { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(210px, 1.2fr) auto; align-items: center; gap: 10px; margin: 0 0 13px; padding: 12px 14px; border: 1px solid #d6e5d9; border-radius: 11px; background: #f5faf6; }
.round-actions .wishes-link-panel { flex: none; width: 100%; margin: 0; justify-self: stretch; }
.wishes-link-panel strong, .wishes-link-panel small { display: block; }
.wishes-link-panel strong { font-size: 11px; }
.wishes-link-panel small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.wishes-link-panel input { min-width: 0; min-height: 35px; font-size: 10px; }
.wishes-link-panel .button { min-height: 35px; padding: 7px 10px; font-size: 10px; }
.inline-form { display: flex; align-items: end; gap: 11px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 15px; margin-bottom: 14px; }
.inline-form label { display: grid; gap: 5px; flex: 1; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: #7b877f; }
.inline-form input, .inline-form select { width: 100%; text-transform: none; letter-spacing: normal; font-size: 13px; font-weight: 400; }
.volunteer-form { align-items: end; flex-wrap: wrap; }
.volunteer-form .name-field { flex: 1.25; min-width: 180px; }
.check-group { display: flex; align-items: center; gap: 9px; min-width: 185px; min-height: 63px; margin: 0; padding: 7px 9px 8px; border: 1px solid #e4e9e4; border-radius: 9px; }
.check-group legend { padding: 0 4px; color: #7b877f; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.check-option { display: inline-flex !important; align-items: center; gap: 6px !important; color: #4e5e55 !important; font-size: 11px !important; font-weight: 500 !important; text-transform: none !important; letter-spacing: normal !important; white-space: nowrap; }
.check-option input { width: 15px !important; height: 15px; min-height: 15px; accent-color: var(--green); }
.form-buttons { display: flex; gap: 7px; }
.people-list { display: grid; gap: 8px; }
.person-row { display: grid; grid-template-columns: minmax(210px, 1fr) 270px minmax(200px, auto); align-items: center; gap: 14px; border: 1px solid var(--line); background: white; border-radius: 10px; padding: 12px 15px; }
.person-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.avatar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #e8f1ea; color: var(--green); font: 700 11px Manrope, sans-serif; }
.person-main strong { display: block; font-size: 12px; }
.person-main small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.person-actions { display: flex; gap: 7px; align-items: center; justify-content: flex-end; white-space: nowrap; }
.person-duty-counts { display: grid; grid-template-columns: max-content max-content; justify-content: center; gap: 6px; width: 270px; justify-self: center; }
.person-duty-counts span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 34px; border-radius: 99px; padding: 7px 10px; background: #f0f4f0; color: #617168; font-size: 11px; line-height: 1.15; font-weight: 700; white-space: nowrap; }
.person-duty-counts-single span { grid-column: 1 / -1; justify-self: center; }
.person-actions .button { min-height: 33px; padding: 6px 9px; font-size: 10px; }
.inactive-label { font-size: 10px; color: #a3645b; background: var(--red-soft); border-radius: 99px; padding: 4px 8px; }
.share-card { display: grid; grid-template-columns: 48px 1fr auto; gap: 13px 15px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.share-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--green); background: var(--green-soft); font-size: 22px; }
.share-card h2 { font-size: 18px; }
.share-card .muted { max-width: 650px; }
.share-link-wrap { grid-column: 2 / 4; display: flex; gap: 8px; }
.share-link-wrap input { flex: 1; min-width: 0; font-size: 12px; color: var(--green-dark); }
.share-exports { grid-column: 2 / 4; display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.export-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.export-actions a { display: inline-flex; align-items: center; text-decoration: none; }
.export-feed { display: grid; gap: 5px; color: #65746a; font-size: 10px; font-weight: 700; }
.export-feed-row { display: flex; gap: 8px; }
.export-feed-row input { flex: 1; min-width: 0; font-size: 12px; color: var(--green-dark); }
.export-note { font-size: 11px; }
.share-card > .text-button { grid-column: 2 / 4; justify-self: start; }
.location-entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.location-entry { display: grid; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; align-content: start; gap: 9px; height: 140px; min-height: 140px; overflow: hidden; padding: 12px; border: 1px solid #dfe7df; border-radius: 10px; background: #fbfcfb; transition: background .15s, border-color .15s; }
.location-entry:has(.location-check input:checked) { background: #f2f8f3; border-color: #b9d1bf; }
.location-entry.location-disabled { background: #f8f9f8; }
.location-check { font-size: 13px !important; font-weight: 700 !important; color: var(--ink) !important; }
.time-list { display: grid; align-content: start; gap: 6px; min-height: 0; overflow-y: auto; }
.time-entry { display: grid; gap: 8px; padding: 9px; border: 1px solid #e8ede8; border-radius: 8px; background: white; color: var(--muted); font-size: 10px; }
.service-entry-top { display: grid; grid-template-columns: minmax(90px, .75fr) minmax(155px, 1.25fr) 28px; align-items: end; gap: 8px; }
.service-entry-top > label, .other-note { display: grid; gap: 4px; font-size: 9px !important; color: #758179 !important; }
.service-entry-top input, .service-entry-top select, .other-note input { min-height: 34px !important; padding: 6px 8px !important; font-size: 12px !important; }
.service-entry-top input:disabled, .service-entry-top select:disabled, .other-note input:disabled { background: #f1f3f1; color: #a8b1aa; }
.service-entry-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.service-entry-roles label { display: grid; gap: 4px; color: #758179; font-size: 9px; }
.service-entry-roles select { width: 100%; min-height: 34px; padding: 6px 8px; font-size: 11px; }
.service-entry-roles select:disabled { background: #f1f3f1; color: #a8b1aa; }
.service-specials { display: flex; flex-wrap: wrap; gap: 5px 10px; }
.service-specials label { display: inline-flex !important; align-items: center; gap: 4px !important; color: #58675e !important; font-size: 9px !important; font-weight: 500 !important; }
.service-specials input { width: 13px !important; min-height: 13px !important; height: 13px; accent-color: var(--green); }
.other-note { grid-template-columns: 1fr; }
.remove-time { width: 28px; height: 28px; border: 0; border-radius: 7px; color: #8c5550; background: #f7ecea; cursor: pointer; font-size: 17px; line-height: 1; }
.add-time { justify-self: start; padding: 3px 0; border: 0; background: transparent; color: var(--green); font-size: 10px; font-weight: 700; cursor: pointer; }
.add-time:disabled { color: #a8b1aa; cursor: default; }
.dialog-card#service-dialog { width: min(940px, calc(100vw - 28px)); min-height: 495px; max-height: calc(100vh - 36px); overflow-y: auto; }
.location-entry { height: 320px; min-height: 320px; }
.dialog-card#settings-dialog { width: min(520px, calc(100vw - 28px)); }
.settings-intro { line-height: 1.5; }
.settings-time-grid { display: grid; grid-template-columns: 62px 1fr 1fr; align-items: center; gap: 8px; }
.settings-time-grid strong { font-size: 10px; color: #6f7d73; }
.settings-time-grid span { color: #6f7d73; font-size: 11px; }
.settings-time-grid input { min-height: 36px; }
.settings-button { min-width: 38px; min-height: 38px; border: 1px solid var(--line); background: white; color: #607066; font-size: 19px; }
.wish-person-card { display: grid; grid-template-columns: 90px minmax(220px, 1fr) auto; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.wish-person-card label { font-size: 11px; font-weight: 700; color: #66746b; }
.wish-person-card select { min-width: 0; }
.wish-instructions { display: grid; gap: 3px; margin: 10px 0 15px; padding: 12px 14px; border-radius: 10px; background: #f1f6f2; color: #44634d; font-size: 11px; }
.wish-instructions span { color: #728078; font-size: 10px; }
.wish-list { display: grid; gap: 7px; }
.wish-can-control { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 8px; border: 1px solid #cde2d2; border-radius: 7px; background: var(--green-soft); color: #2c6847; font-size: 10px; font-weight: 700; cursor: pointer; }
.wish-can-control:has(input:not(:checked)) { border-color: #f0d7d4; background: var(--red-soft); color: #a24f44; }
.wish-can-control input { width: 14px; height: 14px; min-height: 14px; accent-color: var(--green); }
.wish-submit-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.wish-submit-bar span { color: var(--green); font-size: 11px; }
.privacy-note { margin-top: 12px; padding: 12px 14px; border-radius: 9px; color: #80652c; background: #fff8e9; font-size: 11px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 15px; border-top: 1px solid var(--line); margin-top: 42px; padding: 15px 0 4px; color: #9aa39d; font-size: 10px; }
.dialog-card { width: min(460px, calc(100vw - 28px)); border: 0; border-radius: 15px; padding: 23px; color: var(--ink); box-shadow: 0 22px 90px #15251c40; }
.dialog-card::backdrop { background: #19241e72; backdrop-filter: blur(2px); }
.dialog-card form { display: grid; gap: 14px; }
.dialog-card label { display: grid; gap: 5px; color: #65746a; font-size: 11px; font-weight: 600; }
.dialog-card input, .dialog-card select { width: 100%; color: var(--ink); font-size: 13px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 4px; }
.dialog-heading h2 { margin: 0; font-size: 20px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.optional { display: inline; color: #a0aaa3; font-weight: 400; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; }
.dialog-actions .button.danger { margin-right: auto; }
.confirm-dialog { width: min(390px, calc(100vw - 28px)); }
.confirm-dialog p { margin: 5px 0; font-size: 14px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: #203d2d; color: white; padding: 10px 15px; border-radius: 9px; box-shadow: var(--shadow); font-size: 12px; transition: .2s ease; z-index: 20; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.form-error { min-height: 18px; margin: 0; color: #a64c43; font-size: 12px; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(380px, 100%); background: white; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.login-card .brand-mark { margin-bottom: 26px; }
.login-card-footer { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); color: #9aa39d; font-size: 9px; line-height: 1.5; }
.login-card h1 { font-size: 27px; line-height: 1.12; margin: 4px 0 6px; }
.stack-form { display: grid; gap: 8px; margin-top: 25px; }
.stack-form label { font-size: 11px; font-weight: 700; color: #66746b; }
.stack-form input { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.dot { color: #b6c4b9; padding: 0 3px; }
.public-shell { max-width: 1030px; margin: 0 auto; padding: 0 28px 30px; }
.public-header { min-height: 73px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.public-title { padding: 35px 0 22px; }
.public-title h1 { font-size: clamp(29px, 4vw, 39px); margin: 6px 0 8px; }
.public-services { display: grid; gap: 10px; }
.public-list-filters { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.public-list-filters label { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.public-list-filters select { min-height: 34px; padding: 5px 24px 5px 8px; font-size: 11px; }
.church-day-label { color: #774898 !important; font-size: 11px !important; font-weight: 600; }
.calendar-attribution { margin: 8px 0 0; color: #98a29b; font-size: 9px; }
.calendar-attribution a { color: #708478; text-decoration: underline; text-underline-offset: 2px; }
.public-service { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(140px, .7fr) 2fr; gap: 20px; align-items: center; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 17px 19px; }
.public-date strong { display: block; font-size: 13px; }
.public-date span, .public-location span { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.public-location strong { display: block; color: var(--green-dark); font-size: 12px; }
.public-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.public-roles div { min-width: 0; }
.public-roles small { display: block; color: #89958d; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 4px; }
.public-roles strong { display: block; font-size: 12px; }
.public-roles span { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.public-roles .open-slot { color: #a45b4e; }
.public-empty, .public-error { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 24px; color: var(--muted); text-align: center; }
.public-error { color: #9e4f45; background: var(--red-soft); border-color: #efdbd8; }
.public-footer { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: 30px; border-top: 1px solid var(--line); padding-top: 13px; color: #9aa39d; font-size: 10px; }
.public-export-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.holiday-label { display: inline-flex !important; width: fit-content; margin-top: 4px !important; padding: 2px 6px; border-radius: 5px; background: #f8f0db; color: #8a7448 !important; font-size: 8px !important; line-height: 1.2; font-weight: 600; }
.public-table-view { display: block; min-width: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: white; }
.public-schedule-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 9px; line-height: 1.22; }
.public-schedule-table .table-date-col { width: 13%; }
.public-schedule-table.single-site-table .table-date-col { width: 17%; }
.public-schedule-table th, .public-schedule-table td { padding: 5px 6px; border: 1px solid #e4e9e4; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.public-schedule-table thead th { background: #f5f7f5; color: #536158; font-size: 8px; font-weight: 700; }
.public-schedule-table thead .table-site-heading { background: #eaf1eb; color: var(--green-dark); font-size: 10px; }
.public-schedule-table .table-date-heading { vertical-align: middle; }
.public-schedule-table .table-date-cell { background: #fbfcfb; font-weight: 500; }
.public-schedule-table .table-date-cell strong, .public-schedule-table .table-date-cell span { display: block; }
.public-schedule-table .table-date-cell strong { white-space: nowrap; font-size: 9px; }
.public-schedule-table .table-church-day { margin-top: 3px; color: #774898; font-size: 8px; font-weight: 600; }
.public-schedule-table tbody td:nth-child(2), .public-schedule-table .table-date-heading + .table-site-heading { border-left: 2px solid #c8d6ca; }
.public-schedule-table.dual-site-table tbody td:nth-child(7), .public-schedule-table .table-site-heading + .table-site-heading { border-left: 2px solid #c8d6ca; }
.public-schedule-table .table-cell-entry + .table-cell-entry { margin-top: 4px; padding-top: 4px; border-top: 1px solid #e7ece7; }
.public-schedule-table .table-empty { padding: 18px 8px; color: var(--muted); text-align: center; }
.pdf-export-page { max-width: none; margin: 0; padding: 0; }
.pdf-export-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pdf-export-header h1 { margin: 2px 0 3px; font-size: 20px; }
.pdf-export-header p:last-child { margin: 0; color: var(--muted); font-size: 10px; }
.pdf-export-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); color: #78857c; font-size: 8px; }

@media (max-width: 1000px) {
  .service-card { grid-template-columns: 110px minmax(130px, .8fr) repeat(3, minmax(125px, 1fr)) 28px; gap: 8px; padding: 12px 10px; }
  .round-banner { align-items: start; flex-direction: column; }
  .round-actions { width: 100%; }
  .round-action-buttons { justify-content: flex-start; }
  .round-actions { flex: none; max-width: none; }
}
@media (max-width: 760px) {
  .shell { padding: 0 17px 25px; }
  .topbar { min-height: 64px; margin-bottom: 25px; }
  .save-state { display: none; }
  .page-heading { display: block; }
  .round-picker { margin-top: 16px; }
  .round-picker select { flex: 1; min-width: 0; }
  .round-banner { padding: 17px; }
  .round-actions { display: flex; width: 100%; }
  .round-action-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .round-action-buttons .primary { grid-column: 1 / -1; grid-row: 1; }
  .round-action-buttons .secondary { grid-column: 1; grid-row: 2; }
  .round-action-buttons .quiet { grid-column: 2; grid-row: 2; }
  .wishes-link-slot { height: 122px; flex-basis: 122px; }
  .tabs { gap: 16px; margin-left: -17px; margin-right: -17px; padding: 0 17px; }
  .metric-row { gap: 7px; }
  .metric-card { min-height: 82px; padding: 11px 10px; }
  .metric-card strong { display: block; font-size: 20px; margin: 3px 0 0; }
  .metric-card small { font-size: 9px; }
  .section-heading { align-items: start; }
  .service-card { grid-template-columns: 1fr 30px; gap: 8px; padding: 13px; }
  .service-date { grid-column: 1; border: 0; padding: 0; }
  .service-meta { grid-column: 1; grid-row: 2; }
  .service-role { grid-column: 1 / -1; }
  .service-delete { grid-column: 2; grid-row: 1; }
  .service-date strong { display: inline; margin-right: 7px; }
  .service-date span { display: inline; }
  .availability-row { grid-template-columns: 1fr; gap: 6px; padding: 12px; }
  .availability-row { grid-template-columns: 1fr; }
  .availability-state { justify-content: start; }
  .availability-toolbar { flex-wrap: wrap; }
  .availability-toolbar select { flex: 1; min-width: 175px; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .inline-form label { width: 100%; }
  .share-card { grid-template-columns: 42px 1fr; padding: 17px; }
  .share-card > .button.primary { grid-column: 1 / -1; }
  .share-link-wrap { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .share-link-wrap input { grid-column: 1 / -1; width: 100%; }
  .share-exports { grid-column: 1 / -1; }
  .export-actions > a { flex: 1; justify-content: center; }
  .export-feed-row { display: grid; grid-template-columns: 1fr; }
  .share-card > .text-button { grid-column: 1 / -1; }
  .footer { margin-top: 28px; }
  .public-shell { padding: 0 16px 22px; }
  .public-header { gap: 10px; }
  .public-export-actions { max-width: 100%; }
  .public-header .button { white-space: normal; }
  .public-title { padding: 25px 0 17px; }
  .public-service { grid-template-columns: 1fr 1fr; gap: 11px; padding: 14px; }
  .public-date { grid-column: 1 / -1; }
  .public-roles { grid-column: 1 / -1; grid-template-columns: 1fr; gap: 9px; border-top: 1px solid #edf0ed; padding-top: 10px; }
  .public-roles div { display: grid; grid-template-columns: 88px 1fr; gap: 4px; align-items: baseline; }
  .public-roles small { grid-row: span 2; margin: 0; }
  .calendar-grid { min-width: 700px; }
  .calendar-day { min-height: 78px; padding: 4px; }
  .month-view .calendar-event span, .month-view .calendar-event em { display: none; }
  .month-view .calendar-event { padding: 4px; font-size: 8px; }
  .week-view { min-width: 0; grid-template-columns: 1fr; }
  .week-view .calendar-weekday { display: none; }
  .week-view .calendar-day { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 8px; min-height: 64px; padding: 8px; }
  .week-view .calendar-day-head { align-items: start; padding-top: 3px; }
  .week-view .calendar-day-events { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .availability-toolbar { border-radius: 12px; }
  .submission-meta { width: 100%; margin-left: 0; }
  .wishes-link-panel { grid-template-columns: 1fr auto; }
  .wishes-link-panel > div { grid-column: 1 / -1; }
  .wishes-link-panel input { grid-column: auto; }
  .wishes-link-panel button { grid-column: auto; width: auto; }
  .volunteer-form { align-items: stretch; }
  .volunteer-form .name-field { min-width: 100%; }
  .check-group { flex: 1; min-width: calc(50% - 8px); }
  .form-buttons { width: 100%; }
  .form-buttons .button { flex: 1; }
  .location-entry-grid { grid-template-columns: 1fr; gap: 8px; }
  .location-entry { height: 270px; min-height: 270px; padding: 9px; }
  .location-check { white-space: normal; }
  .service-entry-top { grid-template-columns: minmax(65px, .8fr) minmax(100px, 1.2fr) 28px; gap: 5px; }
  .person-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .person-duty-counts { grid-column: 1 / -1; grid-row: 2; width: min(100%, 340px); justify-self: center; }
  .person-actions { grid-column: 1 / -1; grid-row: 3; }
  .public-list-filters { flex-wrap: wrap; }
  .public-list-filters label { flex: 1; min-width: 145px; }
  .public-list-filters select { min-width: 0; width: 100%; }
  .public-table-view { overflow-x: auto; }
  .time-entry { gap: 6px; padding: 7px; }
  .dialog-card#service-dialog { min-height: 500px; }
  .wish-person-card { grid-template-columns: 1fr; }
  .wish-person-card .site-chip { justify-self: start; }
  .wish-submit-bar { align-items: stretch; flex-direction: column; }
}
@media print {
  @page { size: A4 landscape; margin: 8mm; }
  body { background: white; color: #111; }
  .shell { max-width: none; padding: 0; }
  #app-view > *:not(#tab-plan), .topbar, .page-heading, .round-banner, .tabs, .metric-row, .section-heading, .service-delete, .service-role select { display: none !important; }
  #tab-plan { display: block !important; }
  .services-list { gap: 0; }
  .service-card { grid-template-columns: 130px 1fr 1fr 1fr; border-radius: 0; border-width: 0 0 1px; box-shadow: none; break-inside: avoid; }
  .service-card .service-role { display: block; }
  .service-role label { display: block; }
  .service-role select { display: none !important; }
  .service-role .print-value { display: block; font-size: 12px; color: var(--ink); }
  .public-shell { max-width: none; padding: 0; }
  .public-header button { display: none; }
  #public-calendar-controls { display: none !important; }
  #public-list-filters { display: none !important; }
  .calendar-wrap { overflow: visible; border: 0; }
  .public-service { grid-template-columns: 1.2fr .7fr 2fr; break-inside: avoid; border-radius: 0; border-width: 0 0 1px; padding: 12px 5px; }
  .public-services { gap: 0; }
  .public-table-view { overflow: visible; border-color: #b7c0b9; border-radius: 0; }
  .public-schedule-table { font-size: 6pt; line-height: 1.08; }
  .public-schedule-table th, .public-schedule-table td { padding: 2px 3px; }
  .public-schedule-table thead th { font-size: 5.5pt; }
  .public-schedule-table thead .table-site-heading { font-size: 7pt; }
  .public-schedule-table .table-date-cell strong { font-size: 6pt; }
  .public-schedule-table .table-church-day, .public-schedule-table .holiday-label { font-size: 5.5pt !important; }
  .public-schedule-table .table-cell-entry + .table-cell-entry { margin-top: 1px; padding-top: 1px; }
  .pdf-export-page { max-width: none !important; padding: 0 !important; }
  .pdf-export-body, .pdf-export-body * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pdf-export-header { margin-bottom: 3mm; padding-bottom: 2mm; }
  .pdf-export-header h1 { font-size: 14pt; }
  .pdf-export-header p:last-child { font-size: 7pt; }
  .pdf-export-content { padding-bottom: 8mm; }
  .pdf-export-footer { position: fixed; right: 0; bottom: 0; left: 0; margin-top: 0; padding-top: 2mm; font-size: 6.5pt; }
  .pdf-export-body .public-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 2mm; }
  .pdf-export-body .public-service { display: grid; grid-template-columns: 1fr 1fr; gap: 1mm 2mm; padding: 2mm; border: .4pt solid #dfe5df; border-radius: 2mm; font-size: 6pt; }
  .pdf-export-body .public-date, .pdf-export-body .public-location { min-width: 0; }
  .pdf-export-body .public-date strong, .pdf-export-body .public-location strong { font-size: 6.5pt; }
  .pdf-export-body .public-date span, .pdf-export-body .public-location span { margin-top: 1px; font-size: 5.5pt; }
  .pdf-export-body .public-roles { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1mm; }
  .pdf-export-body .public-roles small { margin-bottom: 1px; font-size: 4.8pt; }
  .pdf-export-body .public-roles strong, .pdf-export-body .public-roles span { font-size: 5.5pt; }
  .pdf-export-body .calendar-wrap { overflow: visible; border: 0; }
  .pdf-export-body .calendar-grid { min-width: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .pdf-export-body .calendar-weekday { padding: 1mm; font-size: 6pt; }
  .pdf-export-body .calendar-day { height: 23mm; min-height: 23mm; padding: 1mm; }
  .pdf-export-body .calendar-day-head { min-height: 3mm; font-size: 6pt; }
  .pdf-export-body .calendar-day-name { font-size: 4.8pt; }
  .pdf-export-body .calendar-event { gap: .5mm; padding: 1mm; font-size: 4.8pt; line-height: 1.05; }
  .pdf-export-body .calendar-event strong { font-size: 5pt; }
  .pdf-export-body .calendar-event span, .pdf-export-body .calendar-event em { display: block; font-size: 4.5pt; }
}
