/* Virtual Michael v2 — staged planner UI (mobile-first, mirrors File 05 Part 2 hierarchy) */
:root {
  --bg: #0d1023; --panel: #1a1f42; --panel-2: #20264e; --line: #2c3263;
  --text: #e8eaf6; --muted: #9aa1c9; --gold: #f5c46b; --gold-strong: #e8a93d;
  --blue: #6ea8ff; --green: #6fd39a; --red: #ff7b7b; --amber: #ffc46b;
  --radius: 14px; font-size: 15px;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(1100px 500px at 85% -10%, #232a5e 0%, transparent 60%),
              radial-gradient(900px 400px at 5% 110%, #1c2250 0%, transparent 55%), var(--bg);
}

/* top bar */
.topbar { display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0;
  background: rgba(13,16,35,.85); backdrop-filter: blur(8px); z-index: 40; }
.brand { display: flex; gap: 10px; align-items: center; }
.brand-icon { font-size: 28px; }
.brand h1 { margin: 0; font-size: 18px; color: var(--gold); }
.brand p { margin: 0; font-size: 11.5px; color: var(--muted); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.status { font-size: 11px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 10px; }
.status.mock { color: var(--amber); border-color: var(--amber); }
.status.live { color: var(--green); }
.chat-toggle { background: var(--panel-2); color: var(--gold); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 13px; }

/* stepper */
.stepper { display: flex; gap: 6px; justify-content: center; padding: 12px 10px 2px;
  flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; background: var(--panel); }
.step span { width: 18px; height: 18px; border-radius: 50%; background: var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.step.active { color: var(--gold); border-color: var(--gold-strong); }
.step.active span { background: var(--gold); color: #241a00; font-weight: 700; }
.step.done { color: var(--green); }
.step.done span { background: #2e5c44; color: var(--green); }
.step.clickable { cursor: pointer; }

/* stage */
.stage { max-width: 760px; margin: 0 auto; padding: 16px 14px 90px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 14px; }
.card h2 { margin: 0 0 4px; font-size: 17px; color: var(--gold); }
.card h3 { margin: 14px 0 6px; font-size: 13px; color: var(--blue);
  text-transform: uppercase; letter-spacing: .5px; }
.card p.sub { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* form */
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 12px;
  padding: 10px 12px 12px; background: #151936; }
legend { font-size: 11.5px; color: var(--gold); padding: 0 6px; text-transform: uppercase;
  letter-spacing: .5px; }
label { display: block; font-size: 13px; margin: 9px 0 0; }
.opt { color: var(--muted); font-size: 11px; }
input, select, textarea { width: 100%; margin-top: 4px; background: var(--panel-2);
  color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  font-size: 13px; font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: 1.5px solid var(--gold-strong); }
/* Reads the chosen date back in American form under the native picker, whose own display is
   the browser's locale and cannot be styled. */
.date-echo { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1.1fr .7fr 1.2fr; gap: 10px; }
@media (max-width: 560px) { .row3 { grid-template-columns: 1fr 1fr; } }
.chips-inline { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 2px; }
.chips-inline .a-name { flex: 1 1 120px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 12.5px;
  cursor: pointer; color: var(--muted); background: var(--panel-2); user-select: none; }
.chip.on { color: #241a00; background: var(--gold); border-color: var(--gold); font-weight: 600; }
.child-row { border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px;
  margin-top: 8px; position: relative; }
.child-remove { position: absolute; top: 6px; right: 8px; background: none; border: none;
  color: var(--red); cursor: pointer; }
.ghost-btn { background: none; border: 1px dashed var(--line); color: var(--muted);
  border-radius: 8px; padding: 7px 12px; margin-top: 10px; cursor: pointer; font-size: 12.5px; }
.ghost-btn:hover { color: var(--gold); border-color: var(--gold); }

.primary-btn { width: 100%; margin-top: 8px; border: none; border-radius: 12px; padding: 14px;
  font-size: 15px; font-weight: 700; cursor: pointer; color: #241a00;
  background: linear-gradient(180deg, var(--gold), var(--gold-strong));
  box-shadow: 0 4px 18px rgba(232,169,61,.3); }
.primary-btn:disabled { opacity: .5; cursor: wait; }
.secondary-btn { width: 100%; margin-top: 8px; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 14px; cursor: pointer; }
.form-error { color: var(--red); font-size: 12.5px; min-height: 16px; margin-top: 6px; }

/* loading */
.loading { text-align: center; padding: 60px 20px; color: var(--muted); }
.spinner { width: 44px; height: 44px; margin: 0 auto 16px; border: 4px solid var(--line);
  border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- magical "pixie dust" loader (replaces the plain spinner while VM plans) --- */
.vm-magic { width: 108px; height: 88px; margin: 0 auto 18px; position: relative; }
.vm-magic .vm-star {
  position: absolute; font-size: 20px; line-height: 1; color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(245,196,107,.55));
  animation: vm-twinkle 2.4s ease-in-out infinite;
}
.vm-magic .vm-star:nth-child(1) { left: 44px; top: 2px;  font-size: 26px; animation-delay: 0s; }
.vm-magic .vm-star:nth-child(2) { left: 12px; top: 26px; animation-delay: .35s; }
.vm-magic .vm-star:nth-child(3) { left: 78px; top: 22px; animation-delay: .7s; }
.vm-magic .vm-star:nth-child(4) { left: 26px; top: 60px; font-size: 15px; animation-delay: 1.05s; }
.vm-magic .vm-star:nth-child(5) { left: 66px; top: 58px; font-size: 17px; animation-delay: 1.4s; }
.vm-magic .vm-star:nth-child(6) { left: 46px; top: 38px; font-size: 13px; animation-delay: 1.75s; }
@keyframes vm-twinkle {
  0%, 100% { opacity: .15; transform: scale(.7) rotate(-8deg); }
  50%      { opacity: 1;   transform: scale(1.15) rotate(8deg); }
}
/* a slow arc of dust sweeping under the stars */
.vm-magic::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 74px; height: 74px;
  margin: -37px 0 0 -37px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: rgba(245,196,107,.45);
  border-right-color: rgba(245,196,107,.18);
  animation: spin 2.8s linear infinite;
}

/* "Michael is thinking" loader — rotating, personalized progress phrases */
.vm-thinking { max-width: 620px; margin: 0 auto; }
.vm-thinking .vm-open { color: var(--text); font-size: 15px; line-height: 1.55; margin-bottom: 18px; }
.vm-steps { list-style: none; margin: 0 auto; padding: 0; text-align: left; max-width: 540px;
  display: flex; flex-direction: column; gap: 9px; }
.vm-steps li { position: relative; padding-left: 26px; font-size: 13.5px; line-height: 1.5;
  color: var(--muted); opacity: 0; transform: translateY(4px); transition: opacity .35s ease, transform .35s ease; }
.vm-steps li.in { opacity: 1; transform: none; }
.vm-steps li::before { content: "▹"; position: absolute; left: 4px; top: 0; color: var(--gold); }
.vm-steps li.done { color: var(--text); }
.vm-steps li.done::before { content: "✓"; color: var(--green, #86b07a); }
.vm-steps li.vm-still { font-style: italic; color: var(--muted); }
.vm-steps li.vm-still::before { content: "…"; }
@media (prefers-reduced-motion: reduce) {
  .vm-steps li { transition: none; opacity: 1; transform: none; }
  .spinner { animation: none; }
  .vm-magic .vm-star { animation: none; opacity: .9; }
  .vm-magic::after { animation: none; }
}

/* Virtual Michael avatar (LiveKit + Anam) */
.chat-head-actions { display: flex; align-items: center; gap: 8px; }
.avatar-btn { background: var(--gold); color: #1b2254; border: none; border-radius: 999px;
  padding: 5px 12px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.avatar-btn:hover { filter: brightness(1.08); }
.avatar-stage { position: relative; background: #05070f; border-bottom: 1px solid var(--line);
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.avatar-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-overlay { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 18px; color: var(--muted);
  font-size: 13px; background: rgba(5,7,15,.72); }
.avatar-overlay[hidden] { display: none; }
.avatar-overlay.working::after { content: ""; width: 14px; height: 14px; margin-left: 9px;
  border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%;
  display: inline-block; animation: spin 1s linear infinite; }
.avatar-controls { position: absolute; left: 0; right: 0; bottom: 8px; display: flex;
  justify-content: center; gap: 8px; }
.avatar-ctl { background: rgba(10,13,30,.85); color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px; font-size: 11.5px; cursor: pointer; }
.avatar-ctl.danger { color: var(--red); border-color: var(--red); }

.bubble.sent-to-avatar { font-style: italic; color: var(--gold); background: var(--panel-2); }
.bubble.spoken { border-left: 3px solid var(--gold); }

/* guest park-date edit (VM-017/018) */
.swap-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 12px;
  padding-top: 11px; border-top: 1px dashed var(--line); }
.swap-label { font-size: 11.5px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.swap-park { background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 7px; padding: 5px 9px; font-size: 12.5px; max-width: 240px; }
.swap-msg { font-size: 12px; color: var(--muted); }
.swap-msg.swap-blocked { color: var(--red); }

/* video links (dining card, and anywhere else Michael has a video) */
.vm-videos { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vm-videos-label { font-size: 11.5px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--muted); width: 100%; }
.vm-video { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
  color: var(--gold); text-decoration: none; background: var(--panel-2); }
.vm-video:hover { border-color: var(--gold); }

/* badges */
.badge { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .4px;
  border-radius: 999px; padding: 3px 10px; text-transform: uppercase; }
.badge.rec { background: #1f4331; color: var(--green); }
.badge.strong { background: #443a1f; color: var(--gold); }
.badge.consider { background: #21315c; color: var(--blue); }
/* High priority reads first in the list, so it should read first on the card too. */
.badge.prio-high, .badge.prio-highest { background: #4a3a12; color: var(--gold); font-weight: 700; }
.badge.lower { background: #2a2f55; color: var(--muted); }
.badge.confirmed { background: #1f4331; color: var(--green); }
.badge.anchor { background: #443a1f; color: var(--amber); }
.badge.caution { background: #4a2330; color: #ff9d9d; }
.badge.unverified { background: #2a2f55; color: var(--muted); border: 1px dashed var(--line); }
.badge.energy-high { background: #4a2330; color: #ff9d9d; }
.badge.energy-moderate { background: #443a1f; color: var(--amber); }
.badge.energy-low, .badge.energy-recovery { background: #1f4331; color: var(--green); }

/* park cards */
.park-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  margin-top: 10px; background: #151936; }
.park-card .head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.park-card .head b { font-size: 14.5px; flex: 1; }
.park-card .reason { font-size: 13px; line-height: 1.55; margin: 8px 0 4px; }
.park-card .meta { font-size: 11.5px; color: var(--muted); }
.park-card .actions { margin-top: 8px; display: flex; gap: 8px; }
.mini-btn { font-size: 12px; padding: 5px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text); }
.mini-btn.warn { color: var(--amber); border-color: var(--amber); }
.mini-btn.danger { color: var(--red); }
.mini-btn:disabled { opacity: .45; cursor: not-allowed; }

/* option rows (events / nighttime) */
.option-row { border-top: 1px solid var(--line); padding: 10px 0; }
.option-row .head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.option-row .head b { flex: 1; font-size: 13.5px; }
.option-row .desc { font-size: 12.5px; color: var(--muted); margin: 5px 0; line-height: 1.5; }
.option-row .warn { font-size: 12.5px; color: var(--amber); background: rgba(255,196,107,.08);
  border-left: 3px solid var(--amber); padding: 5px 9px; border-radius: 0 6px 6px 0; margin: 5px 0; }
.option-row .resp { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

/* day cards */
.day-card { border: 1px solid var(--line); border-radius: 12px; margin-top: 10px;
  background: #151936; overflow: hidden; }
.day-card summary { list-style: none; cursor: pointer; padding: 12px 14px; }
.day-card summary::-webkit-details-marker { display: none; }
.day-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.day-top .date { color: var(--gold); font-weight: 700; font-size: 13px; }
.day-top .place { font-size: 14px; font-weight: 600; flex: 1; }
.day-headline { font-size: 13px; color: var(--text); margin-top: 5px; }
.day-attention { font-size: 12px; color: var(--amber); margin-top: 4px; }
.day-body { border-top: 1px solid var(--line); padding: 12px 14px; font-size: 13px; }
.day-body .why { color: var(--muted); font-style: italic; margin-bottom: 8px; line-height: 1.5; }
.rhythm { display: grid; gap: 6px; margin: 8px 0; }
.rhythm .phase { display: grid; grid-template-columns: 78px 1fr; gap: 8px; }
.rhythm .phase b { color: var(--blue); font-size: 12px; }
.anchor-line { background: rgba(255,196,107,.08); border-left: 3px solid var(--amber);
  padding: 6px 9px; border-radius: 0 6px 6px 0; margin: 6px 0; font-size: 12.5px; }
.note-line { color: var(--muted); font-size: 12.5px; margin: 4px 0; }
.attr-link { margin-top: 8px; }

/* attractions */
.outcome-group h3 { margin-top: 18px; }
.attr-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  margin-top: 8px; background: #151936; }
.attr-card .head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.attr-card .head b { flex: 1; font-size: 13.5px; }
.attr-card .why { font-size: 12.5px; margin-top: 5px; line-height: 1.5; }
.attr-card .why.neg { color: #ffb3b3; }
.attr-card .warn { font-size: 12.5px; color: var(--amber); margin-top: 4px; }
.attr-card .member { font-size: 12px; color: var(--muted); margin-top: 3px; }
/* Michael's own spreadsheet content: stats row, directions and trivia */
.attr-stats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.attr-extra { margin-top: 6px; }
.attr-extra > summary { cursor: pointer; font-size: 12px; color: var(--gold);
  list-style: none; padding: 2px 0; }
.attr-extra > summary::-webkit-details-marker { display: none; }
.attr-extra > summary::before { content: "▸ "; }
.attr-extra[open] > summary::before { content: "▾ "; }
.lock-warning { margin-top: 6px; line-height: 1.5; }

/* Lightning Lane Priority View */
.attr-tabs { display: flex; gap: 8px; margin: 10px 0 12px; flex-wrap: wrap; }
.attr-tab { flex: 1; min-width: 150px; padding: 10px 14px; border-radius: 10px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--line); }
.attr-tab.on { color: #241a00; background: linear-gradient(180deg, var(--gold), var(--gold-strong));
  border-color: var(--gold); }
.ll-group { margin-top: 18px; }
.ll-group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 2px;
  font-size: 14px; color: var(--gold); text-transform: none; letter-spacing: 0; }
.ll-count { font-size: 11px; color: var(--muted); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.ll-card-done { opacity: .55; }
.ll-done h3 { color: var(--green); }
.ll-prov { margin-top: 16px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 11.5px; }
.ll-locked { text-align: center; padding: 22px 16px; background: #151936;
  border: 1px dashed var(--line); border-radius: 12px; margin-top: 12px; }
.ll-lock-icon { font-size: 34px; margin-bottom: 8px; }
.ll-locked p { font-size: 13.5px; line-height: 1.6; color: var(--text); max-width: 620px;
  margin: 0 auto; }
.ll-sample { margin-top: 18px; text-align: left; max-width: 640px; margin-left: auto;
  margin-right: auto; }
.ll-sample-title { font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; }
.ll-sample-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 6px;
  background: var(--panel); font-size: 12.5px; }
.badge.ll-book_first { background: #4a2330; color: #ff9d9d; }
.badge.ll-book_early { background: #443a1f; color: var(--amber); }
.badge.ll-flexible { background: #1f4331; color: var(--green); }
.badge.ll-low_urgency { background: #21315c; color: var(--blue); }
.ll-videos { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.ll-videos h3 { font-size: 13px; color: var(--gold); margin: 0 0 8px; }
/* Michael: "My videos for Lightning Lanes ... should be listed on top of each other to
   make easier to read." They were inline links wrapping side by side; one per row. */
.ll-videos { display: block; }
.ll-videos .vm-embed, .ll-videos .vm-video { display: block; width: 100%; margin: 0 0 8px; }
.ll-videos .vm-embed:last-child, .ll-videos .vm-video:last-child { margin-bottom: 0; }

/* messages / planning notes */
.note { border-left: 3px solid var(--blue); background: rgba(110,168,255,.07);
  padding: 7px 11px; border-radius: 0 8px 8px 0; font-size: 12.5px; margin-top: 8px; }
.note.advisory { border-color: var(--amber); background: rgba(255,196,107,.07); }
.note.blocking { border-color: var(--red); background: rgba(255,123,123,.08); }

/* chat drawer */
.chat-drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(420px, 100vw);
  background: var(--panel); border-left: 1px solid var(--line); z-index: 60;
  display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,.5); }
/* the [hidden] attribute must win over the flex display above */
.chat-drawer[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--gold); }
.chat-head button { background: none; border: none; color: var(--muted); font-size: 16px; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 12px 14px; }
.msg { margin-bottom: 12px; display: flex; }
.msg .bubble { background: #151936; border: 1px solid var(--line);
  border-radius: 4px 12px 12px 12px; padding: 9px 12px; font-size: 13px; line-height: 1.55;
  white-space: pre-wrap; max-width: 92%; }
.msg.user { justify-content: flex-end; }
.msg.user .bubble { background: #2a3161; border-radius: 12px 4px 12px 12px; }
.tool-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px;
  color: var(--blue); background: rgba(110,168,255,.1); border: 1px solid rgba(110,168,255,.35);
  border-radius: 999px; padding: 3px 10px; margin: 0 0 10px 4px; }
.tool-chip.done { color: var(--green); border-color: rgba(111,211,154,.4); }
.tool-chip.error { color: var(--red); }
.chat-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-input textarea { flex: 1; margin: 0; resize: none; }
.chat-input button { width: 44px; border: none; border-radius: 10px; background: var(--gold);
  color: #241a00; font-size: 16px; cursor: pointer; }
.chat-input button:disabled { opacity: .5; }

/* vacation summary grid (Stage 1 first card) */
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.summary-grid > div { background: #151936; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; }
.summary-grid b { font-size: 13.5px; }
.summary-grid span { font-size: 11.5px; color: var(--muted); }

/* plan rhythm strip (itinerary overview) */
.rhythm-strip { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 4px; }
.rhythm-chip { display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 44px; padding: 6px 4px; border-radius: 10px; cursor: pointer;
  background: #151936; border: 1px solid var(--line); color: var(--text); }
.rhythm-chip span { font-size: 15px; }
.rhythm-chip b { font-size: 11px; color: var(--muted); }
.rhythm-chip:hover { border-color: var(--gold); }

.chip-line { margin-top: 10px; }

@keyframes flash { 0% { box-shadow: 0 0 0 3px rgba(245,196,107,.8); } 100% { box-shadow: none; } }
.flash { animation: flash 1.4s ease-out 2; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

/* Where a typed question goes while Michael is on video. Written answers carry his video
   links and the sources behind them, so the route stays reachable during a call. */
.send-to {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px 0; flex-wrap: wrap;
}
.send-to-label {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-right: 2px;
}
.send-to-opt {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 4px 11px; font-size: 12px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.send-to-opt:hover { color: var(--ink); border-color: var(--gold); }
.send-to-opt.is-on {
  background: var(--gold); border-color: var(--gold); color: #1b2254; font-weight: 600;
}

/* Party ticket urgency — Michael: Fridays and the season finale sell out first, so a guest
   reading a date list needs to know which nights won't wait for them. */
.urgency {
  margin-top: 6px; padding: 6px 10px; border-radius: 8px;
  background: rgba(245, 196, 107, .10); border-left: 3px solid var(--gold);
  color: var(--ink); font-size: 13px; line-height: 1.45;
}

/* ---------- history sidebar + shell -----------------------------------------------------
   Michael: "show how many plannings user did and user can access them anytime." The sidebar
   is a permanent column on a desktop and a slide-over on a phone, so the planner keeps its
   single-column reading width on both. */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); align-items: start;
  max-width: 1120px; margin: 0 auto; }
.history { position: sticky; top: 8px; align-self: start; max-height: calc(100vh - 24px);
  display: flex; flex-direction: column; gap: 8px; padding: 12px 10px;
  border-right: 1px solid var(--line); }
.hist-head { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 4px 6px; border-bottom: 1px solid var(--line); }
.hist-head b { font-size: 13px; color: var(--gold); }
.hist-new { background: var(--gold); color: #241a00; border: 0; border-radius: 999px;
  padding: 5px 11px; font-size: 12px; font-weight: 700; cursor: pointer; }
.hist-new:hover { filter: brightness(1.08); }
.hist-list { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 2px; }
.hist-item { text-align: left; width: 100%; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer;
  display: flex; flex-direction: column; gap: 3px; font: inherit; }
.hist-item:hover { border-color: var(--gold-strong); }
.hist-item.on { border-color: var(--gold-strong); background: var(--panel-2); }
.hist-item .hi-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hist-item .hi-dest { font-size: 12px; font-weight: 700; color: var(--gold); }
.hist-item .hi-when { font-size: 11px; color: var(--muted); }
.hist-item .hi-who { font-size: 11px; color: var(--muted); }
.hist-item .hi-state { font-size: 10px; border-radius: 999px; padding: 2px 7px;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.hist-item .hi-state.ready { color: var(--green); border-color: #2e5c44; }
.hist-item .hi-state.busy { color: var(--gold); border-color: var(--gold-strong); }
.hist-foot { font-size: 11px; color: var(--muted); padding: 0 4px; margin: 0; }
.hist-toggle { display: none; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 12px;
  cursor: pointer; }
.hist-scrim { position: fixed; inset: 0; background: rgba(4,6,18,.6); z-index: 40; }

/* On a phone the sidebar slides over instead of stealing the reading width. */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .hist-toggle { display: inline-block; }
  .history { position: fixed; top: 0; left: 0; bottom: 0; width: 272px; z-index: 41;
    background: var(--bg); border-right: 1px solid var(--line); max-height: none;
    transform: translateX(-100%); transition: transform .22s ease; }
  .history.open { transform: none; }
}

/* Choosing which night a ticketed event lands on (Michael: the arrival night is a
   recommendation against, never a ban — the guest may override after the warning). */
.night-pick { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.night-pick label { font-size: 12px; color: var(--muted); margin: 0; }
.night-pick select { margin-top: 4px; }

/* A locked step reads as not-yet-available rather than as a chip that ignores clicks. */
.step.locked { opacity: .45; cursor: not-allowed; }
.step.clickable:hover { border-color: var(--gold-strong); color: var(--gold); }

/* Michael's own video for a show the guest just chose — "Anyone who clicks that they are
   interested in Fantasmic... should receive this link." */
.night-video { margin-top: 8px; font-size: 12.5px; }
.night-video a { color: var(--blue); }

/* Park-day switcher on the attractions screen. Michael could open one day and then had no way
   to reach another — the only exit was back to the itinerary. */
.attr-days { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 4px; }
.attr-days-label { font-size: 11.5px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--muted); width: 100%; }
.attr-days .mini-btn.on { border-color: var(--gold); color: var(--gold);
  background: var(--panel-2); font-weight: 600; }

/* ---------- in-app video (Michael: don't send guests to YouTube) ------------------------- */
.vm-embed { flex: 1 1 100%; width: 100%; margin-top: 8px; }
.vm-embed-play { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 13px; cursor: pointer; font: inherit; font-size: 13px; }
.vm-embed-play:hover { border-color: var(--gold-strong); }
.vm-embed-icon { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: #241a00; display: inline-flex; align-items: center;
  justify-content: center; font-size: 13px; }
.vm-embed-title { flex: 1 1 auto; color: var(--gold); font-weight: 600; }
.vm-embed-hint { flex: 0 0 100%; padding-left: 40px; font-size: 11px; color: var(--muted); }
/* 16:9 so turning the phone sideways fills the screen, which is exactly what he asked for. */
.vm-embed-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 8px;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.vm-embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* He had to reload the page to stop the sound. A player you can start must be one you can stop. */
.vm-embed-stop { position: absolute; top: 6px; right: 6px; z-index: 2; width: 30px; height: 30px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.62);
  color: #fff; font-size: 15px; line-height: 1; cursor: pointer; display: flex;
  align-items: center; justify-content: center; }
.vm-embed-stop:hover, .vm-embed-stop:focus-visible { background: rgba(0,0,0,.85);
  border-color: var(--gold); color: var(--gold); }

/* "Where you'll eat" — Michael could not find the restaurant recommendations, because the only
   way in was inside a day card he had to expand first. */
.dine-day { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.dine-day:first-of-type { border-top: 0; }
.dine-day-head { display: flex; align-items: baseline; gap: 8px; }
.dine-day-head b { font-size: 13px; color: var(--gold); }
.dine-day-meals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* "Ride preferences are not needed for this guest" — his passive-companion option. */
/* Was `display:flex` with no wrapping, which pushed the helper sentence out of the card and
   into the margin: "Instead of these words being where they belong they are off the page in the
   right column." A block label cannot overflow its parent, so it is a block label. */
.c-passive-row { display: block; margin-top: 8px; max-width: 100%;
  font-size: 12.5px; line-height: 1.45; color: var(--ink-dim, #9fb0c8); cursor: pointer; }
.c-passive-row input { margin: 0 7px 0 0; vertical-align: middle; }
.c-passive-row .opt { display: block; margin-left: 21px; }
.adult-row { border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px;
  margin-bottom: 8px; }
.adult-row .a-name { width: 100%; }

/* His saved restaurants — "a way to select and save their restaurant choices in the app so
   that all its info can be displayed", with somewhere to write the booking down. */
.dine-actions { margin-top: 8px; }
.saved-dine { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  margin-top: 10px; }
.saved-dine .head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.saved-dine-booking { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
  margin-top: 10px; }
.saved-dine-booking label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px;
  flex: 1 1 170px; }
.saved-dine-booking input { padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line);
  background: transparent; color: inherit; font: inherit; font-size: 13px; }
.sd-buttons { display: flex; gap: 8px; flex: 0 0 auto; }

/* Each park's own evenings, under the park. Michael: "I think it will be more obvious that
   these are your day and night options for each park no matter if it's recommended or not." */
.park-nights { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.park-nights h4 { margin: 0 0 2px; font-size: 13px; color: var(--gold); }
.park-nights .option-row { margin-top: 8px; }

/* "Where will you be for dinner? In the park or back at your hotel?" — Michael, Sept 10 */
.dinner-where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  margin: 8px 0 4px; font-size: 12.5px; }
.dinner-where-q { color: var(--ink-dim, #9fb0c8); margin-right: 2px; }
.dinner-where .chip { cursor: pointer; }

/* A festival day. His Special Events: EPCOT Festivals master writes this block, so it reads as a
   fact of the day rather than as something the model decided to mention. */
.festival-line { display: grid; gap: 4px; margin: 8px 0; padding: 10px 12px;
  border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px;
  background: var(--panel-2); }
.festival-line b { font-size: 13.5px; color: var(--gold); }
.festival-line span { font-size: 13px; line-height: 1.55; color: var(--muted); }

/* ---------------------------------------------------------------- dining (his 19 Sept design)
   Three tabs in his order, meal summaries always Breakfast/Lunch/Dinner, a neutral check for
   choices and a green one for "taken care of", and a compact bar while the day summary is away. */
.dine-head h2 { margin-bottom: 2px; }
.dine-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-top: 14px; }
.dine-tab { background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted);
  padding: 10px 0; font-weight: 600; font-size: 14px; cursor: pointer; }
.dine-tab.on { color: var(--gold); border-color: var(--gold); }
.dine-count { background: var(--panel-2); border-radius: 12px; font-size: 11px; padding: 2px 7px;
  margin-left: 5px; }
.dine-prefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px;
  margin: 14px 0 16px; }
.dine-prefs > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; display: grid; gap: 3px; }
.dine-prefs b { font-size: 12px; color: var(--muted); font-weight: 600; }
.dine-prefs span { font-size: 14px; }
.dine-legend { font-size: 12.5px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 12px; }
.dine-legend .done, .dine-check.done, .dine-reserved { color: var(--green); }
.dine-day2 { border-top: 1px solid var(--line); padding: 16px 0; }
.dine-day2.on { background: rgba(245,196,107,.04); border-radius: 12px; padding: 16px 12px; }
.dine-day-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dine-day-title .place { color: var(--muted); }
.dine-meals { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.dine-meals .mini-btn.on { background: var(--gold); color: #17193a; font-weight: 700; }
.dine-check { font-weight: 800; margin-left: 5px; }
.dine-hint { margin: 6px 0 0; }
.dine-summary { display: grid; gap: 14px; margin: 10px 0 4px; }
.dine-msum-head { display: flex; align-items: center; gap: 10px; }
.dine-msum-head b { color: var(--gold); }
.link-btn { background: none; border: 0; color: var(--blue); cursor: pointer; font-size: 13px;
  padding: 4px 0; text-align: left; }
.link-btn.done { color: var(--green); }
.link-btn.danger { color: var(--red); }
.dine-choice { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 6px 0;
  background: var(--panel-2); }
.dine-choice-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dine-choice-meta { font-size: 13px; color: var(--muted); margin-top: 4px; display: flex; gap: 8px;
  flex-wrap: wrap; }
.dine-choice-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.dine-others summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 4px 0; }
.dine-booking { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 10px; }
.dine-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px;
  margin: 8px 0; }
.dine-fields label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.dine-fields input { background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; color: var(--text); font: inherit; }
.dine-reserve-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12.5px; }
.dine-booking-actions { margin-top: 10px; }
.dine-menu { display: inline-block; margin-top: 8px; color: var(--blue); font-size: 13px; }
.dine-work { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 12px;
  background: var(--panel); }
.dine-work-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.dine-areas { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.dine-areas-label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.dine-find { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.dine-find .mini-btn.on { border-color: var(--gold); color: var(--gold); }
.dine-search { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; margin: 8px 0; }
.dine-search label { display: block; font-size: 13.5px; margin-bottom: 8px; }
/* Michael, 21 September: "The dining search box can't be used." It was 26 pixels wide. The
   cause is .primary-btn's width:100%, which in a flex row demands the whole line and shrinks
   the input to its minimum. Any search button sitting beside an input has to be auto-width. */
.dine-search-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.dine-search-row input { flex: 1 1 260px; min-width: 0; background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; color: var(--text);
  font: inherit; }
.dine-search-row .primary-btn,
.data-search .primary-btn { width: auto; flex: 0 0 auto; margin-top: 0; padding: 9px 20px;
  border-radius: 8px; font-size: 14px; }
.dine-card.chosen { border-color: var(--green); }
.heart { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer;
  padding: 0 4px; }
.heart.on { color: var(--gold); }
.chosenlabel { color: var(--green); font-size: 13px; }
.dine-jump { display: grid; gap: 8px; margin-top: 12px; }
.dine-jump-day { display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 8px; }
.dine-jump-day b { min-width: 110px; }
.dine-day-actions { margin-top: 10px; }
.dine-context { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex;
  align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px;
  background: var(--panel-2); border-top: 2px solid var(--gold); }
.dine-context b { display: block; font-size: 15px; }
.dine-context span { color: var(--gold); font-size: 12px; }
.dine-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--gold); color: #17193a; padding: 11px 18px; border-radius: 10px; opacity: 0;
  pointer-events: none; transition: opacity .2s; z-index: 60; font-size: 14px; }
.dine-toast.on { opacity: 1; }
@media (max-width: 720px) {
  .dine-tabs { gap: 12px; }
  .dine-jump-day b { min-width: 0; width: 100%; }
  .dine-context { flex-direction: column; align-items: stretch; gap: 6px; }
}

/* ---------------------------------------------------------------- Data tab */
.step-gap { flex: 1; }
.step.open-tab { cursor: pointer; }
.data-search { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.data-search input { flex: 1; min-width: 200px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 13px; color: var(--text); font: inherit; }
.data-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.data-card { display: grid; gap: 4px; text-align: left; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: var(--text);
  cursor: pointer; }
.data-card:hover { border-color: var(--gold); }
.data-icon { font-size: 20px; }
.data-name { font-weight: 700; font-size: 15px; }
.data-count { color: var(--gold); font-size: 20px; font-weight: 700; }
.data-about { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.data-src { color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
.data-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.data-rows { display: grid; gap: 6px; margin-top: 12px; }
.data-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; text-align: left;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
  color: var(--text); cursor: pointer; }
.data-row:hover { border-color: var(--gold); }
.data-group { margin-bottom: 18px; }
.data-group h3 { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.data-json { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px;
  overflow-x: auto; font-size: 12px; line-height: 1.5; max-height: 60vh; }

/* ---------------------------------------------------------------- Decision tree tab */
.tree-key { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0; }
.tree-who { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.tree-who i, .tree-kid i, .tree-top i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.d-guest { background: #e8a07c; } .d-his { background: #8bcb9e; } .d-calc { background: #93b4ee; }
.d-ai { background: #d9a0ce; } .d-fixed { background: #98c0c9; } .d-open { background: var(--gold); }
.tree-bar { display: grid; gap: 10px; margin-top: 10px; }
.tree-traces { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tree-traces .mini-btn.on { background: var(--gold); color: #17193a; font-weight: 700; }
.tree-stage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px;
  align-items: start; margin-top: 14px; }
.tree-canvas-wrap { position: relative; overflow: auto; height: min(72vh, 820px);
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.tree-canvas { position: relative; margin: 16px; }
.tree-links { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.tree-links path { fill: none; stroke: var(--line); stroke-width: 1.5; }
.tree-links path.on { stroke: var(--gold); stroke-width: 2.4; }
.tree-node { position: absolute; width: 250px; display: flex; align-items: stretch; }
.tree-node[hidden] { display: none !important; }
.tree-card { flex: 1; min-width: 0; text-align: left; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; display: grid; gap: 3px;
  color: var(--text); cursor: pointer; }
.tree-card:hover { border-color: var(--gold); }
.tree-node.sel .tree-card { outline: 2px solid var(--gold); }
.tree-node.on .tree-card { border-color: var(--gold); }
.tree-node.hit .tree-lbl { background: rgba(245,196,107,.22); border-radius: 4px; }
.tree-top { display: flex; align-items: center; gap: 6px; }
.tree-kind { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tree-new { margin-left: auto; font-size: 10px; color: var(--gold); border: 1px solid var(--gold);
  border-radius: 4px; padding: 0 4px; }
.tree-lbl { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.tree-node.depth0 .tree-card { background: var(--gold); color: #17193a; }
.tree-node.depth0 .tree-kind { color: #4a3c14; }
.tree-tog { flex: none; align-self: center; min-width: 28px; height: 24px; border: 1px solid var(--line);
  border-left: 0; border-radius: 0 8px 8px 0; background: var(--bg); color: var(--muted);
  font-size: 11px; cursor: pointer; }
.tree-detail { position: sticky; top: 12px; max-height: min(72vh, 820px); overflow: auto; }
.tree-crumbs { display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; font-size: 12px;
  color: var(--muted); }
.tree-quote { margin: 10px 0; padding: 10px 12px; background: var(--panel-2); border-left: 3px solid var(--gold);
  border-radius: 8px; font-style: italic; font-size: 13.5px; }
.tree-quote cite { display: block; margin-top: 5px; font-style: normal; font-size: 11.5px; color: var(--muted); }
.tree-kids { display: grid; gap: 6px; margin-top: 10px; }
.tree-kid { display: flex; gap: 8px; align-items: baseline; text-align: left; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; color: var(--text);
  font-size: 13px; cursor: pointer; }
.tree-kid:hover { border-color: var(--gold); }
.tree-trace { background: var(--panel-2); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.tree-trace ul { margin: 6px 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.tree-zoom { display: inline-flex; align-items: center; gap: 6px; }
.tree-zoom .mini-btn { min-width: 30px; font-size: 15px; line-height: 1; padding: 3px 8px; }
.tree-z-lbl { min-width: 42px; text-align: center; }
/* Full screen: the graph takes the window, and its own controls come with it because the page
   toolbar is behind the overlay. */
.tree-stage.tree-full { position: fixed; inset: 0; z-index: 90; margin: 0; padding: 12px;
  background: var(--bg); gap: 12px; align-items: stretch; overflow: hidden; }
.tree-stage.tree-full .tree-canvas-wrap { height: 100%; }
.tree-stage.tree-full .tree-detail { position: static; max-height: 100%; height: 100%; }
.tree-fullbar { position: absolute; right: 12px; top: 12px; z-index: 2; display: flex; gap: 6px;
  align-items: center; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 5px 8px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.tree-fullbar .mini-btn { min-width: 30px; }
body.tree-locked { overflow: hidden; }
@media (max-width: 900px) {
  .tree-stage { grid-template-columns: 1fr; }
  .tree-detail { position: static; max-height: none; }
  .tree-canvas-wrap { height: 60vh; }
  .tree-stage.tree-full { grid-template-rows: 1fr auto; grid-template-columns: 1fr; }
  .tree-stage.tree-full .tree-detail { max-height: 38vh; height: auto; }
}

/* the planner's search box */
.top-search { display: flex; align-items: center; gap: 6px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px; }
.top-search input { background: none; border: 0; color: var(--text); font: inherit; font-size: 13px;
  width: 190px; outline: none; }
.top-search button { background: none; border: 0; cursor: pointer; font-size: 14px; }
.top-search:focus-within { border-color: var(--gold); }
@media (max-width: 860px) { .top-search input { width: 120px; } }
.data-snippet { flex-basis: 100%; color: var(--muted); font-size: 12px; line-height: 1.5;
  white-space: pre-wrap; }

/* ---------------------------------------------------------------- the decision tree's plan inspector
   Michael, 21 September: "How planner decides" should "show the data for each complete created
   itinerary so we can inspect it". */
.tree-inspect { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.tree-inspect select { flex: 1 1 320px; min-width: 0; background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--text);
  font: inherit; }
.tree-record { margin-top: 12px; }
.tree-rec-group { margin-top: 14px; }
.tree-rec-group h3 { margin: 0 0 2px; font-size: 14.5px; }
table.tree-rec { width: 100%; border-collapse: collapse; margin-top: 6px; }
table.tree-rec td { border-top: 1px solid var(--line); padding: 7px 8px; vertical-align: top;
  font-size: 13px; }
.tree-rec-who { white-space: nowrap; color: var(--muted); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .04em; width: 1%; }
.tree-rec-who i { display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; vertical-align: middle; }
.tree-rec-lbl { color: var(--muted); width: 30%; }
.tree-rec-val .opt { display: block; margin-top: 2px; }
.tree-rec-val .opt.src { font-style: italic; }
@media (max-width: 720px) {
  table.tree-rec td { display: block; border-top: 0; padding: 2px 0; }
  table.tree-rec tr { display: block; border-top: 1px solid var(--line); padding: 8px 0; }
  .tree-rec-lbl, .tree-rec-who { width: auto; }
}


/* ---------------------------------------------------------------- his dining plans screen
   Michael, 23 September screenshots: the date, the park in gold, and one card per meal. */
.plans { display: grid; gap: 4px; }
.plan-day { margin-bottom: 26px; }
.plan-date { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin: 0; color: var(--text); }
.plan-park { font-size: 30px; font-weight: 800; letter-spacing: -.5px; color: var(--gold);
  margin-bottom: 12px; line-height: 1.1; }
.plan-meal { font-size: 19px; font-weight: 700; color: var(--text); margin: 18px 0 8px;
  text-transform: none; letter-spacing: 0; }
.plan-card { position: relative; background: rgba(32,38,78,.55); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 120px 14px 16px; margin-bottom: 10px; }
.plan-name { background: none; border: 0; padding: 0; text-align: left; color: var(--text);
  font-size: 21px; font-weight: 700; line-height: 1.22; cursor: pointer; }
.plan-chev { color: var(--gold); font-style: normal; font-size: 16px; margin-left: 6px; }
.plan-edit { position: absolute; top: 14px; right: 16px; background: none; border: 0;
  color: var(--blue); font-size: 15px; cursor: pointer; padding: 2px 4px; }
.plan-edit:hover { text-decoration: underline; }
.plan-where { color: #9fb0e8; font-size: 15px; margin-top: 4px; }
.plan-service { color: var(--muted); font-size: 14px; margin-top: 2px; }
.plan-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px;
  color: var(--text); font-size: 15px; }
.plan-reserved { background: #2f8f4e; color: #fff; border-radius: 7px; padding: 4px 12px;
  font-size: 14px; font-weight: 600; }
.plan-nores { color: var(--muted); font-size: 14px; }
.plan-more { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.plan-desc { color: var(--text); font-size: 14.5px; line-height: 1.5; margin: 0 0 8px; }
.plan-links { display: flex; gap: 22px; flex-wrap: wrap; }
.plan-links .link-btn, .plan-links a { color: var(--blue); font-size: 15px; }
.plan-others { margin: 0 0 10px; }
.plan-others summary { color: var(--muted); font-size: 13px; cursor: pointer; padding: 4px 0; }
.plan-empty, .plan-add { margin: 6px 0 0; }
.plan-add .link-btn { margin-right: 14px; }

/* the edit dialog */
.modal-back { position: fixed; inset: 0; background: rgba(6,8,22,.72); z-index: 120;
  display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal { position: relative; background: var(--panel); border: 1px solid #44508f;
  border-radius: 14px; padding: 22px 24px; width: min(620px, 100%);
  max-height: 92vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.modal h2 { font-size: 27px; color: var(--text); margin: 0; letter-spacing: -.3px; }
.modal h3 { font-size: 15px; color: var(--text); text-transform: none; letter-spacing: 0;
  margin: 16px 0 6px; }
.modal-sub { color: var(--blue); font-size: 15px; margin: 2px 0 4px; }
.modal-x { position: absolute; top: 14px; right: 16px; background: none; border: 0;
  color: var(--blue); font-size: 20px; cursor: pointer; }
.modal-rest { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; }
.modal-rest-name { font-size: 23px; font-weight: 700; color: var(--text); }
.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.modal-select { background: var(--panel-2); border: 1px solid #44508f; border-radius: 9px;
  padding: 11px 12px; color: var(--text); font-size: 16px; width: 100%; }
.stepper2 { display: flex; align-items: center; border: 1px solid #44508f; border-radius: 9px;
  overflow: hidden; }
.stepper2 span { flex: 1; text-align: center; font-size: 17px; padding: 10px 0; }
.step-btn { background: rgba(110,168,255,.12); border: 0; color: var(--blue); font-size: 19px;
  width: 52px; padding: 10px 0; cursor: pointer; }
.pick-btn { background: none; border: 1px solid #44508f; border-radius: 9px; padding: 12px;
  color: var(--blue); font-size: 16px; cursor: pointer; }
.pick-btn.on { border-color: var(--blue); background: rgba(110,168,255,.12); }
.pick-btn.green.on { background: #2f8f4e; border-color: #43b36a; color: #fff; font-weight: 700; }
.outline-btn { background: none; border: 1px solid #44508f; border-radius: 9px; padding: 10px 16px;
  color: var(--blue); font-size: 15px; cursor: pointer; white-space: nowrap; }
.outline-btn:hover { border-color: var(--blue); }
.modal-foot { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px;
  display: flex; gap: 16px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.modal-foot-right { margin-left: auto; text-align: right; }
.modal-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.modal-btns .outline-btn, .modal-save { width: auto; margin: 0; }
.modal-save { padding: 11px 22px; border-radius: 9px; font-size: 15px; }
.link-btn.danger { color: var(--red); }
@media (max-width: 620px) {
  .plan-date, .plan-park { font-size: 24px; }
  .plan-card { padding-right: 16px; }
  .plan-edit { position: static; display: block; margin-top: 8px; padding: 0; }
  .modal-row { grid-template-columns: 1fr; }
  .modal-foot, .modal-foot-right { text-align: left; }
  .modal-btns { justify-content: flex-start; }
}
.plan-meal .plan-done { color: var(--green); font-size: 13px; font-weight: 600; margin-left: 8px; }
.plan-meal-act, .plan-day-act { margin: -2px 0 10px; }
.plan-day-act { margin-top: 8px; }

/* the VM Agent tab stands out from the two behind-the-scenes tabs beside it */
.step.agent-tab { border-color: rgba(245,196,107,.55); color: var(--gold); }
.step.agent-tab.active { background: var(--gold); color: #241a00; }

/* the day-plan line and its Change control (Michael, 23 Sept) */
.dine-svc-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; font-size: 13px; }
.dine-svc-pick .chip { font-size: 12.5px; }

/* a rest-day answer the new destination took back (TRIP-009) */
.opt.rest-reask { display: block; color: var(--amber); margin-top: 4px; }

/* the US date field (Michael, 25 Sept: "Should be mm/dd/year") */
.us-date { display: flex; gap: 6px; align-items: center; position: relative; }
.us-date .us-date-text { flex: 1; }
.us-date .us-date-pick { flex: 0 0 auto; width: 42px; height: 38px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel2, #20264e); font-size: 17px; }
.us-date .us-date-text.bad { border-color: var(--red, #ff7b7b); }
.us-date-native { position: absolute; right: 0; bottom: 0; width: 42px; height: 38px; opacity: 0;
  pointer-events: none; }
