/* Detailing assistant: a full-screen messenger, modeled on iPhone Messages. */
:root {
  --bg: #fff;
  --text: #000;
  --muted: #8a8a8e;
  --in: #e9e9eb;
  --in-text: #000;
  --out-top: #2b96ff;
  --out: #0a7cff;
  --blue: #007aff;
  --bar: rgba(247, 247, 249, .84);
  --line: rgba(60, 60, 67, .2);
  --field: #fff;
  --field-line: #c7c7cc;
  --cam: #8a8a8e;
  --cam-cut: var(--bar-solid);
  --bar-solid: #f7f7f9;
  --chip: rgba(0, 122, 255, .09);
  --red: #ff3b30;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --text: #fff; --muted: #8d8d93;
    --in: #26252a; --in-text: #fff;
    --blue: #0a84ff;
    --bar: rgba(22, 22, 24, .82); --bar-solid: #161618;
    --line: rgba(84, 84, 88, .55);
    --field: #000; --field-line: #3a3a3c;
    --cam: #8d8d93; --chip: rgba(10, 132, 255, .16);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  position: fixed; inset: 0; overflow: hidden; overscroll-behavior: none;
  background: var(--bg); color: var(--text); font: 17px/1.3 var(--font);
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
button, textarea, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* The app fills exactly the part of the screen you can see. JS shrinks it when the keyboard opens. */
.app { position: fixed; left: 0; right: 0; top: 0; height: 100%; overflow: hidden; background: var(--bg); will-change: transform; }

/* ---------- Header ---------- */
.top {
  position: absolute; z-index: 5; left: 0; right: 0; top: 0;
  padding-top: env(safe-area-inset-top);
  background: var(--bar); border-bottom: .5px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  touch-action: none;
}
.top__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: .35rem max(.5rem, env(safe-area-inset-right)) .45rem max(.5rem, env(safe-area-inset-left)); }
.top__back { justify-self: start; display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: 0 .5rem 0 .25rem; color: var(--blue); text-decoration: none; font-size: 17px; }
.top__back svg { width: 12px; height: 21px; }
.top__who { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.top__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #dfe9ee; box-shadow: 0 0 0 .5px var(--line); }
.top__who h1 { margin: .2rem 0 0; font-size: 12px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.top__who p { margin: 0; font-size: 10.5px; color: var(--muted); }
.top__call { justify-self: end; display: grid; place-items: center; width: 44px; height: 44px; color: var(--blue); }
.top__call svg { width: 22px; height: 22px; }

/* Pinned booking summary */
.pin {
  display: flex; align-items: center; gap: .65rem; width: calc(100% - 1.5rem); max-width: 44rem; margin: 0 auto .55rem;
  padding: .5rem .75rem; border: 0; border-radius: 14px; text-align: left;
  background: var(--chip); color: var(--text);
  animation: pin-in .35s cubic-bezier(.2, .8, .2, 1);
}
.pin[hidden] { display: none; }
.pin__icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; }
.pin__icon svg { width: 20px; height: 20px; }
.pin__text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; line-height: 1.25; }
.pin__text b { font-size: 13px; font-weight: 600; }
.pin__text span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin__go { flex: none; display: inline-flex; align-items: center; gap: .3rem; color: var(--blue); font-size: 15px; font-weight: 600; }
.pin__go svg { width: 8px; height: 14px; }
@keyframes pin-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Conversation ---------- */
.log {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: calc(var(--hh, 110px) + .5rem) 0 calc(var(--fh, 64px) + .4rem);
}
.thread { max-width: 46rem; margin: 0 auto; padding: 0 max(.85rem, env(safe-area-inset-right)) 0 max(.85rem, env(safe-area-inset-left)); display: flex; flex-direction: column; }

.intro { margin: .25rem auto 1rem; max-width: 19rem; text-align: center; font-size: 12px; line-height: 1.4; color: var(--muted); }
.stamp { margin: .9rem 0 .45rem; text-align: center; font-size: 11px; color: var(--muted); }
.stamp b { font-weight: 600; }

