/* Panel screens after docs/screens/, built on base.css (palette, Inter and
   Cormorant Garamond). Sizes are at the 1600 × 2560 design size; the page script
   scales .ciao-screen to fit the device. Phone pages are designed at 430 × 932. */

/* iPad Safari: 100vh includes the space behind its toolbars, so the page
   fills the visible height (dvh) instead; no text autosizing, no double-tap
   zoom, no rubber-band scroll of the fitted screen. */
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* The panel's page itself never scrolls. With the root clipping too, the
   body keeps its own overflow: hidden (instead of handing it to the
   viewport), so WebKit can't size the page from the unscaled 1600 × 2560
   screen and let it scroll or bounce. */
html:has(> .ciao-body) { overflow: hidden; height: 100%; }
.ciao-body {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  touch-action: manipulation;
  overscroll-behavior: none;
  background: var(--surface-charcoal);
}
/* Centred, and scaled to fit by the page script (scale, not zoom: Safari's
   zoom shrinks the boxes but not always the text). */
.ciao-body > .ciao-screen { position: absolute; left: 50%; top: 50%; translate: -50% -50%; transform-origin: 50% 50%; }
.ciao-screen {
  --pad: 128px;
  --radius: 58px;
  --gap: 48px;
  --glass: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.28);
  width: var(--panel-width);
  max-width: none;
  height: var(--panel-height);
  aspect-ratio: auto;
  padding: 140px var(--pad) 120px;
  justify-content: flex-start;
  gap: var(--gap);
  overflow: hidden;
  font-weight: 300;
}
.ciao-screen *, .ciao-screen *::before, .ciao-screen *::after { box-sizing: border-box; }
.ciao-screen a { color: inherit; text-decoration: none; }
.ciao-screen p { margin: 0; }
.ciao-screen :where(button) { font: inherit; color: inherit; }
.ciao-screen :focus-visible { outline: 4px solid var(--accent-amber); outline-offset: 8px; }
.ciao-icon { flex: none; }
.ciao-hidden { position: absolute; left: -9999px; }

/* top bar: back link and a note */
.ciao-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 96px;
  margin: -40px 0 0;
  font-size: 46px;
  color: var(--text-secondary);
}
.ciao-back {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px 24px 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}
.ciao-aside { display: inline-flex; align-items: center; gap: 20px; letter-spacing: 0.04em; }

/* headings */
.ciao-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.ciao-badge {
  width: 248px; height: 248px;
  border-radius: 50%;
  border: 3px solid var(--border-circle);
  display: grid; place-content: center;
  margin-bottom: 40px;
}
.ciao-badge .ciao-icon { width: 104px; height: 104px; }
.ciao-kicker { font-size: 40px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-secondary); font-weight: 400; }
.ciao-title { font-family: var(--font-serif); font-weight: 400; font-size: 124px; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
.ciao-sub { font-size: 46px; color: var(--text-secondary); line-height: 1.4; }
.ciao-sub strong { color: var(--text-primary); font-weight: 500; }
.ciao-section { font-size: 40px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-secondary); margin: 24px 0 -8px !important; font-weight: 400; }

/* cards and rows */
.ciao-card {
  background: var(--glass);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 52px 56px;
  backdrop-filter: blur(16px);
  font-size: 46px;
  line-height: 1.5;
  color: var(--text-primary);
  text-align: left;
}
.ciao-card--center { text-align: center; }
.ciao-card--row { display: flex; align-items: center; gap: 40px; }
.ciao-card--warm { background: rgba(110, 84, 58, 0.45); }
.ciao-list { display: flex; flex-direction: column; gap: var(--gap); }
.ciao-list form { margin: 0; }
.ciao-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: var(--gap); margin: 0 -24px; padding: 0 24px 24px; scrollbar-width: none; }
.ciao-row {
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 30px 48px 30px 36px;
  background: var(--glass);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  min-height: 250px;
}
.ciao-row > .ciao-icon:last-child { color: var(--text-muted); margin-left: auto; }
.ciao-ring {
  flex: none;
  width: 168px; height: 168px;
  border-radius: 50%;
  border: 3px solid var(--border-circle);
  display: grid; place-content: center;
}
.ciao-ring .ciao-icon { width: 76px; height: 76px; }
.ciao-row-text { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.ciao-row-text strong { font-weight: 500; font-size: 52px; line-height: 1.25; }
.ciao-row-text > span { font-size: 42px; color: var(--text-secondary); line-height: 1.4; }
.ciao-label { font-size: 42px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); font-weight: 400; }
.ciao-label--bright { color: var(--text-primary); font-weight: 500; }
.ciao-big { font-family: var(--font-serif); font-size: 88px; font-weight: 400; line-height: 1.15; }
.ciao-note { font-size: 42px; color: var(--text-secondary); line-height: 1.5; }
.ciao-narrow { max-width: 1120px; text-align: center; }
.ciao-quote { font-family: var(--font-serif); font-style: italic; font-size: 64px; line-height: 1.3; margin: 12px 0 !important; }
.ciao-quote--left { text-align: left; }
.ciao-partner {
  display: inline-block;
  font-style: normal;
  font-size: 34px;
  font-weight: 400;
  padding: 4px 24px;
  margin-left: 16px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-dark-nav);
  vertical-align: middle;
}
.ciao-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.ciao-pair form { margin: 0; display: grid; }

/* buttons */
.ciao-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 140px;
  padding: 0 72px;
  border-radius: 999px;
  border: 3px solid #fff;
  background: #fff;
  color: var(--text-dark-nav) !important;
  font-size: 50px;
  font-weight: 500;
  cursor: pointer;
}
.ciao-btn--ghost { background: rgba(255, 255, 255, 0.06); color: var(--text-primary) !important; border-color: rgba(255, 255, 255, 0.75); }
.ciao-btn--wide { width: 100%; }
.ciao-btn--caps { text-transform: uppercase; letter-spacing: 0.12em; font-size: 44px; }
.ciao-btn--small { min-height: 100px; font-size: 42px; padding: 0 40px; width: 100%; }
.ciao-btn[aria-disabled="true"] { cursor: default; }
.ciao-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 0 140px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.18);
  font-size: 56px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}
.ciao-chip {
  align-self: center;
  padding: 10px 40px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  font-size: 40px;
  color: var(--text-secondary);
}
.ciao-stack { display: flex; flex-direction: column; gap: 40px; width: 920px; }
.ciao-stack--wide { width: 100%; }
.ciao-link { align-self: center; font-size: 22px; color: var(--text-secondary); text-decoration: underline !important; }
.ciao-center { display: flex; flex-direction: column; align-items: center; gap: 56px; flex: 1; }

