:root {
  --red: #d71920;
  --red-dark: #ae1017;
  --yellow: #ffd42a;
  --ink: #17202d;
  --muted: #697386;
  --line: #e7e9ee;
  --soft: #f5f6f8;
  --green: #0a9a63;
  --green-soft: #e9f8f1;
  --amber: #c56d0a;
  --amber-soft: #fff5df;
  --blue: #1769d1;
  --radius: 18px;
  --shadow: 0 26px 80px rgba(21, 28, 40, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: #eceef2;
  color: var(--ink);
  font-family: "Noto Sans Thai", "Thonburi", "Leelawadee UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(23, 105, 209, .28); outline-offset: 2px; }

.prototype { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, 390px) 1fr; }
.lab {
  min-height: 100vh;
  padding: 42px 36px 26px;
  color: white;
  background:
    radial-gradient(circle at 18% 8%, rgba(255,212,42,.15), transparent 28%),
    linear-gradient(155deg, #17202d 0%, #0e131c 100%);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.kicker { color: var(--yellow); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.lab h1 { font-size: clamp(27px, 2.6vw, 40px); line-height: 1.12; letter-spacing: -.04em; margin: 15px 0 14px; }
.lab h1 em { color: #ff6a6f; font-style: normal; font-weight: 500; }
.lab-intro p { color: #aeb6c4; font-size: 14px; line-height: 1.7; margin: 0; max-width: 310px; }
.control-group { margin-top: 32px; }
.control-group > label { display: block; color: #7f8999; font-size: 10px; font-weight: 800; letter-spacing: .14em; margin-bottom: 10px; }
.scenario-button {
  width: 100%; border: 1px solid #2d3645; background: #1a222f; color: white; border-radius: 13px;
  min-height: 64px; padding: 11px 13px; margin-bottom: 8px; display: grid; grid-template-columns: 10px 1fr 20px;
  align-items: center; gap: 12px; text-align: left; transition: .2s ease;
}
.scenario-button:hover { background: #212b3a; border-color: #4b5667; }
.scenario-button.active { border-color: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow); }
.scenario-button strong, .scenario-button small { display: block; }
.scenario-button strong { font-size: 13px; }
.scenario-button small { color: #8893a5; margin-top: 3px; font-size: 10px; }
.scenario-button b { color: var(--yellow); }
.scenario-dot { width: 8px; height: 8px; border-radius: 50%; background: #f3a52e; }
.scenario-dot.long { background: #e14c52; }
.scenario-dot.cancelled { background: #8e9bad; }
.journey-control { flex: 1; }
.journey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.journey-button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: #9099a8; padding: 7px; text-align: left; font-size: 11px; }
.journey-button span { color: #566172; margin-right: 7px; font-variant-numeric: tabular-nums; }
.journey-button:hover { background: #1a222f; color: white; }
.journey-button.active { background: white; color: var(--ink); font-weight: 700; }
.journey-button.active span { color: var(--red); }
.lab-footer { border-top: 1px solid #2a3340; margin-top: 24px; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #8994a4; }
.lab-footer i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: #31ce89; box-shadow: 0 0 0 4px rgba(49,206,137,.12); margin-right: 7px; }
.lab-footer button { border: 0; background: transparent; color: #bbc2cd; }

.stage { min-width: 0; padding: 34px 24px 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.device-meta { width: 430px; max-width: 100%; margin-bottom: 10px; color: #858b96; font-size: 10px; display: flex; justify-content: space-between; letter-spacing: .04em; }
.device-meta span:last-child { color: var(--green); }
.phone { width: 430px; height: min(850px, calc(100vh - 92px)); min-height: 650px; max-width: 100%; background: white; border: 8px solid #15171c; border-radius: 42px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.notch { height: 19px; background: white; flex: 0 0 auto; display: flex; justify-content: center; }
.notch span { width: 104px; height: 17px; background: #15171c; border-radius: 0 0 15px 15px; }
.app-header { height: 59px; padding: 8px 18px 7px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.brand { color: var(--red); text-decoration: none; position: relative; line-height: 1; display: inline-block; transform: rotate(-2deg); }
.brand span { font: italic 900 23px/1 Arial, sans-serif; letter-spacing: -1.7px; }
.brand i { display: block; width: 56px; height: 4px; background: var(--yellow); border-radius: 100% 0 100% 0; transform: rotate(-4deg); margin-left: 3px; margin-top: -1px; }
.header-actions { display: flex; align-items: center; gap: 7px; }
.more-btn { height: 36px; min-width: 39px; border-radius: 10px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 12px; font-weight: 800; }
.more-btn { letter-spacing: 1px; }
.sub-header { min-height: 45px; padding: 0 17px; display: grid; grid-template-columns: 85px 1fr 85px; align-items: center; border-bottom: 1px solid var(--line); font-size: 11px; flex: 0 0 auto; }
.back-btn { background: transparent; border: 0; padding: 7px 0; color: var(--ink); justify-self: start; }
.back-btn span { font-size: 22px; vertical-align: -2px; margin-right: 3px; }
.sub-title { text-align: center; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secure { justify-self: end; color: var(--green); font-size: 9px; }
.progress-wrap { padding: 9px 18px 5px; flex: 0 0 auto; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; margin-bottom: 6px; }
.progress-meta span:last-child { color: var(--ink); font-weight: 700; }
.progress-track { height: 3px; border-radius: 4px; overflow: hidden; background: #eceef1; }
.progress-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), #ef5359); transition: width .35s ease; }
.screen { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; background: white; }
.screen::-webkit-scrollbar { display: none; }
.home-bar { height: 19px; flex: 0 0 auto; display: flex; justify-content: center; align-items: center; background: white; }
.home-bar span { width: 116px; height: 4px; border-radius: 4px; background: #1b1d21; }
.page { padding: 21px 20px 26px; animation: enter .24s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h2.page-title { font-size: 24px; line-height: 1.27; letter-spacing: -.025em; margin: 0 0 7px; }
.page-lead { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 18px; }
.center { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 6px 10px; font-size: 10px; font-weight: 800; margin-bottom: 12px; }
.status-art { width: 62px; height: 62px; border-radius: 50%; margin: 1px auto 16px; background: var(--amber-soft); border: 1px solid #f8ddb1; display: grid; place-items: center; position: relative; }
.status-art span { width: 32px; height: 32px; border-radius: 50%; background: #f2a126; color: white; display: grid; place-items: center; font: 800 20px Arial; }
.status-art::after { content: ""; width: 72px; height: 72px; position: absolute; border: 1px dashed #efc879; border-radius: 50%; }

.primary, .secondary, .text-action { width: 100%; min-height: 50px; border-radius: 13px; font-weight: 800; transition: .2s ease; }
.primary { border: 0; color: white; background: linear-gradient(135deg, var(--red), #ed373e); box-shadow: 0 9px 20px rgba(215,25,32,.2); padding: 0 16px; display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 18px; }
.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(215,25,32,.25); }
.primary:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }
.secondary { margin-top: 9px; border: 1px solid var(--line); color: var(--ink); background: white; }
.text-action { margin-top: 3px; border: 0; background: transparent; color: var(--red); min-height: 42px; font-size: 12px; }

.sms-page { min-height: 100%; padding: 16px 18px 24px; background: linear-gradient(#f3f4f6, #fafafa); }
.sms-status { display: flex; justify-content: space-between; color: #777f8b; font-size: 10px; margin-bottom: 20px; }
.sender { display: flex; gap: 11px; align-items: center; }
.sender-logo { width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: white; display: grid; place-items: center; font: italic 900 14px Arial; border: 3px solid white; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.sender strong, .sender small { display: block; }
.sender strong { font-size: 14px; }
.sender small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.date-chip { width: max-content; margin: 21px auto 9px; color: #8a9099; font-size: 9px; }
.sms-bubble { margin-right: 17px; background: white; border-radius: 17px 17px 17px 4px; padding: 16px; box-shadow: 0 6px 18px rgba(23,32,45,.07); border: 1px solid #eee; }
.sms-bubble > strong { font-size: 13px; }
.sms-bubble > p { font-size: 12px; line-height: 1.65; color: #475163; margin: 8px 0 13px; }
.secure-link { width: 100%; border: 1px solid #f0d3d4; background: #fff8f8; border-radius: 12px; padding: 10px 11px; display: flex; align-items: center; gap: 10px; text-align: left; color: var(--red); }
.secure-link .link-symbol { width: 32px; height: 32px; border-radius: 9px; background: var(--red); color: white; display: grid; place-items: center; font-weight: 900; }
.secure-link strong, .secure-link small { display: block; }
.secure-link strong { font-size: 11px; }
.secure-link small { color: #8a6163; font-size: 9px; margin-top: 2px; }
.expiry { display: block; color: #8b919b; font-size: 9px; text-align: center; margin-top: 10px; }
.prototype-note, .info-note { display: flex; gap: 9px; border-radius: 12px; padding: 11px; margin-top: 17px; background: #eef5ff; color: #406082; font-size: 10px; line-height: 1.55; }
.prototype-note span, .info-note > span { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: white; display: grid; place-items: center; font: 700 11px Arial; }
.prototype-note p, .info-note p { margin: 0; }

.flight-card { border-radius: var(--radius); border: 1px solid var(--line); padding: 16px; box-shadow: 0 6px 20px rgba(23,32,45,.05); background: white; }
.flight-top { display: flex; justify-content: space-between; align-items: flex-start; }
.flight-top small, .flight-top strong { display: block; }
.flight-top small, .time-grid small { color: var(--muted); font-size: 9px; }
.flight-top strong { font-size: 17px; margin-top: 2px; }
.status-pill { padding: 5px 9px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); font-size: 9px; font-weight: 800; }
.status-pill.cancelled { background: #fff0f0; color: var(--red); }
.route { display: grid; grid-template-columns: 1fr 88px 1fr; align-items: center; margin: 16px 0; }
.route > div:first-child, .route > div:last-child { display: flex; flex-direction: column; }
.route > div:last-child { text-align: right; }
.route strong { font-size: 23px; letter-spacing: -.02em; }
.route small { color: var(--muted); font-size: 9px; }
.route-line { height: 1px; background: #cdd2da; position: relative; }
.route-line::before, .route-line::after { content: ""; position: absolute; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: #abb2bd; }
.route-line::before { left: 0; } .route-line::after { right: 0; }
.route-line span { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-53%); background: white; color: var(--red); padding: 0 6px; font-size: 15px; }
.time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.time-grid div:last-child { text-align: right; }
.time-grid strong { display: block; margin-top: 3px; font-size: 15px; }
.amber { color: var(--amber); } .red { color: var(--red); }
.flight-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; margin-top: 11px; }
.flight-card.compact .route { margin-bottom: 0; }
.flight-card.compact { margin-bottom: 13px; }
.info-list { border: 1px solid var(--line); border-radius: 14px; margin-top: 12px; overflow: hidden; }
.info-list div { display: flex; justify-content: space-between; padding: 11px 13px; font-size: 11px; }
.info-list div + div { border-top: 1px solid var(--line); }
.info-list span { color: var(--muted); }
.privacy { color: #758093; font-size: 9px; line-height: 1.5; text-align: center; padding: 12px 10px 0; }

.feature-icon { width: 58px; height: 58px; margin: 5px auto 15px; border-radius: 17px; display: grid; place-items: center; color: var(--red); background: #fff1f1; font: 800 27px Arial; transform: rotate(-3deg); }
.field-label { display: block; font-size: 11px; font-weight: 800; margin: 23px 0 9px; }
.otp-shell { position: relative; display: grid; grid-template-columns: repeat(6,1fr); gap: 7px; }
.otp-box { aspect-ratio: 1; border: 1px solid #d7dbe2; border-radius: 10px; display: grid; place-items: center; font: 800 20px Arial; background: #fafbfc; }
.otp-box.filled { border-color: var(--red); background: #fff8f8; }
.otp-input { position: absolute; inset: 0; opacity: .01; width: 100%; height: 100%; cursor: text; }
.field-hint { color: var(--muted); font-size: 9px; text-align: center; margin: 9px 0; }
.resend-row { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--muted); font-size: 10px; }
.resend-row button { border: 0; background: transparent; color: var(--red); font-weight: 800; }

.eligibility { border-radius: 14px; padding: 12px; display: flex; gap: 10px; background: var(--green-soft); margin-bottom: 12px; }
.eligibility > span { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: white; display: grid; place-items: center; font-weight: 900; }
.eligibility strong, .eligibility small { display: block; }
.eligibility strong { font-size: 11px; }
.eligibility small { color: #558473; font-size: 9px; margin-top: 3px; }
.service-list { display: grid; gap: 9px; }
.service-card { width: 100%; min-height: 79px; border: 1px solid var(--line); border-radius: 15px; padding: 12px; background: white; color: var(--ink); display: grid; grid-template-columns: 42px 1fr 24px; align-items: center; gap: 11px; text-align: left; }
button.service-card { transition: .17s ease; }
button.service-card:hover { border-color: #c5cad2; transform: translateY(-1px); }
.service-card.selected { border-color: var(--red); background: #fffafa; box-shadow: inset 0 0 0 1px var(--red); }
.service-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff3e4; color: #a95d00; font: 900 17px Arial; }
.service-icon.refund { background: #eaf7f0; color: var(--green); }
.service-icon.rebook { background: #eaf2ff; color: var(--blue); font-size: 23px; }
.service-icon.compensation { background: #f0ecff; color: #6243bd; }
.service-card strong { display: block; font-size: 12px; }
.service-card p { color: var(--muted); font-size: 9px; line-height: 1.45; margin: 3px 0 0; }
.check, .radio { width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; font: 800 11px Arial; }
.check { color: var(--green); background: var(--green-soft); }
.radio { border: 1px solid #ccd1d8; }
.service-card.selected .radio { color: white; border-color: var(--red); background: var(--red); }
.info-note { background: #f3f5f8; color: #667286; }
.info-note > span { background: #8792a2; }

.detail-hero { text-align: center; margin-bottom: 19px; }
.detail-hero .service-icon { width: 57px; height: 57px; margin: 0 auto 12px; font-size: 22px; }
.detail-hero h2 { font-size: 22px; margin: 0 0 5px; }
.detail-hero p { color: var(--muted); font-size: 11px; margin: 0; }
.detail-section { border-top: 1px solid var(--line); padding-top: 17px; }
.detail-section h3 { font-size: 13px; margin: 0 0 3px; }
.section-note { color: var(--muted); font-size: 9px; line-height: 1.5; margin: 0 0 11px; }
.flight-option { width: 100%; border: 1px solid var(--line); background: white; border-radius: 13px; padding: 12px; margin-top: 8px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; text-align: left; color: var(--ink); }
.flight-option.selected { border-color: var(--red); background: #fffafa; }
.flight-option strong, .flight-option small { display: block; }
.flight-option strong { font-size: 12px; }
.flight-option strong span { color: var(--red); margin: 0 5px; }
.flight-option small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.flight-option b { color: var(--green); font-size: 12px; }
.amount-card { border-radius: 16px; padding: 18px; background: linear-gradient(145deg, #17202d, #2a3545); color: white; }
.amount-card span, .amount-card strong, .amount-card small { display: block; }
.amount-card span { color: #aab4c3; font-size: 10px; }
.amount-card strong { font-size: 27px; margin: 6px 0; }
.amount-card small { color: #b8c0cb; font-size: 9px; line-height: 1.5; }
.voucher-card { display: flex; align-items: center; gap: 14px; padding: 15px; border: 1px dashed #e6ad2e; border-radius: 15px; background: #fff9e9; }
.voucher-value { font-size: 23px; font-weight: 900; color: #9f6400; }
.voucher-card strong { font-size: 11px; }
.voucher-card p { color: #8b7650; font-size: 9px; margin: 4px 0 0; }
.confirm-flight { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.confirm-flight > h3 { font-size: 11px; margin: 0 0 8px; }
.payout-heading { margin-top: 20px !important; }
.payout-options { display: grid; gap: 8px; }
.payout-option { width: 100%; min-height: 64px; display: grid; grid-template-columns: 21px 34px 1fr; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 13px; background: white; color: var(--ink); padding: 10px; text-align: left; }
.payout-option.selected { border-color: var(--red); background: #fffafa; box-shadow: inset 0 0 0 1px var(--red); }
.payout-logo { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #eaf2ff; color: var(--blue); font: 900 16px Arial; }
.payout-logo.bank { background: #eef5f1; color: var(--green); }
.payout-option strong, .payout-option small { display: block; }
.payout-option strong { font-size: 10px; }
.payout-option small { color: var(--muted); font-size: 8px; line-height: 1.4; margin-top: 3px; }
.payment-fields { border: 1px solid var(--line); border-radius: 13px; background: #fafbfc; padding: 12px; display: grid; gap: 10px; }
.payment-fields label { display: grid; gap: 5px; color: #4f5a6a; font-size: 9px; font-weight: 700; }
.payment-fields input, .payment-fields select { width: 100%; min-height: 42px; border: 1px solid #d6dbe2; border-radius: 9px; background: white; color: var(--ink); padding: 8px 10px; font-size: 11px; outline: none; }
.payment-fields input:focus, .payment-fields select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(215,25,32,.09); }
.payment-fields > small { color: var(--muted); font-size: 8px; margin-top: -5px; }

.review-card { border: 1px solid var(--line); border-radius: 15px; padding: 13px; }
.review-title { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; }
.review-title small, .review-title strong { display: block; }
.review-title small { color: var(--muted); font-size: 9px; }
.review-title strong { font-size: 11px; margin-top: 2px; }
.review-title button { border: 0; background: transparent; color: var(--red); font-size: 9px; font-weight: 800; }
.review-detail { border-top: 1px solid var(--line); margin-top: 11px; padding-top: 10px; display: flex; justify-content: space-between; gap: 10px; font-size: 10px; }
.review-detail span { color: var(--muted); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: flex-start; font-size: 10px; line-height: 1.55; margin-top: 16px; cursor: pointer; }
.consent input { position: absolute; opacity: 0; }
.custom-check { width: 21px; height: 21px; border: 1px solid #cbd0d8; border-radius: 6px; color: transparent; display: grid; place-items: center; }
.consent input:checked + .custom-check { color: white; background: var(--red); border-color: var(--red); }

.success-art { width: 87px; height: 87px; border-radius: 50%; margin: 12px auto 20px; display: grid; place-items: center; background: var(--green-soft); position: relative; }
.success-art span { width: 55px; height: 55px; border-radius: 50%; background: var(--green); color: white; display: grid; place-items: center; font: 800 27px Arial; box-shadow: 0 10px 25px rgba(10,154,99,.25); }
.success-art::before, .success-art::after { content: ""; position: absolute; width: 6px; height: 6px; background: var(--yellow); border-radius: 50%; }
.success-art::before { top: 3px; right: 2px; } .success-art::after { bottom: 7px; left: -2px; background: #ef6469; }
.reference-card { border: 1px solid var(--line); border-radius: 15px; padding: 13px; background: #fafbfc; margin-top: 18px; }
.reference-card > small { color: var(--muted); font-size: 9px; }
.reference-card div { display: flex; align-items: center; justify-content: space-between; margin-top: 3px; }
.reference-card strong { font: 800 15px/1.3 Arial, sans-serif; letter-spacing: .03em; }
.reference-card button { border: 0; background: #fff0f0; color: var(--red); border-radius: 8px; padding: 7px 9px; font-size: 9px; font-weight: 800; }
.success-summary { border: 1px solid var(--line); border-radius: 15px; margin-top: 10px; overflow: hidden; }
.success-summary > div { display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: center; padding: 11px; }
.success-summary > div + div { border-top: 1px solid var(--line); }
.success-summary small, .success-summary strong { display: block; }
.success-summary small { color: var(--muted); font-size: 8px; }
.success-summary strong { font-size: 10px; margin-top: 2px; }
.notify { display: flex; gap: 10px; background: #eef5ff; padding: 11px; border-radius: 13px; margin-top: 11px; }
.notify > span { color: var(--blue); }
.notify strong, .notify small { display: block; }
.notify strong { font-size: 10px; }.notify small { color: #647894; font-size: 9px; margin-top: 2px; }

.reference-eyebrow { color: var(--red); font: 800 9px Arial, sans-serif; letter-spacing: .03em; }
.current-status { display: flex; align-items: center; gap: 11px; background: #fff8e9; border: 1px solid #f4ddb0; border-radius: 14px; padding: 13px; margin: 17px 0 22px; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: #eba126; box-shadow: 0 0 0 6px rgba(235,161,38,.17); margin: 0 5px; }
.current-status small, .current-status strong { display: block; }
.current-status small { color: #9b7b3c; font-size: 8px; }.current-status strong { font-size: 12px; margin-top: 2px; }
.timeline { margin-left: 7px; }
.timeline-item { min-height: 91px; display: grid; grid-template-columns: 30px 1fr; gap: 13px; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: 14px; top: 28px; bottom: -2px; width: 1px; background: #dfe2e7; }
.timeline-item:last-child::before { display: none; }
.timeline-item > span { width: 29px; height: 29px; border-radius: 50%; background: white; border: 1px solid #d6dbe1; color: #9ba3ae; display: grid; place-items: center; font: 800 10px Arial; z-index: 1; }
.timeline-item.complete > span { border-color: var(--green); background: var(--green); color: white; }
.timeline-item.active > span { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.timeline-item strong { font-size: 11px; }
.timeline-item p { color: var(--muted); font-size: 9px; line-height: 1.45; margin: 3px 0; }
.timeline-item small { color: #9aa1ab; font-size: 8px; }
.contact-card { border-radius: 14px; padding: 12px; background: var(--soft); display: grid; grid-template-columns: 25px 1fr; gap: 9px; }
.contact-card strong { font-size: 10px; }.contact-card p { color: var(--muted); font-size: 8px; margin: 3px 0 0; }
.contact-card button { grid-column: 1 / -1; min-height: 36px; border-radius: 9px; border: 1px solid #d5d9df; background: white; color: var(--ink); font-size: 9px; font-weight: 800; }

.error-page { padding-top: 55px; text-align: center; }
.error-icon { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 20px; background: #fff2f2; color: var(--red); border: 1px solid #f3d4d5; display: grid; place-items: center; font: 800 28px Arial; }
.error-page h2 { font-size: 22px; margin: 0 0 8px; }
.error-page > p { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 0 auto 18px; max-width: 310px; }
.error-ref { display: flex; justify-content: space-between; border-radius: 12px; padding: 11px 13px; background: var(--soft); font-size: 10px; }
.error-ref span { color: var(--muted); }
.support-note { display: block; color: #979eaa; font-size: 8px; margin-top: 9px; }

.sheet-layer { position: absolute; inset: 0; z-index: 20; background: rgba(9,13,19,.48); display: flex; align-items: flex-end; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-height: 85%; overflow: auto; background: white; border-radius: 23px 23px 0 0; padding: 9px 18px 24px; animation: rise .23s ease; }
@keyframes rise { from { transform: translateY(30px); } }
.sheet-handle { width: 38px; height: 4px; border-radius: 5px; background: #d8dbe0; margin: 0 auto 16px; }
.sheet-title { display: flex; justify-content: space-between; align-items: flex-start; }
.sheet-title small { color: var(--red); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.sheet-title h2 { font-size: 19px; margin: 3px 0 0; }
.sheet-title button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--soft); font-size: 20px; }
.sheet-section { margin-top: 19px; }
.sheet-section > strong { display: block; font-size: 10px; margin-bottom: 9px; }
.scenario-chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 3px; }
.scenario-chips button { white-space: nowrap; border: 1px solid var(--line); background: white; border-radius: 999px; padding: 8px 10px; font-size: 9px; }
.scenario-chips button.active { border-color: var(--red); color: var(--red); background: #fff7f7; font-weight: 800; }
.state-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.state-grid button { min-height: 47px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--soft); color: var(--ink); text-align: left; display: flex; justify-content: space-between; align-items: center; font-size: 9px; font-weight: 700; }
.state-grid button span { color: var(--red); }
.reset-link { width: 100%; min-height: 42px; border: 0; background: transparent; color: var(--red); font-size: 10px; font-weight: 800; margin-top: 12px; }
.mobile-demo { display: none; }

@media (max-width: 820px) {
  body { background: white; }
  .prototype { display: block; }
  .lab, .device-meta { display: none; }
  .stage { display: block; padding: 0; }
  .phone { width: 100%; max-width: none; height: 100dvh; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
  .notch { display: none; }
  .app-header { padding-top: max(8px, env(safe-area-inset-top)); height: calc(59px + env(safe-area-inset-top)); }
  .home-bar { height: calc(13px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-demo { display: flex; position: fixed; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 12; min-height: 42px; border: 0; border-radius: 999px; padding: 0 14px; background: #17202d; color: white; align-items: center; gap: 6px; box-shadow: 0 8px 25px rgba(0,0,0,.22); font-size: 10px; font-weight: 800; }
  .screen .secondary:last-child { margin-bottom: 55px; }
}

@media (max-width: 370px) {
  .page { padding-left: 16px; padding-right: 16px; }
  h2.page-title { font-size: 22px; }
  .route { grid-template-columns: 1fr 66px 1fr; }
}

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