:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #6c726e;
  --soft: #8b908d;
  --paper: #f4f1e9;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --line: #dedbd2;
  --line-dark: #c6c3ba;
  --green: #1e6855;
  --green-dark: #114b3c;
  --green-soft: #e2eee8;
  --gold-soft: #f4ead1;
  --danger: #a33c34;
  --danger-soft: #f8e7e3;
  --shadow: 0 18px 50px rgba(35, 39, 36, .08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --max: 1120px;
}

* { box-sizing: border-box; min-width: 0; }

html { overflow-x: hidden; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(255,255,255,.9), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid rgba(30, 104, 85, .28); outline-offset: 3px; }

.skip-link {
  position: fixed;
  left: 12px;
  top: 10px;
  z-index: 100;
  padding: 9px 13px;
  border-radius: 9px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  width: min(100% - 32px, var(--max));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--ink);
  font-size: 27px;
  font-weight: 850;
  letter-spacing: -.08em;
  text-decoration: none;
}
.brand-logo-image { width: 38px; height: 38px; margin-right: -7px; flex: 0 0 auto; object-fit: contain; }
.brand-word { display: inline-flex; align-items: baseline; gap: 1px; }
.brand .brand-an { color: #000; }
.brand .brand-ai { color: #7656d7; }
.brand i { font-style: normal; color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.connection-status { display: none; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 650; }
.connection-status span { width: 7px; height: 7px; border-radius: 50%; background: #3f9872; box-shadow: 0 0 0 4px rgba(63,152,114,.12); }
.connection-status.offline span { background: var(--danger); box-shadow: 0 0 0 4px rgba(163,60,52,.12); }

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,253,248,.8);
  color: var(--ink);
}
.icon-button:hover { border-color: var(--line-dark); background: white; }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }

#app { width: min(100% - 32px, var(--max)); margin: 0 auto; padding: 24px 0 64px; }

h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin-top: 0; letter-spacing: -.035em; line-height: 1.08; }
h1 { margin-bottom: 14px; font-size: clamp(2.25rem, 8vw, 4.7rem); }
h2 { margin-bottom: 10px; font-size: clamp(1.45rem, 5vw, 2rem); }
h3 { margin-bottom: 7px; font-size: 1.05rem; }
p { margin-top: 0; }
.lead { max-width: 620px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.17rem); }
.eyebrow { margin-bottom: 8px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.auth-layout { min-height: calc(100vh - 180px); display: grid; align-items: center; gap: 32px; }
.auth-copy { padding: 26px 0; }
.auth-copy h1 { max-width: 720px; }
.promise-list { margin: 28px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.promise-list li { display: flex; align-items: center; gap: 11px; color: var(--muted); }
.promise-list span { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 800; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,253,248,.88);
  box-shadow: var(--shadow);
}
.auth-card { width: 100%; max-width: 470px; justify-self: center; padding: clamp(22px, 5vw, 34px); }
.section-card { padding: clamp(20px, 4vw, 32px); }
.flat-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-strong); padding: 18px; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 26px; padding: 4px; border-radius: 13px; background: #ece9e1; }
.segmented button { border: 0; border-radius: 10px; padding: 10px; background: transparent; color: var(--muted); font-weight: 750; }
.segmented button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(28,32,30,.08); }

