:root {
  --ink: #17251f;
  --muted: #718078;
  --paper: #f5f7f2;
  --card: #ffffff;
  --green: #16664a;
  --green-dark: #0e4d37;
  --mint: #dff1e7;
  --gold: #d89c3e;
  --danger: #bd4f45;
  --line: #e2e9e3;
  --shadow: 0 18px 48px rgba(27, 62, 46, .10);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% 0, #e6f3e9 0, transparent 32rem), var(--paper); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.app-shell { width: min(100%, 760px); min-height: 100vh; margin: 0 auto; padding: 0 18px 104px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 70px; padding-top: env(safe-area-inset-top); background: rgba(245,247,242,.88); backdrop-filter: blur(18px); }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 11px; color: white; background: var(--green); box-shadow: 0 7px 18px rgba(22,102,74,.24); }
.profile-button { border: 0; background: transparent; display: flex; gap: 8px; align-items: center; color: var(--muted); cursor: pointer; padding: 6px; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--mint); color: var(--green); font-size: 13px; font-weight: 700; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.hero { padding: 42px 4px 25px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
h1 { margin: 11px 0 12px; font-size: clamp(34px, 9vw, 58px); line-height: 1.05; letter-spacing: -.055em; }
.hero p { margin: 0; max-width: 570px; color: var(--muted); font-size: 16px; line-height: 1.75; }

.section-head { display: flex; align-items: end; justify-content: space-between; margin: 22px 0 14px; }
.section-head h2 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.section-head span { color: var(--muted); font-size: 13px; }
.event-list { display: grid; gap: 16px; }
.event-card { position: relative; overflow: hidden; display: grid; min-height: 230px; padding: 24px; border: 1px solid rgba(255,255,255,.7); border-radius: 26px; background: linear-gradient(145deg,#163e31,#1d6c51); color: white; box-shadow: var(--shadow); cursor: pointer; }
.event-card:nth-child(even) { background: linear-gradient(145deg,#3a352b,#766340); }
.event-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -75px; top: -90px; border-radius: 50%; border: 42px solid rgba(255,255,255,.07); }
.event-card .date-pill { justify-self: start; align-self: start; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); font-size: 12px; }
.event-card h3 { align-self: end; margin: 32px 0 7px; max-width: 85%; font-size: 28px; line-height: 1.12; letter-spacing: -.04em; }
.event-card p { margin: 0; color: rgba(255,255,255,.75); line-height: 1.6; }
.event-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font-size: 14px; }
.event-price { font-size: 22px; font-weight: 760; }
.event-price small { font-size: 12px; font-weight: 500; opacity: .7; }
.arrow-button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: white; color: var(--green-dark); font-size: 19px; }

.detail-poster { position: relative; margin: 8px -18px 0; overflow: hidden; background: #e9efea; }
.detail-poster img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; }
.detail-cover { position: relative; min-height: 285px; margin: 8px -18px 0; padding: 34px 24px; display: flex; flex-direction: column; justify-content: end; overflow: hidden; color: white; background: linear-gradient(140deg,#122f27,#247c5f); }
.detail-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(9,31,23,.76),transparent 72%); }
.detail-cover.with-poster { min-height: 0; margin-top: 0; padding: 24px; color: var(--ink); background: white; }
.detail-cover.with-poster::before { display: none; }
.detail-cover.with-poster .eyebrow { color: var(--green); }
.detail-cover.with-poster > p { color: var(--muted); }
.detail-cover > * { position: relative; }
.back { position: absolute; top: 16px; left: 20px; border: 0; width: 40px; height: 40px; border-radius: 50%; color: white; background: rgba(0,0,0,.18); backdrop-filter: blur(8px); cursor: pointer; }
.detail-cover h1 { margin: 10px 0 2px; font-size: clamp(35px, 10vw, 54px); }
.detail-content { position: relative; margin-top: -2px; background: var(--paper); border-radius: 0 0 26px 26px; padding: 26px 2px 12px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-tile { padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.75); }
.info-tile span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.info-tile strong { display: block; font-size: 15px; line-height: 1.4; }
.paid-checkin-card { margin: 0 0 16px; overflow: hidden; border: 1px solid #dce8df; border-radius: 24px; background: white; box-shadow: var(--shadow); }
.paid-status-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.paid-success { display: inline-flex; align-items: center; gap: 8px; color: var(--green-dark); font-size: 15px; font-weight: 780; }
.paid-success i { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: white; background: var(--green); font-size: 13px; }
.paid-state { padding: 6px 10px; border-radius: 999px; color: var(--green); background: var(--mint); font-size: 11px; font-weight: 750; }
.paid-progress-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 20px 20px 0; }
.paid-progress-head > div:first-child { min-width: 0; }
.paid-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.paid-progress-head > div:first-child strong { display: block; font-size: 19px; line-height: 1.3; }
.paid-progress-number { display: flex; flex: none; align-items: baseline; gap: 4px; color: var(--green-dark); }
.paid-progress-number strong { font-size: 38px; line-height: 1; letter-spacing: -.05em; }
.paid-progress-number span { color: var(--muted); font-size: 13px; font-weight: 650; }
.paid-progress-track { height: 10px; margin: 17px 20px 0; overflow: hidden; border-radius: 99px; background: #e9efea; }
.paid-progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .25s ease; }
.paid-scan-guide { display: flex; align-items: center; gap: 10px; margin: 18px 20px 0; padding: 13px 14px; border-radius: 14px; color: #36594a; background: #eef6f1; font-size: 13px; line-height: 1.55; }
.paid-scan-guide i { flex: none; color: var(--green); font-size: 22px; }
.paid-person { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 17px 20px; }
.paid-person span { min-width: 0; }
.paid-person small,.paid-person strong { display: block; }
.paid-person small { margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.paid-person strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.paid-secondary-actions { display: flex; align-items: center; border-top: 1px solid var(--line); }
.paid-secondary-actions a,.paid-secondary-actions button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border: 0; color: #4f6258; background: transparent; font-size: 12px; cursor: pointer; }
.paid-secondary-actions > * + * { border-left: 1px solid var(--line); }
.paid-secondary-actions i { color: var(--green); font-size: 16px; }
.inline-checkin { margin: 18px 0; padding: 18px; border: 1px solid #d7e6db; border-radius: 20px; background: #f0f7f2; }
.inline-checkin-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.inline-checkin-head > div > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.inline-checkin-head strong { display: flex; align-items: baseline; gap: 5px; color: var(--green-dark); font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.inline-checkin-head strong small { color: var(--muted); font-size: 13px; letter-spacing: 0; }
.checkin-remaining { padding: 6px 10px; border-radius: 999px; color: var(--green); background: white; font-size: 11px; font-weight: 700; }
.inline-checkin .paid-progress-track { margin: 13px 0 16px; background: #dce9df; }
.inline-scan-button { min-height: 52px; font-size: 16px; }
.inline-checkin > p { display: flex; align-items: flex-start; gap: 8px; margin: 13px 0 0; color: #486155; font-size: 12px; line-height: 1.6; }
.inline-checkin > p i { flex: none; margin-top: 2px; color: var(--green); font-size: 16px; }
.article { margin: 24px 0; padding: 23px; border-radius: 22px; background: white; box-shadow: 0 10px 35px rgba(27,62,46,.06); }
.article h2 { margin: 0 0 13px; font-size: 19px; }
.article p { margin: 0; white-space: pre-wrap; color: #53615a; line-height: 1.8; }
.notice { display: flex; gap: 12px; margin: 18px 0; padding: 16px; border-radius: 16px; background: #eef5ef; color: #43594d; font-size: 13px; line-height: 1.6; }
.notice.warning { background: #fff4df; color: #745b2d; }
.event-journey { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; margin: 16px 0 0; padding: 18px; border-radius: 20px; background: #173f32; color: white; }
.event-journey > div { min-width: 0; }
.event-journey > div > span { display: grid; place-items: center; width: 25px; height: 25px; margin-bottom: 10px; border-radius: 50%; color: var(--green-dark); background: #dff1e7; font-size: 11px; font-weight: 800; }
.event-journey strong,.event-journey small { display: block; }
.event-journey strong { font-size: 14px; }
.event-journey small { margin-top: 5px; color: rgba(255,255,255,.62); font-size: 10px; line-height: 1.45; }
.event-journey > i { color: rgba(255,255,255,.35); }
.scan-tip { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding: 12px; border-radius: 13px; color: #436153; background: #eef6f1; font-size: 12px; line-height: 1.55; }
.scan-tip i { margin-top: 2px; color: var(--green); font-size: 17px; }

.sticky-action { position: sticky; bottom: 77px; z-index: 12; display: flex; align-items: center; gap: 15px; margin: 24px -5px 0; padding: 11px 12px 11px 19px; border: 1px solid rgba(255,255,255,.72); border-radius: 22px; background: rgba(255,255,255,.9); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.sticky-action .price { flex: 1; }
.sticky-action .price span { display: block; color: var(--muted); font-size: 11px; }
.sticky-action .price strong { font-size: 23px; }
.sticky-action.checkin-action { border-color: #cfe2d5; }
.sticky-action.checkin-action .price strong { color: var(--green-dark); }
.sticky-action.checkin-action .button { min-width: 205px; }
.button { appearance: none; border: 0; border-radius: 15px; min-height: 48px; padding: 0 22px; color: white; background: var(--green); font-weight: 700; cursor: pointer; transition: .18s ease; }
.button:active { transform: scale(.98); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button.secondary { color: var(--green); background: var(--mint); }
.button.ghost { color: var(--ink); background: #f0f3f0; }
.button.danger { background: var(--danger); }
.button.full { width: 100%; }
.button.small { min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: 13px; }
.button i { margin-right: 5px; }
.scan-button { min-width: 118px; }

.page-title { padding: 34px 3px 16px; }
.page-title h1 { font-size: 38px; margin: 0 0 8px; }
.page-title p { color: var(--muted); margin: 0; }
.order-list { display: grid; gap: 14px; }
.order-card { padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 10px 34px rgba(27,62,46,.05); }
.order-head { display: flex; justify-content: space-between; gap: 15px; }
.order-head h3 { margin: 0 0 6px; font-size: 18px; }
.order-head p { margin: 0; color: var(--muted); font-size: 13px; }
.status { flex: none; align-self: start; padding: 6px 9px; border-radius: 999px; background: #edf1ee; color: #657169; font-size: 11px; font-weight: 700; }
.status.PAID, .status.SUCCESS, .status.COMPLETED { color: var(--green); background: var(--mint); }
.status.PENDING, .status.PENDING_REVIEW, .status.PROCESSING { color: #8a641e; background: #fff2d6; }
.status.REFUNDED, .status.REJECTED, .status.FAILED { color: var(--danger); background: #fae9e7; }
.progress-bar { height: 8px; margin: 19px 0 8px; overflow: hidden; border-radius: 99px; background: #edf1ed; }
.progress-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--green),#45a67e); }
.progress-copy { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.checkin-history { margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--line); }
.checkin-history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkin-history-head strong { font-size: 14px; }
.checkin-history-head span { color: var(--muted); font-size: 11px; }
.checkin-history ol { display: grid; gap: 9px; margin: 12px 0 0; padding: 0; list-style: none; }
.checkin-history li { display: grid; grid-template-columns: minmax(78px,.65fr) minmax(128px,1fr) auto; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 13px; color: #3f554a; background: #f3f7f4; }
.checkin-history-sequence { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 750; }
.checkin-history-sequence i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: white; background: var(--green); font-size: 10px; }
.checkin-history time { font-size: 12px; font-weight: 650; }
.checkin-history li > small { color: var(--muted); font-size: 10px; text-align: right; }
.checkin-history-empty { margin: 12px 0 0; padding: 12px; border-radius: 12px; color: var(--muted); background: #f4f7f4; font-size: 12px; line-height: 1.55; }
.inline-checkin .checkin-history { border-top-color: #d7e6db; }
.inline-checkin .checkin-history li { background: white; }
.order-actions { display: flex; gap: 8px; margin-top: 17px; flex-wrap: wrap; }
.internal-application-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 12px 0; }
.internal-application-meta span { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.internal-application-meta small,.internal-application-meta strong { display: block; }
.internal-application-meta small { margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.internal-application-meta strong { overflow-wrap: anywhere; font-size: 13px; }

.checkin-card { margin-top: 38px; text-align: center; padding: 38px 24px; border-radius: 28px; background: white; box-shadow: var(--shadow); }
.checkin-icon { display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 26px; background: var(--mint); color: var(--green); font-size: 38px; font-weight: 800; }
.checkin-card h1 { font-size: 32px; margin: 8px 0; }
.checkin-card p { color: var(--muted); line-height: 1.7; }
.checkin-result { display: grid; gap: 8px; margin: 20px 0; padding: 16px; border-radius: 16px; background: #f4f7f4; }
.checkin-result strong,.checkin-result time,.checkin-result span { display: block; }
.checkin-result strong { margin-top: 4px; color: var(--muted); font-size: 11px; }
.checkin-result time { color: var(--green-dark); font-size: 16px; font-weight: 750; }
.checkin-result span { color: var(--muted); font-size: 12px; }

.bottom-nav { position: fixed; z-index: 30; left: 50%; bottom: max(12px,env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 36px), 724px); height: 65px; padding: 7px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); border: 1px solid rgba(255,255,255,.8); border-radius: 22px; background: rgba(255,255,255,.9); backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.bottom-nav a { display: flex; gap: 7px; align-items: center; justify-content: center; border-radius: 16px; color: var(--muted); font-size: 13px; font-weight: 650; }
.bottom-nav a.active { color: var(--green); background: var(--mint); }
.bottom-nav a i { font-size: 20px; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; align-items: end; background: rgba(15,31,24,.44); backdrop-filter: blur(4px); }
.modal { width: min(100%,620px); max-height: 92vh; overflow: auto; margin: 0 auto; padding: 25px 22px calc(22px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: white; animation: rise .22s ease both; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-head h2 { margin: 0; font-size: 22px; }
.modal-description { margin: -6px 0 20px; color: var(--muted); line-height: 1.7; }
.icon-button { border: 0; width: 36px; height: 36px; border-radius: 50%; background: #f0f3f0; cursor: pointer; }
.field { display: grid; gap: 8px; margin: 15px 0; }
.field label { font-size: 13px; font-weight: 650; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #dbe4dd; border-radius: 14px; background: #fbfcfb; padding: 14px 15px; outline: none; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,102,74,.09); }
.checkbox { display: flex; gap: 9px; align-items: flex-start; margin: 17px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.checkbox input { margin-top: 2px; accent-color: var(--green); }
.modal-price { display: flex; justify-content: space-between; margin: 22px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.modal-price strong { font-size: 24px; }
.scanner-modal { text-align: center; }
.scanner-modal .modal-head { text-align: left; }
.scanner-modal > h3 { margin: 16px 0 8px; font-size: 20px; }
.scanner-modal > p { margin: 0 auto 22px; max-width: 420px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.scanner-visual { position: relative; display: grid; place-items: center; width: 132px; height: 132px; margin: 5px auto 0; overflow: hidden; border: 2px solid #b8dcca; border-radius: 25px; color: var(--green); background: #eff8f3; }
.scanner-visual > i { font-size: 72px; }
.scanner-visual > span { position: absolute; left: 13px; right: 13px; top: 50%; height: 2px; background: #36a476; box-shadow: 0 0 12px rgba(54,164,118,.7); animation: scan-line 1.8s ease-in-out infinite alternate; }
@keyframes scan-line { from { transform: translateY(-43px); } to { transform: translateY(43px); } }
.checkin-success-modal { text-align: center; }
.checkin-success-modal h2, .checkin-card h2 { max-width: 500px; margin: 10px auto 8px; color: var(--ink); font-size: clamp(22px,6vw,30px); line-height: 1.28; overflow-wrap: anywhere; }
.checkin-success-mark { display: grid; place-items: center; width: 76px; height: 76px; margin: 2px auto 17px; border-radius: 25px; color: white; background: var(--green); box-shadow: 0 14px 30px rgba(22,102,74,.2); font-size: 36px; }
.checkin-success-person { margin: 10px 0 20px; color: var(--muted); font-size: 14px; }
.checkin-success-person strong { color: var(--ink); font-size: 17px; }
.checkin-success-progress { margin: 0 0 22px; padding: 16px; border-radius: 17px; text-align: left; background: #f3f8f5; }
.checkin-success-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkin-success-progress > div:first-child span { color: var(--muted); font-size: 12px; }
.checkin-success-progress > div:first-child strong { color: var(--green-dark); font-size: 16px; }
.checkin-success-progress .progress-bar { margin: 12px 0 9px; }
.checkin-success-progress time { display: block; color: var(--muted); font-size: 12px; text-align: center; }
.toast { position: fixed; z-index: 200; left: 50%; top: 86px; transform: translate(-50%,-18px); max-width: calc(100% - 40px); padding: 11px 16px; border-radius: 12px; color: white; background: rgba(19,38,29,.94); font-size: 13px; opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.toast.error { background: #8e3f38; }
.loading-screen, .empty { min-height: 50vh; display: grid; place-content: center; justify-items: center; color: var(--muted); text-align: center; }
.spinner { width: 28px; height: 28px; border: 3px solid #d9e5dc; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 680px) {
  .event-list { grid-template-columns: 1fr 1fr; }
  .event-card { min-height: 300px; }
  .modal-backdrop { align-items: center; }
  .modal { border-radius: 28px; }
}

@media (max-width: 679px) {
  body { background: var(--paper); }
  .app-shell { width: 100%; padding: 0 16px 190px; }
  .app-shell.has-inline-checkin { padding-bottom: 104px; }
  .topbar { height: 60px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 10px; }
  .profile-button { max-width: 132px; font-size: 12px; }
  #profileName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .hero { padding: 32px 2px 20px; }
  h1 { font-size: 37px; }
  .event-card { min-height: 218px; padding: 21px; border-radius: 22px; }
  .event-card h3 { max-width: 92%; font-size: 25px; }

  .detail-poster { margin: 0 -16px; }
  .detail-cover { min-height: 224px; margin: 0 -16px; padding: 26px 20px 24px; }
  .detail-cover.with-poster { min-height: 0; padding: 21px 20px 23px; }
  .detail-cover .back { top: 14px; left: 17px; width: 38px; height: 38px; }
  .detail-cover .eyebrow { font-size: 11px; }
  .detail-cover h1 { max-width: 100%; margin: 8px 0 7px; font-size: clamp(29px, 9vw, 37px); line-height: 1.12; letter-spacing: -.045em; overflow-wrap: anywhere; }
  .detail-cover > p { max-width: 95%; font-size: 13px; line-height: 1.55; }
  .detail-content { padding-top: 16px; }
  .paid-checkin-card { margin-bottom: 10px; border-radius: 19px; }
  .paid-status-head { padding: 14px 16px; }
  .paid-progress-head { padding: 17px 16px 0; }
  .paid-progress-head > div:first-child strong { font-size: 17px; }
  .paid-progress-number strong { font-size: 34px; }
  .paid-progress-track { margin: 14px 16px 0; }
  .paid-scan-guide { margin: 15px 16px 0; padding: 12px; font-size: 12px; }
  .paid-person { margin: 15px 16px; }
  .inline-checkin { margin: 10px 0; padding: 15px; border-radius: 16px; }
  .inline-checkin-head strong { font-size: 27px; }
  .inline-checkin .paid-progress-track { margin: 11px 0 14px; }
  .inline-scan-button { min-height: 50px; }
  .info-grid { gap: 8px; }
  .info-tile { min-height: 78px; padding: 13px; border-radius: 15px; }
  .info-tile span { margin-bottom: 6px; font-size: 10px; }
  .info-tile strong { font-size: 13px; }
  .article { margin: 15px 0; padding: 18px; border-radius: 18px; }
  .article h2 { font-size: 17px; }
  .article p { font-size: 13px; line-height: 1.72; }
  .notice { margin: 10px 0; padding: 13px; border-radius: 14px; font-size: 12px; }
  .event-journey { gap: 6px; margin-top: 10px; padding: 14px 11px; border-radius: 16px; }
  .event-journey strong { font-size: 12px; }
  .event-journey small { font-size: 9px; }
  .event-journey > div > span { width: 22px; height: 22px; margin-bottom: 7px; }

  .sticky-action { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); width: auto; margin: 0; padding: 10px 10px 10px 16px; border-radius: 19px; }
  .sticky-action .price strong { font-size: 21px; }
  .sticky-action .button { min-height: 45px; padding: 0 20px; }
  .sticky-action.checkin-action .button { flex: 1.45; min-width: 0; padding: 0 14px; }
  .bottom-nav { bottom: max(8px,env(safe-area-inset-bottom)); width: calc(100% - 24px); height: 64px; border-radius: 20px; }
  .bottom-nav a { gap: 5px; font-size: 12px; }

  .page-title { padding: 27px 2px 14px; }
  .page-title h1 { font-size: 32px; }
  .order-card { padding: 17px; border-radius: 18px; }
  .internal-application-meta { grid-template-columns: 1fr; gap: 8px; }
  .checkin-history li { grid-template-columns: minmax(76px,.7fr) minmax(112px,1fr); }
  .checkin-history li > small { grid-column: 2; margin-top: -4px; text-align: left; }
  .checkin-card { margin-top: 20px; padding: 30px 18px; border-radius: 22px; }
}

@media (max-width: 359px) {
  .detail-cover h1 { font-size: 28px; }
  .info-grid { grid-template-columns: 1fr; }
  .sticky-action .price span { display: none; }
  .sticky-action .button { padding: 0 16px; }
  .sticky-action.checkin-action { gap: 10px; padding-left: 13px; }
  .sticky-action.checkin-action .price { flex: .55; }
  .sticky-action.checkin-action .price strong { font-size: 18px; }
}
