/* VM Agent — laid out as the phone app. On a phone it is the whole screen; on a desktop it is a
   centred device, so what you test here is what the app will be. */

.ag-shell { display: flex; justify-content: center; padding: 6px 0 24px; }
.ag-phone { position: relative; width: min(430px, 100%); height: min(860px, calc(100vh - 150px));
  min-height: 620px; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(600px 380px at 80% -10%, #28306a 0%, transparent 60%),
              radial-gradient(500px 360px at 0% 110%, #1d2352 0%, transparent 60%), #0e1128;
  border: 1px solid #353d7a; border-radius: 34px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 6px #070918; }
@media (max-width: 520px) {
  .ag-shell { padding: 0; }
  .ag-phone { width: 100%; height: calc(100vh - 120px); border-radius: 0; border: 0; box-shadow: none; }
}

/* ---------------------------------------------------------------- header */
.ag-head { padding: 18px 20px 10px; flex: 0 0 auto; }
.ag-head-row { display: flex; justify-content: space-between; align-items: flex-end; }
.ag-brand b { display: block; font-size: 17px; color: var(--gold); letter-spacing: -.2px; }
.ag-brand span { font-size: 13.5px; color: var(--muted); }
.ag-bar { height: 5px; background: rgba(255,255,255,.08); border-radius: 3px; margin-top: 10px;
  overflow: hidden; }
.ag-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-strong), var(--gold));
  border-radius: 3px; transition: width .45s ease; }
.ag-chips { display: flex; gap: 6px; overflow-x: auto; margin: 10px -20px 0; padding: 0 20px 4px;
  scrollbar-width: none; }
.ag-chips::-webkit-scrollbar { display: none; }
.ag-chip { flex: 0 0 auto; background: rgba(110,168,255,.1); border: 1px solid rgba(110,168,255,.28);
  color: #c9d8ff; border-radius: 999px; padding: 5px 11px; font-size: 13.5px; cursor: pointer;
  white-space: nowrap; }
.ag-chip.assumed { border-style: dashed; color: var(--muted); background: transparent; }
.ag-chip:hover { border-color: var(--gold); }

/* ---------------------------------------------------------------- body */
.ag-body { flex: 1 1 auto; overflow-y: auto; padding: 4px 18px 18px; scroll-behavior: smooth; }
.ag-err { background: rgba(255,123,123,.12); border: 1px solid rgba(255,123,123,.4); color: #ffc9c9;
  border-radius: 12px; padding: 9px 12px; font-size: 15px; margin: 8px 0; }
.ag-muted { color: var(--muted); font-size: 15px; }