/* 19 arrival */
.ciao-arrival .ciao-top { margin-top: 40px; }
.ciao-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 100px; padding-bottom: 260px; text-align: center; }
.ciao-greeting { font-family: var(--font-serif); font-weight: 400; font-size: 204px; line-height: 1.12; margin: 0; max-width: 1000px; }
.ciao-welcome { font-size: 66px; color: var(--text-secondary); margin-top: -30px !important; }

/* 18 home */
.ciao-home { padding-top: 150px; gap: 0; }
.ciao-weather { display: inline-flex; align-items: center; gap: 24px; font-size: 46px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); padding: 16px 24px; }
.ciao-greeting--home { font-size: 178px; line-height: 1.1; max-width: 1200px; }
.ciao-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 90px 0; margin-top: 110px; justify-items: center; padding: 0 120px; }
.ciao-tile { display: flex; flex-direction: column; align-items: center; gap: 56px; }
.ciao-tile:active { transform: scale(0.97); }
.ciao-tile-ring {
  width: 370px; height: 370px;
  border-radius: 50%;
  border: 3px solid var(--border-circle);
  background: rgba(255, 255, 255, 0.04);
  display: grid; place-content: center;
}
.ciao-tile-ring .ciao-icon { width: 120px; height: 120px; }
.ciao-tile-label { font-size: 52px; font-weight: 400; letter-spacing: 0.02em; }

