:root {
  --mack-red: #e4022d;
  --page-bg: #f5f6f8;
  --surface-main: #fff;
  --surface-soft: #fafbfc;
  --surface-soft-2: #fef3f5;
  --border-soft: #e5e7ec;
  --border-strong: #cbd0d9;
  --shadow-soft: 0 4px 20px rgb(24 32 48 / 3%);
  --shadow-card: 0 3px 12px rgb(24 32 48 / 3%);
  --muted: #626b7a;
  --text-main: #222936;
  --content-gap: clamp(16px, 2vw, 28px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--page-bg); color: var(--text-main); font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.5; }
body.modal-open, body.dialog-open { overflow: hidden; }
body.waiting-active .container { pointer-events: none; user-select: none; }
body.waiting-active .toast-region { visibility: hidden; }
.overlay.wait-overlay { z-index: 11000; background: rgb(24 32 48 / 72%); backdrop-filter: blur(4px); }
.overlay-card.wait-card { width: min(480px, 100%); text-align: center; border-top: 4px solid var(--mack-red); }
.wait-card:focus { outline: none; }
.wait-symbol { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: #fff1f4; color: var(--mack-red); font-size: 40px; line-height: 1; }
.wait-card h2 { margin: 8px 0 14px; font-size: clamp(22px, 4vw, 27px); }
.wait-card > p { overflow-wrap: anywhere; }
#waitDialogStatus { color: #4c586a; font-size: 14px; line-height: 1.6; }
.wait-clock { margin: 22px 0; padding: 18px 8px; border: 1px solid #f0d7de; border-radius: 12px; background: #fff6f8; color: #b60025; font-size: clamp(40px, 12vw, 58px); font-weight: 750; line-height: 1.2; letter-spacing: .025em; font-variant-numeric: tabular-nums; }
.wait-release-time { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border-soft); color: #697385; font-size: 12px; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: rgb(228 2 45 / 12%); touch-action: manipulation; }
button { -webkit-appearance: none; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #3166cb; outline-offset: 4px; }
input:focus-visible, textarea:focus-visible { outline: 3px solid rgb(49 102 203 / 26%); outline-offset: 1px; }
a { color: #be0026; text-underline-offset: 3px; }
a:hover { color: #8c001c; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 0; font-size: clamp(22px, 2.3vw, 31px); line-height: 1.2; font-weight: 750; letter-spacing: -.035em; }
h2 { margin: 0; color: var(--text-main); font-size: clamp(19px, 1.7vw, 23px); font-weight: 700; line-height: 1.3; letter-spacing: -.025em; }
h3 { margin: 0 0 12px; color: var(--text-main); font-size: 18px; line-height: 1.35; }
img { max-width: 100%; }
.container { width: 100%; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.header-bar { display: grid; grid-template-columns: auto minmax(190px, 1fr) auto; align-items: center; gap: clamp(20px, 3vw, 48px); min-height: 112px; padding: 18px clamp(20px, 3vw, 56px); background: #fff; border-top: 4px solid var(--mack-red); border-bottom: 1px solid var(--border-soft); }
.brand-block { display: flex; align-items: center; padding-right: clamp(20px, 3vw, 48px); border-right: 1px solid var(--border-soft); }
.brand-logo { display: block; width: clamp(160px, 14vw, 210px); height: auto; }
.header-title { min-width: 0; }
.eyebrow, .section-kicker { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow { margin-bottom: 5px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.header-actions button, .header-actions a { width: auto; min-width: 0; margin: 0; font-size: 13px; padding: 10px 13px; white-space: nowrap; }
.header-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; text-decoration: none; }
.header-actions button span { display: inline-block; margin-right: 5px; font-size: 18px; vertical-align: -1px; }
main { flex: 1; width: 100%; padding: clamp(18px, 2.4vw, 36px) clamp(16px, 3vw, 56px) 28px; }
.context-strip { display: grid; grid-template-columns: 1fr 1fr; gap: var(--content-gap); margin-bottom: 24px; }
.context-card { min-width: 0; padding: 0 0 0 16px; border-left: 3px solid #d9dce3; }
.context-card-accent { border-color: var(--mack-red); }
.context-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.context-value { display: block; font-size: 18px; line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; }
.context-value-compact { font-size: 16px; }
.context-inline-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.context-mini { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; color: #596170; background: #fff; border: 1px solid var(--border-soft); border-radius: 5px; font-size: 11px; overflow-wrap: anywhere; }
.context-mini strong { color: var(--text-main); font-weight: 600; }
.journey { margin-bottom: 18px; border: 1px solid var(--border-soft); border-radius: 14px; background: #fff; overflow: hidden; }
.journey-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.journey-steps li { display: flex; gap: 12px; align-items: center; min-width: 0; padding: 16px 20px; border-right: 1px solid var(--border-soft); color: var(--muted); }
.journey-steps li:last-child { border: 0; }
.journey-steps strong { display: block; font-size: 13px; }
.journey-steps small { display: block; font-size: 11px; margin-top: 2px; }
.step-number { flex: 0 0 32px; display: inline-flex; justify-content: center; align-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #dfe2e8; background: #f5f6f8; color: #717a87; font-weight: 700; font-size: 13px; }
.journey-steps li[aria-current="step"], .journey-steps li.is-current, .journey-steps li.is-active { color: #b40024; background: #fff5f7; }
.journey-steps li[aria-current="step"] .step-number, .journey-steps li.is-current .step-number, .journey-steps li.is-active .step-number { border-color: var(--mack-red); color: #fff; background: var(--mack-red); }
.journey-steps li.is-complete .step-number, .journey-steps li.is-done .step-number { color: #157347; border-color: #c5e4d3; background: #eaf6ef; }
.journey-steps li.is-complete, .journey-steps li.is-done { color: #266a47; }
.next-step { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding: 16px 20px; border: 1px solid #efdae0; border-radius: 14px; background: #fff; }
.presence-mark { flex: 0 0 40px; }
.next-step-copy { flex: 1; min-width: 0; }
.next-step h2 { font-size: 17px; }
.next-step p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.stay-countdown { flex-shrink: 0; max-width: 44%; padding: 10px 14px; border-radius: 10px; border: 1px solid #f4d4dc; background: #fff5f7; color: #ae0022; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--content-gap); align-items: start; }
.card { min-width: 0; padding: clamp(18px, 2vw, 28px); border: 1px solid var(--border-soft); border-radius: 16px; background: #fff; box-shadow: var(--shadow-card); }
.section-heading { margin-bottom: 18px; }
.section-kicker { margin-bottom: 6px; }
.section-intro { margin-bottom: 20px; }
.muted { color: var(--muted); font-size: 13px; }
.canvas-session-help { margin-top: 14px; padding: 14px; border: 1px solid var(--border-soft); border-radius: 10px; background: #fff; }
.canvas-session-help p { margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.canvas-session-help a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 10px; text-decoration: none; text-align: center; }
.ok { color: #167341; font-weight: 600; }
.error { color: #c00028; font-weight: 600; }
.row { margin-top: 12px; }
#map { width: 100%; height: clamp(260px, 38vh, 450px); border: 1px solid var(--border-soft); border-radius: 12px; z-index: 0; background: #eef0f3; }
.location-status { padding: 10px 12px; background: var(--surface-soft); border-radius: 8px; }
.location-details { margin: 18px 0 4px; }
.location-details > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f1f4; font-size: 12px; }
.location-details dt { color: var(--muted); }
.location-details dd { margin: 0; overflow-wrap: anywhere; }
.location-hint { margin: 14px 0 0; font-size: 12px; }
label { display: block; margin-top: 16px; color: #384252; font-size: 13px; font-weight: 650; }
.required-label, .optional-label { margin-left: 5px; color: var(--muted); font-size: 10px; font-weight: 400; white-space: nowrap; }
input, textarea, button { width: 100%; margin-top: 6px; padding: 11px 13px; border-radius: 9px; border: 1px solid var(--border-strong); font-size: 14px; }
input, textarea { min-width: 0; min-height: 46px; color: var(--text-main); background: #fff; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #87909d; opacity: 1; }
input:focus, textarea:focus { border-color: #7e94bd; }
input:disabled, textarea:disabled { color: #626b7a; background: #f5f6f8; cursor: default; opacity: 1; -webkit-text-fill-color: #626b7a; }
input[readonly] { background: #f8f9fb; }
textarea { min-height: 88px; resize: vertical; }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-fields label { margin-top: 0; }
.field-help { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.field-help:empty { display: none; }
button { min-height: 44px; margin-top: 16px; border-color: var(--mack-red); background: var(--mack-red); color: #fff; font-weight: 650; line-height: 1.4; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
button:hover { background: #c60027; border-color: #c60027; box-shadow: 0 3px 10px rgb(198 0 39 / 12%); }
button:active { transform: translateY(1px); }
button:disabled { color: #fff; background: #d46c80; border-color: #d46c80; cursor: not-allowed; box-shadow: none; }
.ghost-btn, .tab-btn { color: #3e4858; border: 1px solid var(--border-strong); background: #fff; box-shadow: none; }
.ghost-btn:hover, .tab-btn:hover { color: #ac0023; background: #fff5f7; border-color: #e3b9c2; box-shadow: none; }
.ghost-btn:disabled { color: #828a96; background: #f5f6f8; border-color: var(--border-soft); }
.tab-active { color: #fff; background: var(--mack-red); border-color: var(--mack-red); }
.btn-content { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-spinner { width: 16px; height: 16px; border: 2px solid rgb(255 255 255 / 40%); border-top-color: #fff; border-radius: 50%; animation: btn-spin .7s linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
.submit-area { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.validation-line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 12px; }
.validation-line .context-label { margin: 0; }
#submitBtn { min-height: 48px; margin-top: 12px; font-size: 15px; }
#submitStatus:empty, #adminStatus:empty { display: none; }
#submitStatus:not(:empty), #adminStatus:not(:empty), #storedAttachmentsSummary:not([hidden]) { padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: 9px; background: var(--surface-soft); font-size: 13px; overflow-wrap: anywhere; }
.file-input-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.attachment-picker { margin-top: 7px; padding: 14px; border: 1px dashed #c8cdd7; border-radius: 10px; background: #fcfcfd; }
.attachment-picker-top { display: flex; gap: 12px; align-items: center; }
.attachment-trigger { width: auto; flex-shrink: 0; margin: 0; font-size: 12px; }
.attachment-picker-copy { min-width: 0; }
.attachment-picker-copy strong { display: block; color: #4b5565; font-size: 12px; font-weight: 600; }
.attachment-picker-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.attachment-summary { margin-top: 12px; font-size: 12px; }
.attachment-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 12px; }
.attachment-preview-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--border-soft); border-radius: 10px; background: #fff; }
.attachment-preview-media { display: flex; justify-content: center; align-items: center; height: 98px; color: #a82e47; background: #f7eef1; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.attachment-preview-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.attachment-preview-body { padding: 10px; }
.attachment-preview-name { color: #3e4858; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.attachment-preview-meta { margin-top: 6px; color: var(--muted); font-size: 11px; }
.attachment-remove-btn { position: absolute; top: 5px; right: 5px; width: 36px; height: 36px; min-height: 36px; margin: 0; padding: 0; border: 1px solid #ebcbd1; border-radius: 50%; color: #b40023; background: #fff; font-size: 20px; box-shadow: 0 1px 4px rgb(0 0 0 / 10%); }
.attachment-remove-btn:hover { color: #fff; background: #b40023; }
.receipt-card { margin-bottom: 22px; border-top: 3px solid #24804c; }
.receipt-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.receipt-actions button { width: auto; min-width: 190px; }
#receiptContent, #receiptOverlayContent { overflow-wrap: anywhere; }
.admin-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.admin-toolbar p { margin: 8px 0 0; }
.admin-actions { display: flex; gap: 8px; flex-shrink: 0; }
.admin-actions button { width: auto; margin-top: 0; font-size: 12px; }
.admin-table-wrap { width: 100%; margin-top: 16px; overflow-x: auto; overscroll-behavior-x: contain; }
.admin-table { width: 100%; min-width: 1200px; border: 1px solid var(--border-soft); border-collapse: separate; border-spacing: 0; border-radius: 10px; background: #fff; font-size: 12px; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.admin-table th { color: #5e6776; background: #f8f9fb; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.admin-table tbody tr:nth-child(even) td { background: #fcfcfd; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table td ul { padding-left: 16px; }
.admin-table td a { overflow-wrap: anywhere; }
.admin-mobile-list { display: none; margin-top: 16px; }
.admin-mobile-card { padding: 16px; border: 1px solid var(--border-soft); border-radius: 12px; background: #fff; }
.admin-mobile-card + .admin-mobile-card { margin-top: 12px; }
.admin-mobile-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.admin-mobile-title { display: block; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.admin-mobile-subtitle { margin-top: 5px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.admin-status-pill { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid #d6e8dc; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.admin-status-pill.is-finished { color: #176f3d; border-color: #c5e4d3; background: #eaf6ef; }
.admin-status-pill.is-blocked { color: #9c2440; border-color: #f0d4dc; background: #fff4f6; }
.admin-mobile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.admin-mobile-item { min-width: 0; padding: 10px; border-radius: 7px; background: #f8f9fb; }
.admin-mobile-item-full { grid-column: 1 / -1; }
.admin-mobile-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.admin-mobile-value { color: #384252; font-size: 13px; overflow-wrap: anywhere; }
.admin-mobile-value ul { margin: 6px 0 0; padding-left: 16px; }
.cloud-preview-trigger { width: auto; min-height: 36px; margin: 0; min-width: 0; padding: 8px 10px; max-width: 100%; text-align: left; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
.app-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px clamp(16px, 3vw, 56px); border-top: 1px solid var(--border-soft); color: #7b8390; font-size: 11px; }
.app-footer > span:first-child { font-weight: 700; }
.overlay { position: fixed; inset: 0; z-index: 9999; display: flex; justify-content: center; align-items: center; padding: 24px; background: rgb(20 27 41 / 68%); overscroll-behavior: contain; }
.overlay-card { width: min(860px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 28px; overflow: auto; border-radius: 18px; background: #fff; box-shadow: 0 20px 70px rgb(0 0 0 / 25%); }
.modal-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.icon-btn { flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; font-size: 26px; line-height: 1; }
.overlay-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.overlay-actions button { width: auto; flex: 1 1 160px; margin: 0; }
.guide-card { width: min(660px, 100%); }
.guide-steps { display: grid; gap: 20px; margin: 24px 0 0; padding: 0; list-style: none; }
.guide-steps li { display: flex; gap: 14px; }
.guide-steps .step-number { border-color: #f2cdd5; background: #fff3f6; color: #bc0025; }
.guide-steps h3 { margin: 2px 0 5px; font-size: 14px; }
.guide-steps p { margin: 0; color: var(--muted); font-size: 13px; }
.cloud-preview-card { display: flex; flex-direction: column; width: 100%; height: calc(100vh - 48px); height: calc(100dvh - 48px); max-height: none; overflow: hidden; padding: 20px 24px; }
.cloud-preview-card .modal-heading { flex-shrink: 0; margin-bottom: 8px; }
.cloud-preview-card h2 { overflow-wrap: anywhere; }
.cloud-preview-help { flex-shrink: 0; margin-bottom: 14px; font-size: 12px; }
#cloudPreviewFrame { display: block; width: 100%; flex: 1; min-height: 0; border: 1px solid var(--border-soft); border-radius: 8px; background: #f5f6f8; }
.cloud-preview-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 12px; font-size: 12px; }
.cloud-preview-footer .muted { font-size: 12px; }
.toast-region { position: fixed; z-index: 11000; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); width: min(380px, calc(100% - 32px)); display: grid; gap: 10px; pointer-events: none; }
.toast { position: relative; padding: 14px 42px 14px 16px; border: 1px solid var(--border-soft); border-left: 4px solid var(--mack-red); border-radius: 10px; color: #30394a; background: #fff; box-shadow: 0 8px 32px rgb(20 27 41 / 16%); font-size: 13px; overflow-wrap: anywhere; pointer-events: auto; }
.toast-success, .toast.is-success, .toast[data-type="success"] { border-left-color: #24804c; }
.toast-error, .toast.is-error, .toast[data-type="error"] { border-left-color: #c00028; }
.toast-info { border-left-color: #3166cb; }
.toast button, .toast-close { position: absolute; top: 8px; right: 6px; width: 30px; min-height: 32px; height: 32px; margin: 0; padding: 0; border: 0; background: transparent; color: #5d6573; box-shadow: none; font-size: 20px; }
.skip-link { position: fixed; top: -70px; left: 16px; z-index: 12000; padding: 10px 16px; border-radius: 6px; color: #fff; background: #222936; }
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript-notice { position: fixed; inset: auto 0 0; z-index: 15000; padding: 16px; color: #fff; background: #a90022; text-align: center; }
:fullscreen { background: var(--page-bg); overflow: auto; }
.expanded-view .header-bar { min-height: 84px; padding-top: 10px; padding-bottom: 10px; }
.expanded-view .brand-logo { max-width: 150px; }
.expanded-view .eyebrow, .expanded-view .app-footer { display: none; }
.expanded-view main { padding-top: 16px; padding-bottom: 16px; }
.expanded-view .context-strip { margin-bottom: 16px; }
@media (min-width: 1800px) {
  .header-bar { min-height: 128px; }
  .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #map { height: clamp(380px, 47vh, 640px); }
}
@media (max-width: 1150px) {
  .header-bar { grid-template-columns: auto minmax(0, 1fr); gap: 16px 24px; }
  .header-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 12px; border-top: 1px solid #f0f1f4; }
  .header-title { text-align: right; }
  .form-fields { grid-template-columns: 1fr; gap: 16px; }
  .journey-steps li { padding: 14px; gap: 9px; }
  .attachment-picker-top { flex-wrap: wrap; }
  .location-details > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  #map { height: 280px; }
  .location-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .location-details > div:first-child { grid-column: 1 / -1; }
  .form-fields { grid-template-columns: 1fr 1fr; }
  .admin-table-wrap { display: none; }
  .admin-mobile-list { display: block; }
  .admin-toolbar { flex-wrap: wrap; }
  .admin-actions { width: 100%; flex-wrap: wrap; }
  .admin-actions button { flex: 1; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .header-bar { min-height: 0; padding: 14px 16px; gap: 12px; }
  .brand-block { padding-right: 12px; }
  .brand-logo { width: 138px; }
  .header-title { text-align: left; }
  h1 { font-size: 19px; }
  .eyebrow { font-size: 9px; }
  .header-actions { justify-content: stretch; gap: 6px; padding-top: 10px; }
  .header-actions button, .header-actions a { flex: 1 1 120px; padding: 8px; font-size: 12px; white-space: normal; text-align: center; }
  main { padding: 20px 12px 24px; }
  .context-strip { grid-template-columns: 1fr; gap: 16px; margin-bottom: 20px; }
  .context-value { font-size: 16px; }
  .context-value-compact { font-size: 14px; }
  .journey-steps li { flex-direction: column; gap: 6px; padding: 12px 4px; text-align: center; }
  .journey-steps strong { font-size: 10px; overflow-wrap: anywhere; }
  .journey-steps small { display: none; }
  .step-number { width: 28px; height: 28px; flex-basis: 28px; font-size: 12px; }
  .next-step { padding: 14px; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
  .next-step h2 { font-size: 15px; }
  .next-step p { font-size: 12px; }
  .presence-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .stay-countdown { flex-basis: calc(100% - 42px); max-width: none; margin-left: 42px; font-size: 14px; text-align: center; }
  .card { padding: 18px 16px; border-radius: 12px; }
  .section-kicker { font-size: 10px; }
  .section-heading { margin-bottom: 14px; }
  .form-fields { grid-template-columns: 1fr; }
  input, textarea, button { font-size: 16px; }
  .attachment-picker-top { align-items: stretch; }
  .attachment-trigger { width: 100%; }
  .attachment-picker-copy { width: 100%; }
  .attachment-picker-copy span { font-size: 12px; }
  .attachment-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .validation-line { align-items: flex-start; flex-direction: column; gap: 4px; }
  .admin-mobile-header { flex-wrap: wrap; }
  .admin-mobile-grid { grid-template-columns: 1fr; }
  .admin-mobile-item-full { grid-column: auto; }
  .receipt-actions button { width: 100%; }
  .overlay { padding: 12px; }
  .overlay-card { padding: 20px 16px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 14px; }
  .overlay-actions button { flex-basis: 100%; }
  .cloud-preview-overlay { padding: 0; }
  .cloud-preview-card { width: 100%; height: 100vh; height: 100dvh; max-height: none; padding: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom)); border-radius: 0; }
  .cloud-preview-card h2 { font-size: 17px; }
  .cloud-preview-help { font-size: 11px; }
  .cloud-preview-footer { font-size: 11px; }
  .app-footer { padding: 16px; font-size: 10px; }
}
@media (max-width: 360px) {
  .brand-logo { width: 115px; }
  h1 { font-size: 17px; }
  .header-actions button { font-size: 11px; }
  .attachment-preview-grid { grid-template-columns: 1fr; }
  .location-details { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  body { background: #fff; }
  .header-actions, .context-strip, .journey, .next-step, .grid, #adminPanel, .app-footer, .toast-region, .overlay, .skip-link, .receipt-actions { display: none !important; }
  main { padding: 16px 0; }
  .card { border: 0; box-shadow: none; padding: 0; }
  #receiptCard { display: block; }
  .header-bar { border-top: 0; padding: 0; }
}
