/* Guest app (iPad) */

.wrap { max-width: 760px; margin: 0 auto; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px;
}
.topbar .brand { font-size: 20px; }

/* welcome */
.welcome { max-width: 440px; width: 100%; }
.welcome .brand { font-size: 18px; color: var(--muted); margin-bottom: 18px; }
.welcome h1 { font-size: 44px; margin-bottom: 10px; }
.welcome p { margin: 0 0 28px; }
.welcome form { display: flex; flex-direction: column; gap: 14px; }
.welcome .field { text-align: center; font-size: 22px; padding: 16px; }

/* home */
.hello { margin: 36px 0 28px; }
.hello h1 { font-size: 40px; }
.hello p { margin: 8px 0 0; font-size: 20px; }

.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  padding: 24px; min-height: 172px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: border-color .15s, background-color .15s, transform .1s;
}
.tile:hover { border-color: var(--accent); }
.tile:active { transform: scale(.985); }
.tile .ic {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.tile .ic svg { width: 28px; height: 28px; }
.tile .t { font-size: 22px; font-weight: 600; }
.tile .d { font-size: 16px; color: var(--muted); margin-top: 2px; }

.section-title { margin: 40px 0 12px; font-size: 15px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.req-list { display: flex; flex-direction: column; gap: 10px; }
.req {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 16px 18px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.req:hover { border-color: var(--accent); }
.req .ic { color: var(--accent); flex: none; }
.req .ic svg { width: 26px; height: 26px; }
.req .main { flex: 1; min-width: 0; }
.req .title { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.req .preview { color: var(--muted); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.req .chev { color: var(--muted); flex: none; }
.req .chev svg { width: 20px; height: 20px; }

.footer-note { text-align: center; margin: 40px 0 8px; font-size: 15px; }

/* new request */
.compose { display: flex; flex-direction: column; gap: 18px; padding-bottom: 20px; }
.compose h1 { margin-top: 8px; }
.compose .label { font-weight: 600; margin-bottom: -6px; }
.or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 15px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.voice-box {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.voice-box .grow { flex: 1; min-width: 0; }
.rec-big {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 64px; border-radius: var(--radius);
  border: 1px dashed var(--border); background: var(--surface);
  font-weight: 600; font-size: 18px;
}
.rec-big:hover { border-color: var(--accent); color: var(--accent); }
.rec-big svg { width: 24px; height: 24px; }
.rec-big.recording { border-style: solid; border-color: var(--danger); color: var(--danger); }

.send-big { min-height: 60px; font-size: 19px; }

/* chat screen */
.chat-screen {
  display: flex; flex-direction: column;
  height: calc(100dvh - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
}
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.chat-head .grow { flex: 1; min-width: 0; }
.chat-head h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-screen .chat-log { padding-left: 0; padding-right: 0; }

/* ringing */
.ring-screen {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--bg); text-align: center; padding: 24px;
}
.ring-screen .brand { color: var(--muted); font-size: 20px; }
.ring-screen h1 { font-size: 52px; margin-bottom: 28px; }
.ring-bell {
  width: 140px; height: 140px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 18px;
  animation: ring-pulse 1.8s ease-in-out infinite;
}
.ring-bell svg { width: 64px; height: 64px; animation: ring-shake 1.8s ease-in-out infinite; }
.ring-ok { min-width: 260px; min-height: 72px; font-size: 24px; border-radius: 36px; }
@keyframes ring-pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); } 50% { box-shadow: 0 0 0 28px transparent; } }
@keyframes ring-shake { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }

.tap-hint {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 22px; z-index: 40;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 15px;
}
.tap-hint svg { width: 18px; height: 18px; }

/* top bar buttons */
.top-actions { display: flex; gap: 4px; }
.top-actions .btn { color: var(--muted); }

/* Wi-Fi & info */
.info-body { display: flex; flex-direction: column; gap: 14px; }
.wifi-card { display: flex; align-items: center; gap: 24px; padding: 24px; }
.wifi-qr { width: 200px; height: 200px; object-fit: contain; border-radius: 12px; background: #fff; padding: 8px; flex: none; }
.wifi-text { flex: 1; min-width: 0; }
.wifi-label { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.wifi-label svg { width: 22px; height: 22px; }
.wifi-row { display: flex; flex-direction: column; margin-top: 8px; }
.wifi-row strong { font-size: 24px; overflow-wrap: anywhere; user-select: all; }
.wifi-row .pw { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; }
.info-item { padding: 18px 22px; }
.info-title { font-size: 15px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.info-text { font-size: 20px; margin-top: 4px; white-space: pre-wrap; }
@media (max-width: 560px) { .wifi-card { flex-direction: column; align-items: flex-start; } }

/* black screen with a very subtle clock */
.night-screen {
  position: fixed; inset: 0; z-index: 90; background: #000; color: #141413;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; user-select: none;
}
.n-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.n-center { transition: color 1.2s ease; }
.night-screen.bright .n-center { color: #b5afa2; transition-duration: .3s; }
.n-clock { font-size: 96px; font-weight: 200; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.n-alarm-line { display: flex; align-items: center; gap: 6px; font-size: 18px; }
.n-alarm-line svg { width: 18px; height: 18px; }
.n-row { display: flex; gap: 14px; padding: 0 16px max(28px, env(safe-area-inset-bottom)); }
.n-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 120px; padding: 14px 10px; border-radius: 18px;
  border: 1px solid #0f0f0e; background: #030303; color: #2a2a28; font-size: 14px;
}
.n-btn .n-ic svg { width: 26px; height: 26px; }
.n-btn.on { color: #8a7a55; border-color: #2a2418; }

/* night light: the screen glows warm */
.night-light {
  position: fixed; inset: 0; z-index: 91;
  display: flex; align-items: flex-end; justify-content: center;
  transition: background-color .6s;
}
.nl-controls {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: max(30px, env(safe-area-inset-bottom));
  padding: 10px 14px; border-radius: 28px; background: rgba(0, 0, 0, .25);
  transition: opacity .8s;
}
.nl-controls.faded { opacity: .15; }
.nl-dots { display: flex; gap: 12px; }
.nl-dot { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); background: transparent; }
.nl-dot[data-level="low"] { background: #3d2810; }
.nl-dot[data-level="medium"] { background: #8a5419; }
.nl-dot[data-level="high"] { background: #f0a050; }
.nl-dot.on { border-color: rgba(255,255,255,.8); }
.nl-off { height: 40px; padding: 0 16px; border-radius: 20px; border: 0; background: rgba(0,0,0,.35); color: rgba(255,255,255,.85); font-size: 15px; }

/* alarm going off */
.alarm-screen {
  position: fixed; inset: 0; z-index: 95; background: #000; color: #e9e3d6;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
}
.al-ic svg { width: 56px; height: 56px; color: #c9a86a; animation: ring-shake 1.8s ease-in-out infinite; }
.al-time { font-size: 96px; font-weight: 200; font-variant-numeric: tabular-nums; }
.al-sub { font-size: 22px; color: #8e887b; margin-bottom: 30px; }
.al-actions { display: flex; gap: 16px; }
.al-actions .btn { min-width: 180px; min-height: 64px; font-size: 20px; border-radius: 32px; }
.al-snooze { background: #1a1a19; border-color: #2a2a28; color: #e9e3d6; }
.al-snooze:hover { background: #222220; }

/* dark sheets on the night screen */
.n-sheet-wrap { position: fixed; inset: 0; z-index: 96; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.n-sheet {
  width: min(420px, 100%); background: #111110; color: #d8d3c8; border: 1px solid #222220; border-radius: 22px;
  padding: 24px; display: flex; flex-direction: column; gap: 12px; cursor: default;
}
.n-sheet h2 { font-size: 22px; }
.n-note { margin: 0; color: #8e887b; font-size: 15px; }
.n-time {
  font-size: 48px; text-align: center; padding: 10px; border-radius: 14px;
  background: #000; color: #e9e3d6; border: 1px solid #2a2a28; color-scheme: dark;
}
.n-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.n-actions .btn { flex: 1; }
.n-sheet .btn { background: #1a1a19; border-color: #2a2a28; color: #e9e3d6; }
.n-sheet .btn.primary { background: #84bba8; border-color: #84bba8; color: #10201b; }
.n-sheet .btn.quiet { background: transparent; border-color: transparent; color: #8e887b; }

/* evening Night button */
.top-actions .night-btn { color: var(--accent); background: var(--accent-soft); border-color: transparent; }

/* away message from staff */
.away-banner {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; margin: 0 0 18px; border-radius: var(--radius);
  background: var(--surface-2); color: var(--text); font-size: 17px;
}
.away-banner svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 1px; }
.chat-screen .away-banner { margin: 12px 0 0; }
.compose .away-banner { margin: 0; }

/* today card: date, weather, chosen info */
.today { padding: 20px 22px; margin-bottom: 18px; }
.today-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.today-date { font-size: 20px; font-weight: 600; }
.today-weather { display: flex; align-items: center; gap: 12px; text-align: right; min-height: 52px; }
.wx-ic { color: var(--accent); }
.wx-ic svg { width: 40px; height: 40px; }
.wx-temp { font-size: 30px; font-weight: 600; line-height: 1.1; }
.today-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.ti-title { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ti-text { font-size: 18px; margin-top: 2px; white-space: pre-wrap; }

/* how was your stay */
.rate { padding: 20px 22px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.rate-title { font-size: 22px; font-weight: 600; font-family: var(--serif); }
.stars { display: flex; gap: 6px; }
.star { width: 56px; height: 56px; border: 0; background: none; font-size: 44px; line-height: 1; color: var(--border); padding: 0; }
.star.on { color: #d4a43a; }
.rate .field { width: 100%; }

/* update screen */
.update-screen {
  position: fixed; inset: 0; z-index: 120; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 24px;
}
.update-screen h1 { font-size: 40px; }
.update-screen p { margin: 0 0 22px; font-size: 19px; }
.up-ic { width: 110px; height: 110px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.up-ic svg { width: 52px; height: 52px; }
.up-btn { min-width: 260px; min-height: 72px; font-size: 24px; border-radius: 36px; }

/* request options: priority + when */
.compose .label, .again .label { font-weight: 600; font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .options { grid-template-columns: 1fr; } }
.opt .seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; border-radius: 12px; background: var(--surface-2); }
.opt .seg button { height: 46px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; color: var(--muted); font-size: 17px; }
.opt .seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.prio-seg .prio-high[aria-pressed="true"] { color: var(--danger); }
.later-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.again .chips { gap: 8px; }
.again-chip { border-style: dashed; }

/* photo quick picks */
.photo-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo-pick { display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-align: left; }
.photo-pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--surface-2); }
.photo-pick .pp-ic { width: 100%; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.photo-pick .pp-ic svg { width: 40px; height: 40px; }
.pp-label { padding: 10px 12px; font-weight: 600; font-size: 16px; }
.photo-pick.picked { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

/* status pills */
.pill.onway { background: #e7f0fb; color: #2a5b9a; }
.pill.high { background: #fbe9e7; color: var(--danger); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.onway { background: #1d2a3a; color: #8fb6e6; } :root:not([data-theme="light"]) .pill.high { background: #3a1f1d; } }
:root[data-theme="dark"] .pill.onway { background: #1d2a3a; color: #8fb6e6; }
:root[data-theme="dark"] .pill.high { background: #3a1f1d; }

/* what's around */
.places { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.place-top { display: flex; align-items: center; gap: 10px; font-size: 19px; }

/* good morning */
.morning { position: fixed; inset: 0; z-index: 110; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; }
.m-card { width: min(560px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.m-sun { color: #d49a2a; }
.m-sun svg { width: 72px; height: 72px; }
.morning h1 { font-size: 44px; }
.m-date { font-size: 20px; color: var(--muted); }
.m-weather { display: flex; align-items: center; gap: 14px; margin: 10px 0; min-height: 48px; }
.m-weather .wx-ic svg { width: 48px; height: 48px; }
.m-lines { width: 100%; display: flex; flex-direction: column; gap: 12px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; margin-top: 6px; font-size: 18px; }
.m-go { min-width: 240px; min-height: 64px; font-size: 21px; border-radius: 32px; margin-top: 18px; }

/* room name, text size, on your phone */
.topbar .brand .room { font-family: var(--font); font-weight: 400; color: var(--muted); font-size: 16px; margin-left: 8px; }
.text-size .aa { font-family: var(--serif); font-weight: 700; font-size: 18px; margin-right: 2px; }
.invite-body { margin-top: 8px; }
.invite-card { display: flex; align-items: center; gap: 28px; padding: 26px; }
.invite-qr { width: 260px; height: 260px; flex: none; background: #fff; border-radius: 16px; padding: 10px; }
.invite-qr svg { width: 100%; height: 100%; display: block; }
.invite-url { font-size: 24px; font-weight: 600; overflow-wrap: anywhere; }
.invite-code { font-size: 40px; font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .invite-card { flex-direction: column; align-items: flex-start; } .invite-qr { width: 100%; height: auto; aspect-ratio: 1; } }
.code-in { text-align: center; font-size: 34px !important; letter-spacing: .3em; }
.welcome .err { color: var(--danger); min-height: 20px; margin: 0; font-size: 15px; }

/* welcome note */
.note-card { padding: 18px 22px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; border-color: var(--accent); }
.note-text { font-size: 19px; white-space: pre-wrap; }

/* was this OK? */
.feedback { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 10px 0 4px; font-size: 17px; }
.fb-btn { min-height: 44px; }

/* unavailable quick picks */
.chip.off, .photo-pick.off { opacity: .45; cursor: default; }
.chip-off { color: var(--muted); font-size: 14px; }
.pp-off { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }

/* alarm sounds */
.n-label { font-size: 14px; color: #8e887b; margin-top: 4px; }
.n-sounds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.n-sound { height: 46px; border-radius: 12px; border: 1px solid #2a2a28; background: #1a1a19; color: #d8d3c8; font-size: 16px; }
.n-sound[aria-pressed="true"] { border-color: #84bba8; color: #fff; box-shadow: 0 0 0 1px #84bba8; }

/* ───────── iPhone / small screens ───────── */
@media (max-width: 600px) {
  .app { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .topbar { flex-wrap: wrap; row-gap: 6px; }
  .topbar .brand { font-size: 18px; }
  .top-actions { flex-wrap: wrap; gap: 2px; }
  .top-actions .btn { padding: 0 10px; min-height: 40px; font-size: 15px; }
  .top-actions .btn svg { width: 18px; height: 18px; }
  .hello { margin: 22px 0 18px; }
  .hello h1 { font-size: 32px; }
  .hello p { font-size: 18px; }
  .tile { min-height: 0; flex-direction: row; align-items: center; padding: 16px; gap: 14px; }
  .tile .ic { width: 48px; height: 48px; flex: none; }
  .tile .t { font-size: 19px; }
  .today { padding: 16px; }
  .today-date { font-size: 18px; }
  .wx-temp { font-size: 26px; }
  .compose h1, .chat-head h2 { font-size: 28px; }
  .chat-head h2 { font-size: 20px; }
  .photo-picks { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .wifi-qr { width: 100%; height: auto; aspect-ratio: 1; }
  .update-screen h1, .morning h1 { font-size: 32px; }
  .welcome h1 { font-size: 36px; }
  .send-big { min-height: 56px; }
}
.text-size .aa-size { font-weight: 700; color: var(--accent); }
.feedback > span:first-child { flex-basis: 100%; text-align: center; }
@media (max-width: 600px) {
  .today-top { flex-wrap: wrap; align-items: flex-start; }
  .today-weather { text-align: left; width: 100%; padding-top: 10px; border-top: 1px solid var(--border); margin-top: 6px; }
  .today-items { grid-template-columns: 1fr 1fr; }
}