.row { display: flex; flex-direction: column; margin-top: 2px; }
.row.first { margin-top: .55rem; }
.row--out { align-items: flex-end; }
.row--in { align-items: flex-start; }
.row.pop { animation: pop .32s cubic-bezier(.2, .9, .25, 1.15) both; }
.row--out.pop { transform-origin: 100% 100%; }
.row--in.pop { transform-origin: 0 100%; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.92); } }

.b {
  position: relative; max-width: min(76%, 30rem); padding: 7px 13px 8px; border-radius: 18px;
  word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap;
}
.b p { position: relative; z-index: 2; margin: 0; }
.row--out .b { background: linear-gradient(180deg, var(--out-top), var(--out)); color: #fff; }
.row--in .b { background: var(--in); color: var(--in-text); }
.b a { color: inherit; }

/* Bubble tails on the last bubble of each group */
.b.tail::before, .b.tail::after { content: ""; position: absolute; bottom: 0; height: 20px; }
.row--out .b.tail::before { z-index: 0; right: -7px; width: 20px; background: var(--out); border-bottom-left-radius: 16px 14px; }
.row--out .b.tail::after { z-index: 1; right: -26px; width: 26px; background: var(--bg); border-bottom-left-radius: 10px; }
.row--in .b.tail::before { z-index: 0; left: -7px; width: 20px; background: var(--in); border-bottom-right-radius: 16px 14px; }
.row--in .b.tail::after { z-index: 1; left: -26px; width: 26px; background: var(--bg); border-bottom-right-radius: 10px; }

/* Photos */
.pics { display: flex; flex-wrap: wrap; gap: 3px; justify-content: flex-end; max-width: min(72%, 18rem); }
.row--in .pics { justify-content: flex-start; }
.pics button { padding: 0; border: 0; background: none; border-radius: 18px; overflow: hidden; line-height: 0; }
.pics img { display: block; width: 100%; max-width: 15rem; max-height: 18rem; object-fit: cover; border-radius: 18px; }
.pics--many button { width: calc(50% - 1.5px); }
.pics--many img { aspect-ratio: 1; height: auto; }
.pics + .b { margin-top: 2px; }
.photo-count { font-size: 12px; color: var(--muted); padding: 0 .3rem; }

/* What the assistant filled in */
.filled { display: flex; align-items: flex-start; gap: .35rem; max-width: min(80%, 30rem); margin: .3rem 0 0 .6rem; font-size: 12px; line-height: 1.35; color: var(--muted); }
.filled svg { flex: none; width: 13px; height: 13px; margin-top: 1px; color: #34c759; }

/* Action under a bubble: send a photo / review */
.act {
  display: inline-flex; align-items: center; gap: .45rem; margin: .4rem 0 0 .2rem; min-height: 36px; padding: .45rem .95rem;
  border: 1px solid var(--blue); border-radius: 18px; background: transparent; color: var(--blue); font-size: 15px; font-weight: 500;
}
.act svg { width: 18px; height: 18px; }
.act:active { background: var(--chip); }

/* Price card */
.card { width: min(76%, 17.5rem); border-radius: 18px; overflow: hidden; background: var(--in); color: var(--in-text); }
.card__top { padding: .85rem 1rem .7rem; }
.card__label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.card__price { margin: .1rem 0 .2rem; font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.card__sum { margin: 0; font-size: 14px; line-height: 1.35; }
.card__fine { margin: .45rem 0 0; font-size: 12px; color: var(--muted); }
.card__btn { display: block; width: 100%; padding: .8rem 1rem; border: 0; border-top: .5px solid var(--line); background: transparent; color: var(--blue); font-size: 17px; font-weight: 600; }
.card__btn:active { background: var(--chip); }

/* Status under your last message */
.status { margin: .2rem .35rem 0 0; font-size: 11px; font-weight: 500; color: var(--muted); }
.status--fail { color: var(--red); background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: .3rem; }
.status--fail svg { width: 14px; height: 14px; }

.note { align-self: center; max-width: 85%; margin: .7rem 0 .2rem; text-align: center; font-size: 12px; line-height: 1.4; color: var(--muted); }

/* Typing indicator */
.typing { display: flex; gap: 4px; align-items: center; padding: 12px 14px 13px; }
.typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .45; animation: dot 1.3s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: .9; transform: translateY(-2px); } }

/* ---------- Composer ---------- */
.foot {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: 0;
  padding-bottom: max(.4rem, env(safe-area-inset-bottom));
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
html.kb .foot { padding-bottom: .4rem; }
.quick { display: flex; gap: .45rem; max-width: 46rem; margin: 0 auto; overflow-x: auto; padding: .5rem max(.75rem, env(safe-area-inset-left)) .1rem; scrollbar-width: none; touch-action: pan-x; }
.quick::-webkit-scrollbar { display: none; }
.quick:empty { display: none; }
.quick button {
  flex: none; min-height: 34px; padding: .35rem .9rem; border-radius: 17px;
  border: 1px solid var(--blue); background: var(--bg); color: var(--blue); font-size: 15px; white-space: nowrap;
}
.quick button:active { background: var(--chip); }
.bar { display: flex; align-items: flex-end; gap: .5rem; max-width: 46rem; margin: 0 auto; padding: .45rem max(.6rem, env(safe-area-inset-right)) 0 max(.6rem, env(safe-area-inset-left)); touch-action: none; }
.bar__cam { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 0; border: 0; border-radius: 50%; background: transparent; color: var(--cam); }
.bar__cam svg { width: 28px; height: 28px; }
.field { flex: 1; min-width: 0; border: 1px solid var(--field-line); border-radius: 19px; background: var(--field); overflow: hidden; }
.field__row { display: flex; align-items: flex-end; }
.field textarea {
  flex: 1; min-width: 0; display: block; height: 36px; max-height: 8.5rem; padding: 7px 4px 7px 13px; border: 0; outline: 0; resize: none;
  background: transparent; font-size: 17px; line-height: 22px; touch-action: pan-y;
}
.field textarea::placeholder { color: var(--muted); }
.field__mic, .field__send { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin: 2px 3px 2px 0; border: 0; border-radius: 50%; padding: 0; }
.field__mic { background: transparent; color: var(--muted); }
.field__mic svg { width: 21px; height: 21px; }
.field__mic .i-stop { display: none; }
.field__send { background: var(--blue); color: #fff; display: none; }
.field__send svg { width: 18px; height: 18px; }
.field.has-text .field__send { display: grid; }
.field.has-text .field__mic { display: none; }
.field.is-listening { border-color: var(--red); }
.field.is-listening .field__mic { display: grid; background: var(--red); color: #fff; animation: rec 1.4s infinite; }
.field.is-listening .field__send { display: none; }
.field.is-listening .i-mic { display: none; }
.field.is-listening .i-stop { display: block; }
@keyframes rec { 50% { box-shadow: 0 0 0 6px rgba(255, 59, 48, .18); } }
.field__pics { display: flex; gap: .4rem; padding: .5rem .5rem 0; overflow-x: auto; }
.field__pics[hidden] { display: none; }
.field__pics span { position: relative; flex: none; }
.field__pics img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.field__pics button { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; }
.field__pics button svg { width: 10px; height: 10px; }

/* ---------- Photo viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); background: rgba(0, 0, 0, .92); animation: fade .2s; }
.viewer[hidden] { display: none; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Bigger screens: keep the conversation a readable width ---------- */
@media (min-width: 48rem) {
  .b { max-width: min(70%, 30rem); }
}

/* ---------- Page slide, like opening a conversation ---------- */
@view-transition { navigation: auto; }
@keyframes vt-in-right { from { transform: translateX(100%); } }
@keyframes vt-out-left { to { transform: translateX(-28%); opacity: .7; } }
html:active-view-transition-type(push)::view-transition-old(root) { animation: vt-out-left .38s cubic-bezier(.2, .8, .2, 1) both; }
html:active-view-transition-type(push)::view-transition-new(root) { animation: vt-in-right .38s cubic-bezier(.2, .8, .2, 1) both; box-shadow: -10px 0 30px rgba(0, 0, 0, .12); }

@media (prefers-reduced-motion: reduce) {
  .row.pop, .pin, .typing span, .field.is-listening .field__mic { animation: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Conversation (voice) button in the composer ---------- */
.bar__talk { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; }
.bar__talk svg { width: 20px; height: 20px; }
.bar__talk:active { transform: scale(.94); }

/* ---------- Conversation mode: full screen, talk back and forth ---------- */
.voice {
  position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center;
  padding: max(1rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom));
  color: #fff; text-align: center; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #1c5f78 0%, #0d3346 45%, #061923 100%);
  animation: v-in .3s ease both;
}
.voice[hidden] { display: none; }
@keyframes v-in { from { opacity: 0; transform: scale(1.02); } }
html.voice-open .app { visibility: hidden; }
.voice__top { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.voice__top img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.voice__top p { margin: .25rem 0 0; font-size: 15px; font-weight: 600; }
.voice__top .voice__state { margin: 0; font-size: 14px; font-weight: 400; color: rgba(255, 255, 255, .7); min-height: 1.3em; }

.voice__orb { flex: 1 1 auto; display: grid; place-items: center; width: 100%; min-height: 0; max-height: 22rem; margin: 1rem 0 .5rem; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.orb { position: relative; width: min(52vw, 13rem); aspect-ratio: 1; }
.orb i, .orb b { position: absolute; inset: 0; border-radius: 50%; }
.orb b { background: radial-gradient(circle at 35% 30%, #e8fbff 0%, #8fe0ee 22%, #2fa6c4 52%, #0f5f86 80%, #0a3e5b 100%); box-shadow: 0 0 60px rgba(120, 220, 240, .45), inset 0 -10px 30px rgba(0, 20, 40, .35); transition: transform .4s cubic-bezier(.3, 1.4, .5, 1); }
.orb i { border: 2px solid rgba(143, 224, 238, .5); opacity: 0; }
/* Listening: rings ripple out */
.voice[data-state="listening"] .orb i { animation: ring 2.1s cubic-bezier(.2, .6, .3, 1) infinite; }
.voice[data-state="listening"] .orb i:nth-child(2) { animation-delay: .7s; }
.voice[data-state="listening"] .orb i:nth-child(3) { animation-delay: 1.4s; }
.voice[data-state="listening"] .orb b { animation: breathe 2.1s ease-in-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes breathe { 50% { transform: scale(1.05); } }
/* Thinking: shimmer turning */
.voice[data-state="thinking"] .orb b { animation: think 1.6s linear infinite; background: conic-gradient(from 0deg, #0f5f86, #8fe0ee, #2fa6c4, #e8fbff, #0f5f86); filter: blur(.5px); }
@keyframes think { to { transform: rotate(360deg) scale(.92); } }
/* Speaking: bouncy pulse */
.voice[data-state="speaking"] .orb b { animation: talk .55s ease-in-out infinite alternate; }
@keyframes talk { from { transform: scale(.96); } to { transform: scale(1.08); } }
/* Waiting for a tap */
.voice[data-state="idle"] .orb b { transform: scale(.9); opacity: .8; }

.voice__captions { width: 100%; max-width: 30rem; min-height: 6.5rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .55rem; }
.voice__captions p { margin: 0; }
.voice__you { font-size: 16px; color: rgba(255, 255, 255, .62); }
.voice__you:not(:empty)::before { content: "You: "; color: rgba(255, 255, 255, .45); }
.voice__bot { font-size: 20px; line-height: 1.35; font-weight: 500; }
.voice__quick { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: .9rem; max-width: 30rem; }
.voice__quick:empty { display: none; }
.voice__quick button, .voice__photo { min-height: 36px; padding: .4rem 1rem; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); color: #fff; font-size: 15px; }
.voice__photo { margin-top: .6rem; border-color: #8fe0ee; color: #bff1f9; }
.voice__photo[hidden] { display: none; }
.voice__bar { display: flex; align-items: center; justify-content: center; gap: 1.75rem; margin-top: 1.25rem; }
.vbtn { display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; }
.vbtn svg { width: 26px; height: 26px; }
.vbtn--end { width: 68px; height: 68px; background: #ff3b30; }
.vbtn--end svg { width: 28px; height: 28px; }
.vbtn .i-off { display: none; }
.vbtn[aria-pressed="true"] { background: #fff; color: #0d3346; }
.vbtn[aria-pressed="true"] .i-on { display: none; }
.vbtn[aria-pressed="true"] .i-off { display: block; }
@media (max-height: 640px) { .orb { width: min(40vw, 9rem); } .voice__bot { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) {
  .voice, .voice .orb i, .voice .orb b { animation: none !important; }
}

/* =====================================================================
   Android: Google Messages look (Material You). iPhone keeps the iMessage look above.
   Turned on by the "os-android" class, set as the page loads.
   ===================================================================== */
.i-md { display: none; }
html.os-android .i-ios { display: none; }
html.os-android .i-md { display: block; }

html.os-android {
  --bg: #ffffff; --text: #1f1f1f; --muted: #5f6368;
  --in: #e9eef6; --in-text: #1f1f1f;
  --out: #0b57d0; --out-top: #0b57d0; --blue: #0b57d0;
  --bar: #f0f4f9; --bar-solid: #f0f4f9; --line: rgba(0, 0, 0, .08);
  --field: #e9eef6; --field-line: transparent; --cam: #444746;
  --chip: rgba(11, 87, 208, .1); --send-cut: #0b57d0;
  --font: "Google Sans Text", "Google Sans", Roboto, "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  html.os-android {
    --bg: #131314; --text: #e3e3e3; --muted: #a8abaf;
    --in: #282a2c; --in-text: #e3e3e3;
    --out: #a8c7fa; --out-top: #a8c7fa; --blue: #a8c7fa;
    --bar: #1e1f20; --bar-solid: #1e1f20; --line: rgba(255, 255, 255, .08);
    --field: #282a2c; --cam: #c4c7c5; --chip: rgba(168, 199, 250, .14); --send-cut: #a8c7fa;
  }
}
html.os-android body { font-size: 16px; line-height: 1.4; letter-spacing: .01em; }

/* Header: back arrow, avatar and name on the left, call on the right */
html.os-android .top { -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; }
html.os-android .top__row { grid-template-columns: auto 1fr auto; gap: .25rem; padding-top: .5rem; padding-bottom: .5rem; }
html.os-android .top__back { width: 48px; height: 48px; justify-content: center; padding: 0; border-radius: 50%; color: var(--text); }
html.os-android .top__back span { display: none; }
html.os-android .top__back svg { width: 24px; height: 24px; }
html.os-android .top__who { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .75rem; align-items: center; justify-items: start; text-align: left; }
html.os-android .top__avatar { grid-row: 1 / 3; width: 40px; height: 40px; box-shadow: none; }
html.os-android .top__who h1 { margin: 0; align-self: end; font-size: 18px; font-weight: 500; letter-spacing: 0; }
html.os-android .top__who p { align-self: start; font-size: 12.5px; }
html.os-android .top__call { width: 48px; height: 48px; border-radius: 50%; color: var(--text); }
html.os-android .top__call svg { width: 24px; height: 24px; }
html.os-android .top__back:active, html.os-android .top__call:active { background: var(--chip); }
html.os-android .pin { border-radius: 16px; }
html.os-android .pin__icon { border-radius: 12px; }

/* Bubbles: rounded, no tails; a group of messages hugs together with small inner corners */
html.os-android .b { padding: 9px 15px 10px; border-radius: 20px; }
html.os-android .b.tail::before, html.os-android .b.tail::after { display: none; }
html.os-android .row--out .b { background: var(--out); color: #fff; }
@media (prefers-color-scheme: dark) { html.os-android .row--out .b { color: #062e6f; } }
html.os-android .row--out:not(.first) .b, html.os-android .row--out:not(.first) .pics button { border-top-right-radius: 4px; }
html.os-android .row--out .b:not(.tail) { border-bottom-right-radius: 4px; }
html.os-android .row--in:not(.first) .b, html.os-android .row--in:not(.first) .pics button { border-top-left-radius: 4px; }
html.os-android .row--in .b:not(.tail):not(.typing) { border-bottom-left-radius: 4px; }
html.os-android .row { margin-top: 3px; }
html.os-android .row.first { margin-top: .7rem; }
html.os-android .pics button, html.os-android .pics img { border-radius: 20px; }
html.os-android .row.pop { animation: md-pop .28s cubic-bezier(.2, 0, 0, 1) both; }
@keyframes md-pop { from { opacity: 0; transform: translateY(8px); } }

html.os-android .stamp { font-size: 12px; margin: 1rem 0 .5rem; }
html.os-android .stamp b { font-weight: 500; }
html.os-android .intro { font-size: 12.5px; }
html.os-android .status { display: inline-flex; align-items: center; gap: .25rem; font-size: 12px; font-weight: 400; }
html.os-android .status:not(.status--fail)::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.5 12.5l4.5 4.5 9-10M10.5 15.5l1.5 1.5 9.5-10" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / contain no-repeat; mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.5 12.5l4.5 4.5 9-10M10.5 15.5l1.5 1.5 9.5-10" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / contain no-repeat; }
html.os-android .filled svg { color: #146c2e; }
@media (prefers-color-scheme: dark) { html.os-android .filled svg { color: #6dd58c; } }

/* Price card and action buttons: Material shapes */
html.os-android .card { border-radius: 20px; }
html.os-android .card__label { letter-spacing: .02em; text-transform: none; font-size: 13px; font-weight: 500; }
html.os-android .card__btn { margin: 0 .75rem .75rem; width: calc(100% - 1.5rem); border: 0; border-radius: 999px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 500; padding: .7rem 1rem; }
@media (prefers-color-scheme: dark) { html.os-android .card__btn { color: #062e6f; } }
html.os-android .act { border: 1px solid #747775; border-radius: 8px; font-weight: 500; }
html.os-android .quick button { border: 1px solid #747775; border-radius: 8px; background: transparent; font-weight: 500; font-size: 14px; }

/* Composer: filled pill, round buttons */
html.os-android .foot { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
html.os-android .bar { gap: .4rem; padding-bottom: .1rem; }
html.os-android .bar__cam { width: 40px; height: 40px; margin-bottom: 2px; border-radius: 50%; background: var(--chip); color: var(--blue); }
html.os-android .bar__cam svg { width: 22px; height: 22px; }
html.os-android .field { border: 0; border-radius: 24px; }
html.os-android .field textarea { height: 44px; padding: 11px 6px 11px 18px; font-size: 16px; }
html.os-android .field textarea::placeholder { color: var(--muted); }
html.os-android .field__mic { width: 40px; height: 40px; margin: 2px 2px 2px 0; color: var(--cam); }
html.os-android .field__send { width: 40px; height: 40px; margin: 2px; background: var(--blue); color: #fff; }
@media (prefers-color-scheme: dark) { html.os-android .field__send { color: #062e6f; } }
html.os-android .field__send svg { width: 20px; height: 20px; margin-left: 2px; }
html.os-android .field.is-listening { box-shadow: inset 0 0 0 2px var(--red); }
html.os-android .bar__talk { width: 44px; height: 44px; margin-bottom: 0; }
@media (prefers-color-scheme: dark) { html.os-android .bar__talk { color: #062e6f; } }
html.os-android .field.has-text ~ .bar__talk { display: none; }
