:root {
  /* 色票依 QSign 第1頁規格書 §四 指定色號 */
  --bg: #F4F7FB;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --text: #1F2937;
  --text-2: #46536b;
  --muted: #667085;
  --line: #dde3ec;
  --line-strong: #c3ceda;
  --primary: #2878D0;
  --primary-2: #3f93da;
  --primary-dark: #165A9F;
  --teal: #18A999;
  --teal-soft: #e6f7f4;
  --green: #18A999;
  --green-soft: #e6f7f4;
  --orange: #DC6803;
  --orange-soft: #fdf1e6;
  --danger: #D92D20;
  --danger-soft: #fbeae8;
  --shadow: 0 16px 38px rgba(22, 77, 143, .12), 0 3px 10px rgba(22, 77, 143, .06);
  --shadow-sm: 0 8px 24px rgba(22, 77, 143, .09);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 11px;
  --max: 480px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 10%, rgba(30, 156, 218, .10), transparent 24rem),
    radial-gradient(circle at 10% 35%, rgba(19, 105, 219, .08), transparent 22rem),
    linear-gradient(180deg, #f9fcff 0%, var(--bg) 100%);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.svg-sprite { position: absolute; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; }

.app-shell { min-height: 100vh; padding-bottom: calc(26px + var(--safe-bottom)); }
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.93);
  border-bottom: 1px solid rgba(198, 216, 238, .75);
  backdrop-filter: blur(18px);
}
.topbar-inner {
  max-width: var(--max);
  min-height: 76px;
  margin: 0 auto;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-width: 104px; }
