@charset "UTF-8";

:root {
  --paper: #f8f7f2;
  --surface: #ffffff;
  --ink: #243d39;
  --muted: #64726b;
  --teal: #205b50;
  --teal-dark: #144638;
  --teal-soft: #eaf1eb;
  --line: #dce3da;
  --sand: #eee9dc;
  --sand-dark: #806b43;
  --danger: #a13830;
  --danger-soft: #fff1ed;
  --radius: 18px;
  --shadow: 0 8px 30px rgb(36 61 57 / 4%);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: var(--teal); text-underline-offset: .22em; }
a:hover { color: var(--teal-dark); }
img, svg { max-width: 100%; }
img { display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.35; letter-spacing: -.035em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.3rem); margin-bottom: 12px; font-weight: 750; }
h2 { font-size: 1.35rem; margin-bottom: 18px; font-weight: 700; }
h3 { font-size: 1.08rem; margin-bottom: 12px; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
small, .small { font-size: .89rem; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
summary + * { margin-top: 8px; }
:focus-visible { outline: 3px solid #c68c30; outline-offset: 4px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: 0; }
[hidden] { display: none !important; }

.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: rgb(255 255 255 / 88%); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 102px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--teal); text-decoration: none; }
.brand-mark { flex-shrink: 0; }
.brand-church, .brand-title { display: block; }
.brand-church { font-size: .72rem; line-height: 1.5; letter-spacing: -.02em; color: var(--muted); }
.brand-title { font-size: 1.25rem; line-height: 1.35; font-weight: 750; letter-spacing: -.04em; }
.main-nav { display: flex; align-items: center; gap: 10px; }
.main-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border-radius: 12px; color: var(--muted); font-weight: 600; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current] { background: var(--teal-soft); color: var(--teal); }
.demo-banner { background: #f1edde; border-bottom: 1px solid #e7dfc9; color: #665a37; font-size: .83rem; padding: 11px 0; }
.demo-banner strong { margin-right: 9px; }
.main-content { padding-top: 42px; padding-bottom: 76px; min-height: calc(100vh - 300px); }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 34px; color: var(--muted); font-size: .8rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer-title { color: var(--ink); font-size: .89rem; margin-bottom: 4px; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.footer-links a, .text-button { min-height: 48px; display: inline-flex; align-items: center; }
.footer-links form { margin: 0; }
.text-button { border: 0; background: none; padding: 0; color: var(--teal); text-decoration: underline; text-underline-offset: .22em; }
.skip-link { position: fixed; z-index: 20; top: -150px; left: 16px; background: var(--ink); color: white; padding: 14px 22px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: white; }
.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; }

.page-heading, .page-header { margin-bottom: 30px; }
.page-heading p, .page-header p { color: var(--muted); max-width: 760px; }
.eyebrow { display: block; color: var(--teal); font-size: .78rem; font-weight: 700; letter-spacing: .04em; margin-bottom: 12px; }
.heading-row, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.heading-row { margin-bottom: 26px; }
.heading-row .page-heading { margin-bottom: 0; }
.section-heading { margin-bottom: 18px; }
.section-heading h2 { margin: 0; }
.section-heading p { margin: 0; font-size: .89rem; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-bottom: 16px; font-size: .89rem; text-decoration: none; }
.back-link::before { content: "←"; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.narrow { max-width: 720px; margin-inline: auto; }
.stack > * + * { margin-top: 24px; }
.stack-tight > * + * { margin-top: 12px; }
.flow > * + * { margin-top: 18px; }
.section { margin-top: 34px; }
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { padding: 28px; }
.panel-soft { background: var(--teal-soft); border-color: transparent; box-shadow: none; }
.panel-plain { box-shadow: none; }
.notice { padding: 17px 20px; background: #f0f3ee; border: 1px solid var(--line); border-radius: 12px; font-size: .94rem; }
.notice + .notice { margin-top: 12px; }
.notice p + p { margin-top: 8px; }
.notice strong { color: var(--ink); }
.notice-success { background: var(--teal-soft); border-color: #c8dbce; }
.notice-error { background: var(--danger-soft); border-color: #e8c2bb; color: var(--danger); }
.notice-error strong { color: inherit; }
.notice-warning { background: #f8f1de; border-color: #e9dbb6; color: #725d27; }
.messages { margin-bottom: 24px; }
.badge, .status { display: inline-flex; align-items: center; gap: 7px; border-radius: 100px; background: var(--teal-soft); color: var(--teal); font-size: .78rem; font-weight: 650; line-height: 1.4; padding: 6px 11px; }
.badge-muted, .status-muted { background: #f0f1ed; color: #657167; }
.badge-warning, .status-warning { background: #f7eed8; color: #7a5d22; }
.badge-danger, .status-danger { background: var(--danger-soft); color: var(--danger); }
.button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 13px 22px; border: 1px solid var(--teal); border-radius: 11px; background: var(--teal); color: white; font-weight: 650; line-height: 1.35; text-decoration: none; text-align: center; }
.button:hover, .btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: white; }
.button-secondary, .btn-secondary { background: white; color: var(--teal); border-color: #c7d5cd; }
.button-secondary:hover, .btn-secondary:hover { background: var(--teal-soft); border-color: #9fb9ac; color: var(--teal); }
.button-quiet, .btn-quiet { background: transparent; color: var(--teal); border-color: transparent; }
.button-quiet:hover, .btn-quiet:hover { background: var(--teal-soft); border-color: transparent; color: var(--teal); }
.button-danger, .btn-danger { background: var(--danger); border-color: var(--danger); }
.button-danger:hover, .btn-danger:hover { background: #7c2a25; border-color: #7c2a25; }
.button-small, .btn-small { font-size: .89rem; padding: 11px 16px; min-height: 48px; }
.button-block { display: flex; width: 100%; }
.actions, .button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.actions form { margin: 0; }
.actions-end { justify-content: flex-end; }
.actions-spread { justify-content: space-between; }
.inline-link { display: inline-flex; align-items: center; min-height: 48px; }

.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.room-card { overflow: hidden; display: flex; flex-direction: column; position: relative; transition: border-color .15s; }
.room-card:hover { border-color: #adc2b4; }
.room-visual { height: 164px; background: #eceee5; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.room-visual svg { width: 100%; height: 100%; }
.room-visual img { width: 100%; height: 100%; object-fit: cover; }
.room-card:nth-child(3n+2) .room-visual { background: #eee9de; }
.room-card:nth-child(3n+3) .room-visual { background: #e6ecec; }
.room-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.room-card h2 { font-size: 1.28rem; margin: 10px 0 8px; }
.room-meta { font-size: .89rem; color: var(--muted); margin-bottom: 14px; }
.room-meta span + span::before { content: "·"; margin: 0 7px; }
.room-card-notes { font-size: .83rem; color: var(--muted); margin-bottom: 19px; flex: 1; }
.room-card .button { width: 100%; }
.room-card-label { font-size: .75rem; color: var(--teal); font-weight: 650; }
.room-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 26px; align-items: start; }
.room-aside { display: grid; gap: 20px; }
.room-aside .room-visual { height: 200px; border-radius: 12px; margin-bottom: 22px; }
.detail-list { margin: 0; }
.detail-list > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.detail-list > div:first-child { padding-top: 0; }
.detail-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; }
.detail-list-compact > div { grid-template-columns: 86px 1fr; }
.date-picker { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 22px; }
.date-picker .field { flex: 1; min-width: 170px; margin: 0; }
.date-picker .button { margin: 0; }
.day-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.day-nav strong { text-align: center; }
.day-nav a { min-width: 48px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.schedule-list { list-style: none; padding: 0; margin: 0; }
.schedule-item { display: grid; grid-template-columns: 138px 1fr; gap: 18px; align-items: center; border-top: 1px solid var(--line); padding: 19px 0; }
.schedule-item:last-child { padding-bottom: 0; }
.schedule-time { font-variant-numeric: tabular-nums; font-weight: 650; font-size: .94rem; }
.schedule-state { font-size: .94rem; }
.schedule-state small { display: block; color: var(--muted); margin-top: 4px; }
.schedule-open .schedule-state { color: var(--teal); }
.schedule-open .schedule-state::before { content: "○"; display: inline-block; margin-right: 8px; }
.schedule-busy .schedule-state { color: var(--muted); }
.schedule-busy .schedule-state::before { content: "—"; display: inline-block; margin-right: 8px; }
.empty-state { text-align: center; padding: 38px 24px; }
.empty-state h2 { margin-bottom: 10px; }
.empty-state p { color: var(--muted); }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px; color: var(--teal); background: var(--teal-soft); border-radius: 20px; margin-bottom: 20px; font-size: 1.6rem; }
.empty-state .actions { justify-content: center; }

fieldset { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
legend { font-weight: 700; font-size: 1.1rem; padding: 0; margin-bottom: 18px; }
label, .field-label { display: block; font-weight: 650; margin-bottom: 8px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #bdcbc1; border-radius: 10px; background: white; color: var(--ink); line-height: 1.4; }
textarea { resize: vertical; min-height: 104px; }
input::placeholder, textarea::placeholder { color: #7d867e; opacity: 1; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border: 2px solid var(--danger); }
input[type="checkbox"], input[type="radio"] { flex-shrink: 0; width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--teal); }
input[type="date"], input[type="time"], input[type="datetime-local"] { min-width: 0; }
.field { margin-bottom: 24px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field-row, .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field-row .field { margin-bottom: 0; }
.field-row { margin-bottom: 24px; }
.field-help, .helptext { display: block; font-size: .83rem; line-height: 1.55; color: var(--muted); margin-top: 8px; }
.field-error, .errorlist { color: var(--danger); font-size: .89rem; margin-top: 8px; margin-bottom: 0; }
.errorlist { list-style: none; padding: 0; }
.errorlist li + li { margin-top: 5px; }
.error-summary { padding: 20px; border: 2px solid var(--danger); background: var(--danger-soft); border-radius: 12px; margin-bottom: 26px; }
.error-summary h2 { font-size: 1.05rem; margin-bottom: 8px; color: var(--danger); }
.error-summary ul { margin: 0; padding-left: 22px; }
.error-summary a { color: var(--danger); }
.optional { font-size: .78rem; font-weight: 500; color: var(--muted); margin-left: 6px; }
.choice, .checkbox-row, .radio-row { display: flex; align-items: flex-start; gap: 11px; min-height: 48px; padding: 10px 0; font-weight: 500; cursor: pointer; }
.choice label, .checkbox-row label, .radio-row label { margin: 0; font-weight: 500; }
.choice-card { border: 1px solid var(--line); border-radius: 11px; padding: 16px; }
.choice-card:has(input:checked) { background: var(--teal-soft); border-color: #99bba5; }
.choice-card small { display: block; color: var(--muted); font-weight: 400; margin-top: 4px; }
.choice-grid { display: grid; gap: 12px; }
.form-section + .form-section { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 26px; }
.form-section h2 { font-size: 1.1rem; }
.notification-options > summary { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 4px; font-size: 1.1rem; font-weight: 700; list-style: none; }
.notification-options > summary::-webkit-details-marker { display: none; }
.notification-options > summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); flex: 0 0 auto; }
.notification-options[open] > summary { color: var(--teal); margin-bottom: 18px; }
.notification-options[open] > summary::before { content: "−"; }
.notification-options-body > .section:first-of-type { margin-top: 20px; }
.notification-unavailable p { margin: 0; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-submit { margin-top: 28px; }
.form-submit .button { width: 100%; }
.privacy-note { color: var(--muted); font-size: .78rem; margin-top: 16px; }
.receipt { overflow: hidden; }
.receipt-head { background: var(--teal-soft); padding: 30px; border-bottom: 1px solid #d3dfd4; }
.receipt-head h1 { font-size: 1.7rem; margin-bottom: 8px; }
.receipt-mark { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: white; font-size: 1.35rem; margin-bottom: 18px; }
.receipt-body { padding: 30px; }
.receipt-number { font-size: .78rem; letter-spacing: .035em; color: var(--muted); margin-top: 22px; }
.link-box { border-top: 1px dashed #bdcfc0; margin-top: 26px; padding-top: 24px; }
.link-box .field { margin-bottom: 12px; }
.link-status { font-size: .83rem; color: var(--teal); margin-top: 8px; min-height: 1.6em; }
.booking-list { display: grid; gap: 18px; }
.booking-card { padding: 24px; }
.booking-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.booking-card-head h2 { margin: 0 0 4px; }
.booking-card-head p { margin: 0; color: var(--muted); font-size: .89rem; }
.booking-card .actions { margin-top: 20px; }
.booking-dates { font-weight: 650; margin-bottom: 8px; }
.device-note { margin-top: 30px; font-size: .89rem; }
.device-note summary { color: var(--muted); }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .89rem; }
th, td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f0f3ed; color: var(--ink); font-weight: 650; }
tr:last-child td { border-bottom: 0; }
.staff-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.staff-nav a { min-height: 48px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 9px; background: white; text-decoration: none; }
.staff-nav a[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: white; font-weight: 750; box-shadow: inset 0 -4px 0 rgba(255, 255, 255, .72); }
.staff-nav ~ * a:not(.button) { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.staff-check { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -8px 0; cursor: pointer; }
.mobile-bulk-actions { display: none; }
.qr-page, .qr-print-page { max-width: 760px; margin-inline: auto; }
.qr-poster { margin-top: 28px; padding: clamp(28px, 6vw, 52px); border: 1px solid var(--line); border-radius: 18px; background: white; text-align: center; box-shadow: var(--shadow); }
.qr-poster + .qr-poster { margin-top: 30px; }
.qr-church { margin-bottom: 8px; color: var(--muted); font-size: .94rem; font-weight: 650; }
.qr-poster h2 { margin: 0; font-size: clamp(2rem, 7vw, 3.2rem); }
.qr-location { margin: 7px 0 0; color: var(--muted); }
.qr-instruction { margin: 28px 0 18px; font-size: 1.12rem; font-weight: 700; }
.qr-code { width: min(100%, 420px); height: auto; aspect-ratio: 1; margin-inline: auto; background: white; }
.qr-url { margin: 18px auto 0; max-width: 620px; color: var(--muted); font-size: .72rem; overflow-wrap: anywhere; }
.qr-contact { margin: 20px auto 0; max-width: 620px; font-size: .82rem; }
.qr-preview-mark { display: inline-block; margin-bottom: 24px; padding: 6px 12px; border: 2px solid var(--danger); color: var(--danger); font-size: .78rem; font-weight: 800; }

/* Staff portal only: compact navigation and card rows on narrow screens. */
@media (max-width: 680px) {
  .staff-nav { flex-wrap: nowrap; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 22px; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .staff-nav a { flex: 0 0 auto; min-height: 44px; padding: 9px 13px; white-space: nowrap; }
  .staff-nav ~ * .actions > .button, .staff-nav ~ * .actions > button { flex: 1 1 100%; width: 100%; }
  .staff-nav ~ * summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; }
  .staff-nav ~ * label:has(> input[type="checkbox"]), .staff-nav ~ * label:has(> input[type="radio"]) { min-height: 44px; display: flex; align-items: center; }
  .staff-table { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .panel.staff-table { padding: 0; }
  .staff-table table, .staff-table tbody, .staff-table tr, .staff-table td { display: block; width: 100%; }
  .staff-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .staff-table tbody { display: grid; gap: 14px; }
  .staff-table tr { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
  .staff-table td { position: relative; padding: 11px 14px 11px calc(32% + 12px); min-height: 48px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
  .staff-table td::before { content: attr(data-label); position: absolute; top: 11px; left: 14px; width: calc(32% - 14px); color: var(--muted); font-size: .78rem; font-weight: 700; }
  .staff-table td:last-child { border-bottom: 0; }
  .staff-table .empty-row td { display: block; padding: 14px; }
  .staff-table .empty-row td::before { content: none; }
  .mobile-bulk-actions:not([hidden]) { position: fixed; z-index: 15; right: 18px; bottom: calc(10px + env(safe-area-inset-bottom)); left: 18px; display: grid; grid-template-columns: auto minmax(72px, 1fr) minmax(96px, 1fr); align-items: center; gap: 8px; max-width: 680px; margin-inline: auto; padding: 10px; border: 1px solid #b8c9bf; border-radius: 14px; background: rgb(255 255 255 / 96%); box-shadow: 0 10px 32px rgb(20 70 56 / 20%); }
  .mobile-bulk-actions span { padding-inline: 4px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
  .mobile-bulk-actions .button { min-height: 48px; padding: 9px 10px; font-size: .85rem; }
  body.mobile-bulk-actions-open .main-content { padding-bottom: calc(116px + env(safe-area-inset-bottom)); }
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li + li { margin-top: 12px; }
.check-list li::before { content: "✓"; margin-right: 10px; color: var(--teal); }

@media (max-width: 880px) {
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-layout { grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr); gap: 20px; }
  .panel { padding: 22px; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 76px; gap: 6px; }
  .brand { gap: 8px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-church { font-size: .65rem; max-width: 145px; }
  .brand-title { font-size: 1.1rem; }
  .main-nav { gap: 1px; }
  .main-nav a { padding: 9px 11px; font-size: .83rem; }
  .main-content { padding-top: 22px; padding-bottom: 42px; }
  .demo-banner { font-size: .82rem; line-height: 1.5; }
  .demo-banner strong { display: block; }
  .heading-row, .section-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .page-heading { margin-bottom: 20px; }
  .page-heading h1 { margin-bottom: 7px; }
  .section { margin-top: 26px; }
  .room-layout { grid-template-columns: 1fr; }
  .room-aside { order: 2; }
  .room-aside .room-visual { display: none; }
  .room-grid { gap: 16px; }
  .room-card-body { padding: 18px; }
  .room-visual { height: 134px; }
  .room-card h2 { font-size: 1.15rem; }
  .room-meta { font-size: .83rem; }
  .room-meta span { display: block; }
  .room-meta span + span::before { content: none; }
  .room-card .button { padding-inline: 12px; }
  .panel { padding: 20px 18px; }
  .footer-inner { flex-direction: column; gap: 10px; }
  .footer-links { gap: 24px; }
  .detail-list > div { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; }
  .receipt-head, .receipt-body { padding: 22px 18px; }
  .receipt-mark { margin-bottom: 12px; }
  .booking-card { padding: 20px 18px; }
  .booking-card-head { flex-wrap: wrap; gap: 10px; }
  .actions-mobile-stack { flex-direction: column; align-items: stretch; }
  .actions-mobile-stack > *, .actions-mobile-stack .button { width: 100%; }
  .field-row { gap: 12px; }
  .schedule-item { grid-template-columns: 116px 1fr; gap: 10px; padding: 15px 0; }
  .primary-actions { margin-top: 18px; }
  .form-section + .form-section { padding-top: 22px; margin-top: 22px; }
  .field { margin-bottom: 20px; }
  .field-row { margin-bottom: 20px; }
  .notice { padding: 15px 16px; }
  .link-box .actions > * { width: 100%; }
}
@media (max-width: 430px) {
  .room-grid { grid-template-columns: 1fr; }
  .room-card .room-visual { display: none; }
  .room-meta span { display: inline; }
  .room-meta span + span::before { content: "·"; }
  .room-card-body { padding: 18px; }
  .room-card h2 { font-size: 1.22rem; margin-top: 6px; }
  .room-card-notes { display: none; }
  .field-row, .form-grid { grid-template-columns: 1fr; }
  .brand-mark { display: none; }
  .qr-poster { margin-top: 22px; padding: 26px 16px; }
  .qr-instruction { margin-top: 22px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@page { size: A4 portrait; margin: 12mm; }
@media print {
  :root { font-size: 12pt; background: white; }
  body, .card, .panel { background: white; }
  .site-header, .site-footer, .demo-banner, .staff-nav, .back-link, .actions, .mobile-bulk-actions, .no-print, .device-note { display: none !important; }
  .shell, .narrow { width: 100%; max-width: none; }
  .main-content { padding: 0; }
  .card, .panel { box-shadow: none; break-inside: avoid; }
  .receipt-head { background: white; }
  a { color: inherit; }
  .qr-page, .qr-print-page { max-width: none; }
  .qr-poster { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 258mm; margin: 0; padding: 8mm; border: 0; border-radius: 0; box-shadow: none; break-inside: avoid; }
  .qr-poster + .qr-poster { margin-top: 0; }
  .qr-poster-sheet { page-break-after: always; break-after: page; }
  .qr-poster-sheet:last-child { page-break-after: auto; break-after: auto; }
  .qr-church { margin-bottom: 3mm; font-size: 16pt; }
  .qr-poster h2 { font-size: 31pt; }
  .qr-location { margin-top: 2mm; font-size: 14pt; }
  .qr-instruction { margin: 8mm 0 5mm; font-size: 18pt; }
  .qr-code { width: 100mm; height: 100mm; max-width: none; }
  .qr-url { margin-top: 5mm; max-width: 175mm; font-size: 8pt; }
  .qr-contact { margin-top: 6mm; max-width: 175mm; font-size: 10pt; }
  .qr-preview-mark { margin-bottom: 6mm; border-color: black; color: black; font-size: 10pt; }
}
