/* Guest experience (0.13): the interactive guide, the guest's stay page, check-ins, the
   guest-calls dashboard, the itinerary designer, the sign-in photo and the splash hello.
   Semantic tokens only (tokens.css), so day and night themes both work. */

/* ---------- Splash: "नमस्ते · Hello · Welcome" rises in turn ---------- */
.splash-hello { position: relative; height: 1.6em; overflow: hidden; font-family: var(--font-display); font-size: var(--fs-lg); color: var(--hero-muted); }
.splash-hello span { position: absolute; inset: 0; text-align: center; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .splash-hello span { animation: hello 2.4s var(--ease-out) infinite; }
  .splash-hello span:nth-child(2) { animation-delay: 0.8s; }
  .splash-hello span:nth-child(3) { animation-delay: 1.6s; }
}
@media (prefers-reduced-motion: reduce) { .splash-hello span:first-child { opacity: 1; } }
@keyframes hello { 0% { opacity: 0; translate: 0 70%; } 10%, 28% { opacity: 1; translate: 0 0; } 38%, 100% { opacity: 0; translate: 0 -70%; } }

/* ---------- Sign-in with a photo of the property ---------- */
.auth-with-photo { padding: 0; place-items: stretch; }
.auth-photo { position: relative; margin: 0; min-height: 34dvh; overflow: hidden; }
.auth-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgb(13 24 40 / 0.65)); }
.auth-photo figcaption { position: absolute; left: var(--s5); bottom: var(--s4); z-index: 1; color: #fff; font-family: var(--font-display); font-size: var(--fs-lg); text-shadow: 0 2px 12px rgb(0 0 0 / 0.4); }
.auth-with-photo .auth-card { margin: calc(-1 * var(--s6)) auto var(--s6); position: relative; z-index: 1; width: min(94vw, 440px); }
@media (min-width: 900px) {
  .auth-with-photo { grid-template-columns: 1.1fr 1fr; min-height: 100dvh; }
  .auth-photo { min-height: 100dvh; }
  .auth-photo figcaption { font-size: var(--fs-2xl); left: var(--s7); bottom: var(--s7); }
  .auth-with-photo .auth-card { margin: auto; align-self: center; }
}
@media (prefers-reduced-motion: no-preference) { .auth-photo img { animation: slow-zoom 24s ease-out both; } }
@keyframes slow-zoom { from { scale: 1.08; } to { scale: 1; } }

/* ---------- The guide ---------- */
dialog.guide {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: var(--s4);
  border: 0; background: transparent; display: grid; place-items: center; overflow: hidden;
}
dialog.guide::backdrop { background: rgb(8 14 24 / 0.62); backdrop-filter: blur(6px); }
.guide-skip {
  position: fixed; top: calc(var(--s4) + env(safe-area-inset-top)); right: var(--s4); z-index: 2;
  min-height: 40px; padding: 0 var(--s4); border-radius: var(--r-pill); border: 1px solid rgb(255 255 255 / 0.35);
  background: rgb(0 0 0 / 0.25); color: #fff; font-weight: 600; cursor: pointer;
}
.guide-skip:focus-visible, .guide-next:focus-visible, .guide-back:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.guide-card {
  width: min(100%, 440px); border-radius: var(--r-xl); overflow: hidden; background: var(--surface-raised); color: var(--text);
  box-shadow: var(--shadow-overlay); display: grid; touch-action: pan-y;
}
.guide-card.slide-l { animation: guide-in-l 360ms var(--ease-out); }
.guide-card.slide-r { animation: guide-in-r 360ms var(--ease-out); }
@keyframes guide-in-l { from { opacity: 0; translate: 36px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes guide-in-r { from { opacity: 0; translate: -36px 0; } to { opacity: 1; translate: 0 0; } }
.guide-art { position: relative; height: 210px; display: grid; place-items: center; overflow: hidden; }
.guide-art.tone-forest { background: radial-gradient(120% 90% at 30% 20%, #6f8a55, #2f4127); }
.guide-art.tone-clay { background: radial-gradient(120% 90% at 30% 20%, #e0915f, #8e3f1d); }
.guide-art.tone-sun { background: radial-gradient(120% 90% at 30% 20%, #f6cf7a, #c47a2a); }
.guide-art.tone-night { background: radial-gradient(120% 90% at 30% 20%, #2a5b8f, #0b1a2c); }
.guide-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guide-art:has(.guide-photo)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(0 0 0 / 0.45)); }
.guide-badge {
  position: relative; z-index: 1; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 26px;
  background: rgb(255 255 255 / 0.92); color: #2f4127; box-shadow: 0 10px 30px rgb(0 0 0 / 0.25);
}
.guide-art:has(.guide-photo) .guide-badge { position: absolute; left: var(--s5); bottom: calc(-1 * var(--s1)); width: 60px; height: 60px; border-radius: 20px; translate: 0 -18px; }
.guide-badge .icon { width: 34px; height: 34px; }
@media (prefers-reduced-motion: no-preference) { .guide-badge { animation: pop 520ms var(--ease-out) 120ms both; } }
@keyframes pop { from { scale: 0.6; opacity: 0; } to { scale: 1; opacity: 1; } }
.guide-text { padding: var(--s5) var(--s5) var(--s2); display: grid; gap: var(--s2); }
.guide-count { font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.guide-title { font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1.15; font-weight: 600; text-wrap: balance; }
.guide-hi { font-size: var(--fs-md); color: var(--primary); font-weight: 600; }
.guide-body { color: var(--text-muted); line-height: 1.55; }
.guide-dots { display: flex; gap: 6px; justify-content: center; padding: var(--s3) 0 0; }
.guide-dots span { width: 7px; height: 7px; border-radius: 4px; background: var(--border-strong); transition: width var(--t) var(--ease), background var(--t) var(--ease); }
.guide-dots span.is-on { width: 22px; background: var(--primary); }
.guide-actions { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s4) var(--s5) var(--s5); }
.guide-back { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 var(--s3); border: 0; background: transparent; color: var(--text-muted); font-weight: 600; cursor: pointer; }
.guide-next {
  margin-left: auto; min-height: 48px; min-width: 132px; padding: 0 var(--s5); border: 0; border-radius: var(--r-pill);
  background: var(--primary); color: var(--on-primary); font-weight: 650; font-size: var(--fs-base); cursor: pointer;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 35%, transparent); transition: transform var(--t-fast) var(--ease);
}
.guide-next:active { transform: scale(0.97); }

/* ---------- The guest's stay page ---------- */
.stay { max-width: 640px; margin: 0 auto; padding-bottom: var(--s7); min-height: 100dvh; background: var(--bg); }
.stay-hero { position: relative; height: 300px; overflow: hidden; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.stay-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stay-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0.05) 20%, rgb(8 14 24 / 0.78)); }
.stay-hero-text { position: absolute; left: var(--s5); right: var(--s5); bottom: var(--s5); z-index: 1; color: #fff; display: grid; gap: 4px; }
.stay-kicker { font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
.stay-title { font-family: var(--font-display); font-size: clamp(1.9rem, 1.4rem + 2.6vw, 2.6rem); line-height: 1.1; font-weight: 600; text-wrap: balance; }
.stay-namaste { display: block; font-size: 0.55em; font-weight: 500; opacity: 0.92; margin-bottom: 2px; }
.stay-lead { font-size: var(--fs-sm); opacity: 0.92; }
@media (prefers-reduced-motion: no-preference) {
  .stay-hero-photo { animation: slow-zoom 18s ease-out both; }
  .stay-hero-text > * { animation: fade-up 600ms var(--ease-out) both; }
  .stay-hero-text > :nth-child(2) { animation-delay: 90ms; }
  .stay-hero-text > :nth-child(3) { animation-delay: 180ms; }
}
.stay-section, .stay-requests { padding: var(--s5) var(--s4) 0; display: grid; gap: var(--s3); }
.stay-requests:empty { display: none; }
.stay-h2 { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; }

.stay-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.stay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
@media (min-width: 520px) { .stay-grid { grid-template-columns: repeat(3, 1fr); } }
.stay-btn {
  display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--s2) var(--s3); text-align: left;
  border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: var(--fs-sm); cursor: pointer; box-shadow: var(--shadow-card);
  transition: transform var(--t-fast) var(--ease), background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.stay-btn:active { transform: scale(0.97); }
.stay-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.stay-btn-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--surface-sunken); color: var(--primary); }
.stay-btn.is-big { flex-direction: column; justify-content: center; text-align: center; min-height: 112px; gap: var(--s2); font-size: var(--fs-base); border: 0; color: #fff; }
.stay-btn.is-big .stay-btn-icon { width: 48px; height: 48px; border-radius: 16px; background: rgb(255 255 255 / 0.2); color: #fff; }
.stay-btn.is-big .stay-btn-icon .icon { width: 26px; height: 26px; }
.stay-btn-water.is-big { background: linear-gradient(150deg, #3b88c4, #23577f); }
.stay-btn-food.is-big { background: linear-gradient(150deg, #d9783f, #9c4520); }
.stay-btn-other.is-big { background: linear-gradient(150deg, #5d7a45, #2f4127); }
.stay-btn.is-sent { border-color: var(--success); background: var(--success-soft); }
.stay-btn.is-big.is-sent { filter: saturate(0.6) brightness(1.1); }
.stay-btn:disabled { cursor: progress; }

.stay-req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.stay-req { display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.stay-req-text { display: grid; }
.stay-req-text small { color: var(--text-muted); }
.stay-req-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.stay-req.is-open .stay-req-dot { animation: blink 1.4s ease-in-out infinite; }
.stay-req.is-acknowledged .stay-req-dot { background: var(--info); }
.stay-req.is-acknowledged { border-color: var(--info); }
.stay-req.is-done .stay-req-dot { background: var(--success); }
@keyframes blink { 50% { opacity: 0.25; } }

.stay-ideas { display: grid; gap: var(--s3); }
@media (min-width: 520px) { .stay-ideas { grid-template-columns: 1fr 1fr; } }
.stay-idea { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); display: grid; }
.stay-idea-photo { width: 100%; height: 150px; object-fit: cover; }
.stay-idea-body { padding: var(--s4); display: grid; gap: var(--s2); }
.stay-idea-title { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; }
.stay-idea-body p { color: var(--text-muted); font-size: var(--fs-sm); }
.stay-idea-btn { justify-self: start; min-height: 44px; padding: 0 var(--s4); border-radius: var(--r-pill); border: 0; background: var(--accent); color: #fff; font-weight: 650; cursor: pointer; }
.stay-idea-btn.is-done { background: var(--success); }

.stay-plan { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.stay-plan::before { content: ""; position: absolute; left: 3.3rem; top: 10px; bottom: 10px; width: 2px; background: var(--border); }
.stay-plan li { display: grid; grid-template-columns: 3rem 1fr; gap: var(--s4); padding: var(--s2) 0; position: relative; }
.stay-plan li::before { content: ""; position: absolute; left: calc(3.3rem - 4px); top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--bg); }
.stay-plan-time { font-family: var(--font-num); font-weight: 650; color: var(--accent); padding-top: 2px; }
.stay-plan p { color: var(--text-muted); font-size: var(--fs-sm); }
.stay-foot { padding: var(--s6) var(--s4) 0; text-align: center; display: grid; gap: var(--s2); color: var(--text-muted); font-size: var(--fs-xs); }
.stay-link { justify-self: center; border: 0; background: none; color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 40px; }

.stay-flash {
  position: fixed; left: 50%; bottom: calc(var(--s5) + env(safe-area-inset-bottom)); translate: -50% 20px; z-index: 50;
  width: max-content; max-width: 92vw; padding: var(--s3) var(--s5); border-radius: var(--r-pill);
  background: var(--ink-pill); color: var(--on-ink-pill); font-weight: 600; font-size: var(--fs-sm);
  opacity: 0; pointer-events: none; box-shadow: var(--shadow-float);
}
.stay-flash.is-on { animation: flash 3.2s var(--ease-out) both; }
@keyframes flash { 0% { opacity: 0; translate: -50% 20px; } 10%, 80% { opacity: 1; translate: -50% 0; } 100% { opacity: 0; translate: -50% -6px; } }

dialog.stay-sheet {
  width: 100vw; max-width: 640px; margin: auto auto 0; padding: var(--s3) var(--s5) calc(var(--s5) + env(safe-area-inset-bottom));
  border: 0; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--surface-raised); color: var(--text); display: grid; gap: var(--s3);
}
dialog.stay-sheet::backdrop { background: rgb(8 14 24 / 0.5); }
@media (prefers-reduced-motion: no-preference) { dialog.stay-sheet[open] { animation: sheet-up 320ms var(--ease-out); } }
@keyframes sheet-up { from { translate: 0 40px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
.stay-sheet-grip { justify-self: center; width: 44px; height: 5px; border-radius: 3px; background: var(--border-strong); }
.stay-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.stay-chip { min-height: 36px; padding: 0 var(--s3); border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; font-size: var(--fs-sm); }
.stay-sheet-actions { display: flex; gap: var(--s3); justify-content: flex-end; }
.stay-send { min-height: 48px; padding: 0 var(--s5); border-radius: var(--r-pill); border: 0; background: var(--primary); color: var(--on-primary); font-weight: 650; cursor: pointer; }
.stay-cancel { min-height: 48px; padding: 0 var(--s4); border: 0; background: none; color: var(--text-muted); font-weight: 600; cursor: pointer; }
.stay-error { color: var(--danger); font-size: var(--fs-sm); }

.stay-ended { min-height: 100dvh; display: grid; }
.stay-ended-photo { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stay-ended-card { position: relative; z-index: 1; align-self: end; margin: var(--s4); padding: var(--s5); border-radius: var(--r-xl); background: color-mix(in srgb, var(--surface-raised) 92%, transparent); backdrop-filter: blur(8px); display: grid; gap: var(--s2); }
.stay-ended-card .stay-kicker { color: var(--accent); }

/* ---------- Check-ins (staff) ---------- */
.stay-row-room { display: grid; justify-items: center; gap: 2px; min-width: 56px; padding: var(--s2); border-radius: var(--r-md); background: var(--primary-soft); color: var(--primary); font-size: var(--fs-xs); font-weight: 700; }
.stay-row.is-out { opacity: 0.6; }
.stay-out-list { margin-top: var(--s3); }
.stay-out-list > summary { cursor: pointer; color: var(--text-muted); font-size: var(--fs-sm); min-height: 36px; display: flex; align-items: center; }
.call-note { font-size: var(--fs-sm); font-style: italic; }
.call-en { color: var(--text-muted); font-size: var(--fs-sm); }
.form-row { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

/* ---------- Guest-calls dashboard ---------- */
.gi-range { min-width: 240px; }
.gi-kpis { display: grid; gap: var(--s3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gi-kpis { grid-template-columns: repeat(4, 1fr); } }
.gi-kpi { padding: var(--s4); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.gi-kpi.is-warn { background: var(--accent-soft); border-color: transparent; }
.gi-kpi.is-good { background: var(--success-soft); border-color: transparent; }
.gi-kpi-label { font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600; }
.gi-kpi-value { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; line-height: 1.2; }
.gi-kpi-sub { font-size: var(--fs-xs); color: var(--text-muted); }
.gi-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.gi-bars li { display: grid; grid-template-columns: minmax(90px, 9rem) 1fr auto; gap: var(--s3); align-items: center; font-size: var(--fs-sm); }
.gi-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gi-bar-track { height: 10px; border-radius: 5px; background: var(--surface-sunken); overflow: hidden; }
.gi-bar-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent)); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) { .gi-bar-fill { animation: grow 700ms var(--ease-out) both; } }
@keyframes grow { from { transform: scaleX(0); } }
/* Width in twentieths (no inline styles under the CSP). */
.gi-bar-fill.w1 { width: 5%; } .gi-bar-fill.w2 { width: 10%; } .gi-bar-fill.w3 { width: 15%; } .gi-bar-fill.w4 { width: 20%; }
.gi-bar-fill.w5 { width: 25%; } .gi-bar-fill.w6 { width: 30%; } .gi-bar-fill.w7 { width: 35%; } .gi-bar-fill.w8 { width: 40%; }
.gi-bar-fill.w9 { width: 45%; } .gi-bar-fill.w10 { width: 50%; } .gi-bar-fill.w11 { width: 55%; } .gi-bar-fill.w12 { width: 60%; }
.gi-bar-fill.w13 { width: 65%; } .gi-bar-fill.w14 { width: 70%; } .gi-bar-fill.w15 { width: 75%; } .gi-bar-fill.w16 { width: 80%; }
.gi-bar-fill.w17 { width: 85%; } .gi-bar-fill.w18 { width: 90%; } .gi-bar-fill.w19 { width: 95%; } .gi-bar-fill.w20 { width: 100%; }
.gi-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 110px; }
.gi-hour { display: block; border-radius: 3px 3px 0 0; background: var(--primary-soft); min-height: 3px; }
.gi-hour.h1 { height: 10%; } .gi-hour.h2 { height: 20%; } .gi-hour.h3 { height: 30%; } .gi-hour.h4 { height: 40%; } .gi-hour.h5 { height: 50%; }
.gi-hour.h6 { height: 60%; } .gi-hour.h7 { height: 70%; } .gi-hour.h8 { height: 80%; } .gi-hour.h9 { height: 90%; } .gi-hour.h10 { height: 100%; }
.gi-hour:not(.h0) { background: var(--primary); opacity: 0.75; }
.gi-hour.is-peak { background: var(--accent); opacity: 1; }
.gi-hours-axis { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-muted); margin: var(--s1) 0 var(--s2); }
.gi-staff { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.gi-staff li { display: grid; grid-template-columns: auto auto 1fr; gap: var(--s3); align-items: center; }
.gi-staff .person-meta { text-align: right; }
.gi-rank { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-sunken); font-weight: 700; font-size: var(--fs-sm); }
.gi-rank.r1 { background: var(--highlight); color: #1b1206; }

/* ---------- Itinerary designer ---------- */
.exp-layout { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 1100px) { .exp-layout { grid-template-columns: 1fr 320px; } .exp-phone { position: sticky; top: calc(var(--topbar-h) + var(--s4)); } }
.exp-day + .exp-day { margin-top: var(--s4); }
.exp-day-label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s2); }
.exp-items, .exp-ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.exp-item, .exp-idea { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s3); align-items: center; padding: var(--s3); border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); }
.exp-item .row-actions, .exp-idea .row-actions { grid-column: 1 / -1; }
@media (min-width: 700px) { .exp-item, .exp-idea { grid-template-columns: auto 1fr auto; } .exp-item .row-actions, .exp-idea .row-actions { grid-column: auto; } }
.exp-idea.is-off { opacity: 0.6; }
.exp-time { min-width: 3.4rem; font-family: var(--font-num); font-weight: 700; color: var(--primary); }
.exp-item-main { min-width: 0; }
.exp-idea-photo { width: 64px; height: 64px; border-radius: var(--r-md); object-fit: cover; }
.exp-idea-photo.is-empty { display: grid; place-items: center; background: var(--surface-sunken); color: var(--text-muted); }
.exp-phone { display: grid; gap: var(--s2); justify-items: center; }
.exp-phone-notch { width: 90px; height: 6px; border-radius: 3px; background: var(--border-strong); }
.exp-phone-screen { width: 280px; max-height: 560px; overflow: hidden; border-radius: 30px; border: 8px solid var(--ink-pill); background: var(--bg); box-shadow: var(--shadow-float); display: grid; gap: var(--s2); padding-bottom: var(--s3); align-content: start; }
.exp-phone-hero { width: 100%; height: 120px; object-fit: cover; }
.exp-phone-hello { padding: 0 var(--s3); font-family: var(--font-display); font-weight: 600; }
.exp-phone-h { padding: 0 var(--s3); font-size: var(--fs-xs); font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
.exp-phone-idea { margin: 0 var(--s3); display: grid; grid-template-columns: 44px 1fr; gap: var(--s2); align-items: center; padding: var(--s2); border-radius: var(--r-md); background: var(--surface); font-size: var(--fs-xs); }
.exp-phone-idea img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.exp-phone-idea div { display: grid; }
.exp-phone-idea span { color: var(--accent); font-weight: 600; }
.exp-phone-plan { list-style: none; margin: 0; padding: 0 var(--s3); display: grid; gap: 4px; font-size: var(--fs-xs); }
.exp-phone-plan span { display: inline-block; min-width: 3rem; font-weight: 700; color: var(--primary); }

/* ---------- Toasts: swipe to dismiss ---------- */
.toast { touch-action: pan-y; }
.toast.is-in { translate: var(--dx, 0px) 0; }
.toast.is-gone-r { translate: 120% 0; opacity: 0; }
.toast.is-gone-l { translate: -120% 0; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .guide-card, .stay-hero-photo, .stay-hero-text > *, .auth-photo img { animation: none !important; }
}

/* ---------- The tour: lights up a real button (1.1.1) ---------- */
.spot { position: fixed; inset: 0; z-index: 900; }
.spot.is-center { background: rgb(8 14 24 / 0.62); }
.spot-ring {
  position: fixed; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 3px var(--highlight), 0 0 0 9999px rgb(8 14 24 / 0.62);
  transition: left 280ms var(--ease-out), top 280ms var(--ease-out), width 280ms var(--ease-out), height 280ms var(--ease-out);
}
@media (prefers-reduced-motion: no-preference) {
  .spot-ring { animation: spot-pulse 1.6s ease-in-out infinite; }
  .spot-card.is-moving { animation: spot-in 260ms var(--ease-out); }
}
@keyframes spot-pulse { 50% { box-shadow: 0 0 0 7px rgb(216 150 58 / 0.55), 0 0 0 9999px rgb(8 14 24 / 0.62); } }
@keyframes spot-in { from { opacity: 0; scale: 0.96; } to { opacity: 1; scale: 1; } }
.spot-card {
  position: fixed; display: grid; gap: var(--s2); padding: var(--s4) var(--s5) var(--s4);
  border-radius: var(--r-xl); background: var(--surface-raised); color: var(--text); box-shadow: var(--shadow-overlay);
}
.spot-arrow { position: absolute; width: 16px; height: 16px; background: var(--surface-raised); rotate: 45deg; translate: -50% 0; }
.spot-card[data-side="below"] .spot-arrow { top: -8px; }
.spot-card[data-side="above"] .spot-arrow { bottom: -8px; }
.spot-card[data-side="beside"] .spot-arrow { left: 0 !important; translate: -50% -50%; }
.spot-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.spot-count { font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.spot-skip { min-height: 36px; padding: 0 var(--s3); border: 0; border-radius: var(--r-pill); background: var(--surface-sunken); color: var(--text-muted); font-weight: 600; cursor: pointer; }
.spot-title { font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.2; font-weight: 600; text-wrap: balance; }
.spot-hi { color: var(--primary); font-weight: 600; }
.spot-body { color: var(--text-muted); line-height: 1.5; }
.spot-actions { display: flex; justify-content: flex-end; gap: var(--s2); margin-top: var(--s1); }
.spot-skip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Add to Home Screen (1.1.1) ---------- */
.install-card {
  position: fixed; z-index: 800; left: 50%; bottom: calc(var(--s4) + env(safe-area-inset-bottom));
  width: min(440px, calc(100vw - 24px)); translate: -50% 140%; opacity: 0;
  display: grid; grid-template-columns: auto 1fr; gap: var(--s3) var(--s4); align-items: start;
  padding: var(--s4); border-radius: var(--r-xl); background: var(--surface-raised); color: var(--text);
  border: 1px solid var(--border); box-shadow: var(--shadow-overlay);
  transition: translate 300ms var(--ease-out), opacity 300ms var(--ease-out);
}
.install-card.is-in { translate: -50% 0; opacity: 1; }
@media (max-width: 767px) { .install-card { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.install-icon { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 4px 12px rgb(0 0 0 / 0.18); }
.install-text { display: grid; gap: var(--s1); }
.install-title { font-size: var(--fs-md); font-weight: 700; line-height: 1.25; }
.install-body { color: var(--text-muted); }
.install-steps { margin: var(--s1) 0 0; padding-left: 1.2em; display: grid; gap: var(--s1); color: var(--text); }
.install-key { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 8px; background: var(--surface-sunken); font-weight: 600; white-space: nowrap; }
.install-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: var(--s2); }