.brand-mark {
  width: 39px; height: 39px; border-radius: 50%; position: relative; flex: 0 0 auto;
  background: conic-gradient(from 205deg, #0ab1ba, #0f7dd7 60%, #0a4da4 72%, #0ab1ba);
  box-shadow: inset 0 0 0 7px #fff;
}
.brand-mark::after {
  content: ""; position: absolute; width: 16px; height: 7px; border-radius: 5px;
  right: -2px; bottom: 3px; background: #0b73ca; transform: rotate(42deg);
}
.brand-word { font-size: 29px; font-weight: 800; color: #0b2d66; letter-spacing: -.7px; }
.topbar-title { text-align: center; font-weight: 700; font-size: 15px; line-height: 1.3; color: #16396e; }
.topbar-action, .icon-btn {
  appearance: none; border: 0; background: transparent; color: var(--text); padding: 8px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
}
.topbar-action:hover, .icon-btn:hover { background: #eef5ff; }
.back-brand { display: inline-flex; align-items: center; gap: 1px; min-width: 132px; }
.back-brand .brand { min-width: 94px; }
.back-brand .brand-mark { width: 34px; height: 34px; box-shadow: inset 0 0 0 6px #fff; }
.back-brand .brand-word { font-size: 25px; }
.topbar-action .icon, .icon-btn .icon { width: 25px; height: 25px; }
.blue-brand { display: inline-flex; align-items: center; gap: 7px; min-width: 104px; justify-content: flex-end; }
.blue-mark { width: 29px; height: 34px; border-radius: 9px 16px 9px 16px; background: linear-gradient(135deg, #27a9e8, #064fc4 60%, #0c78d8); transform: skewY(-8deg); }
.blue-copy { line-height: 1.1; text-align: left; }
.blue-copy strong { display: block; font-size: 14px; color: #0b4aa0; }
.blue-copy small { display: block; font-size: 7.5px; color: #55729c; margin-top: 3px; white-space: nowrap; }

.page { max-width: var(--max); margin: 0 auto; padding: 18px 16px 0; }
.page.with-sticky { padding-bottom: 118px; }
.card {
  background: var(--surface);
  border: 1px solid rgba(197, 216, 239, .72);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.section-title { margin: 0 0 6px; font-size: 28px; line-height: 1.28; letter-spacing: -.4px; }
.section-subtitle { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.7; }
.section-heading { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 24px; line-height: 1.25; }
.section-heading .heading-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #165A9F, #2878D0); box-shadow: 0 8px 18px rgba(22,90,159,.25); }
.section-heading .icon { width: 26px; height: 26px; }

.btn {
  min-height: 54px;
  border-radius: 14px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--primary);
  font-weight: 750;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: #7ca9df; box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn-primary { color: #fff; border-color: transparent; background: linear-gradient(110deg, var(--primary-dark), var(--primary), var(--primary-2)); box-shadow: 0 10px 22px rgba(4, 93, 210, .25); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(4, 93, 210, .32); }
.btn-teal { color: #fff; border-color: transparent; background: linear-gradient(110deg, #049a88, #13b9a5); }
.btn-danger-outline { color: var(--danger); border-color: #f4aaaa; }
.btn-disabled, .btn:disabled { cursor: not-allowed; color: #8f9bad; background: #e8edf4; border-color: #d9e0ea; box-shadow: none; transform: none; }
.btn-full { width: 100%; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-stack { display: grid; gap: 10px; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.status-green { color: #07815d; background: #eaf9f3; border: 1px solid #85d7bd; }
.status-solid-green { color: #fff; background: linear-gradient(120deg, #0da879, #00b28e); }
.status-orange { color: #d66c00; background: #fff5e7; border: 1px solid #f4bb73; }
.status-red { color: #d73a3a; background: #fff0f0; border: 1px solid #ef9b9b; }
.status-gray { color: #7e8da2; background: #f0f3f7; border: 1px solid #d5dde8; }

.event-hero { overflow: hidden; }
.event-hero-image { width: 100%; aspect-ratio: 835/345; object-fit: cover; }
.event-hero-body { padding: 19px 20px 20px; }
.event-title { margin: 0; font-size: clamp(25px, 7vw, 33px); line-height: 1.22; letter-spacing: .3px; }
.event-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; color: #173d72; font-weight: 600; }
.meta-item { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.meta-item .icon { color: var(--teal); }
.deadline-row { margin-top: 16px; padding: 12px 13px; background: #f7fbff; border: 1px solid var(--line); border-radius: 13px; display: grid; gap: 9px; }
.deadline-item { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); }
.deadline-item .icon { color: var(--primary); }

.login-card { padding: 24px 20px; }
.login-head { display: flex; align-items: center; gap: 14px; }
.login-copy h2 { margin: 0 0 4px; font-size: 25px; }
.login-copy p { margin: 0; font-size: 13px; color: var(--muted); }
.form-grid { display: grid; gap: 18px; margin-top: 22px; }
.field label { display: block; font-weight: 750; margin-bottom: 8px; }
.input-wrap { position: relative; }
.input-wrap .input-icon { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: #7589a6; width: 21px; height: 21px; }
.input-wrap input {
  width: 100%; height: 56px; border-radius: 13px; border: 1px solid var(--line-strong); background: #fff; padding: 0 48px 0 48px; color: var(--text); outline: none; font-size: 16px; transition: border .18s, box-shadow .18s;
}
.input-wrap input::placeholder { color: #9cabc0; }
.input-wrap input:focus { border-color: #4d91df; box-shadow: 0 0 0 4px rgba(32, 120, 219, .12); }
.eye-btn { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); }
.form-error { min-height: 18px; margin: 5px 0 -6px; color: var(--danger); font-size: 12px; }
.help-box { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; }
.help-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #0a9eb4; background: #eafafc; }
.help-icon .icon { width: 24px; height: 24px; }
.help-copy strong { font-size: 13px; }
.help-links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 12px; color: #155ec0; font-size: 12px; }
.help-links a { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.privacy { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.privacy .icon { color: #5f7392; }
.privacy-link { margin-top: 7px; display: inline-flex; align-items: center; gap: 4px; color: #0b59b8; font-weight: 700; text-decoration: none; }
.footer { max-width: var(--max); margin: 24px auto 0; text-align: center; font-size: 12px; color: #597292; }
.footer strong { color: #0b5db6; }

.user-strip { max-width: var(--max); margin: 0 auto; padding: 10px 18px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); background: rgba(255,255,255,.88); }
.user-greet { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.user-greet .icon { width: 28px; height: 28px; }
.header-actions { display: flex; gap: 2px; }

.compact-event { padding: 12px; display: grid; grid-template-columns: 116px 1fr; gap: 14px; align-items: center; }
.compact-event img { width: 116px; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; }
.compact-event h1 { font-size: 20px; margin: 0 0 10px; line-height: 1.25; }
.compact-event .event-meta { margin-top: 0; gap: 7px; display: grid; }
.compact-event .meta-item { font-size: 11.5px; }
.compact-event .status-pill { margin-top: 8px; }

.status-card { padding: 22px 18px; }
.status-card-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.user-id { margin-top: 10px; display: flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 650; }
.success-strip { margin-top: 18px; padding: 12px 13px; display: flex; align-items: center; gap: 9px; color: #0c8a63; background: var(--green-soft); border: 1px solid #b7e8d5; border-radius: 12px 12px 0 0; font-size: 14px; font-weight: 700; }
.detail-list { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; padding: 5px 14px; }
.detail-row { min-height: 50px; display: grid; grid-template-columns: 27px minmax(108px, 1fr) 1.45fr; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); font-size: 13px; }
.detail-row:last-child { border-bottom: 0; }
.detail-row .icon { color: var(--primary); }
.detail-label { font-weight: 700; }
.detail-value { color: #234371; text-align: left; }
.detail-row.warning .icon, .detail-row.warning .detail-value { color: #ef4c28; }
.status-actions { margin-top: 18px; }
.contact-card { padding: 18px; display: grid; grid-template-columns: 48px 1fr; gap: 13px; align-items: start; }
.contact-card h3 { margin: 0 0 7px; font-size: 16px; }
.contact-card p { margin: 3px 0; color: var(--text-2); font-size: 12px; line-height: 1.55; }
.contact-inline { display: flex; flex-wrap: wrap; gap: 8px 13px; margin-top: 7px; }
.contact-inline a { display: inline-flex; align-items: center; gap: 5px; color: #0f5fc3; text-decoration: none; }

.countdown-card { margin-top: 16px; padding: 14px; display: block; }
.countdown-card h1 { margin: 0 0 8px; font-size: 18px; }
.countdown-values { display: flex; justify-content: space-around; gap: 9px; margin-top: 12px; padding: 10px 12px; background: #f7fbff; border: 1px solid var(--line); border-radius: 13px; }
.countdown-unit { min-width: 42px; text-align: center; }
.countdown-unit strong { display: block; font-size: 24px; line-height: 1; }
.countdown-unit span { font-size: 10px; color: var(--muted); }
.filters { margin: 17px 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.select-wrap { position: relative; }
.select-wrap .icon { position: absolute; top: 50%; left: 13px; transform: translateY(-50%); color: #5f7595; pointer-events: none; }
.select-wrap select { width: 100%; height: 48px; appearance: none; padding: 0 34px 0 42px; border: 1px solid var(--line-strong); border-radius: 13px; background: #fff; color: var(--text); outline: none; font-weight: 650; }
.select-wrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid #597292; border-bottom: 2px solid #597292; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.session-list { display: grid; gap: 12px; }
.session-card { padding: 15px; display: grid; grid-template-columns: 84px 1fr; gap: 13px; align-items: stretch; transition: border-color .18s, box-shadow .18s, transform .18s; }
.session-card.selected { border-color: #4a8fe7; box-shadow: 0 0 0 2px rgba(31, 118, 222, .13), var(--shadow); }
.session-card[hidden] { display: none; }
.session-date { background: linear-gradient(180deg, #edf6ff, #f7fbff); border-radius: 14px; display: grid; place-items: center; align-content: center; text-align: center; padding: 12px 8px; color: #0d3471; }
.session-date strong { font-size: 27px; line-height: 1; }
.session-date b { font-size: 16px; margin-top: 6px; }
.session-date .icon { margin-top: 10px; color: #1471d0; }
.session-body { min-width: 0; }
.session-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.session-info { display: grid; gap: 6px; color: #496486; font-size: 12px; }
.session-info span { display: flex; align-items: center; gap: 7px; }
.session-stat { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 7px; color: #596f90; font-size: 11px; }
.session-stat strong { display: block; margin-top: 3px; color: var(--text); font-size: 18px; }
.remaining.low strong { color: var(--danger); }
.remaining.warn strong { color: var(--orange); }
.session-action { margin-top: 11px; display: grid; justify-items: end; }
.session-action .btn { min-height: 42px; padding-inline: 16px; font-size: 14px; }
.sticky-choice {
  position: fixed; left: 50%; bottom: calc(10px + var(--safe-bottom)); transform: translateX(-50%); z-index: 35;
  width: min(calc(100% - 20px), 460px); padding: 12px 13px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 18px 45px rgba(12,61,124,.23); backdrop-filter: blur(18px);
}
.choice-copy { display: grid; grid-template-columns: 39px 1fr; gap: 10px; align-items: center; }
.choice-check { width: 39px; height: 39px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; }
.choice-copy small { color: var(--muted); }
.choice-copy strong { display: block; font-size: 16px; margin-top: 2px; }
.sticky-choice .btn { min-height: 48px; font-size: 14px; padding-inline: 14px; }
.empty-state { padding: 30px 18px; text-align: center; color: var(--muted); }

.steps { max-width: var(--max); margin: 0 auto; padding: 14px 18px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.step { display: flex; align-items: center; gap: 6px; min-width: 0; color: #667f9f; font-size: 12px; font-weight: 700; }
.step-number { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #edf4fc; border: 1px solid #cbdcf0; color: #35567f; }
.step.active { color: var(--primary); }
.step.active .step-number { color: #fff; border-color: var(--primary); background: var(--primary); }
.step.done .step-number { color: #fff; border-color: var(--teal); background: var(--teal); }
.step-arrow { color: #a4b6ca; }
.confirm-title { display: flex; align-items: center; gap: 14px; margin-bottom: 17px; }
.big-check { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #08a887, #25c5a4); box-shadow: 0 10px 22px rgba(6,165,134,.22); }
.big-check .icon { width: 29px; height: 29px; }
.confirm-title h1 { margin: 0; font-size: 28px; }
.confirm-title p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.selected-card { padding: 19px; }
.card-title { margin: 0 0 15px; display: flex; align-items: center; gap: 9px; font-size: 20px; }
.card-title .icon { color: var(--primary); }
.selected-event-head { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; }
.selected-event-head img { width: 132px; aspect-ratio: 4/3; object-fit: cover; border-radius: 13px; }
.selected-event-head h2 { margin: 0; font-size: 19px; line-height: 1.35; }
.info-table { margin-top: 14px; }
.info-line { min-height: 44px; display: grid; grid-template-columns: 26px 1fr 1.45fr; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.info-line:last-child { border-bottom: 0; }
.info-line .icon { color: var(--primary); }
.person-card { padding: 17px 19px; }
.person-row { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.notice { margin-top: 14px; padding: 15px 16px; border-radius: 14px; border: 1px solid #f1c77f; background: linear-gradient(180deg, #fff9ef, #fff6e6); color: #6f4a13; }
.notice h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; color: #c76900; font-size: 17px; }
.notice ul { margin: 0; padding-left: 20px; font-size: 12px; line-height: 1.75; }
.info-grid { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-card { padding: 16px; }
.mini-card h3 { margin: 0 0 11px; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.mini-card h3 .icon { color: var(--primary); }
.mini-card p { margin: 6px 0; font-size: 11.5px; color: var(--text-2); line-height: 1.55; }

.success-hero { text-align: center; padding: 28px 12px 17px; position: relative; overflow: hidden; }
.success-icon { width: 86px; height: 86px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #20c592, #058858); box-shadow: 0 14px 30px rgba(10,155,103,.25); position: relative; z-index: 2; }
.success-icon .icon { width: 48px; height: 48px; }
.success-hero h1 { margin: 14px 0 5px; color: #06946b; font-size: 33px; }
.success-hero p { margin: 0; color: var(--text-2); }
.confetti { position: absolute; width: 9px; height: 18px; border-radius: 2px; transform: rotate(24deg); opacity: .9; }
.c1 { left: 8%; top: 28px; background: #178bdd; }
.c2 { left: 20%; top: 68px; background: #12af7c; transform: rotate(-25deg); }
.c3 { right: 10%; top: 37px; background: #f2b51c; transform: rotate(42deg); }
.c4 { right: 22%; top: 80px; background: #ef6d86; transform: rotate(-34deg); }
.c5 { left: 12%; top: 128px; background: #edb313; transform: rotate(65deg); }
.c6 { right: 7%; top: 138px; background: #1687d5; transform: rotate(5deg); }
.progress-track { margin: 21px 10px 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.progress-track::before { content: ""; position: absolute; top: 15px; left: 12.5%; right: 12.5%; height: 2px; background: #25b68d; }
.progress-step { position: relative; z-index: 1; text-align: center; font-size: 10.5px; font-weight: 700; }
.progress-dot { width: 31px; height: 31px; margin: 0 auto 7px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #14a97d; }
.progress-dot .icon { width: 17px; height: 17px; }
.success-card { padding: 19px; }
.success-card .detail-list { border: 0; padding: 0; }
.success-card .detail-row { grid-template-columns: 27px minmax(104px, .9fr) 1.5fr; }
.success-actions { margin-top: 16px; }
.reminder-card { padding: 17px; border-color: #ffb0b0; background: linear-gradient(180deg, #fff, #fff7f7); }
.reminder-card h3 { margin: 0 0 7px; color: #c83f3f; display: flex; align-items: center; gap: 8px; }
.reminder-card p { margin: 4px 0; color: #6e5360; font-size: 12px; line-height: 1.6; }
.reminder-card strong { color: var(--danger); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(9, 28, 55, .38); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { position: absolute; right: 0; top: 0; height: 100%; width: min(82vw, 330px); background: #fff; box-shadow: -16px 0 40px rgba(8, 33, 72, .18); transform: translateX(105%); transition: transform .24s ease; padding: 20px; }
.drawer-backdrop.open .drawer { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-nav { margin-top: 22px; display: grid; gap: 8px; }
.drawer-nav button { width: 100%; min-height: 49px; padding: 0 14px; border: 0; border-radius: 12px; background: #f5f9ff; color: var(--text); text-align: left; font-weight: 700; }
.drawer-nav button:hover { background: #e9f3ff; color: var(--primary); }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #102f5c; color: #fff; border-radius: 999px; padding: 11px 17px; font-size: 13px; box-shadow: 0 12px 30px rgba(0,0,0,.18); transition: opacity .2s, transform .2s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 720px) {
  body { padding: 26px 0; }
  .app-shell { width: 520px; margin: 0 auto; background: rgba(255,255,255,.18); border-radius: 32px; overflow: hidden; box-shadow: 0 30px 80px rgba(20,65,124,.18); }
  .app-topbar { border-radius: 32px 32px 0 0; }
}

@media (max-width: 390px) {
  .topbar-inner { padding-inline: 13px; }
  .brand { min-width: 90px; }
  .brand-mark { width: 34px; height: 34px; box-shadow: inset 0 0 0 6px #fff; }
  .brand-word { font-size: 25px; }
  .blue-brand { min-width: 86px; }
  .blue-copy strong { font-size: 12px; }
  .blue-copy small { display: none; }
  .page { padding-inline: 12px; }
  .event-hero-body { padding-inline: 16px; }
  .event-title { font-size: 26px; }
  .section-title { font-size: 25px; }
  .section-heading { font-size: 21px; }
  .compact-event { grid-template-columns: 100px 1fr; gap: 10px; }
  .compact-event img { width: 100px; }
  .compact-event h1 { font-size: 17px; }
  .detail-row { grid-template-columns: 24px minmax(100px, 1fr) 1.3fr; }
  .session-card { grid-template-columns: 75px 1fr; padding: 13px; }
  .session-date strong { font-size: 24px; }
  .sticky-choice { grid-template-columns: 1fr; }
  .sticky-choice .btn { width: 100%; }
  .page.with-sticky { padding-bottom: 150px; }
  .selected-event-head { grid-template-columns: 105px 1fr; }
  .selected-event-head img { width: 105px; }
  .btn-row, .info-grid { grid-template-columns: 1fr; }
  .steps { padding-inline: 12px; }
  .step { font-size: 10px; }
  .step-number { width: 25px; height: 25px; }
}

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

@media print {
  body { background: #fff; }
  .app-topbar, .footer, .success-actions, .contact-card, .reminder-card, .drawer-backdrop { display: none !important; }
  .app-shell { box-shadow: none; width: 100%; }
  .page { max-width: none; }
  .card { box-shadow: none; break-inside: avoid; }
}
