@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("/fonts/outfit-400.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("/fonts/outfit-500.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("/fonts/outfit-600.woff2") format("woff2"); }

:root {
  --bg: #FAF7F2;
  --card: #FFFFFF;
  --ink: #151515;
  --muted: #6B645C;
  --line: #E6E0D5;
  --gold: #C9A45C;
  --gold-ink: #83632A;
  --soft: #F2EBDD;
  --good: #2F6B4F;
  --warn-bg: #FBF3E4;
  --warn-line: #EBD9B5;
  --warn-ink: #5C4520;
  --shadow: 0 1px 2px rgba(40, 30, 10, .04), 0 8px 24px -12px rgba(40, 30, 10, .14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.02em; }
button { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--gold-ink); text-underline-offset: 2px; }

.g { max-width: 560px; margin: 0 auto; padding: 0 0 calc(100px + env(safe-area-inset-bottom)); }
.g-main { padding: 0 16px; }

/* Hero: the host's cover photo, or a quiet branded panel when there isn't one */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 232px; padding: calc(14px + env(safe-area-inset-top)) 20px 50px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  background:
    radial-gradient(90% 85% at 100% 0%, #FFDFAE 0%, rgba(255, 223, 174, 0) 62%),
    radial-gradient(60% 70% at 0% 0%, #FFF0D4 0%, rgba(255, 240, 212, 0) 70%),
    linear-gradient(180deg, #FFF6E8 0%, var(--bg) 100%);
}
/* The clevernod mark on the right: the arc draws itself, then every few seconds the mark gives a small nod. */
.hero-mark { position: absolute; z-index: -1; right: -46px; top: 18px; width: 210px; height: 210px; overflow: visible; }
.hero-mark g { fill: none; stroke: var(--gold); stroke-width: 14; stroke-linecap: round; opacity: .42; transform-origin: 50% 70%; animation: nod 7s ease-in-out 2.4s infinite; }
.hero-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: arcIn 1.3s cubic-bezier(.6, 0, .2, 1) .5s forwards; }
@keyframes arcIn { to { stroke-dashoffset: 0; } }
@keyframes nod {
  0%, 78%, 100% { transform: none; }
  83% { transform: translateY(16px) rotate(-4deg); }
  88% { transform: translateY(-3px); }
  92% { transform: translateY(9px) rotate(-2deg); }
  96% { transform: none; }
}
.hero.has-cover { min-height: 330px; color: #fff; background: #1B1814; }
.hero.has-cover .hero-mark { display: none; }
.hero.has-cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .32) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, .18) 45%, rgba(0, 0, 0, .62) 70%, rgba(0, 0, 0, .78) 100%);
}
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-bar { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.hero-badge {
  font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: rgba(255, 255, 255, .7);
}
.hero-msg {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(21, 21, 21, .08); background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--ink); font-size: 14.5px; font-weight: 500; white-space: nowrap;
}
.hero-msg svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
/* Every few seconds the button is "tapped": a small press and a ring, so guests see they can reach the host. */
.hero-msg { position: relative; animation: knock 9s ease 3.2s infinite; }
.hero-msg::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--gold); opacity: 0; pointer-events: none; animation: knockRing 9s ease-out 3.2s infinite; }
.hero-msg svg { animation: wiggle 9s ease 3.2s infinite; }
@keyframes knock { 0%, 9%, 100% { transform: none; } 2% { transform: scale(.93); } 5% { transform: scale(1.04); } }
@keyframes knockRing { 0%, 2% { opacity: 0; transform: none; } 3% { opacity: .9; transform: none; } 16%, 100% { opacity: 0; transform: scale(1.18, 1.45); } }
@keyframes wiggle { 0%, 12%, 100% { transform: none; } 6% { transform: rotate(-12deg); } 8% { transform: rotate(9deg); } 10% { transform: rotate(-4deg); } }
.hero-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.hero h1 { margin-top: 6px; font-size: 36px; line-height: 1.04; letter-spacing: -.03em; max-width: 14ch; text-wrap: balance; }
.hero-area { margin-top: 6px; font-size: 15px; color: var(--muted); }
.hero-area:empty { display: none; }
.hero.has-cover .hero-eyebrow { color: rgba(255, 255, 255, .86); }
.hero.has-cover .hero-area { color: rgba(255, 255, 255, .86); }
.hero.has-cover h1, .hero.has-cover .hero-eyebrow, .hero.has-cover .hero-area { text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }

/* Host welcome, overlapping the hero */
.welcome {
  position: relative; z-index: 2; margin-top: -30px;
  display: flex; align-items: flex-start; gap: 14px; padding: 16px;
  border-radius: 20px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
}
.avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--gold); font-size: 19px; font-weight: 500;
}
.avatar svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.welcome-text { min-width: 0; }
.welcome-hi { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.welcome-msg { margin-top: 3px; font-size: 15px; line-height: 1.5; color: #4A443C; }

/* Today: reminders worked out from the guide and the time of day */
.today { margin-top: 12px; border-radius: 18px; background: linear-gradient(180deg, #FFF5DD 0%, #FFF0D2 100%); border: 1px solid #F3DDAA; overflow: hidden; }
.today-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; cursor: pointer; text-align: left;
  border: 0; background: none; font-size: 15px; line-height: 1.35;
}
.today-row + .today-row { border-top: 1px solid #F3DDAA; }
.today-row .today-icon { position: relative; flex: none; }
.today-row > span:last-child { flex: none; }
.today-icon .live { position: absolute; top: -3px; right: -4px; width: 8px; height: 8px; border-radius: 50%; background: #E0662E; box-shadow: 0 0 0 2px #FFF3D8; }
.today-icon .live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #E0662E; animation: live 2s ease-out infinite; }
@keyframes live { from { opacity: .7; transform: none; } to { opacity: 0; transform: scale(2.8); } }
.today-icon svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.today-row span { flex: 1; }
.today-row b { font-weight: 500; }
.today-row .chev { width: 18px; height: 18px; flex: none; fill: none; stroke: #B49B6C; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Wi-Fi: the first thing every guest needs, so it's on the page, not behind a tap */
.wifi { margin-top: 12px; padding: 16px; border-radius: 20px; background: radial-gradient(90% 130% at 100% 0%, rgba(201, 164, 92, .3) 0%, rgba(201, 164, 92, 0) 60%), #17140F; color: #fff; box-shadow: 0 18px 40px -24px rgba(21, 21, 21, .7); }
.wifi-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.wifi-head svg { width: 17px; height: 17px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wifi-help { margin-left: auto; padding: 0; border: 0; background: none; cursor: pointer; color: #CFC6B8; font-size: 13.5px; letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 2px; }
.wifi-net { margin-top: 12px; font-size: 14px; color: #BDB4A6; }
.wifi-net b { font-weight: 500; color: #fff; }
/* The password keeps to one line where it can: on a narrow phone the copy button moves underneath, full width. */
.wifi-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 2px; }
.wifi-pass { flex: 100 0 auto; max-width: 100%; font-size: 24px; font-weight: 500; letter-spacing: .01em; overflow-wrap: anywhere; }
.wifi-pass.long { font-size: 20px; }
.wifi-copy {
  flex: 1 0 auto; height: 44px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--gold); color: var(--ink); font-size: 15px; font-weight: 500; transition: background .15s ease;
}
.wifi-copy.done { background: #fff; }

/* Your stay: each row shows its answer, so most guests never need to tap */
.block { margin-top: 26px; }
.block-title { margin: 0 4px 9px; font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.list { border-radius: 20px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.row {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 14px;
  border: 0; background: none; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent;
}
.row + .row::before { content: ""; position: absolute; top: 0; left: 66px; right: 0; border-top: 1px solid var(--line); }
.row:active { background: #FAF7F1; }
.row-icon { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); }
.row-icon svg { width: 21px; height: 21px; fill: none; stroke: var(--gold-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.row-text { flex: 1; min-width: 0; }
.row-title { display: block; font-size: 16px; font-weight: 500; line-height: 1.25; }
.row-sub { display: block; margin-top: 1px; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub b { font-weight: 500; color: var(--ink); }
/* Each row has its own colour, so the list reads at a glance */
.row[data-open="checkout"] .row-icon { background: #FFE8DA; } .row[data-open="checkout"] .row-icon svg { stroke: #B4532A; }
.row[data-open="arrival"] .row-icon { background: #E3F2E7; } .row[data-open="arrival"] .row-icon svg { stroke: #2F6B4F; }
.row[data-open="heating"] .row-icon { background: #FFE9D2; } .row[data-open="heating"] .row-icon svg { stroke: #C2571A; }
.row[data-open="bins"] .row-icon { background: #E1F1EA; } .row[data-open="bins"] .row-icon svg { stroke: #2E7D5B; }
.row[data-open="parking"] .row-icon { background: #E3EEFC; } .row[data-open="parking"] .row-icon svg { stroke: #2F64A8; }
.row[data-open="rules"] .row-icon { background: #EEE8FA; } .row[data-open="rules"] .row-icon svg { stroke: #6A4CA8; }
.row[data-open="tips"] .row-icon { background: #FCE7EE; } .row[data-open="tips"] .row-icon svg { stroke: #B23A62; }
.row .chev { width: 18px; height: 18px; flex: none; fill: none; stroke: #C2B8A8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Need help? */
.help { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.help-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px; border-radius: 18px; cursor: pointer; text-align: left;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); transition: transform .12s ease;
}
.help-card:active { transform: scale(.98); }
.hc-icon { width: 38px; height: 38px; margin-bottom: 9px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); }
.hc-icon svg { width: 21px; height: 21px; fill: none; stroke: var(--gold-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.help-card[data-open="report"] .hc-icon { background: #E3EEFC; }
.help-card[data-open="report"] .hc-icon svg { stroke: #2F64A8; }
.help-card.sos .hc-icon { background: #FBECE8; }
.help-card.sos .hc-icon svg { stroke: #A1301F; stroke-width: 1.9; }
.hc-title { font-size: 15.5px; font-weight: 500; line-height: 1.25; }
.hc-sub { font-size: 13px; color: var(--muted); line-height: 1.35; }

/* Footer */
.g-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 0 8px; text-align: center; }
.g-save {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500;
}
.g-save svg { width: 17px; height: 17px; fill: none; stroke: var(--gold-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.g-updated { font-size: 12.5px; color: var(--muted); }
.g-powered { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.g-powered b { font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.g-legal { display: flex; align-items: baseline; gap: 16px; margin: 0; }
.g-legal a:not(.g-powered) { font-size: 12.5px; color: var(--muted); }
.g-nojs { padding: 24px; text-align: center; }

.rise { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.steps { margin: 0; padding-left: 20px; }
.steps li + li { margin-top: 8px; }

/* Ask bar */
.g-askbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 62%, rgba(250, 247, 242, 0));
}
.g-ask {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: 528px; margin: 0 auto;
  height: 56px; padding: 0 8px 0 18px; border-radius: 999px; cursor: pointer; text-align: left;
  border: 1px solid var(--line); background: var(--card); box-shadow: 0 10px 30px -14px rgba(40, 30, 10, .35);
}
.g-ask-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold-ink); stroke-width: 1.8; stroke-linejoin: round; }
.g-ask-text { flex: 1; min-width: 0; color: #8A8176; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .25s ease; }
.g-ask-text.fade { opacity: 0; }
.g-ask-go { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); }
.g-ask-go svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Sheet */
.sheet { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(21, 21, 21, .42); opacity: 0; transition: opacity .25s ease; }
.sheet-panel {
  position: relative; width: 100%; max-width: 560px; max-height: 90vh; max-height: 90dvh;
  display: flex; flex-direction: column;
  background: var(--bg); border-radius: 24px 24px 0 0; box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, .4);
  transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.sheet.open .sheet-bg { opacity: 1; }
.sheet.open .sheet-panel { transform: none; }
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: #D9D1C3; margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px 10px; flex: none; }
.sheet-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--soft); flex: none; }
.sheet-icon:empty { display: none; }
.sheet-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sheet-head h2 { flex: 1; font-size: 20px; line-height: 1.2; }
.sheet-x { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 0; background: #ECE6DA; cursor: pointer; display: grid; place-items: center; }
.sheet-x svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px calc(22px + env(safe-area-inset-bottom)); }
.sheet.chat .sheet-panel { height: 90vh; height: 90dvh; }
.sheet.chat .sheet-body { flex: 1; display: flex; flex-direction: column; padding: 0; overflow: hidden; }

/* Sheet content */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.stack > * + * { margin-top: 12px; }
.prose { font-size: 15.5px; line-height: 1.55; }
.prose p + p, .prose p + ul, .prose ul + p, .prose h3 + p, .prose h3 + ul { margin-top: 8px; }
.prose h3 { font-size: 16px; margin-top: 16px; }
.prose h3:first-child { margin-top: 0; }
.prose ul { margin: 0; padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose a[href^="tel:"] { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.label { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.copyrow { display: flex; align-items: center; gap: 12px; }
.copyrow + .copyrow { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.copyrow .val { flex: 1; min-width: 0; font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
.btn-copy {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 500;
}
.btn-copy.done { border-color: var(--good); color: var(--good); }

.bigtime { display: flex; align-items: baseline; gap: 10px; }
.bigtime b { font-size: 40px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.countdown { margin-top: 4px; font-size: 14.5px; color: var(--gold-ink); }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li + li { border-top: 1px solid var(--line); }
.check {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; cursor: pointer; font-size: 15.5px; line-height: 1.4;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  flex: none; width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid #CFC5B4; background: var(--card);
  display: grid; place-items: center; transition: background .15s ease, border-color .15s ease;
}
.check .box svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.check input:checked + .box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .box svg { opacity: 1; }
.check input:checked ~ span { color: var(--muted); text-decoration: line-through; text-decoration-color: #B9AF9F; }
.check input:focus-visible + .box { outline: 2px solid var(--gold); outline-offset: 2px; }
.progress { height: 6px; border-radius: 3px; background: #ECE6DA; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s ease; }

.bins { list-style: none; margin: 0; padding: 0; }
.bins li { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.bins li + li { border-top: 1px solid var(--line); }
.bins .day { width: 92px; flex: none; font-weight: 500; }
.bins .what { flex: 1; }
.bins .when { flex: none; font-size: 12.5px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--gold-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  height: 52px; padding: 0 20px; border-radius: 999px; cursor: pointer; text-decoration: none;
  border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 16px; font-weight: 500;
}
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.red { background: #B3261E; border-color: #B3261E; }
.btn:disabled { opacity: .5; cursor: default; }
.btns { display: grid; gap: 10px; }

.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic span {
  display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); font-size: 14.5px;
}
.topic input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.topic input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.field { display: block; }
.field > span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.field > span i { font-style: normal; font-weight: 400; color: var(--muted); }
.input {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  font: inherit; font-size: 16px; color: var(--ink); outline: none; resize: vertical;
}
.input:focus { border-color: #CDBF9F; box-shadow: 0 0 0 4px rgba(201, 164, 92, .14); }
textarea.input { min-height: 96px; }

.photos { display: flex; flex-wrap: wrap; gap: 10px; }
.photo, .photo-add {
  position: relative; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; flex: none;
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo button {
  position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(21, 21, 21, .72); display: grid; place-items: center;
}
.photo button svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.photo-add {
  display: grid; place-items: center; align-content: center; gap: 4px; cursor: pointer;
  border: 1.5px dashed #CFC5B4; background: var(--card); color: var(--muted); font-size: 12.5px;
}
.photo-add svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.photo-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.note { padding: 12px 14px; border-radius: 14px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); font-size: 14.5px; }
.error { color: #A1301F; font-size: 14.5px; }

.done-state { text-align: center; padding: 18px 4px 6px; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--soft); }
.done-mark svg { width: 30px; height: 30px; fill: none; stroke: var(--gold-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done-state h3 { font-size: 21px; }
.done-state p { margin-top: 6px; color: var(--muted); }

.sos-big { display: grid; gap: 10px; }
.sos-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sos-line a { font-weight: 500; white-space: nowrap; }

/* Chat */
.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 6px 18px 12px; }
.msg {
  max-width: 86%; padding: 11px 15px; border-radius: 20px;
  font-size: 16px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
  animation: rise .28s ease both;
}
.msg.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; transform-origin: 0 100%; animation-name: pop; }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; transform-origin: 100% 100%; animation-name: pop; }
.msg.intro { white-space: normal; }
.msg a[href^="tel:"] { white-space: nowrap; }
.msg.warn { align-self: stretch; max-width: none; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); font-size: 15px; white-space: normal; }
.msg.warn button { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--gold-ink); font-weight: 500; text-decoration: underline; cursor: pointer; }
.typing { display: flex; gap: 5px; padding: 15px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #BDB4A6; animation: blink 1.2s infinite ease-in-out both; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.chat-bottom { flex: none; padding: 10px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.chat-note { font-size: 14px; color: var(--muted); margin: 0 2px 8px; }
.chat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 10px; padding: 0 18px; }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips:empty { display: none; }
.chat-chips button {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-size: 14px; white-space: nowrap; cursor: pointer;
}
.chat-chips button:disabled { opacity: .5; cursor: default; }
.chat-form {
  display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 26px;
  background: var(--card); border: 1px solid var(--line);
}
.chat-form:focus-within { border-color: #CDBF9F; box-shadow: 0 0 0 4px rgba(201, 164, 92, .14); }
.chat-form textarea {
  flex: 1; min-width: 0; max-height: 132px; resize: none; padding: 8px 0; border: 0; outline: 0; background: none;
  font: inherit; font-size: 16px; line-height: 1.45; color: var(--ink);
}
.chat-form textarea::placeholder { color: #9A9186; }
.chat-send { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; display: grid; place-items: center; }
.chat-send svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-send:disabled { opacity: .3; cursor: default; }
.chat-foot { display: flex; justify-content: center; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; }
.chat-foot a { color: var(--muted); }
.chat-foot button { white-space: nowrap; padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; }

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .35; transform: scale(.85); } 40% { opacity: 1; transform: none; } }

.framed .hero { padding-top: 54px; }
.framed .g-askbar { padding-bottom: 26px; }

@media (max-width: 359px) {
  .hero h1 { font-size: 30px; }
  .wifi-pass { font-size: 21px; }
  .help { grid-template-columns: 1fr; }
  .bins .day { width: 80px; }
}
@media (min-width: 700px) {
  .g { padding-top: 24px; }
  .hero { border-radius: 28px; }
  .sheet { align-items: center; }
  .sheet-panel { border-radius: 24px; max-height: 84vh; }
  .sheet.chat .sheet-panel { height: 84vh; }
  .sheet-grab { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .msg, .rise, .hero-msg, .hero-msg::after, .hero-msg svg, .hero-mark g, .today-icon .live::after { animation: none; }
  .hero-mark path { animation: none; stroke-dashoffset: 0; }
  .sheet-panel, .sheet-bg { transition: none; }
  .g-ask-text { transition: none; }
}