/* the voice strip */
.ag-voice { display: flex; gap: 14px; align-items: center; margin: 6px 0 14px; }
.ag-captions { flex: 1; min-width: 0; }
.ag-state { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.ag-say { font-size: 17px; line-height: 1.45; color: var(--text); margin-top: 2px; }
.ag-heard { font-size: 14.5px; color: var(--muted); margin-top: 4px; font-style: italic; }

/* the orb */
.ag-orb { position: relative; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff4d6, var(--gold) 45%, #b8741c 100%);
  box-shadow: 0 0 24px rgba(245,196,107,.35); }
.ag-orb span { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(245,196,107,.35); }
.ag-orb.big { width: 96px; height: 96px; margin: 0 auto 18px; }
.ag-orb.idle, .ag-orb.connecting { animation: agBreathe 3.2s ease-in-out infinite; }
.ag-orb.listening { animation: agPulse 1.1s ease-in-out infinite; }
.ag-orb.listening span { animation: agRing 1.1s ease-out infinite; border-color: rgba(245,196,107,.7); }
.ag-orb.speaking { background: radial-gradient(circle at 35% 30%, #e6f0ff, var(--blue) 50%, #2b4fa8 100%);
  box-shadow: 0 0 28px rgba(110,168,255,.5); animation: agTalk .42s ease-in-out infinite alternate; }
.ag-orb.speaking span { border-color: rgba(110,168,255,.6); animation: agRing .9s ease-out infinite; }
.ag-orb.thinking span { border-color: transparent; border-top-color: var(--gold);
  animation: spin 1s linear infinite; }
.ag-orb.muted { filter: grayscale(1) brightness(.55); }
.ag-orb.error { filter: hue-rotate(-40deg) saturate(1.4); }
@keyframes agBreathe { 50% { transform: scale(1.06); } }
@keyframes agPulse { 50% { transform: scale(1.12); } }
@keyframes agTalk { from { transform: scale(.96); } to { transform: scale(1.1); } }
@keyframes agRing { from { transform: scale(1); opacity: 1; } to { transform: scale(1.55); opacity: 0; } }

/* ---------------------------------------------------------------- the question */
.ag-q { background: rgba(26,31,66,.72); border: 1px solid #343c7a; border-radius: 22px;
  padding: 18px 16px 16px; backdrop-filter: blur(6px); animation: agIn .28s ease both; }
@keyframes agIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ag-q-kicker { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.ag-q-ask { font-size: 24px; line-height: 1.25; font-weight: 750; letter-spacing: -.3px;
  margin: 6px 0 4px; color: var(--text); }
.ag-hint { font-size: 15px; color: var(--muted); margin: 2px 0 8px; line-height: 1.45; }
.ag-f { display: block; margin-top: 14px; }
.ag-f-label { font-size: 14.5px; color: #aeb6e0; margin-bottom: 7px; font-weight: 600; }
.ag-opts { display: grid; gap: 8px; }
.ag-opts.grid { grid-template-columns: 1fr 1fr; }
.ag-opt { text-align: left; background: rgba(32,38,78,.9); border: 1.5px solid #3a4386; color: var(--text);
  border-radius: 14px; padding: 13px 14px; font-size: 16.5px; cursor: pointer; min-height: 48px;
  transition: border-color .12s, background .12s, transform .08s; }
.ag-opt:hover { border-color: #6d78c2; }
.ag-opt:active { transform: scale(.98); }
.ag-opt.on { background: var(--gold); border-color: var(--gold); color: #241a00; font-weight: 700; }
.ag-multi { display: flex; flex-wrap: wrap; gap: 7px; }
.ag-pill { background: rgba(32,38,78,.9); border: 1.5px solid #3a4386; color: #cfd5f6;
  border-radius: 999px; padding: 9px 13px; font-size: 15px; cursor: pointer; min-height: 40px; }
.ag-pill.on { background: var(--gold); border-color: var(--gold); color: #241a00; font-weight: 700; }
.ag-in { width: 100%; background: #151a3c; border: 1.5px solid #3a4386; border-radius: 12px;
  color: var(--text); padding: 11px 12px; font-size: 16.5px; margin: 0; }
.ag-in:focus { outline: none; border-color: var(--gold); }
.ag-date input { width: 100%; background: #151a3c; border: 1.5px solid #3a4386; border-radius: 12px;
  color: var(--text); padding: 11px 12px; font-size: 17px; margin: 0; color-scheme: dark; }
.ag-echo { display: block; font-size: 14.5px; color: var(--gold); margin-top: 5px; }
.ag-stepper { display: inline-flex; align-items: center; border: 1.5px solid #3a4386; border-radius: 14px;
  overflow: hidden; }
.ag-stepper button { width: 56px; height: 50px; background: rgba(110,168,255,.12); border: 0;
  color: var(--blue); font-size: 24px; cursor: pointer; }
.ag-stepper span { min-width: 60px; text-align: center; font-size: 22px; font-weight: 700; }
.ag-slider input[type=range] { width: 100%; accent-color: var(--gold); height: 28px; margin: 0; }
.ag-slider-v { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 15.5px;
  color: var(--muted); }
.ag-slider-v b { font-size: 26px; color: var(--text); }
.ag-suggest { font-size: 13.5px; color: var(--gold); border: 1px solid rgba(245,196,107,.4);
  border-radius: 999px; padding: 2px 9px; }
.ag-child { display: grid; grid-template-columns: 1.2fr .9fr .9fr auto; gap: 6px; align-items: center;
  margin-bottom: 8px; }
.ag-child .ag-in { padding: 10px 9px; font-size: 16px; }
.ag-unknown { grid-column: 1 / -1; font-size: 14px; color: var(--muted); display: flex; gap: 6px;
  align-items: center; margin: -2px 0 2px; }
.ag-unknown input { width: auto; margin: 0; }
.ag-x { background: none; border: 0; color: var(--red); font-size: 16px; cursor: pointer; padding: 6px; }
.ag-hotel-q { margin-bottom: 8px; }
.ag-hotels { max-height: 260px; overflow-y: auto; border: 1px solid #2f3670; border-radius: 14px;
  padding: 4px; }
.ag-hotel-g { font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--gold);
  padding: 8px 10px 4px; }
.ag-hotel { display: block; width: 100%; text-align: left; background: none; border: 0;
  border-radius: 10px; color: var(--text); padding: 10px; font-size: 15.5px; cursor: pointer; }
.ag-hotel:hover { background: rgba(110,168,255,.1); }
.ag-hotel.on { background: var(--gold); color: #241a00; font-weight: 700; }
.ag-q-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.ag-missing { color: var(--amber); }

/* recommendation alongside the input */
.ag-insight { margin-top: 12px; background: linear-gradient(135deg, rgba(245,196,107,.12), rgba(245,196,107,.04));
  border: 1px solid rgba(245,196,107,.35); border-radius: 18px; padding: 13px 15px; font-size: 15.5px;
  line-height: 1.5; color: #f1e5c8; animation: agIn .35s ease both; }
.ag-insight.warn { background: rgba(255,123,123,.1); border-color: rgba(255,123,123,.4); color: #ffd0d0; }
.ag-insight-t { font-weight: 700; color: var(--gold); margin-bottom: 3px; }
.ag-src { font-size: 13px; color: var(--muted); margin-top: 5px; font-style: italic; }

/* ---------------------------------------------------------------- buttons */
.ag-cta { display: block; width: 100%; border: 0; border-radius: 16px; padding: 15px 18px;
  font-size: 17px; font-weight: 800; color: #241a00; cursor: pointer;
  background: linear-gradient(180deg, var(--gold), var(--gold-strong));
  box-shadow: 0 8px 24px rgba(232,169,61,.28); margin-top: 12px; }
.ag-cta.sm { width: auto; padding: 11px 22px; font-size: 16px; margin: 0; box-shadow: none; }
.ag-cta:disabled { opacity: .5; }
.ag-ghost { display: block; width: 100%; background: none; border: 1.5px solid #3a4386; color: #c9d1ff;
  border-radius: 16px; padding: 13px 18px; font-size: 16px; cursor: pointer; margin-top: 10px; }
.ag-ghost.sm { width: auto; padding: 10px 16px; font-size: 15px; margin: 0; border-radius: 14px; }

/* ---------------------------------------------------------------- welcome */
.ag-welcome { flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 30px 26px; text-align: center; }
.ag-welcome h1 { font-size: 29px; line-height: 1.2; letter-spacing: -.5px; margin: 0 0 10px;
  color: var(--text); font-weight: 750; }
.ag-welcome h1 b { color: var(--gold); }
.ag-welcome p { color: var(--muted); font-size: 17px; line-height: 1.5; margin: 0 0 18px; }
.ag-promises { list-style: none; padding: 0; margin: 22px 0 0; text-align: left; }
.ag-promises li { font-size: 15px; color: #b8bfe6; padding: 7px 0 7px 26px; position: relative;
  border-top: 1px solid rgba(255,255,255,.06); }
.ag-promises li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 700; }

/* ---------------------------------------------------------------- footer */
.ag-foot { flex: 0 0 auto; padding: 10px 18px 18px; border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(10,12,32,.85); backdrop-filter: blur(10px); }
.ag-foot-row { display: flex; align-items: center; justify-content: space-between; }
.ag-mic { width: 68px; height: 68px; border-radius: 50%; border: 0; font-size: 28px; cursor: pointer;
  background: linear-gradient(180deg, var(--gold), var(--gold-strong)); color: #241a00;
  box-shadow: 0 10px 28px rgba(232,169,61,.35); transition: transform .1s; }
.ag-mic:active { transform: scale(.95); }
.ag-mic.listening { box-shadow: 0 0 0 8px rgba(245,196,107,.18), 0 10px 28px rgba(232,169,61,.4); }
.ag-mic.speaking { background: linear-gradient(180deg, #8fb9ff, var(--blue)); }
.ag-mic.muted, .ag-mic.off, .ag-mic.error { background: #2a3066; color: var(--text); box-shadow: none; }
.ag-round { width: 48px; height: 48px; border-radius: 50%; background: rgba(32,38,78,.9);
  border: 1.5px solid #3a4386; color: var(--text); font-size: 17px; cursor: pointer; }
.ag-round.on { border-color: var(--gold); }
.ag-round:disabled { opacity: .35; cursor: default; }
.ag-type { display: flex; gap: 8px; margin-bottom: 10px; }
.ag-type .ag-in { flex: 1; }

/* ---------------------------------------------------------------- review, busy, results */
.ag-rev-row { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left;
  background: rgba(26,31,66,.72); border: 1px solid #343c7a; border-radius: 14px; padding: 12px 14px;
  margin-top: 8px; cursor: pointer; color: var(--text); }
.ag-rev-row span { color: var(--muted); font-size: 14.5px; flex: 0 0 34%; }
.ag-rev-row b { font-size: 15px; font-weight: 600; text-align: right; }
.ag-rev-row i { color: var(--muted); font-weight: 400; font-style: normal; }
.ag-busy { text-align: center; padding: 30px 8px; }
.ag-busy h2 { font-size: 24px; margin: 0 0 14px; color: var(--text); }
.ag-busy ul { list-style: none; padding: 0; margin: 0 auto; max-width: 300px; text-align: left; }
.ag-busy li { padding: 8px 0 8px 26px; position: relative; color: var(--muted); font-size: 16px;
  animation: agStep 28s linear both; }
.ag-busy li::before { content: "◌"; position: absolute; left: 4px; color: var(--gold); }
@keyframes agStep { 0% { opacity: .35; } 8% { opacity: 1; color: var(--text); } 100% { opacity: 1; } }
.ag-rec-sum { color: #cdd3f5; font-size: 16px; line-height: 1.55; }
.ag-park, .ag-day { background: rgba(26,31,66,.72); border: 1px solid #343c7a; border-radius: 18px;
  padding: 14px 15px; margin-top: 10px; animation: agIn .3s ease both; }
.ag-park-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ag-park-h b { font-size: 18px; }
.ag-park p, .ag-day p { font-size: 15.5px; color: #c3c9ee; line-height: 1.5; margin: 6px 0 0; }
.ag-tag { font-size: 12.5px; border-radius: 999px; padding: 3px 9px; background: rgba(110,168,255,.14);
  color: #bcd2ff; text-transform: capitalize; white-space: nowrap; display: inline-block; margin: 4px 4px 0 0; }
.ag-tag.gold { background: rgba(245,196,107,.18); color: var(--gold); }
.ag-note { font-size: 15px; color: #e8dcc0; margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  background: rgba(245,196,107,.08); }
.ag-note.muted { color: var(--muted); background: rgba(255,255,255,.03); }
.ag-day-date { font-size: 14.5px; color: var(--muted); }
.ag-day-place { font-size: 20px; font-weight: 750; color: var(--gold); margin: 1px 0 2px; }

/* several questions on one screen: choices become compact pills so the step fits a phone */
.ag-opts.compact { display: flex; flex-wrap: wrap; gap: 7px; }
.ag-opts.compact .ag-opt { width: auto; min-height: 40px; padding: 9px 14px; font-size: 15.5px;
  border-radius: 999px; }
/* the recommendation sits above the question it follows from, so it is seen, not scrolled to */
.ag-body > .ag-insight { margin: 0 0 12px; }
/* primary actions stay reachable at the end of a long list */
.ag-sticky { position: sticky; bottom: -18px; margin: 14px -18px -18px; padding: 10px 18px 18px;
  background: linear-gradient(180deg, rgba(14,17,40,0) 0%, rgba(14,17,40,.94) 28%); z-index: 2; }
.ag-sticky .ag-cta { margin-top: 0; }

/* ---------------------------------------------------------------- dining in the agent */
.ag-inline-warn { margin: 14px 0 0; }
.ag-pref { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between;
  background: rgba(110,168,255,.1); border: 1px solid rgba(110,168,255,.3); border-radius: 14px;
  padding: 10px 12px; font-size: 15px; color: #d6e2ff; margin: 8px 0 6px; line-height: 1.45; }
.ag-pref.plain { background: transparent; border-style: dashed; color: #aeb6e0; }
.ag-pref.warn { background: rgba(255,196,107,.1); border-color: rgba(255,196,107,.35); color: #f3e2bd; }
.ag-link { background: none; border: 0; color: var(--blue); font-size: 14.5px; cursor: pointer;
  padding: 0; white-space: nowrap; text-decoration: underline; }
.ag-pref-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.ag-meal-search { margin: 8px 0 4px; }
.ag-rest { background: rgba(26,31,66,.78); border: 1px solid #343c7a; border-radius: 18px;
  padding: 13px 14px; margin-top: 10px; animation: agIn .28s ease both; }
.ag-rest.more { background: rgba(26,31,66,.5); }
.ag-rest-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ag-rest-h b { font-size: 17.5px; line-height: 1.25; }
.ag-choose { flex: 0 0 auto; background: var(--gold); color: #241a00; border: 0; border-radius: 999px;
  padding: 8px 16px; font-size: 15px; font-weight: 800; cursor: pointer; }
.ag-rest-meta { font-size: 14px; color: #aeb6e0; margin-top: 3px; }
.ag-rest-why { font-size: 14.5px; color: var(--gold); margin-top: 6px; }
.ag-rest-warn { font-size: 14px; color: #ffcf9e; margin-top: 5px; }
.ag-rest-d { font-size: 15px; color: #bfc6ec; line-height: 1.5; margin: 6px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag-more summary { color: var(--muted); font-size: 14.5px; cursor: pointer; margin-top: 12px; }
.ag-meal-foot { display: flex; gap: 10px; justify-content: space-between; }
.ag-meal-foot .ag-ghost.sm { flex: 1; }
.ag-where { margin: 6px 0 4px; }
.ag-where .ag-opts { margin-top: 6px; }
.ag-where .ag-hint { margin: 6px 0 0; }
.ag-more-t { font-size: inherit; margin-left: 2px; }

/* ---------------------------------------------------------------- Michael, 25 Sept */
/* "The typing answer icon needs to be larger. It's barely noticeable. Maybe a color?" */
.ag-typebtn { height: 52px; padding: 0 18px; border-radius: 26px; display: inline-flex; align-items: center;
  gap: 8px; background: rgba(110,168,255,.18); border: 1.5px solid var(--blue); color: #dce8ff;
  font-size: 16px; font-weight: 700; cursor: pointer; }
.ag-typebtn span { font-size: 21px; }
.ag-typebtn.on { background: var(--blue); color: #0b1330; }
.ag-foot-spacer { width: 104px; }
/* the US date field: mm/dd/yyyy typed, the device calendar one tap away */
.ag-date .us-date { display: flex; gap: 8px; align-items: center; position: relative; }
.ag-date .us-date-text { flex: 1; }
.ag-date .us-date-pick { width: 52px; height: 50px; border-radius: 12px; border: 1.5px solid #3a4386;
  background: rgba(32,38,78,.9); font-size: 21px; cursor: pointer; }
.ag-date .us-date-text.bad { border-color: var(--red); }
.ag-date .us-date-native { position: absolute; right: 0; bottom: 0; width: 52px; height: 50px;
  opacity: 0; pointer-events: none; padding: 0; border: 0; }
/* an off-site stay, confirmed rather than assumed */
.ag-offsite { margin-top: 12px; }
.ag-offsite .ag-off-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 10px; }
.ag-notlisted { margin-top: 12px; }

/* ---------------------------------------------------------------- his voice (25 Sept) */
.ag-voicepick { display: block; margin: 12px auto 0; background: none; border: 0; color: #c9d4ff;
  font-size: 15px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ag-voicepick b { color: var(--gold); }
.ag-voice-chip { margin-left: 8px; background: rgba(110,168,255,.14); border: 1px solid rgba(110,168,255,.4);
  color: #d6e4ff; border-radius: 999px; padding: 1px 9px; font-size: 12.5px; cursor: pointer;
  letter-spacing: 0; text-transform: none; }
.ag-sheet { position: absolute; inset: 0; background: rgba(4,6,16,.72); display: flex; align-items: flex-end;
  z-index: 20; }
.ag-sheet-card { width: 100%; max-height: 82%; overflow: auto; background: #151a3a; border-top: 1px solid #353d7a;
  border-radius: 24px 24px 0 0; padding: 16px 18px 20px; }
.ag-sheet-h { display: flex; justify-content: space-between; align-items: center; font-size: 19px; margin-bottom: 6px; }
.ag-voice-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.ag-voice-row.on .ag-voice-name b { color: var(--gold); }
.ag-voice-play { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--blue);
  background: rgba(110,168,255,.14); color: #d6e4ff; font-size: 16px; cursor: pointer; flex: 0 0 auto; }
.ag-voice-play:disabled { opacity: .35; cursor: default; }
.ag-voice-name { flex: 1; text-align: left; background: none; border: 0; color: var(--text); font-size: 17px;
  cursor: pointer; padding: 8px 0; display: flex; gap: 8px; align-items: center; }
.ag-voice-on { color: var(--gold); font-size: 20px; font-weight: 800; }
.ag-sheet-note { margin-top: 10px; }
