/* Public conversational guide, shared across the site. */
.as-concierge { font-family: var(--font-body, 'Questrial', sans-serif); color: #34313a; }
.as-concierge *, .as-concierge *::before, .as-concierge *::after { box-sizing: border-box; }
.as-concierge-launch {
  position: fixed; left: max(24px, calc((100% - 1120px) / 2 + 24px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 95;
  display: inline-flex; align-items: center; gap: 11px; min-height: 55px; padding: 5px 17px 5px 5px;
  border: 1px solid #cbbfd0; border-radius: 999px; background: #fdfbf8; color: #4f4357;
  box-shadow: 0 9px 22px rgba(64, 43, 65, .18); cursor: pointer;
  font: 700 13px var(--font-body, 'Questrial', sans-serif);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.as-concierge-launch:hover, .as-concierge-launch:focus-visible { border-color: #91749b; box-shadow: 0 12px 27px rgba(64, 43, 65, .23); transform: translateY(-2px); }
.as-concierge-launch img { width: 44px; height: 44px; border: 2px solid #d4bfd9; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.as-concierge-launch[aria-expanded="true"] { visibility: hidden; }
.as-concierge-panel {
  position: fixed; left: max(24px, calc((100% - 1120px) / 2 + 24px)); bottom: calc(82px + env(safe-area-inset-bottom, 0px)); z-index: 1000;
  width: min(420px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 120px));
  display: flex; flex-direction: column; overflow: hidden; background: #faf8fa;
  border: 1px solid #d7cbd9; border-radius: 8px; box-shadow: 0 20px 55px rgba(43, 36, 46, .25);
  animation: as-concierge-arrive .23s ease-out both;
}
.as-concierge-panel[hidden] { display: none; }
.as-concierge-head {
  position: relative; display: flex; align-items: center; gap: 15px; min-height: 126px; padding: 18px 19px;
  background: #eee6f0; border-bottom: 1px solid #d7c7da;
}
.as-concierge-head::after { content: ''; position: absolute; left: 19px; right: 19px; bottom: 6px; height: 1px; background: rgba(109, 81, 117, .23); }
.as-concierge-head img { width: 76px; height: 76px; flex: none; border: 3px solid #fdfbf8; outline: 1px solid #b6a0bd; border-radius: 50%; object-fit: cover; object-position: 50% 18%; box-shadow: 0 5px 14px rgba(63, 39, 60, .18); }
.as-concierge-head > div { min-width: 0; padding-right: 26px; }
.as-concierge-head > div::before { content: 'ANGELICA SOLIS'; display: block; color: #735d79; font: 700 9px var(--font-body, 'Questrial', sans-serif); letter-spacing: .12em; }
.as-concierge-head strong { display: block; margin-top: 2px; font: 600 33px/1 var(--font-display, Georgia, serif); color: #49394c; }
.as-concierge-head small { display: block; margin-top: 2px; color: #6e6470; font-size: 10px; line-height: 1.3; }
.as-concierge-close {
  position: absolute; top: 13px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid #cdbfd0; border-radius: 50%; background: #faf8fa; color: #5b4a5e; cursor: pointer; font-size: 23px;
}
.as-concierge-close:hover, .as-concierge-close:focus-visible { background: #e6dbea; color: #3c3140; }
.as-concierge-close:focus-visible { outline: 2px solid #8b6f94; outline-offset: 2px; }
.as-concierge-body {
  flex: 1; min-height: 0; overflow-y: auto; padding: 22px 17px 16px; overscroll-behavior: contain;
  background-color: #faf8fa;
  background-image: repeating-linear-gradient(135deg, rgba(151, 125, 155, .018) 0, rgba(151, 125, 155, .018) 1px, transparent 1px, transparent 8px);
}
.as-concierge-messages { display: flex; flex-direction: column; gap: 16px; padding-bottom: 16px; }
.as-concierge-turn { display: flex; align-items: flex-end; gap: 8px; }
.as-concierge-turn.user { justify-content: flex-end; }
.as-concierge-avatar { width: 29px; height: 29px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.as-concierge-message {
  max-width: 85%; padding: 13px 15px; border: 1px solid #e3dce5; border-radius: 14px 14px 14px 4px;
  background: #fffefd; color: #3e3841; box-shadow: 0 3px 0 rgba(131, 102, 137, .06), 0 7px 16px rgba(77, 57, 79, .12);
  font-size: 13px; line-height: 1.47; white-space: pre-wrap; overflow-wrap: anywhere;
}
.as-concierge-turn.user .as-concierge-message {
  border-color: #c7d2c0; border-radius: 14px 14px 4px 14px; background: #e9f0e5; color: #304634;
  box-shadow: 0 3px 0 rgba(76, 102, 72, .07), 0 7px 16px rgba(52, 75, 49, .11);
}
.as-concierge-options { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 0 6px 35px; }
.as-concierge-options button, .as-concierge-options a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 7px 10px;
  border: 1px solid #c8b9cc; border-radius: 6px; background: #fdfbf8; color: #5b4962;
  font: 600 12px var(--font-body, 'Questrial', sans-serif); text-decoration: none; text-align: left; cursor: pointer;
}
.as-concierge-options button:hover, .as-concierge-options a:hover,
.as-concierge-options button:focus-visible, .as-concierge-options a:focus-visible {
  background: #eee6f0; border-color: #a58aab;
}
.as-concierge-foot { border-top: 1px solid #e2d8e3; padding: 14px 15px 12px; background: #fdfbf8; }
.as-concierge-voice {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px;
  margin-bottom: 11px; padding: 9px 12px; border: 1px solid #8e7595; border-radius: 6px;
  background: #775f7f; color: #fff; box-shadow: 0 3px 0 #584560, 0 6px 13px rgba(90, 70, 94, .18);
  cursor: pointer; font: 700 13px var(--font-body, 'Questrial', sans-serif);
}
.as-concierge-voice::before {
  content: ''; display: block; width: 19px; height: 19px; flex: none;
  background: linear-gradient(#fff, #fff) 1px center / 2px 7px no-repeat,
    linear-gradient(#fff, #fff) 5px center / 2px 14px no-repeat,
    linear-gradient(#fff, #fff) 9px center / 2px 19px no-repeat,
    linear-gradient(#fff, #fff) 13px center / 2px 14px no-repeat,
    linear-gradient(#fff, #fff) 17px center / 2px 7px no-repeat;
}
.as-concierge-voice:hover, .as-concierge-voice:focus-visible { background: #684e71; }
.as-concierge-voice:disabled { opacity: .55; cursor: default; }
.as-concierge-voice[hidden], .as-concierge-voice-status[hidden] { display: none; }
.as-concierge-voice-status { margin: 0 0 9px; color: #5b4962; font-size: 12px; }
.as-concierge-form { display: flex; gap: 8px; }
.as-concierge-form[hidden] { display: none; }
.as-concierge-input {
  width: 100%; min-width: 0; min-height: 42px; padding: 10px 12px; border: 1px solid #ded7df;
  border-radius: 6px; background: #fffefd; color: #34313a; font: 13px var(--font-body, 'Questrial', sans-serif);
}
.as-concierge-input:focus-visible { outline: 2px solid #a88fb0; outline-offset: 1px; }
.as-concierge-send {
  min-width: 43px; min-height: 42px; padding: 8px; border: 0; border-radius: 6px;
  background: #5b6e4e; color: #fff; cursor: pointer; font: 0 var(--font-body, 'Questrial', sans-serif);
}
.as-concierge-send::before { content: '\2192'; font: 22px/1 var(--font-body, 'Questrial', sans-serif); }
.as-concierge-send:disabled { opacity: .55; cursor: default; }
.as-concierge-consent { display: flex; align-items: flex-start; gap: 7px; margin: 10px 0 0; color: #777176; font-size: 11px; line-height: 1.4; }
.as-concierge-consent[hidden] { display: none; }
.as-concierge-consent input { margin: 1px 0 0; flex: none; accent-color: #775f7f; }
.as-concierge-footlinks { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 11px; }
.as-concierge-footlinks a { color: #526e51; text-decoration: underline; text-underline-offset: 2px; }
body.page-diary:has(.ig-ov.open, .sv.open, .voice-modal.open, .auth.open) .as-concierge { display: none; }
@keyframes as-concierge-arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .as-concierge-launch { transition: none; } .as-concierge-panel { animation: none; } }
@media (max-width: 640px) {
  body.as-concierge-open { overflow: hidden; }
  .as-concierge-launch { left: auto; right: 24px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: 48px; min-height: 48px; justify-content: center; padding: 4px; }
  .as-concierge-launch img { width: 38px; height: 38px; }
  .as-concierge-launch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .as-concierge-launch:focus-visible { outline: 2px solid #7d6b8a; outline-offset: 3px; }
  .as-concierge-panel { inset: 0; width: 100vw; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
  .as-concierge-head { min-height: calc(126px + env(safe-area-inset-top, 0px)); padding-top: max(18px, env(safe-area-inset-top, 0px)); }
  .as-concierge-close { top: max(13px, env(safe-area-inset-top, 0px)); }
  .as-concierge-foot { padding-bottom: max(14px, env(safe-area-inset-bottom, 0px)); }
}
@media print { .as-concierge { display: none; } }