form { width: 100%; }
.form-grid { display: grid; gap: 18px; }
.field-row { display: grid; gap: 16px; }
label, legend { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 750; }
input, select, textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink);
  padding: 12px 13px;
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #a0a39f; }
input:hover, select:hover, textarea:hover { border-color: #9fa49f; }
fieldset { margin: 0; padding: 0; border: 0; }
.checkbox-field { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: white; }
.checkbox-field input { width: 19px; height: 19px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--green); }
.checkbox-field label { margin: 0; }
.field-help { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  font-weight: 760;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button-primary { background: var(--ink); color: white; }
.button-primary:hover:not(:disabled) { background: #050b09; }
.button-green { background: var(--green); color: white; }
.button-green:hover:not(:disabled) { background: var(--green-dark); }
.button-secondary { border-color: var(--line-dark); background: white; color: var(--ink); }
.button-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.button-danger { border-color: #e7c4bd; background: var(--danger-soft); color: var(--danger); }
.button-block { width: 100%; }
.button-small { min-height: 37px; padding: 7px 11px; border-radius: 9px; font-size: 13px; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }

.app-shell { display: grid; gap: 22px; }
.owner-heading { display: flex; flex-direction: column; gap: 16px; margin-bottom: 8px; }
.owner-heading h1 { margin-bottom: 4px; font-size: clamp(2rem, 6vw, 3.5rem); }
.owner-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.property-switcher { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.property-switcher select { width: auto; min-width: 170px; padding: 8px 32px 8px 10px; font-size: 13px; }

.progress-nav { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255,253,248,.66); }
.progress-nav button { position: relative; border: 0; border-right: 1px solid var(--line); background: transparent; padding: 14px 7px; color: var(--muted); font-size: 13px; font-weight: 780; }
.progress-nav button:last-child { border-right: 0; }
.progress-nav button[aria-selected="true"] { background: var(--surface); color: var(--ink); }
.progress-nav button[aria-selected="true"]::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--green); }
.progress-nav small { display: none; }

.content-grid { display: grid; gap: 22px; }
.section-heading { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.section-heading p { margin-bottom: 0; }
.section-heading .button-row { flex: 0 0 auto; }
.empty-state { border: 1px dashed var(--line-dark); border-radius: var(--radius-md); padding: 26px 18px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 4px; color: var(--ink); }

.strategy-card { margin-top: 22px; border: 1px solid #c9ded4; border-radius: var(--radius-md); background: linear-gradient(135deg, #f1f8f4, #fff); padding: 20px; }
.strategy-head { display: flex; align-items: flex-start; gap: 12px; }
.strategy-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: var(--green); color: white; }
.strategy-card ol { margin: 16px 0 0; padding-left: 22px; color: var(--muted); }
.strategy-card li + li { margin-top: 7px; }
.divider { height: 1px; margin: 26px 0; background: var(--line); }

.upload-zone { border: 1px dashed var(--line-dark); border-radius: var(--radius-md); padding: 18px; background: rgba(255,255,255,.55); }
.upload-zone input[type="file"] { padding: 10px; background: white; }
.loading-screen { min-height: 55vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }
.structure-stats { margin: 0 0 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.structure-stats div { border: 1px solid var(--line); border-radius: 13px; padding: 12px; background: rgba(255,255,255,.68); }
.structure-stats strong { display: block; font-size: 1.35rem; letter-spacing: -.04em; }
.structure-stats span { color: var(--muted); font-size: 11px; }
.structure-forms { display: grid; gap: 12px; }
.structure-forms h3 { margin: 0; }
.structure-forms details, .manual-fact { border-color: var(--line); }
details summary { cursor: pointer; font-weight: 760; }
.compact-form { margin-top: 16px; }
.manual-fact { margin-top: 13px; }
.manual-fact > summary { padding: 13px 2px; color: var(--green-dark); }
.readiness-card { margin-bottom: 22px; border: 1px solid #e4d8bb; border-radius: var(--radius-md); padding: 17px; background: #fbf5e7; }
.readiness-card.is-ready { border-color: #c9ded4; background: var(--green-soft); }
.readiness-head > div:first-child { display: flex; justify-content: space-between; gap: 12px; }
.readiness-head span { color: var(--muted); font-size: 13px; font-weight: 750; }
.readiness-track { height: 6px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: rgba(23,32,29,.11); }
.readiness-track i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.readiness-card ul { margin: 13px 0 0; padding-left: 20px; color: var(--muted); font-size: 13px; }
.readiness-card p { margin: 12px 0 0; color: var(--green-dark); font-size: 13px; }
.share-form { margin-top: 22px; }
.stay-list { display: grid; gap: 9px; }
.stay-row { border: 1px solid var(--line); border-radius: 13px; padding: 13px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: white; }
.stay-row strong, .stay-row span { display: block; }
.stay-row > div > span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.stay-row .button-row span { margin: 0; }
.badge-active { background: var(--green-soft); color: var(--green-dark); }

.candidate-list, .escalation-list { display: grid; gap: 12px; }
.candidate-card, .escalation-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: white; padding: 18px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 10px; }
.badge { max-width: 100%; border-radius: 999px; display: inline-flex; align-items: center; padding: 4px 8px; background: #eeece6; color: var(--muted); font-size: 11px; font-weight: 780; }
.badge-risk { background: var(--gold-soft); color: #755b20; }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.candidate-content { margin: 9px 0 15px; color: var(--muted); white-space: pre-wrap; }
.candidate-edit { margin: 16px 0; padding: 16px; border-radius: 12px; background: var(--paper); }
[hidden] { display: none !important; }

.link-result { margin-top: 18px; border: 1px solid #c9ded4; border-radius: var(--radius-md); padding: 18px; background: var(--green-soft); }
.link-box { display: flex; flex-direction: column; gap: 9px; }
.link-box code { display: block; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--green-dark); font-size: 12px; }

.escalations-panel { align-self: start; }
.escalation-card time { color: var(--soft); font-size: 11px; }
.escalation-reply { margin-top: 13px; display: grid; gap: 8px; }

.guest-shell { width: min(100%, 760px); min-height: calc(100vh - 168px); margin: 0 auto; display: flex; flex-direction: column; }
.guest-hero { padding: 24px 0 22px; text-align: center; }
.guest-hero h1 { font-size: clamp(2rem, 9vw, 4.1rem); }
.guest-hero p { margin: 0 auto; }
.chat-panel { min-height: 450px; flex: 1; border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; overflow: hidden; background: rgba(255,253,248,.92); box-shadow: var(--shadow); }
.messages { min-height: 300px; flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 13px; overflow-y: auto; }
.message { max-width: min(86%, 580px); padding: 12px 15px; border-radius: 17px; background: #eeece6; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-owner { align-self: flex-end; border-bottom-right-radius: 5px; background: var(--ink); color: white; }
.message-milo { align-self: flex-start; border-bottom-left-radius: 5px; background: var(--green-soft); color: var(--green-dark); }
.message-system { align-self: center; max-width: 100%; padding: 8px 12px; background: transparent; color: var(--muted); font-size: 12px; text-align: center; }
.message-actions { max-width: 100%; align-self: flex-start; display: flex; flex-wrap: wrap; gap: 8px; }
.chat-composer { border-top: 1px solid var(--line); padding: 12px; display: flex; align-items: flex-end; gap: 9px; background: white; }
.chat-composer textarea { min-height: 46px; max-height: 150px; padding: 12px 13px; resize: none; }
.send-button { width: 46px; height: 46px; flex: 0 0 auto; border: 0; border-radius: 14px; display: grid; place-items: center; background: var(--green); color: white; }
.send-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.poll-status { border-top: 1px solid var(--line); padding: 9px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.spinner { width: 15px; height: 15px; flex: 0 0 auto; border: 2px solid #cbd7d1; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.dialog { width: min(calc(100% - 28px), 500px); border: 1px solid var(--line); border-radius: 20px; padding: 0; color: var(--ink); background: var(--surface); box-shadow: 0 30px 90px rgba(20,25,22,.24); }
.dialog::backdrop { background: rgba(23,32,29,.32); backdrop-filter: blur(5px); }
.dialog form { padding: 22px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.dialog-heading h2 { margin-bottom: 20px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.runtime-status { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; padding: 13px; display: grid; gap: 7px; background: white; color: var(--muted); font-size: 12px; }
.runtime-status strong { color: var(--ink); }
.status-line { display: flex; align-items: center; gap: 8px; }
.status-line i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--soft); }
.status-line.is-ready i { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.status-line.is-missing i { background: #c58b23; box-shadow: 0 0 0 3px var(--gold-soft); }

.toast-region { position: fixed; z-index: 120; left: 16px; right: 16px; bottom: 16px; display: grid; justify-items: center; pointer-events: none; }
.toast { width: min(100%, 460px); border-radius: 12px; padding: 12px 15px; background: var(--ink); color: white; box-shadow: 0 15px 40px rgba(0,0,0,.2); font-size: 13px; animation: toast-in .2s ease-out; }
.toast.error { background: #7c2924; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (min-width: 620px) {
  .connection-status { display: flex; }
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-heading, .section-heading { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .progress-nav button { padding: 17px 12px; }
  .progress-nav small { display: inline; margin-left: 5px; color: var(--soft); font-weight: 500; }
  .link-box { flex-direction: row; align-items: center; justify-content: space-between; }
  .link-box code { flex: 1; }
  .structure-stats { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  .auth-layout { grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr); }
  .content-grid { grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); align-items: start; }
  .site-header { min-height: 92px; }
  #app { padding-top: 36px; }
}

@media (max-width: 480px) {
  .site-header, #app { width: calc(100% - 24px); }
  .auth-layout { min-height: auto; gap: 24px; }
  .auth-copy { padding: 18px 0 2px; }
  .auth-copy h1 { max-width: 100%; font-size: clamp(2.1rem, 10.5vw, 2.65rem); line-height: 1.03; }
  .eyebrow { max-width: 100%; font-size: 10px; letter-spacing: .12em; }
  .lead { font-size: 1rem; }
  .promise-list { margin-top: 22px; }
  .promise-list li { align-items: flex-start; }
  .auth-card { padding: 20px; }
  .owner-actions, .property-switcher { width: 100%; }
  .property-switcher { align-items: stretch; flex-direction: column; }
  .property-switcher select { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Complete guest guide */
.loader-logo { width: 68px; height: 68px; border-radius: 20px; padding: 9px; object-fit: contain; background: white; box-shadow: var(--shadow); animation: kanai-pulse 1.5s ease-in-out infinite; }
.guest-state-logo { width: 74px; height: 74px; margin-bottom: 18px; object-fit: contain; }
@keyframes kanai-pulse { 50% { transform: scale(.93); box-shadow: 0 0 0 14px rgba(30,104,85,.09); } }
.guest-shell-complete { width: 100%; max-width: none; min-height: calc(100vh - 140px); }
.guest-hero-complete { padding: 22px 0 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left; }
.guest-hero-complete h1 { margin-bottom: 8px; font-size: clamp(2.4rem,6vw,4.6rem); }
.guest-hero-complete .lead { margin-bottom: 0; }
.stay-pass { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.7); border-radius: 18px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.65); box-shadow: var(--shadow); }
.stay-pass img { width: 42px; height: 42px; object-fit: contain; }
.stay-pass p { margin: 0; }
.stay-pass small, .stay-pass strong { display: block; }
.stay-pass small { color: var(--muted); font-size: 9px; }
.stay-pass strong { font-size: 12px; }
.guest-experience { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 16px; align-items: stretch; }
.guest-guide-panel { border: 1px solid rgba(255,255,255,.76); border-radius: 24px; padding: 20px; background: rgba(255,253,248,.7); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.guest-guide-panel h2 { font-size: 25px; }
.guest-guide-panel > div:first-child > p:last-child { color: var(--muted); font-size: 12px; }
.guest-guide-actions { margin-top: 18px; display: grid; gap: 8px; }
.guest-guide-actions button { width: 100%; border: 1px solid var(--line); border-radius: 15px; padding: 11px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 9px; background: rgba(255,255,255,.75); color: var(--ink); text-align: left; transition: .18s ease; }
.guest-guide-actions button:hover { border-color: rgba(30,104,85,.35); background: white; transform: translateX(2px); }
.guest-guide-actions button > span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); font-weight: 850; }
.guest-guide-actions p { margin: 0; }
.guest-guide-actions strong, .guest-guide-actions small { display: block; }
.guest-guide-actions strong { font-size: 11px; }
.guest-guide-actions small { color: var(--muted); font-size: 9px; }
.guest-guide-actions b { color: var(--soft); font-size: 18px; }
.guest-channel-note { margin-top: 18px; border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 10px; background: var(--ink); color: white; }
.guest-channel-note > span { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.guest-channel-note p { margin: 0; }
.guest-channel-note strong, .guest-channel-note small { display: block; }
.guest-channel-note strong { font-size: 10px; }
.guest-channel-note small { margin-top: 3px; color: #bac2be; font-size: 8px; line-height: 1.4; }
.guest-chat-complete { min-height: 650px; }
.guest-chat-heading { border-bottom: 1px solid var(--line); padding: 14px 18px; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.7); }
.guest-chat-heading > span { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: white; box-shadow: 0 7px 20px rgba(35,39,36,.08); }
.guest-chat-heading img { width: 34px; height: 34px; object-fit: contain; }
.guest-chat-heading p { margin: 0; }
.guest-chat-heading strong, .guest-chat-heading small { display: block; }
.guest-chat-heading strong { font-size: 12px; }
.guest-chat-heading small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.guest-chat-heading small i { width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; display: inline-block; background: #3f9872; }
.message-row { max-width: min(92%, 670px); align-self: flex-start; display: flex; align-items: flex-end; gap: 7px; }
.message-logo { width: 31px; height: 31px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; background: white; box-shadow: 0 5px 14px rgba(35,39,36,.1); }
.message-logo img { width: 25px; height: 25px; object-fit: contain; }
.message-row .message { max-width: 100%; }
.message-rich { display: grid; gap: 7px; }
.message-rich p { margin: 0; }
.message-rich h3 { margin: 0 0 3px; font-size: 17px; }
.message-rich h4 { margin: 8px 0 0; color: var(--green-dark); font-size: 13px; }
.message-rich ul { margin: 0; padding-left: 18px; }
.message-rich li { line-height: 1.55; }
.message-rich li + li { margin-top: 6px; }
.message-rich strong { color: var(--green-dark); }
.guest-continuity { margin: 0; border-top: 1px solid var(--line); padding: 7px 14px 10px; color: var(--soft); font-size: 9px; text-align: center; }
.poll-status { background: #fff7ed; color: #73533b; }
.poll-logo { width: 24px; height: 24px; object-fit: contain; animation: kanai-pulse 1.5s ease-in-out infinite; }

@media (max-width: 820px) {
  .guest-hero-complete { align-items: flex-start; flex-direction: column; }
  .guest-experience { grid-template-columns: 1fr; }
  .guest-guide-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .guest-guide-actions button:first-child { grid-column: 1/-1; }
  .guest-chat-complete { min-height: 580px; }
}

@media (max-width: 520px) {
  .guest-guide-actions { grid-template-columns: 1fr; }
  .guest-guide-actions button:first-child { grid-column: auto; }
  .stay-pass { width: 100%; }
  .messages { padding: 15px 12px; }
  .message-row { max-width: 96%; }
  .message { max-width: 90%; }
}