/* 16 wifi */
.ciao-qr-card { display: block; background: #fff; border-radius: 40px; padding: 40px; width: 460px; }
.ciao-qr { display: block; width: 100%; height: auto; }

/* 15 topic steps */
.ciao-step { display: flex; gap: 52px; align-items: flex-start; padding: 52px 56px; }
.ciao-step > span:last-child { display: flex; flex-direction: column; gap: 8px; }
.ciao-step strong { font-weight: 500; font-size: 56px; line-height: 1.3; }
.ciao-step > span > span { font-size: 46px; color: var(--text-secondary); line-height: 1.65; }
.ciao-num {
  flex: none;
  width: 122px; height: 122px;
  border-radius: 50%;
  border: 3px solid var(--border-circle);
  display: grid; place-content: center;
  font-family: var(--font-serif);
  font-size: 44px;
}

/* 12 emergency */
.ciao-alert {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px 56px;
  border-radius: 48px;
  border: 3px solid var(--accent-amber);
  background: rgba(150, 110, 70, 0.55);
  font-size: 48px;
}
.ciao-alert strong { font-weight: 400; flex: 1; }
.ciao-alert span { font-size: 40px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.ciao-evac { display: flex; flex-direction: column; gap: 36px; }
.ciao-route { display: block; width: 100%; height: auto; border-radius: 32px; background: #2f3744; font-family: var(--font-sans); }

/* 13 checkout checklist */
.ciao-check {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 44px;
  min-height: 170px;
  padding: 0 52px;
  background: var(--glass);
  border: 3px solid var(--line);
  border-radius: 40px;
  font-size: 50px;
  text-align: left;
  cursor: pointer;
}
.ciao-check-ring {
  flex: none;
  width: 92px; height: 92px;
  border-radius: 50%;
  border: 3px solid var(--border-circle);
  display: grid; place-content: center;
}
.ciao-check-ring .ciao-icon { opacity: 0; }
.ciao-check.is-done .ciao-check-ring { background: #fff; color: var(--text-dark-nav); border-color: #fff; }
.ciao-check.is-done .ciao-check-ring .ciao-icon { opacity: 1; }
.ciao-check.is-done > span:last-child { text-decoration: line-through; color: var(--text-secondary); }

/* 2 feedback */
.ciao-textarea {
  width: 100%;
  min-height: 400px;
  box-sizing: border-box;
  padding: 44px 52px;
  border-radius: 40px;
  border: 3px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font: inherit;
  font-size: 44px;
  resize: none;
}
.ciao-textarea::placeholder, .ciao-input::placeholder { color: var(--text-muted); }

/* 3 memoir */
.ciao-memoir { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.ciao-memoir-title { font-family: var(--font-serif); font-size: 76px; font-weight: 400; }
.ciao-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; width: 100%; margin: 32px 0; padding-top: 40px; border-top: 2px solid var(--line); }
.ciao-mini { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 40px; border-radius: 36px; background: rgba(30, 46, 62, 0.75); border: 2px solid var(--line); }
.ciao-mini strong { font-weight: 500; font-size: 42px; margin-top: 32px; }
.ciao-mini span { font-size: 34px; color: var(--text-secondary); }
.ciao-send { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.ciao-send .ciao-qr { width: 380px; padding: 30px; background: #fff; border-radius: 32px; }
.ciao-chip--top { margin-top: -24px; }

/* 9 controls */
.ciao-dial { display: flex; align-items: center; gap: 52px; min-height: 330px; padding: 0 64px; }
.ciao-dial .ciao-ring { width: 186px; height: 186px; }
.ciao-dial-text { display: flex; flex-direction: column; flex: 1; }
.ciao-steppers { display: flex; gap: 32px; margin: 0; }
.ciao-step-btn {
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 3px solid var(--border-circle);
  background: transparent;
  display: grid; place-content: center;
  cursor: pointer;
}
.ciao-step-btn:disabled { opacity: 0.35; cursor: default; }
.ciao-light {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-height: 370px;
  cursor: pointer;
  color: var(--text-secondary) !important;
  background: rgba(255, 255, 255, 0.05);
}
.ciao-light strong { font-weight: 500; font-size: 54px; margin-top: auto; }
.ciao-light span { font-size: 46px; }
.ciao-light.is-on { background: rgba(255, 255, 255, 0.22); border-color: #fff; color: var(--text-primary) !important; }
.ciao-light.is-on span { color: var(--text-secondary); }

/* 10 AI assist (was Plan my day) */
.ciao-chat { display: flex; flex-direction: column; gap: 56px; flex: 1; min-height: 0; }
.ciao-bubble {
  align-self: flex-end;
  max-width: 980px;
  padding: 40px 64px;
  border-radius: 48px;
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid var(--line);
  font-size: 54px;
  line-height: 1.4;
}
.ciao-bubble span { display: block; font-size: 42px; color: var(--text-secondary); }
.ciao-plan { display: flex; flex-direction: column; gap: 52px; background: rgba(30, 38, 48, 0.55); }
.ciao-stop { display: flex; flex-direction: column; gap: 4px; padding-left: 48px; border-left: 3px solid var(--line); }
.ciao-stop strong { font-weight: 500; font-size: 56px; }
.ciao-stop span:last-child { font-size: 46px; color: var(--text-secondary); }
.ciao-time { font-size: 46px; color: #F0D48A; }
.ciao-ask { display: flex; gap: 32px; margin: 0; }
.ciao-input {
  flex: 1;
  min-height: 132px;
  padding: 0 64px;
  border-radius: 999px;
  border: 3px solid var(--line);
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font: inherit;
  font-size: 46px;
}

/* 8 reminders */
.ciao-toggle-row { width: 100%; display: flex; align-items: center; gap: 40px; min-height: 200px; padding: 0 56px; cursor: pointer; }
.ciao-switch { flex: none; position: relative; width: 136px; height: 76px; border-radius: 999px; background: rgba(255, 255, 255, 0.35); }
.ciao-switch::after { content: ""; position: absolute; top: 8px; left: 8px; width: 60px; height: 60px; border-radius: 50%; background: #fff; transition: left 0.2s; }
.ciao-switch.is-on, .ciao-switch-input:checked + .ciao-switch { background: #fff; }
.ciao-switch.is-on::after, .ciao-switch-input:checked + .ciao-switch::after { left: 68px; background: var(--surface-charcoal); }
.ciao-switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* 7 pantry */
.ciao-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.ciao-product { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 44px; }
.ciao-product-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.ciao-price { font-family: var(--font-serif); font-size: 64px; }
.ciao-product strong { font-weight: 500; font-size: 50px; }
.ciao-product > span { font-size: 40px; color: var(--text-secondary); min-height: 112px; }
.ciao-product .ciao-btn { margin-top: 24px; }

/* 6 sky */
.ciao-when { font-family: var(--font-serif); font-size: 64px; color: #F0D48A; white-space: nowrap; }

/* 5 story */
.ciao-landscape { position: relative; padding: 0; overflow: hidden; }
.ciao-landscape svg { display: block; width: 100%; height: 420px; }
.ciao-tag { position: absolute; left: 40px; bottom: 32px; padding: 8px 32px; border-radius: 999px; background: rgba(20, 24, 30, 0.75); border: 2px solid var(--line); font-size: 32px; letter-spacing: 0.12em; text-transform: uppercase; }

/* 4 phone pages (430 × 932 design) */
.ciao-phone {
  --pad: 28px;
  --radius: 22px;
  --gap: 16px;
  width: 430px;
  height: 932px;
  padding: 56px var(--pad) 32px;
  gap: 24px;
  overflow-y: auto;
}
.ciao-phone .ciao-kicker { font-size: 13px; }
.ciao-phone .ciao-title { font-size: 46px; }
.ciao-phone .ciao-sub { font-size: 16px; }
.ciao-phone .ciao-card { padding: 20px 22px; border-width: 1.5px; font-size: 16px; }
.ciao-phone .ciao-label { font-size: 14px; }
.ciao-phone .ciao-big { font-size: 34px; }
.ciao-phone .ciao-note { font-size: 15px; }
.ciao-phone .ciao-chip { font-size: 14px; padding: 6px 16px; border-width: 1px; }
.ciao-phone .ciao-btn { min-height: 56px; font-size: 16px; padding: 0 24px; border-width: 1.5px; }
.ciao-phone .ciao-btn--caps { font-size: 15px; }
.ciao-phone .ciao-row-text strong { font-size: 18px; }
.ciao-phone .ciao-row-text > span { font-size: 14px; }
.ciao-phone .ciao-toggle-row { min-height: 76px; padding: 0 22px; gap: 16px; }
.ciao-phone .ciao-switch { width: 52px; height: 30px; }
.ciao-phone .ciao-switch::after { top: 3px; left: 3px; width: 24px; height: 24px; }
.ciao-phone .ciao-switch-input:checked + .ciao-switch::after { left: 25px; }
.ciao-phone .ciao-memoir-title { font-size: 28px; }
.ciao-phone .ciao-minis { gap: 12px; margin: 12px 0; padding-top: 16px; }
.ciao-phone .ciao-mini { padding: 14px; border-radius: 16px; }
.ciao-phone .ciao-mini strong { font-size: 15px; margin-top: 10px; }
.ciao-phone .ciao-mini span { font-size: 12px; }
.ciao-slider { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; }
.ciao-slider input { grid-column: 1 / -1; width: 100%; accent-color: #fff; margin-top: 12px; }

@media print {
  .ciao-body { background: #fff; height: auto; overflow: visible; }
  .ciao-body > .ciao-screen { position: static; translate: none; scale: none !important; height: auto; }
  .ciao-btn, .ciao-link { display: none; }
}

/* touch targets: at least 112 px at the design size (56 px on the tablet) */
.ciao-back, .ciao-weather, .ciao-wifi-link { min-height: 112px; }

/* 0 lock screen: a slow screensaver around a live clock */
/* 0 Lock screen: asleep. Matches the website's resting panel, dimmer still,
   so it reads as off until someone taps. It drifts a little (no burn-in). */
.ciao-ambient { background: linear-gradient(180deg, #0b0f15 0%, #0f141c 55%, #15161a 100%); padding: 0; position: relative; isolation: isolate; }
.ciao-lock { position: absolute; inset: 0; display: block; z-index: 1; transition: opacity 0.9s ease; }
/* the edges around the fitted screen are as dark as it is while it sleeps */
.ciao-body:has(.ciao-ambient):not(.is-awake) { background: #0b0f15; }
.ciao-drift {
  position: absolute; top: 0; bottom: 620px; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; text-align: center;
  animation: ciao-drift 420s ease-in-out infinite alternate;
}
.ciao-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ciao-ambient .ciao-kicker { color: rgba(242, 237, 230, 0.4); letter-spacing: 0.32em; font-size: 38px; }
.ciao-clock { font-family: var(--font-serif); font-weight: 300; font-size: 300px; line-height: 0.95; color: rgba(242, 237, 230, 0.62); display: flex; align-items: baseline; gap: 28px; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
.ciao-clock [data-hm].is-turning { animation: ciao-turn 1.1s ease both; }
.ciao-ampm { font-family: var(--font-sans); font-size: 88px; color: rgba(242, 237, 230, 0.34); }
.ciao-date { font-size: 60px; color: rgba(242, 237, 230, 0.4); letter-spacing: 0.02em; }
.ciao-sky { display: flex; align-items: center; gap: 36px; margin-top: 70px; font-size: 68px; color: rgba(242, 237, 230, 0.48); }
.ciao-sky .ciao-icon { color: #f3c88a; opacity: 0.55; }
.ciao-ambient .ciao-note { max-width: 1000px; color: rgba(242, 237, 230, 0.45); }
.ciao-hill {
  position: absolute; left: -8%; right: -8%; bottom: 0; height: 600px; z-index: 0; pointer-events: none;
  border-radius: 50% 50% 0 0 / 70px 70px 0 0;
  background: linear-gradient(180deg, rgba(42, 42, 44, 0.75), rgba(26, 25, 25, 0.9));
}
.ciao-wake {
  position: absolute; inset: 0; z-index: 2; padding: 180px var(--pad) 120px;
  display: flex; flex-direction: column; gap: var(--gap);
  background: linear-gradient(180deg, var(--bg-dusk-top) 0%, var(--bg-dusk-upper-mid) 35%, var(--bg-dusk-lower-mid) 68%, var(--bg-dusk-bottom) 100%);
  opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
.is-awake .ciao-wake { opacity: 1; visibility: visible; transition: opacity 0.9s ease; }
.is-awake .ciao-lock { opacity: 0; pointer-events: none; }
.is-night .ciao-ambient { filter: brightness(0.7); }

@keyframes ciao-breathe { 0%, 100% { transform: scale(1); opacity: 0.75; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes ciao-turn { 0% { opacity: 0; transform: translateY(24px); filter: blur(6px); } 100% { opacity: 1; transform: none; filter: none; } }
/* the clock wanders a little so nothing burns into the screen */
@keyframes ciao-drift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-140px, 260px); }
  50% { transform: translate(120px, 620px); }
  75% { transform: translate(160px, 180px); }
  100% { transform: translate(-90px, 440px); }
}
/* the voice concierge: the mic (top right) and the conversation, as text */
.ciao-agent {
  position: absolute; left: 64px; right: 64px; bottom: 64px; z-index: 4;
  display: flex; flex-direction: column; gap: 40px;
  max-height: 1240px; padding: 64px;
  border-radius: var(--radius); border: 3px solid var(--line);
  /* frosted glass: the screen shows through */
  background: linear-gradient(180deg, rgba(40, 54, 70, 0.42), rgba(24, 34, 46, 0.6));
  -webkit-backdrop-filter: blur(40px) saturate(150%); backdrop-filter: blur(40px) saturate(150%);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-variant-numeric: lining-nums;
  transition: max-height 0.4s ease;
}
/* older lines fade out at the top instead of being cut in half */
.ciao-agent-log {
  flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 32px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(transparent, #000 90px); mask-image: linear-gradient(transparent, #000 90px); padding-top: 60px;
}
/* slim, while a screen the assistant opened is being looked at: the last answer, the buttons in a row, the bar */
.ciao-agent.is-compact { max-height: 520px; gap: 28px; padding: 44px 56px; cursor: pointer; }
.ciao-agent.is-compact .ciao-agent-log { -webkit-mask-image: none; mask-image: none; padding-top: 0; }
.ciao-agent.is-compact .ciao-said { display: none; }
.ciao-agent.is-compact .ciao-said--panel:last-of-type { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 56px; }
.ciao-agent.is-compact .ciao-agent-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.ciao-agent.is-compact .ciao-agent-chip { flex: none; }
.ciao-agent-log:empty { display: none; }
.ciao-said { margin: 0; line-height: 1.4; }
.ciao-said--guest { align-self: flex-end; max-width: 80%; text-align: right; font-size: 46px; color: var(--text-secondary); }
.ciao-said--panel, .ciao-agent-question { margin: 0; font-variant-numeric: lining-nums; font-family: var(--font-serif); font-size: 66px; line-height: 1.25; color: var(--text-primary); }
.ciao-agent-chips { display: flex; flex-wrap: wrap; gap: 24px; }
/* Spending, checking out, a note: the guest's own tap says yes. */
.ciao-agent-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; width: 100%; }
.ciao-agent-confirm p { flex: 1 1 100%; margin: 0; font-size: 44px; line-height: 1.3; color: var(--text-primary); }
.ciao-agent-confirm .ciao-btn { min-width: 240px; min-height: 112px; }
.ciao-agent-chip, .ciao-agent-end {
  min-height: 112px; padding: 0 44px; border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font: inherit; font-size: 40px; color: var(--text-primary); cursor: pointer;
}
.ciao-agent-bar { display: flex; align-items: center; gap: 36px; }
.ciao-agent-state { flex: 1; font-size: 44px; color: var(--text-secondary); letter-spacing: 0.04em; }
.ciao-agent-end { border-color: rgba(255, 255, 255, 0.75); letter-spacing: 0.12em; text-transform: uppercase; }
.ciao-agent-ring { flex: none; width: 112px; height: 112px; border-radius: 50%; border: 6px solid var(--accent-amber); opacity: 0.5; }
.ciao-agent[data-mode="listen"] .ciao-agent-ring, .ciao-agent[data-mode="hear"] .ciao-agent-ring { opacity: 1; box-shadow: 0 0 50px rgba(229, 169, 112, 0.7); animation: ciao-breathe 2.4s ease-in-out infinite; }
.ciao-agent[data-mode="hear"] .ciao-agent-ring { background: rgba(229, 169, 112, 0.35); }
.ciao-agent[data-mode="speak"] .ciao-agent-ring { opacity: 1; background: var(--accent-amber); box-shadow: 0 0 70px rgba(229, 169, 112, 0.8); animation: ciao-breathe 1.2s ease-in-out infinite; }
.ciao-agent[data-mode="off"] .ciao-agent-ring { border-color: var(--text-muted); }


/* "Can I turn on your microphone?", asked in the box */
.ciao-agent-consent { display: none; flex-direction: column; gap: 32px; }
.ciao-agent.is-asking .ciao-agent-consent { display: flex; }
.ciao-agent.is-asking :is(.ciao-agent-log, .ciao-agent-chips, .ciao-agent-bar) { display: none; }
.ciao-agent-small { font-size: 42px; color: var(--text-secondary); line-height: 1.45; }
.ciao-agent-yesno { display: flex; gap: 32px; margin-top: 16px; }
.ciao-agent-yesno .ciao-btn { flex: 1; white-space: nowrap; padding: 0 40px; }
.ciao-voice-stage .ciao-agent-consent { text-align: center; align-items: center; }
.ciao-voice-stage:has(.is-asking) .ciao-orb-hint, .ciao-orb[data-agent="ask"] ~ .ciao-agent-chips { display: none; }

/* AI assist as a voice screen: the orb, the conversation under it */
.ciao-voice-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 56px; padding-top: 40px; }
.ciao-orb {
  position: relative; flex: none;
  width: 520px; height: 520px; border-radius: 50%;
  display: grid; place-content: center;
  border: 4px solid rgba(255, 255, 255, 0.55);
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06) 70%);
  box-shadow: 0 0 120px rgba(229, 169, 112, 0.25);
  transition: width 0.5s ease, height 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}
.ciao-orb::after { content: ""; position: absolute; inset: -40px; border-radius: 50%; border: 3px solid rgba(229, 169, 112, 0.35); animation: ciao-breathe 4s ease-in-out infinite; }
.ciao-orb-core { display: grid; place-content: center; width: 260px; height: 260px; border-radius: 50%; background: rgba(229, 169, 112, 0.22); color: var(--text-primary); }
.ciao-orb-hint { font-size: 50px; color: var(--text-secondary); letter-spacing: 0.04em; }
.ciao-voice-stage > .ciao-agent-chips { justify-content: center; max-width: 1200px; }
.is-talking .ciao-orb { width: 380px; height: 380px; border-color: var(--accent-amber); box-shadow: 0 0 160px rgba(229, 169, 112, 0.7); }
.is-talking .ciao-orb-hint, .is-talking .ciao-voice-stage > .ciao-agent-chips { display: none; }
.ciao-voice-stage:has(.ciao-agent[data-mode="hear"]) .ciao-orb-core { background: rgba(229, 169, 112, 0.55); animation: ciao-breathe 1.2s ease-in-out infinite; }
.ciao-voice-stage:has(.ciao-agent[data-mode="speak"]) .ciao-orb-core { background: var(--accent-amber); color: var(--text-dark-nav); animation: ciao-breathe 0.9s ease-in-out infinite; }
.ciao-voice-stage:has(.ciao-agent[data-mode="think"]) .ciao-orb::after { animation-duration: 1s; }
.ciao-voice-stage .ciao-agent { position: static; width: 100%; flex: 1; min-height: 0; max-height: none; padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; }
.ciao-voice-stage .ciao-agent .ciao-agent-ring { display: none; }
.ciao-voice-stage .ciao-agent-state { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .ciao-drift, .ciao-message, .ciao-clock [data-hm].is-turning, .ciao-agent .ciao-agent-ring, .ciao-orb::after, .ciao-orb-core { animation: none !important; }
}
.ciao-note--bright { color: var(--text-primary); }

/* pairing code on a new tablet */
.ciao-center--mid { justify-content: center; padding-bottom: 200px; }
.ciao-code { display: flex; gap: 24px; justify-content: center; }
.ciao-code span { width: 130px; height: 190px; display: grid; place-content: center; border: 3px solid var(--border-circle); border-radius: 36px; background: rgba(255, 255, 255, 0.08); font-size: 96px; font-weight: 400; }
.ciao-link--panel { font-size: 44px; margin-top: 40px; }

/* the reminders screen: the wake-up alarm's time, in 15-minute steps */
.ciao-alarm-time { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin: -24px 0 0; padding: 32px 48px; }
.ciao-alarm-time .ciao-big { font-variant-numeric: lining-nums; }

/* the alarm ringing: over everything, full screen, two big buttons */
.ciao-alarm {
  position: fixed; inset: 0; z-index: 50; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4vmin;
  background: radial-gradient(ellipse at 50% 70%, #e9a35f 0%, #b06b3a 30%, #3a3340 70%, #1b2430 100%);
  color: #fff; font-family: var(--font-sans); text-align: center;
  animation: ciao-dawn 2s ease both;
}
.ciao-alarm p { margin: 0; }
.ciao-alarm-kicker { font-size: 3.2vmin; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.ciao-alarm-clock { font-family: var(--font-serif); font-weight: 300; font-size: 22vmin; line-height: 1; font-variant-numeric: lining-nums; }
.ciao-alarm-buttons { display: flex; gap: 4vmin; margin-top: 6vmin; }
.ciao-alarm-buttons button {
  min-width: 34vmin; min-height: 12vmin; padding: 0 5vmin; border-radius: 999px; font: 500 4vmin var(--font-sans); cursor: pointer;
  border: 3px solid rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.14); color: #fff;
}
.ciao-alarm-buttons [data-stop] { background: #fff; color: var(--text-dark-nav); border-color: #fff; }
@keyframes ciao-dawn { from { opacity: 0; } to { opacity: 1; } }

/* G30 directions, after the "Getting there" mock: a Directions pill on each
   local pick; left-aligned head; the dark map; the host's note and the QR code */
.ciao-go { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 12px; min-height: 112px; padding: 0 36px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.1); font-size: 38px; letter-spacing: 0.04em; }
.ciao-getting { flex: none; display: flex; flex-direction: column; gap: 16px; margin-top: 0; }
.ciao-getting .ciao-title { font-size: 150px; line-height: 1.02; }
.ciao-meta { font-size: 54px; color: var(--text-secondary); font-variant-numeric: lining-nums; }
.ciao-meta strong { color: var(--text-primary); font-weight: 500; }
.ciao-map { flex: none; padding: 0; overflow: hidden; background: #1c2733; border-color: rgba(255, 255, 255, 0.18); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35); }
.ciao-map-stack { position: relative; }
.ciao-map-img, .ciao-map-drawn { display: block; width: 100%; height: auto; }
.ciao-map-over { position: absolute; inset: 0; width: 100%; height: 100%; font-family: var(--font-sans); }
.ciao-map-drawn { font-family: var(--font-sans); }
.ciao-directions-cards { flex: none; grid-template-columns: 1.25fr 1fr; align-items: stretch; }
.ciao-directions-cards .ciao-card { padding: 44px 48px; }
.ciao-directions-cards--one { grid-template-columns: 1fr; }
.ciao-hostnote p:last-child { font-size: 46px; line-height: 1.4; margin-top: 24px !important; }
.ciao-scan { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.ciao-scan strong { font-size: 42px; font-weight: 500; white-space: nowrap; }
.ciao-scan span { font-size: 32px; color: var(--text-secondary); line-height: 1.35; }
.ciao-scan svg { flex: none; width: 260px; height: 260px; background: #fff; border-radius: 36px; padding: 28px; }
.ciao-fineprint { margin-top: auto !important; font-size: 36px; color: rgba(255, 255, 255, 0.5); }
.ciao-fineprint span { color: rgba(255, 255, 255, 0.85); }

/* G31 the blended view on AI assist: the screen the assistant opens as a card
   over the conversation; the mic in the corner; the conversation a strip */
.ciao-peek {
  position: absolute; left: 64px; right: 64px; top: 470px; bottom: 620px; z-index: 5;
  border-radius: var(--radius); overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.28); background: var(--bg-dusk-top);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.5);
  transform: translateY(115%) scale(0.96); opacity: 0;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}
.ciao-peek.is-open { transform: none; opacity: 1; }
.ciao-peek.is-closing { transform: translateY(115%) scale(0.96); opacity: 0; }
.ciao-peek-view { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; }
.ciao-peek-fit { position: relative; width: 1466px; height: 2346px; }
.ciao-peek-screen { position: absolute; left: 0; top: 0; transform: scale(0.91625); transform-origin: 0 0; padding-top: 80px; }
.ciao-peek-back {
  position: absolute; top: 111px; right: calc(var(--pad) + 182px); z-index: 7;
  min-height: 112px; padding: 0 48px; border-radius: 999px; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.45); background: rgba(24, 34, 46, 0.55);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  font: inherit; font-size: 40px; color: var(--text-primary); letter-spacing: 0.04em;
}
.is-peeking .ciao-voice-stage .ciao-orb { position: absolute; top: 92px; right: var(--pad); width: 150px; height: 150px; z-index: 6; }
.is-peeking .ciao-voice-stage .ciao-orb::after { inset: -14px; }
.is-peeking .ciao-voice-stage .ciao-orb-core { width: 110px; height: 110px; }
.is-peeking .ciao-voice-stage .ciao-orb-core svg { width: 56px; height: 56px; }
.is-peeking .ciao-voice-stage .ciao-agent {
  position: absolute; left: 64px; right: 64px; bottom: 64px; z-index: 6; width: auto; padding: 44px 56px; max-height: 520px;
  border-radius: var(--radius); border: 3px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, rgba(40, 54, 70, 0.42), rgba(24, 34, 46, 0.6));
  -webkit-backdrop-filter: blur(40px) saturate(150%); backdrop-filter: blur(40px) saturate(150%);
}
@media (prefers-reduced-motion: reduce) { .ciao-peek, .ciao-peek.is-closing { transition: none; } }

/* Directions inside the AI assist card: the map and the QR code side by side,
   so both show without scrolling; the host's note and the small print stay
   on the full screen */
.ciao-peek-screen.ciao-directions { display: grid; grid-template-columns: 1fr 540px; column-gap: 48px; row-gap: 40px; align-content: start; padding-top: 90px; }
.ciao-peek-screen.ciao-directions .ciao-getting { grid-column: 1 / -1; }
.ciao-peek-screen.ciao-directions .ciao-map { grid-column: 1; grid-row: 2; align-self: start; }
.ciao-peek-screen.ciao-directions .ciao-directions-cards { grid-column: 2; grid-row: 2; display: flex; }
.ciao-peek-screen.ciao-directions .ciao-hostnote, .ciao-peek-screen.ciao-directions .ciao-fineprint { display: none; }
.ciao-peek-screen.ciao-directions .ciao-scan { flex: 1; padding: 40px 32px; }
.ciao-peek-screen.ciao-directions .ciao-scan svg { width: 440px; height: 440px; }
.ciao-peek-screen.ciao-directions .ciao-scan strong { white-space: normal; font-size: 44px; }

/* a snoozed alarm: a glass pill at the top of every screen, counting down */
.ciao-snooze {
  position: fixed; top: 1vmin; left: 50%; translate: -50% 0; z-index: 40;
  display: flex; align-items: center; gap: 1.6vmin; padding: 0.8vmin 1vmin 0.8vmin 2.2vmin;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(30, 40, 52, 0.62); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: #fff; font: 400 2.1vmin var(--font-sans); white-space: nowrap; box-shadow: 0 1vmin 4vmin rgba(0, 0, 0, 0.35);
  animation: ciao-dawn 0.5s ease both;
}
.ciao-snooze b { font-weight: 500; font-variant-numeric: tabular-nums lining-nums; color: #F3C88A; }
.ciao-snooze-dot { width: 1.4vmin; height: 1.4vmin; border-radius: 50%; background: #E5A970; box-shadow: 0 0 2vmin #E5A970; animation: ciao-breathe 2s ease-in-out infinite; }
.ciao-snooze button { min-height: 5.4vmin; padding: 0 2.6vmin; border-radius: 999px; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.14); color: #fff; font: 500 2.2vmin var(--font-sans); }
@media (prefers-reduced-motion: reduce) { .ciao-snooze-dot { animation: none; } }

/* G30: the route draws itself from the house as Directions opens, then the
   pin drops in and the place's label rises; the house breathes. Only the
   motion: the screen's layout is unchanged. */
@media (prefers-reduced-motion: no-preference) {
  .ciao-route-line { stroke-dasharray: 1; animation: ciao-draw 2.2s 0.4s cubic-bezier(0.45, 0, 0.2, 1) both; }
  .ciao-route-pin { transform-box: fill-box; transform-origin: 50% 100%; animation: ciao-pin 0.6s 2.5s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
  .ciao-pill-map { animation: ciao-label 0.5s 0.2s both; }
  .ciao-pill-map.is-end { animation-delay: 2.8s; }
  .ciao-route-home { transform-box: fill-box; transform-origin: center; animation: ciao-home 2.4s ease-in-out infinite; }
}
@keyframes ciao-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ciao-pin { from { opacity: 0; translate: 0 -30px; } to { opacity: 1; translate: 0 0; } }
@keyframes ciao-label { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes ciao-home { 0%, 100% { scale: 1; opacity: 0.9; } 50% { scale: 1.7; opacity: 0.25; } }

/* Emergency · where things are: two columns of short lines. */
.ciao-safety { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; }
.ciao-safety p { margin: 0; display: grid; gap: 4px; font-size: 40px; }
.ciao-safety strong { font-weight: 500; }
.ciao-safety span { color: var(--text-secondary); font-size: 34px; }

/* Arrival: the host's own line under the welcome. */
.ciao-welcome-note { font-size: 44px; max-width: 1100px; margin-inline: auto !important; text-align: center; }

/* The host's photos: the story's picture, a step's, a place's or an extra's in the ring. */
.ciao-landscape .ciao-photo { display: block; width: 100%; height: 420px; object-fit: cover; }
.ciao-ring--photo { object-fit: cover; padding: 0; }
.ciao-step-photo { flex: none; width: 260px; height: 196px; margin-left: auto; object-fit: cover; border-radius: 32px; }

/* Home: a message from the host (H35), until Got it. */
/* A sheet over the bottom of Home, so the tiles never move. */
.ciao-message {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 120px; z-index: 3;
  display: grid; gap: 24px; padding: 56px 64px;
  border-color: rgba(229, 169, 112, 0.6); background: rgba(30, 36, 46, 0.86);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  animation: ciao-sheet 0.6s ease both;
}
.ciao-message .ciao-label { color: #f3c88a; }
.ciao-message-text { font-family: var(--font-serif); font-size: 64px; line-height: 1.25; color: var(--text-primary); }
.ciao-message .ciao-btn { justify-self: start; width: auto; min-width: 320px; }
@keyframes ciao-sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Something's not right (H04): what it's about, as pills to tap. */
.ciao-picks { display: flex; flex-wrap: wrap; gap: 24px; }
.ciao-pick { position: relative; }
.ciao-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ciao-pick span { display: inline-flex; align-items: center; min-height: 112px; padding: 0 44px; border-radius: 999px; border: 2px solid var(--line); background: var(--glass); font-size: 40px; cursor: pointer; }
.ciao-pick input:checked + span { background: #fff; color: var(--surface-charcoal); border-color: #fff; }
.ciao-pick input:focus-visible + span { outline: 4px solid var(--accent-amber); outline-offset: 4px; }
.ciao-textarea--short { min-height: 300px; }

/* Feedback (H06): five stars to tap, before the note. */
.ciao-stars { border: 0; margin: 0; padding: 0; display: flex; flex-direction: row-reverse; justify-content: center; gap: 24px; }
.ciao-stars legend { width: 100%; text-align: center; margin-bottom: 20px; }
.ciao-stars label { font-size: 120px; line-height: 1; color: rgba(255, 255, 255, 0.3); cursor: pointer; }
.ciao-stars input:checked ~ label, .ciao-stars label:hover, .ciao-stars label:hover ~ label { color: #f3c88a; }
.ciao-stars input:focus-visible + label { outline: 4px solid var(--accent-amber); outline-offset: 4px; border-radius: 12px; }
/* The keepsake: a public review, only for a happy guest. */
.ciao-review { display: flex; align-items: center; gap: 48px; padding: 48px; }
.ciao-review .ciao-qr { width: 300px; height: 300px; flex: none; border-radius: 24px; padding: 18px; background: #fff; }
.ciao-review p { display: grid; gap: 12px; margin: 0; font-size: 40px; color: var(--text-secondary); }
.ciao-review strong { font-family: var(--font-serif); font-size: 64px; font-weight: 400; color: var(--text-primary); }

/* Turnover (H03): a quiet way in for staff; the code; the issue form folded away. */
.ciao-staff { align-self: center; margin-top: 40px; font-size: 32px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.ciao-code-input { font-size: 96px; letter-spacing: 0.4em; text-align: center; width: 640px; }
.ciao-issue summary { cursor: pointer; font-size: 44px; padding: 8px 0; }
.ciao-issue[open] summary { margin-bottom: 32px; }
.ciao-link--quiet { background: none; border: 0; color: var(--text-secondary); font: inherit; font-size: 36px; align-self: center; cursor: pointer; }

/* Light (H39): eight tiles on Home with a body controller; the halo's states and brightness */
.ciao-tiles--eight { gap: 56px 0; margin-top: 72px; }
.ciao-tiles--eight .ciao-tile { gap: 32px; }
.ciao-tiles--eight .ciao-tile-ring { width: 290px; height: 290px; }
.ciao-tiles--eight .ciao-tile-ring .ciao-icon { width: 100px; height: 100px; }
.ciao-tiles--eight .ciao-tile-label { font-size: 46px; }
.ciao-halo-states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; width: 100%; max-width: 1300px; margin-top: 40px; }
.ciao-pick-btn {
  min-height: 160px; border-radius: 40px;
  border: 2px solid var(--line); background: var(--glass); color: inherit;
  font: inherit; font-size: 44px; cursor: pointer;
}
.ciao-pick-btn.is-on { background: #fff; color: var(--surface-charcoal); border-color: #fff; }
.ciao-pick-btn:focus-visible { outline: 4px solid var(--accent-amber); outline-offset: 4px; }
.ciao-halo-level { width: 100%; max-width: 1300px; margin-top: 40px; padding: 56px 64px; gap: 16px 24px; }
.ciao-halo-level .ciao-label { font-size: 44px; }
.ciao-halo-level .ciao-big { font-size: 64px; }
.ciao-halo-level input { height: 112px; }
.ciao-halo-level .ciao-btn { grid-column: 1 / -1; justify-self: end; }

/* H42 · the panel turned (docs/screens/landscape/). The page script picks the
   design size from the viewport (lib/fit.js): 1600 × 2560 upright, 2560 × 1600
   turned, both scaled from the height and as wide as the viewport (3:4 to
   16:9), and marks a turned screen .is-land. Upright, the wrappers that
   arrange a turned screen are display: contents, so nothing moves. */
.ciao-side, .ciao-main, .ciao-hello { display: contents; }
.ciao-sky-line { display: none; }
/* upright, the gap between a centred column's title and the rest stays as it was */
.ciao-main--center > .ciao-center { margin-top: 8px; }
/* a quiet link is still a whole finger wide */
.ciao-staff { display: inline-flex; align-items: center; min-height: 112px; }
/* the screen is a container, so a screen narrower than its design (an upright
   9:16 tablet) can make room: Home's greeting keeps to two lines */
.ciao-body > .ciao-panel { container-type: inline-size; }
@container (max-width: 1599px) { .ciao-home .ciao-head { margin-inline: -48px; } }

/* every screen with a way back: it and the title on the left third; the rest
   on the right two thirds, scrolling on its own */
.ciao-screen.is-land {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-template-rows: minmax(0, 1fr);
  column-gap: var(--pad); padding: 96px var(--pad);
}
.is-land > .ciao-side { display: flex; flex-direction: column; gap: var(--gap); min-height: 0; }
.is-land > .ciao-side > .ciao-top, .is-land.ciao-directions .ciao-top { margin: 0; flex-direction: column; align-items: flex-start; gap: 0; }
.is-land > .ciao-side > .ciao-top > .ciao-aside, .is-land.ciao-directions .ciao-top > .ciao-aside { font-size: 40px; }
.is-land > .ciao-side > .ciao-head { flex: 1; justify-content: center; align-items: flex-start; text-align: left; padding-bottom: 112px; }
.is-land > .ciao-side > .ciao-head .ciao-badge { margin-bottom: 24px; }
.is-land > .ciao-main { display: flex; flex-direction: column; gap: var(--gap); min-height: 0; overflow-y: auto; scrollbar-width: none; margin: 0 -24px; padding: 0 24px 48px; }
.is-land > .ciao-main::-webkit-scrollbar { display: none; }
.is-land > .ciao-main > .ciao-scroll { flex: none; overflow: visible; margin: 0; padding: 0; }
.is-land > .ciao-main > .ciao-center { flex: 1 0 auto; justify-content: center; margin-top: 0; }
/* the voice concierge over another screen: on the right, where the content is */
.is-land > .ciao-agent { left: calc((100% - 3 * var(--pad)) / 3 + 2 * var(--pad)); right: var(--pad); bottom: 96px; max-height: calc(100% - 192px); }

/* Home: the greeting and the day's line on the left third; the tiles 3 × 2
   (4 × 2 with the Light tile) on the right; a host's message under the greeting */
.is-land.ciao-home > .ciao-head { grid-column: 1; grid-row: 1; align-self: center; align-items: flex-start; text-align: left; gap: 24px; }
.is-land.ciao-home .ciao-weather { margin-left: -24px; }
.is-land.ciao-home .ciao-greeting--home { max-width: none; }
.is-land.ciao-home { grid-template-columns: minmax(0, 1fr) auto; column-gap: 96px; }
.is-land.ciao-home > .ciao-tiles { grid-column: 2; grid-row: 1; align-self: center; grid-template-columns: repeat(3, 340px); gap: 64px 0; margin: 0; padding: 0; }
.is-land.ciao-home .ciao-tile { gap: 32px; }
.is-land.ciao-home .ciao-tile-ring { width: 300px; height: 300px; }
.is-land.ciao-home .ciao-tile-ring .ciao-icon { width: 104px; height: 104px; }
.is-land.ciao-home > .ciao-tiles--eight { gap: 40px 0; }
.is-land.ciao-home > .ciao-tiles--eight .ciao-tile-ring { width: 270px; height: 270px; }
@container (min-width: 2400px) { .is-land.ciao-home > .ciao-tiles--eight { grid-template-columns: repeat(4, 320px); } }
.is-land.ciao-home > .ciao-message { grid-column: 1 / 2; grid-row: 1 / 2; inset: auto 0 0 0; }

/* Arrival, and the lock screen woken: the greeting on the left half; the time
   and the weather, Tap to begin and the Wi-Fi on the right */
.is-land.ciao-arrival, .is-land > .ciao-wake {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr;
  column-gap: var(--pad); row-gap: 72px; padding: 96px var(--pad);
}
.is-land.ciao-arrival > :is(.ciao-top, .ciao-hero), .is-land > .ciao-wake > :is(.ciao-top, .ciao-hero) { display: contents; }
.is-land .ciao-hello { grid-column: 1; grid-row: 1 / -1; align-self: center; display: flex; flex-direction: column; gap: 40px; text-align: left; }
.is-land .ciao-hello .ciao-greeting { max-width: none; }
.is-land .ciao-hello .ciao-welcome { margin-top: 0 !important; }
.is-land .ciao-hello .ciao-welcome-note { margin-inline: 0 !important; text-align: left; }
.is-land .ciao-top > .ciao-aside:first-child { grid-column: 2; grid-row: 2; justify-self: center; }
.is-land .ciao-sky-line { display: inline; }
.is-land :is(.ciao-hero) > .ciao-pill { grid-column: 2; grid-row: 3; justify-self: center; }
.is-land .ciao-top > .ciao-wifi-link { grid-column: 2; grid-row: 4; justify-self: center; }

/* the lock screen: the clock, centred, and nothing else; it wanders less */
.is-land.ciao-ambient { display: block; padding: 0; }
.is-land.ciao-ambient :is(.ciao-date, .ciao-sky), .is-land > .ciao-hill { display: none; }
.is-land .ciao-drift { bottom: 0; animation-name: ciao-drift-land; }
@keyframes ciao-drift-land {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-220px, 120px); }
  50% { transform: translate(180px, -110px); }
  75% { transform: translate(240px, 140px); }
  100% { transform: translate(-140px, -70px); }
}

/* Directions: the way back, the place, the drive and the QR code on the left
   third; the map on the right, the host's note under it */
.is-land.ciao-directions { grid-template-rows: auto auto minmax(0, 1fr) auto; row-gap: var(--gap); }
.is-land.ciao-directions > :is(.ciao-side, .ciao-main), .is-land.ciao-directions .ciao-directions-cards { display: contents; }
.is-land.ciao-directions .ciao-top { grid-column: 1; grid-row: 1; }
.is-land.ciao-directions .ciao-getting { grid-column: 1; grid-row: 2; }
.is-land.ciao-directions .ciao-scan { grid-column: 1; grid-row: 3; align-self: start; display: grid; grid-template-columns: auto 1fr; column-gap: 40px; justify-items: start; text-align: left; }
.is-land.ciao-directions .ciao-scan svg { grid-row: 1 / 3; width: 240px; height: 240px; padding: 24px; }
.is-land.ciao-directions .ciao-scan strong { white-space: normal; align-self: end; }
.is-land.ciao-directions .ciao-scan span { align-self: start; }
.is-land.ciao-directions .ciao-fineprint { grid-column: 1; grid-row: 4; }
.is-land.ciao-directions .ciao-map { grid-column: 2; grid-row: 1 / 4; align-self: center; justify-self: center; width: 100%; max-width: 1500px; }
.is-land.ciao-directions:not(:has(.ciao-hostnote)) .ciao-map { grid-row: 1 / -1; }
.is-land.ciao-directions .ciao-hostnote { grid-column: 2; grid-row: 4; justify-self: center; width: 100%; max-width: 1500px; }

/* AI assist as a voice screen: the mic and what it's doing on the left third;
   the conversation on the right; a screen it shows comes over the conversation */
.is-land.ciao-assist { grid-template-rows: auto auto minmax(0, 1fr) auto auto; row-gap: 40px; }
.is-land.ciao-assist > :is(.ciao-side, .ciao-main), .is-land.ciao-assist .ciao-voice-stage, .is-land.ciao-assist .ciao-voice-stage > .ciao-agent { display: contents; }
.is-land.ciao-assist .ciao-top { grid-column: 1; grid-row: 1; margin: 0; }
.is-land.ciao-assist .ciao-head { grid-column: 1; grid-row: 2; }
.is-land.ciao-assist .ciao-orb { grid-column: 1; grid-row: 3; place-self: center; }
.is-land.ciao-assist .ciao-orb-hint { grid-column: 1; grid-row: 4; text-align: center; }
.is-land.ciao-assist .ciao-agent-bar { grid-column: 1; grid-row: 5; flex-direction: column; gap: 32px; }
.is-land.ciao-assist .ciao-voice-stage > .ciao-agent-chips { grid-column: 2; grid-row: 1 / -1; align-self: center; justify-content: flex-start; max-width: none; }
.is-land.ciao-assist .ciao-agent-consent { grid-column: 2; grid-row: 1 / -1; align-self: center; }
.is-land.ciao-assist .ciao-agent-log { grid-column: 2; grid-row: 1 / 5; padding-top: 90px; }
.is-land.ciao-assist .ciao-agent-log > :first-child { margin-top: auto; }
.is-land.ciao-assist .ciao-agent .ciao-agent-chips { grid-column: 2; grid-row: 5; }
/* both lines named: an open end would reach the screen's edge */
.is-land.ciao-assist .ciao-peek { grid-column: 2 / 3; grid-row: 1 / 5; inset: 0; }
.is-land.ciao-assist .ciao-peek-back { position: static; grid-column: 1; grid-row: 4; justify-self: center; }
.is-land.is-peeking .ciao-voice-stage .ciao-orb { position: relative; top: auto; right: auto; width: 380px; height: 380px; }
.is-land.is-peeking .ciao-voice-stage .ciao-orb::after { inset: -40px; }
.is-land.is-peeking .ciao-voice-stage .ciao-orb-core { width: 260px; height: 260px; }
.is-land.is-peeking .ciao-voice-stage .ciao-orb-core svg { width: 120px; height: 120px; }
