.island-conversation { padding: 19px; margin: 0 0 24px; border: 1px solid #d5d6bd; border-radius: 16px; background: #fffbeb; color: #304b3c; }
.conversation-eyebrow { display: flex; justify-content: space-between; gap: 12px; color: #6360ae; font: 800 11px/1.5 Nunito, sans-serif; letter-spacing: .02em; }
.conversation-line { font: 500 17px/1.65 Nunito, sans-serif; margin: 12px 0 18px; white-space: pre-line; overflow-wrap: anywhere; }
.conversation-line:focus-visible { outline: 2px solid #7773c8; outline-offset: 4px; border-radius: 4px; }
.conversation-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.conversation-choices button { min-height: 42px; padding: 10px 13px; border: 1px solid #d9d9c8; border-radius: 11px; background: #fffef7; color: #3c5747; font: 800 12px/1.4 Nunito, sans-serif; text-align: left; cursor: pointer; overflow-wrap: anywhere; max-width: 100%; }
.conversation-choices button:hover { background: #eeedff; border-color: #aaa5d1; }
.conversation-choices button:focus-visible, .island-chatter button:focus-visible { outline: 3px solid #7773c8; outline-offset: 3px; }
.conversation-choices [data-chat-home], .conversation-choices [data-chat-thought] { background: transparent; border-color: transparent; color: #65608d; }
.conversation-choices [data-chat-resume] { flex-basis: 100%; color: #57529e; background: #eeedff; border-color: #d9d6f1; }
.resident-dialogue.has-profile .resident-intro { margin-top: 0; }
.resident-primer { margin: -8px 0 23px; padding: 0 5px; color: #52705f; font: 500 13px/1.6 Nunito, sans-serif; }
.resident-primer summary { cursor: pointer; font-weight: 800; color: #4b6655; padding: 8px 0; }
.resident-primer p { margin: 8px 0; }
.house-host { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -8px 0 18px; font-size: 12px; color: var(--muted); }
.house-host .text-link { padding: 8px 0; white-space: nowrap; background: transparent; }
.journal-header h2:focus { outline: none; }
.house-about { margin: 22px 0 0; padding: 0; }
.destination-choice { min-width: 0; border: 1px solid #e4e7d5; border-radius: 17px; overflow: hidden; background: #fffef8; }
.destination-choice .destination-card { width: 100%; border: 0; border-radius: 0; text-align: left; }
.destination-host { display: block; width: 100%; text-align: left; padding: 9px 18px 12px; background: transparent; color: #625b9c; font-size: 12px; font-weight: 700; }
.host-dialog { position: fixed; inset: auto auto 24px 24px; margin: 0; width: 464px; max-width: calc(100% - 48px); max-height: min(780px, calc(100dvh - 48px)); padding: 0; background: var(--paper); border: 1px solid #fdf7e2; border-radius: 22px; }
.host-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.host-dialog::backdrop { background: #29454312; backdrop-filter: none; }
.host-heading { display: grid; grid-template-columns: 180px minmax(0, 1fr) 36px; align-items: center; gap: 14px; padding: 16px 18px; flex-shrink: 0; border-bottom: 1px solid #e4e7d5; }
#host-portrait { position: relative; display: grid; place-items: center; width: 180px; height: 202px; overflow: hidden; border-radius: 70px 70px 22px 22px; background: radial-gradient(ellipse at 50% 40%, #f4f5e7, #e2ead6); }
.host-avatar { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.host-heading .resident-portrait { width: auto; height: 100%; max-width: 100%; object-fit: contain; border-radius: 0; background: transparent; }
.host-heading h2 { margin: 0; font: 700 25px/1.15 Fredoka, sans-serif; }
.host-heading h2:focus { outline: none; }
.host-heading p { margin: 5px 0 0; font-size: 11px; line-height: 1.4; color: var(--muted); }
.host-heading .close-button { align-self: start; width: 36px; height: 36px; }
.host-body { min-height: 0; padding: 18px 20px; overflow: auto; overscroll-behavior: contain; }
.host-body .island-conversation { margin: 0; border: 0; padding: 0; background: transparent; }
.host-body .conversation-eyebrow { font-size: 11px; }
.host-body .conversation-line { font-size: 15px; line-height: 1.6; }
.host-about { margin-top: 18px; color: var(--muted); font-size: 12px; }
.host-about summary { cursor: pointer; font-weight: 700; }
.host-about p { line-height: 1.6; }
.host-footer { flex-shrink: 0; padding: 14px 20px 18px; border-top: 1px solid #e4e7d5; display: grid; gap: 8px; }
.host-footer .primary-button { font-size: 12px; min-height: 44px; white-space: normal; }
.host-footer .text-link { justify-self: start; font-size: 12px; }
.interaction-actions { position: absolute; left: 50%; bottom: 91px; transform: translateX(-50%); display: grid; justify-items: center; gap: 7px; max-width: calc(100% - 40px); }
.interaction-actions .interact-prompt { position: static; transform: none; min-width: min(270px, 80vw); max-width: 100%; }
.interaction-actions .interact-prompt:hover { transform: translateY(-2px); }
.interaction-alternative { min-height: 36px; padding: 7px 15px; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); font-size: 12px; color: #625b9c; font-weight: 700; }
.island-chatter { position: fixed; left: 24px; bottom: 114px; width: min(340px, calc(100vw - 48px)); z-index: 18; border: 1px solid #d8dac5; border-radius: 17px; background: #fffbee; color: #365440; padding: 14px 16px; box-shadow: 0 6px 28px #31493b24; pointer-events: auto; }
.chatter-heading { display: flex; gap: 9px; align-items: center; }
.chatter-heading strong { font: 600 18px Fredoka, sans-serif; }
.chatter-heading span { font: 700 10px Nunito, sans-serif; color: #68705e; }
.chatter-heading button { margin-left: auto; width: 32px; height: 32px; border: 0; background: transparent; color: #526748; font-size: 21px; cursor: pointer; }
.island-chatter p { margin: 5px 0 8px; font: 600 13px/1.5 Nunito, sans-serif; }
.chatter-actions { display: flex; justify-content: space-between; gap: 10px; }
.chatter-actions button { min-height: 36px; padding: 5px 0; border: 0; background: transparent; color: #625b9c; font: 800 11px Nunito, sans-serif; cursor: pointer; }
.chatter-actions [data-chatter-mute] { color: #616c5a; }
.setting-row.chatter-setting label { max-width: 85%; }
.chatter-setting small { display: block; color: #64745f; font-size: 11px; line-height: 1.5; margin-top: 3px; }
@media (max-width: 700px) {
  .host-dialog { inset: auto 10px max(10px, env(safe-area-inset-bottom)); width: auto; max-width: none; max-height: 82dvh; border-radius: 21px; }
  .host-heading { grid-template-columns: 132px minmax(0, 1fr); gap: 14px; padding: 14px; position: relative; }
  #host-portrait { width: 132px; height: 152px; border-radius: 52px 52px 17px 17px; }
  .host-heading .close-button { position: absolute; right: 10px; top: 10px; }
  .host-heading h2 { font-size: 23px; }
  .host-heading p { font-size: 10px; }
  .host-body { padding: 14px 16px; }
  .host-footer { padding: 12px 16px; }
  .interaction-actions { bottom: 166px; max-width: calc(100% - 100px); }
  .interaction-actions .interact-prompt { min-width: 0; width: 100%; }
  .interaction-actions .interact-prompt strong { font-size: 14px; line-height: 1.25; }
  .interaction-alternative { font-size: 11px; }
  .island-conversation { padding: 14px; }
  .conversation-line { font-size: 15px; line-height: 1.6; }
  .conversation-choices { gap: 5px; }
  .conversation-choices button { min-height: 44px; font-size: 12px; }
  .island-chatter { left: 15px; bottom: 225px; width: min(310px, calc(100vw - 30px)); padding: 10px 13px; }
}
@media (max-height: 550px) and (orientation: landscape) {
  .host-dialog { max-height: calc(100dvh - 24px); bottom: 12px; }
  .host-heading { grid-template-columns: 80px minmax(0, 1fr) 36px; padding: 10px 16px; }
  #host-portrait { width: 80px; height: 90px; border-radius: 30px 30px 14px 14px; }
  .host-heading .close-button { position: static; }
  .island-chatter { left: auto; right: 16px; bottom: 100px; width: 275px; }
}
