/* Cutie Care customer design, September 2026. Shared brand; tablet-first kiosk. */
:root {
  --paper: #fcfaf9;
  --surface: #fff;
  --ink: #292628;
  --muted: #706367;
  --line: #ece5e3;
  --red: #c41e3a;
  --red-hover: #ad1832;
  --soft: #fbecef;
  --green: #426b4c;
  --sans: 'DM Sans', sans-serif;
  --shadow: 0 6px 30px #68383805;
}
* { box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); letter-spacing: -.15px; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; transition: background .18s, border-color .18s, box-shadow .18s; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
button svg { pointer-events: none; }
.icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.shell { position: fixed; inset-inline: 0; top: var(--kiosk-top,0px); width: 100%; max-width: 1400px; height: 100vh; height: var(--kiosk-height,100dvh); margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left)); display: flex; flex-direction: column; }
.top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; gap: 20px; width: 100%; max-width: 1120px; margin: 0 auto; flex-shrink: 0; }
.brand { font-size: 21px; letter-spacing: 2.9px; font-weight: 600; white-space: nowrap; }
.brand span { color: var(--red); }
.salon { display: flex; gap: 11px; align-items: center; font-size: 13px; font-weight: 500; }
.salon > .icon { width: 20px; height: 20px; color: var(--red); }
.salon small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; margin-top: 2px; }
main { flex: 1 1 0; min-height: 0; width: 100%; padding: 24px 8px; outline: none !important; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scroll-padding-block: 20px; display: flex; flex-direction: column; align-items: center; scrollbar-width: thin; scrollbar-color: #d9c9cc transparent; }
.screen-content { flex: none; width: 100%; max-width: 1000px; min-width: 0; margin-block: auto; }
.screen-content > .panel { margin-inline: auto; }
main[data-page="home"] .screen-content { max-width: 940px; }
.welcome { margin: 0 0 24px; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.8px; font-size: 10px; font-weight: 600; color: var(--red); margin: 0 0 10px; }
.welcome h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 500; line-height: 1.12; letter-spacing: -1.8px; margin: 0 0 10px; }
.welcome > p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
.start-card { width: 100%; min-height: 210px; padding: 28px 36px; border: 1px solid var(--red); color: white; text-align: center; background: var(--red); border-radius: 24px; display: grid; grid-template-columns: 64px minmax(0,1fr) 64px; align-items: center; gap: 20px; }
.start-card:hover { background: var(--red-hover); border-color: var(--red-hover); }
.start-card:focus-visible { outline-offset: 5px; }
.start-copy { display: block; }
.scan-badge { display: grid; place-items: center; width: 64px; height: 64px; color: white; border: 1px solid #ffffff55; border-radius: 18px; }
.scan-badge .icon { width: 36px; height: 36px; stroke-width: 1.4; }
.start-card .eyebrow { display: block; font-size: 10px; letter-spacing: 1.8px; color: #fff; margin-bottom: 8px; }
.start-title { display: block; font-size: clamp(34px, 4.2vw, 48px); font-weight: 500; line-height: 1.12; letter-spacing: -1.5px; margin-bottom: 12px; }
.start-description { display: block; max-width: 370px; margin: auto; font-size: 14px; line-height: 1.6; color: #fff; }
.start-arrow { display: grid; place-items: center; width: 52px; height: 52px; margin: auto; border-radius: 50%; background: white; color: var(--red); }
.start-arrow .icon { width: 24px; height: 24px; }
.section-heading { text-align: center; margin: 22px 0 14px; }
.section-heading h2 { font-size: 15px; font-weight: 500; color: var(--muted); margin: 0; }
.home-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-width: 0; min-height: 140px; padding: 20px 12px; text-align: center; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.action:hover { border-color: #ddc7cd; background: #fffdfd; }
.action-icon { width: 39px; height: 39px; border-radius: 12px; background: #fcf0f1; color: var(--red); display: grid; place-items: center; }
.action-icon .icon { width: 23px; height: 23px; }
.action strong { display: block; font-size: 16px; font-weight: 500; line-height: 1.35; letter-spacing: -.3px; }
.action small { display: block; color: var(--muted); font-size: 11px; line-height: 1.55; margin-top: 5px; }
.payment-note { display: flex; gap: 8px; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 11px; margin: 20px 0 0; }
.payment-note .icon { height: 16px; width: 16px; color: #837579; }
.footer { flex-shrink: 0; position: relative; width: 100%; max-width: 1120px; margin: 0 auto; border-top: 1px solid var(--line); padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 65px; background: var(--paper); }
.footer-btn { border: 1px solid var(--line); border-radius: 12px; background: white; display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: var(--ink); padding: 10px 16px; min-height: 48px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.footer-btn .icon { width: 19px; height: 19px; color: var(--red); }
.footer-note { position: absolute; left: 50%; transform: translateX(-50%); font-size: 9px; letter-spacing: 1.6px; color: var(--muted); }
.footer-tools { display: flex; align-items: center; gap: 14px; }
.language { gap: 7px; }
.language .icon { color: var(--muted); }
.setup { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font-size: 11px; min-height: 44px; padding: 7px 0; }
.setup .icon { width: 15px; height: 15px; }
.back { border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); padding: 10px 15px; margin: 0 auto 20px; min-height: 45px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.back .icon { width: 18px; height: 18px; }
.back:hover { border-color: #dcc4ca; }
.page-head { margin: 0 auto 24px; max-width: 750px; text-align: center; }
.page-head h1 { font-size: clamp(31px, 4vw, 43px); font-weight: 500; line-height: 1.15; margin: 8px 0 13px; letter-spacing: -1.3px; }
.page-head > p:last-child { font-size: 15px; color: var(--muted); margin: 0; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 23px; padding: 28px; box-shadow: var(--shadow); }
.two-col { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 23px; max-width: 920px; margin: auto; align-items: start; }
.setup-status { max-width: 550px; text-align: center; }
.setup-status .action-icon { margin: 0 auto 20px; }
main[data-page="help"] .panel { text-align: center; }
.primary, .secondary { min-height: 55px; padding: 15px 23px; border-radius: 14px; font-weight: 500; font-size: 15px; width: 100%; border: 1px solid var(--red); background: var(--red); color: white; display: block; text-decoration: none; text-align: center; }
.primary:hover { background: var(--red-hover); border-color: var(--red-hover); }
.secondary { background: white; color: var(--ink); border-color: #e5d9dd; margin-top: 13px; }
.secondary:hover { background: #fbf4f5; }
.panel h2 { font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -.6px; margin: 0 0 12px; }
.panel p { font-size: 14px; color: var(--muted); margin: 0 0 20px; line-height: 1.7; }
.code { width: 100%; font-size: 24px; letter-spacing: 2px; text-align: center; border: 1px solid #d9c9cc; background: #fefcfc; border-radius: 13px; padding: 18px 10px; margin: 10px 0 20px; text-transform: uppercase; color: var(--ink); }
.code::placeholder { color: #95858a; opacity: 1; }
label { font-size: 13px; font-weight: 500; display: block; }
.error { color: #9d1931; background: #fff3f5; border: 1px solid #efd4db; border-radius: 13px; padding: 13px 15px; font-size: 13px; line-height: 1.6; margin: 15px 0; }
.camera { aspect-ratio: 4/3; width: min(100%, 320px); position: relative; background: #f7f0ef; border: 1px solid #eee3e1; border-radius: 17px; overflow: hidden; margin: 18px auto; }
.camera video { width: 100%; height: 100%; object-fit: cover; }
.camera-placeholder { display: grid; place-items: center; height: 100%; color: var(--red); }
.camera-placeholder .icon { width: 78px; height: 78px; stroke-width: .8; }
.panel .camera-status { min-height: 3em; margin: 0 0 14px; color: var(--ink); font-size: 15px; line-height: 1.5; }
.panel .camera-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.camera .scan-region-highlight { border-radius: 12px; }
.qr-panel { display: grid; grid-template-columns: minmax(180px,280px) minmax(0,1fr); gap: 32px; align-items: center; max-width: 880px; margin: 0 auto; padding: 28px; }
.qr-box { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 14px; aspect-ratio: 1; display: grid; place-items: center; }
.qr-box svg { width: 100%; height: auto; }
.qr-steps { padding: 0; margin: 24px 0; list-style: none; counter-reset: steps; }
.qr-steps li { display: block; position: relative; padding-left: 41px; min-height: 30px; margin: 18px 0; color: var(--muted); font-size: 14px; }
.qr-steps li:before { position: absolute; left: 0; top: -2px; counter-increment: steps; content: counter(steps); background: var(--soft); border-radius: 10px; width: 28px; height: 28px; display: grid; place-items: center; font-size: 12px; color: var(--red); font-weight: 500; }
.qr-steps b { color: var(--ink); font-weight: 500; }
.services { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.service { display: flex; align-items: center; justify-content: space-between; gap: 18px; text-align: left; border: 1px solid var(--line); background: var(--surface); padding: 23px; border-radius: 19px; color: var(--ink); min-height: 107px; }
.service:hover { border-color: #d6bbc3; }
.service strong { font-size: 16px; font-weight: 500; display: block; }
.service small { color: var(--muted); font-size: 12px; display: block; margin-top: 7px; }
.service .price { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 500; color: var(--red); }
.price .icon { width: 17px; height: 17px; }
.categories { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 5px 3px 17px; margin: 0 0 10px; }
.categories button { border: 1px solid var(--line); background: white; padding: 12px 18px; white-space: nowrap; border-radius: 13px; color: var(--muted); min-height: 48px; font-size: 13px; }
.categories button.selected { background: var(--red); color: white; border-color: var(--red); }
.connection { flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 13px; margin-top: 8px; background: #f3eeeb; color: #665a5d; font-size: 11px; border-radius: 10px; }
.connection:before { content: ''; flex-shrink: 0; width: 5px; height: 5px; background: #ae845b; border-radius: 50%; }
.connection.offline { background: #fff0f3; color: #9d1931; }
.connection.offline:before { background: var(--red); }
.input { width: 100%; min-height: 54px; padding: 13px; border: 1px solid #e1d4d8; border-radius: 12px; margin: 8px 0 22px; background: #fefcfc; color: var(--ink); }
dialog { border: 1px solid var(--line); border-radius: 25px; background: white; color: var(--ink); max-width: 440px; max-height: calc(100dvh - 32px); overflow: auto; width: calc(100% - 40px); padding: 0; box-shadow: 0 20px 80px #291a2826; }
dialog::backdrop { background: #29262880; backdrop-filter: blur(6px); }
.dialog-content { padding: 34px; }
.dialog-content h2 { font-size: 33px; font-weight: 500; letter-spacing: -1px; margin: 0 0 15px; }
.dialog-content p { font-size: 15px; color: var(--muted); }
#timeout { max-width: 480px; width: calc(100% - 32px); max-height: calc(var(--kiosk-height,100dvh) - 32px); }
#timeout .dialog-content { padding: 36px; text-align: center; }
#timeout .eyebrow { color: var(--red); font-size: 10px; margin: 0 0 12px; }
#timeout h2 { margin: 0 0 12px; }
#timeoutText { max-width: 290px; margin: 0 auto; line-height: 1.65; }
.timeout-countdown { position: relative; width: 120px; height: 120px; margin: 26px auto 30px; }
.timeout-countdown svg { display: block; width: 100%; height: 100%; }
.timeout-countdown circle { stroke-width: 3; }
.timeout-track { stroke: var(--line); }
.timeout-ring { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset .25s linear; }
.timeout-number { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.timeout-number strong { color: var(--red); font-size: 42px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -1.5px; }
.timeout-number span { color: var(--muted); font-size: 11px; line-height: 1; }
.timeout-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.timeout-actions .primary, .timeout-actions .secondary { margin: 0; min-width: 0; padding-inline: 10px; }
@media (max-width: 499px), (max-height: 600px) {
 #timeout .dialog-content { padding: 24px; }
 #timeout h2 { font-size: 30px; }
 #timeoutText { font-size: 14px; }
 .timeout-countdown { width: 96px; height: 96px; margin: 20px auto 24px; }
 .timeout-number strong { font-size: 34px; }
 .timeout-actions { gap: 10px; }
 .timeout-actions button { font-size: 14px; }
}
.busy { color: var(--muted); padding: 35px; text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }
[hidden] { display: none !important; }
@media (max-width: 999px) {
  .home-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .action { min-height: 128px; }
  .footer-note { display: none; }
  .panel { padding: 24px; }
  .two-col { gap: 16px; }
  .page-head h1 { font-size: 35px; }
  .qr-panel { grid-template-columns: minmax(180px,245px) minmax(0,1fr); gap: 24px; }
}
@media (max-height: 820px) and (min-width: 700px) {
  main { padding-block: 16px; }
  .welcome { margin-bottom: 18px; }
  .welcome h1 { font-size: 36px; }
  .welcome > p:last-child { font-size: 14px; }
  .start-card { min-height: 170px; padding-block: 22px; }
  .start-title { font-size: 40px; margin-bottom: 8px; }
  .section-heading { margin: 16px 0 12px; }
  .action { min-height: 118px; padding: 14px 10px; gap: 8px; }
  .payment-note { margin-top: 14px; }
  .back { margin-bottom: 12px; }
  .page-head { margin-bottom: 18px; }
  .page-head h1 { font-size: 32px; margin: 4px 0 8px; }
  .panel { padding: 22px; }
  .camera { width: min(100%,240px); margin-block: 12px; }
  .panel .camera-status { font-size: 13px; min-height: 0; margin-bottom: 8px; }
  .panel .camera-note { margin-top: 10px; font-size: 11px; }
}
@media (max-width: 699px) {
  .shell { padding: max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
  .top { min-height: 48px; gap: 12px; }
  .brand { font-size: 17px; letter-spacing: 1.7px; }
  .salon { font-size: 10px; gap: 5px; }
  .salon small { font-size: 10px; }
  .salon > .icon { width: 16px; height: 16px; }
  main { padding: 18px 4px; }
  .welcome { margin-bottom: 18px; }
  .welcome h1 { font-size: 35px; letter-spacing: -1.3px; }
  .welcome > p:last-child { font-size: 13px; }
  .eyebrow { font-size: 9px; }
  .start-card { min-height: 190px; padding: 22px 16px; grid-template-columns: 32px minmax(0,1fr) 32px; gap: 8px; border-radius: 20px; }
  .scan-badge { width: 32px; height: 40px; border: 0; }
  .scan-badge .icon { width: 30px; height: 30px; }
  .start-arrow { width: 32px; height: 32px; }
  .start-arrow .icon { width: 18px; height: 18px; }
  .start-card .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .start-title { font-size: 35px; margin-bottom: 10px; letter-spacing: -1px; }
  .start-description { font-size: 12px; }
  .section-heading { margin: 18px 0 12px; }
  .section-heading h2 { font-size: 13px; }
  .home-grid { gap: 10px; }
  .action { min-height: 116px; padding: 14px 8px; gap: 8px; border-radius: 16px; }
  .action strong { font-size: 14px; }
  .action small { font-size: 10px; margin-top: 4px; }
  .action-icon { width: 32px; height: 32px; border-radius: 10px; }
  .action-icon .icon { width: 20px; height: 20px; }
  .payment-note { font-size: 10px; margin-top: 15px; gap: 6px; }
  .footer { gap: 8px; min-height: 61px; padding-top: 10px; }
  .footer-btn { min-height: 46px; font-size: 11px; gap: 6px; padding: 9px 11px; }
  .footer-tools { gap: 8px; }
  .setup { min-width: 44px; justify-content: center; }
  .setup span { display: none; }
  .two-col, .qr-panel, .services { grid-template-columns: 1fr; }
  .back { margin-bottom: 16px; }
  .page-head { margin-bottom: 20px; }
  .page-head h1 { font-size: 30px; }
  .page-head > p:last-child { font-size: 13px; }
  .panel { padding: 20px; border-radius: 19px; }
  .panel h2 { font-size: 21px; }
  .qr-panel { max-width: 420px; gap: 22px; }
  .qr-box { width: min(270px,100%); margin: auto; padding: 10px; }
  .service { padding: 18px; gap: 12px; }
  .service strong { font-size: 14px; }
  .service .price { font-size: 13px; gap: 5px; }
  .dialog-content { padding: 25px; }
}
@media (max-height: 720px) and (max-width: 699px) {
  .welcome h1 { font-size: 29px; margin-bottom: 6px; }
  .welcome { margin-bottom: 14px; }
  .start-card { min-height: 160px; padding-block: 16px; }
  .start-title { font-size: 31px; }
  .action { min-height: 102px; padding-block: 10px; }
  .section-heading { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
}

/* Focused check-in: the camera fills the app; manual entry is its own view. */
.shell:is([data-mode="too-early"],[data-mode="too-late"]) { max-width: none; padding: 0; background: #000; color: #fff; }
.shell:is([data-mode="too-early"],[data-mode="too-late"]) > .top, .shell:is([data-mode="too-early"],[data-mode="too-late"]) > .footer, .shell:is([data-mode="too-early"],[data-mode="too-late"]) > .connection { display: none; }
.shell:is([data-mode="too-early"],[data-mode="too-late"]) main { padding: 0; }
.shell:is([data-mode="too-early"],[data-mode="too-late"]) .screen-content { max-width: none; min-height: 100%; margin: 0; }
.early-screen { position: relative; display: grid; place-items: center; min-height: var(--kiosk-height,100dvh); padding: 112px max(28px,env(safe-area-inset-right)) max(40px,env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left)); background: #000; text-align: center; }
.early-screen .scan-back { background: #000; border-color: #ffffff40; }
.early-screen button:focus-visible { outline-color: white; }
.early-content { width: 100%; max-width: 690px; animation: early-reveal .3s ease-out both; }
.early-clock { width: 76px; height: 76px; color: #fff; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin: 0 0 26px; }
.early-state { font-size: 11px; letter-spacing: 1.8px; color: #bdb7ba; margin: 0 0 18px; }
.early-screen h1 { font-size: clamp(34px,5vw,58px); font-weight: 500; line-height: 1.1; letter-spacing: -1.7px; margin: 0 0 22px; }
.early-message { max-width: 510px; margin: auto; color: #c9c4c6; font-size: clamp(16px,1.8vw,19px); line-height: 1.75; }
.early-message strong { color: #fff; font-weight: 500; }
.early-opening { margin: 32px 0 28px; }
.early-opening p { color: #c9c4c6; font-size: 13px; margin: 0 0 8px; }
.early-opening strong { display: block; font-size: clamp(44px,6vw,64px); font-weight: 500; line-height: 1.1; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.early-opening span { display: block; font-size: 13px; color: #a9a3a6; margin-top: 10px; }
.early-instruction { max-width: 440px; color: #c9c4c6; font-size: 14px; line-height: 1.6; margin: 26px auto; }
.early-done { display: flex; align-items: center; justify-content: center; gap: 20px; width: min(100%,300px); min-height: 56px; margin: 0 auto; padding: 15px 20px; color: #171517; background: white; border: 1px solid white; border-radius: 15px; font-size: 15px; font-weight: 500; }
.early-done:hover { background: #eee9eb; border-color: #eee9eb; }
@keyframes early-reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-height: 700px) {
 .early-screen { padding-top: 90px; padding-bottom: 24px; }
 .early-clock { display: none; }
 .early-state { margin-bottom: 12px; }
 .early-screen h1 { font-size: 34px; margin-bottom: 16px; }
 .early-message { font-size: 15px; line-height: 1.65; }
 .early-opening { margin: 22px 0; }
 .early-opening strong { font-size: 44px; }
 .early-instruction { font-size: 13px; margin-block: 20px; }
}
@media (max-height: 600px) and (min-width: 700px) {
 .early-content.has-schedule { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 0 32px; max-width: 900px; }
 .early-state, .early-screen h1, .early-message { grid-column: 1; }
 .early-opening { grid-column: 2; grid-row: 1 / 4; align-self: center; margin: 0; }
 .early-instruction, .early-done { grid-column: 1 / -1; }
}
.shell[data-mode="checkin"], .shell[data-mode="checkin-code"], .shell[data-mode="success"] { max-width: none; padding: 0; }
.shell[data-mode="checkin"] > .top, .shell[data-mode="checkin"] > .footer,
.shell[data-mode="checkin-code"] > .top, .shell[data-mode="checkin-code"] > .footer,
.shell[data-mode="success"] > .top, .shell[data-mode="success"] > .footer { display: none; }
.shell[data-mode="checkin"] main, .shell[data-mode="checkin-code"] main, .shell[data-mode="success"] main { padding: 0; }
.shell[data-mode="checkin"] .screen-content, .shell[data-mode="checkin-code"] .screen-content, .shell[data-mode="success"] .screen-content { max-width: none; min-height: 100%; margin: 0; }
.shell[data-mode="checkin"] main { overflow: hidden; }
.shell[data-mode="checkin"] .screen-content { height: 100%; }
.shell[data-mode="checkin"] > .connection, .shell[data-mode="checkin-code"] > .connection { position: absolute; z-index: 5; top: max(18px, env(safe-area-inset-top)); right: max(24px, env(safe-area-inset-right)); max-width: min(340px, calc(100% - 170px)); margin: 0; }
.scan-screen { position: relative; isolation: isolate; height: 100%; min-height: 0; background: #201e20; color: #fff; }
.scan-screen .camera { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; aspect-ratio: auto; background: #201e20; }
.scan-screen .camera video { display: block; width: 100%; height: 100%; object-fit: cover; }
.scan-screen:after { content: ''; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg,#151315df 0%,#1513158a 26%,#15131500 44%,#15131500 55%,#151315ad 78%,#151315ef 100%); }
.scan-screen .camera-placeholder { color: #ffffff85; }
.scan-screen .camera-placeholder .icon { width: 92px; height: 92px; stroke-width: 1; }
.scan-screen .scan-region-highlight { z-index: 2; border-radius: 24px; }
.scan-screen .scan-region-highlight-svg { stroke: #fff !important; stroke-width: 2.5 !important; filter: drop-shadow(0 1px 4px #0005); }
.scan-back { position: absolute; z-index: 3; left: max(28px,env(safe-area-inset-left)); top: max(24px,env(safe-area-inset-top)); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 18px; min-height: 52px; border: 1px solid #ffffff40; border-radius: 16px; color: inherit; background: #201e2059; font-size: 15px; font-weight: 500; }
.scan-back:hover { background: #201e208c; }
.scan-back .icon { width: 20px; height: 20px; }
.scan-screen button:focus-visible { outline-color: #fff; }
.scan-heading { position: absolute; z-index: 3; top: max(108px,11%); left: 24px; right: 24px; text-align: center; pointer-events: none; }
.scan-heading .eyebrow { color: #ffffffbf; letter-spacing: 2.3px; font-size: 10px; margin-bottom: 12px; }
.scan-heading h1 { font-size: clamp(29px,4vw,43px); font-weight: 500; letter-spacing: -1.3px; line-height: 1.15; margin: 0 0 14px; }
.scan-heading > p:last-child { color: #ffffffe0; font-size: 15px; line-height: 1.6; margin: 0; }
.scan-bottom { position: absolute; z-index: 3; bottom: max(28px,env(safe-area-inset-bottom)); left: max(24px,env(safe-area-inset-left)); right: max(24px,env(safe-area-inset-right)); width: auto; max-width: 440px; margin: auto; text-align: center; }
.scan-bottom .camera-status { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: #fffffff0; }
.scan-manual, .scan-retry { display: flex; width: 100%; align-items: center; justify-content: center; gap: 12px; min-height: 58px; border: 1px solid #fff; border-radius: 16px; padding: 15px 20px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 500; }
.scan-manual:hover { background: #f4edef; }
.scan-manual .icon { width: 23px; height: 23px; color: var(--red); }
.scan-retry { background: transparent; border-color: #ffffff75; color: white; margin-bottom: 12px; }
.scan-retry:hover { background: #ffffff17; }
.scan-bottom .camera-note { color: #ffffffaa; margin: 16px 0 0; font-size: 12px; }
.scan-bottom .error { margin: 0 0 16px; text-align: center; background: #fff5f7; }
.scan-bottom .error:empty, .manual-screen .error:empty { display: none; }
.scan-screen[data-state="error"] .scan-heading, .scan-screen[data-state="setup"] .scan-heading, .scan-screen[data-state="paused"] .scan-heading { top: max(108px,10%); }
.manual-screen { position: relative; display: flex; align-items: center; justify-content: center; min-height: var(--kiosk-height,100dvh); padding: 112px max(28px,env(safe-area-inset-right)) 40px max(28px,env(safe-area-inset-left)); }
.manual-screen .scan-back { position: fixed; top: calc(var(--kiosk-top,0px) + max(24px,env(safe-area-inset-top))); background: var(--paper); color: var(--ink); border-color: var(--line); }
.manual-screen .scan-back:hover { background: #f2e9e9; }
.manual-screen form { width: 100%; max-width: 460px; text-align: center; }
.manual-symbol { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--soft); color: var(--red); margin: 0 auto 28px; }
.manual-symbol .icon { width: 31px; height: 31px; }
.manual-screen h1 { font-size: clamp(32px,4vw,42px); font-weight: 500; letter-spacing: -1.3px; line-height: 1.15; margin: 0 0 16px; }
.manual-intro { margin: 0 0 34px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.manual-screen label { text-align: left; margin-bottom: 10px; }
.manual-screen .code { margin: 0; background: white; border-color: #d9c9cc; padding-block: 23px; font-size: clamp(20px,3.3vw,28px); letter-spacing: 2px; border-radius: 16px; }
.manual-hint { margin: 12px 0 28px; font-size: 12px; color: var(--muted); text-align: left; }
.manual-screen .primary { display: flex; justify-content: center; align-items: center; gap: 14px; min-height: 58px; border-radius: 16px; }
.manual-screen .primary .icon { width: 20px; height: 20px; }
.arrival-success { display: grid; place-items: center; min-height: var(--kiosk-height,100dvh); padding: max(36px,env(safe-area-inset-top)) max(28px,env(safe-area-inset-right)) max(36px,env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left)); text-align: center; }
.arrival-success-content { width: 100%; max-width: 700px; }
.arrival-success-mark { width: 88px; height: 88px; color: var(--red); overflow: visible; margin-bottom: 26px; }
.arrival-success-mark circle, .arrival-success-mark path { stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.success-ring { animation: success-draw .65s cubic-bezier(.25,.8,.3,1) both; transform: rotate(-90deg); transform-origin: center; opacity: .3; }
.success-tick { animation: success-draw .42s .32s ease-out both; }
.success-state { color: var(--red); font-size: 12px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; margin: 0 0 18px; animation: success-appear .45s .12s both; }
.arrival-success h1 { font-size: clamp(38px,5.7vw,64px); font-weight: 500; line-height: 1.08; letter-spacing: -2.1px; margin: 0 0 28px; overflow-wrap: anywhere; animation: success-appear .5s .2s both; }
.arrival-success h1 span { color: var(--red); }
.success-message { font-size: clamp(15px,1.7vw,18px); line-height: 1.75; color: var(--muted); margin: 0; animation: success-appear .5s .28s both; }
.success-appointment { font-size: 13px; margin: 24px 0 34px; color: var(--muted); animation: success-appear .5s .32s both; }
.success-appointment strong { color: var(--ink); font-weight: 500; }
.arrival-success .primary { display: flex; align-items: center; justify-content: center; gap: 18px; width: min(100%,280px); min-height: 56px; margin: 0 auto; animation: success-appear .5s .36s both; }
.arrival-success .primary .icon { width: 20px; height: 20px; }
.success-reset { font-size: 11px; color: var(--muted); margin: 18px 0 0; animation: success-appear .5s .4s both; }
@keyframes success-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes success-appear { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@media (max-height: 650px) {
 .arrival-success { padding-block: 24px; }
 .arrival-success-mark { width: 60px; height: 60px; margin-bottom: 14px; }
 .success-state { margin-bottom: 12px; font-size: 11px; }
 .arrival-success h1 { font-size: 38px; margin-bottom: 18px; letter-spacing: -1.3px; }
 .success-message { font-size: 14px; line-height: 1.6; }
 .success-appointment { margin: 16px 0 20px; }
 .arrival-success .primary { min-height: 48px; padding-block: 12px; }
 .success-reset { margin-top: 12px; }
}
@media (max-width: 699px) {
 .scan-back { left: max(20px,env(safe-area-inset-left)); top: max(20px,env(safe-area-inset-top)); min-height: 48px; padding: 11px 14px; font-size: 14px; border-radius: 14px; }
 .scan-heading { left: 20px; right: 20px; top: 104px; }
 .scan-heading h1 { font-size: 30px; }
 .scan-heading > p:last-child { font-size: 14px; }
 .scan-bottom { left: max(20px,env(safe-area-inset-left)); right: max(20px,env(safe-area-inset-right)); bottom: max(22px,env(safe-area-inset-bottom)); }
 .scan-bottom .camera-status { font-size: 13px; margin-bottom: 16px; }
 .scan-manual, .scan-retry { min-height: 54px; font-size: 14px; }
 .manual-screen { padding-inline: 24px; padding-bottom: 28px; }
 .manual-intro { font-size: 14px; }
}
@media (min-height: 701px) and (max-height: 900px) {
 .scan-heading { top: 88px; }
 .scan-heading .eyebrow { margin-bottom: 10px; }
 .scan-heading h1 { font-size: clamp(28px,4vw,34px); margin-bottom: 10px; }
 .scan-heading > p:last-child { font-size: 14px; line-height: 1.5; }
}
@media (max-height: 700px) {
 .scan-heading { top: 86px; }
 .scan-heading .eyebrow { display: none; }
 .scan-heading h1 { margin-bottom: 10px; font-size: 29px; }
 .scan-bottom { bottom: max(20px,env(safe-area-inset-bottom)); }
 .scan-bottom .camera-status { margin-bottom: 12px; }
 .scan-bottom .camera-note { margin-top: 12px; }
 .manual-screen { padding-top: 100px; padding-bottom: 24px; }
 .manual-symbol { display: none; }
 .manual-intro { margin-bottom: 24px; }
}
@media (max-height: 500px) {
 .scan-heading { top: max(28px,env(safe-area-inset-top)); left: 180px; right: 24px; text-align: right; }
 .scan-heading h1 { font-size: 24px; }
 .scan-heading > p:last-child, .scan-bottom .camera-note { display: none; }
 .scan-bottom { max-width: 400px; bottom: max(16px,env(safe-area-inset-bottom)); }
 .scan-bottom .camera-status { font-size: 12px; margin-bottom: 10px; }
 .scan-manual, .scan-retry { min-height: 48px; padding: 11px 16px; }
 .scan-screen[data-state="error"] .scan-heading, .scan-screen[data-state="setup"] .scan-heading, .scan-screen[data-state="paused"] .scan-heading { top: max(28px,env(safe-area-inset-top)); }
 .scan-screen[data-state="error"] .camera-placeholder, .scan-screen[data-state="setup"] .camera-placeholder, .scan-screen[data-state="paused"] .camera-placeholder { visibility: hidden; }
 .manual-screen h1 { font-size: 29px; }
 .manual-screen .eyebrow, .manual-screen .manual-intro { display: none; }
 .manual-screen .code { padding-block: 15px; }
 .manual-intro { margin-bottom: 20px; }
 .manual-hint { margin-bottom: 20px; }
}
