.nora {
  --nora-navy:#102b3a;
  --nora-ink:#142d3b;
  --nora-muted:#526976;
  --nora-red:#a72d2b;
  --nora-paper:#fafbf8;
  --nora-avatar-width:164px;
  position:fixed;
  right:clamp(8px,1.45vw,25px);
  bottom:max(7px,env(safe-area-inset-bottom));
  z-index:125;
  width:var(--nora-avatar-width);
  color:var(--nora-ink);
  font:500 .86rem/1.48 var(--body,system-ui,sans-serif);
}
.nora [hidden] { display:none !important; }
.nora button,.nora select { font:inherit; }
.nora :is(button,select,summary) { cursor:pointer; }
.nora :is(button,select,summary,input,textarea,a):focus-visible { outline:2px solid #bf443a; outline-offset:3px; }
.nora-trigger {
  display:block;
  position:relative;
  width:100%;
  aspect-ratio:164/233;
  padding:0;
  border:0;
  border-radius:36% 36% 26% 26%;
  background:transparent;
  color:#fff;
  isolation:isolate;
}
.nora-portrait {
  position:absolute;
  inset:0 0 .12rem;
  pointer-events:none;
  mask-image:radial-gradient(ellipse 67% 65% at 50% 49%,#000 48%,#000f 58%,#000b 72%,transparent 99%),
    linear-gradient(to bottom,transparent,#000 7%,#000 82%,transparent 100%);
  mask-composite:intersect;
}
.nora-portrait img,.nora-avatar-video {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 31%;
  max-width:none;
  user-select:none;
}
.nora-avatar-video { opacity:0; transition:opacity .22s ease; }
.nora-avatar-video.ready { opacity:1; }
.nora-name {
  position:absolute;
  z-index:2;
  left:50%;
  bottom:.53rem;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:.28rem;
  padding:.18rem .42rem .16rem .36rem;
  border-radius:4px;
  background:#102b3a;
  box-shadow:0 2px 8px #102b3a24;
  font-weight:800;
  letter-spacing:.15em;
  font-size:.61rem;
  line-height:1;
}
.nora-name::before { content:""; width:5px; height:5px; border-radius:50%; background:#e77067; }
.nora[data-avatar-state="listening"] .nora-name::before {
  background:#8ac5cc;
  box-shadow:0 0 0 2px #8ac5cc42;
}
.nora[data-avatar-state="speaking"] .nora-name::before { background:#f69b90; }
.nora[data-avatar-state="speaking"] .nora-name::after {
  content:"";
  width:7px;
  height:3px;
  border-radius:2px;
  background:#f69b90;
  transform:scaleX(var(--nora-voice-level,.55));
}
.nora-invite {
  position:absolute;
  right:12px;
  bottom:calc(100% - 12px);
  width:max-content;
  max-width:min(249px,calc(100vw - 30px));
  padding:.72rem .88rem;
  text-align:start;
  background:#fff;
  color:var(--nora-ink);
  border:1px solid #ced9d5;
  border-inline-start:2px solid var(--nora-red);
  border-radius:11px 11px 4px 11px;
  box-shadow:0 10px 26px #0e273323;
  opacity:0;
  transform:translateY(4px);
  pointer-events:none;
  transition:opacity .22s ease,transform .22s ease;
}
.nora-invite.visible {
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
  animation:nora-arrive .25s ease-out;
}
.nora-invite::after {
  content:"";
  position:absolute;
  right:30px;
  bottom:-5px;
  width:8px;
  height:8px;
  background:#fff;
  border-right:1px solid #ced9d5;
  border-bottom:1px solid #ced9d5;
  transform:rotate(45deg);
}
.nora-panel {
  position:absolute;
  right:calc(100% - 3px);
  bottom:.58rem;
  width:min(356px,calc(100vw - var(--nora-avatar-width) - 40px));
  max-height:min(520px,calc(100dvh - 30px));
  display:flex;
  flex-direction:column;
  min-height:0;
  overflow:hidden;
  border:1px solid #c8d4cf;
  border-top:2px solid var(--nora-red);
  border-radius:12px 12px 5px 12px;
  background:var(--nora-paper);
  box-shadow:0 15px 48px #0e273332,0 2px 6px #0e273310;
  transform-origin:bottom right;
  transform:translateY(5px) scale(.985);
  opacity:0;
  pointer-events:none;
  transition:opacity .17s ease,transform .17s ease;
}
.nora-open .nora-panel {
  transform:none;
  opacity:1;
  pointer-events:auto;
  animation:nora-arrive .18s ease-out;
}
@keyframes nora-arrive { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }
@media(prefers-reduced-motion:reduce) {
  .nora-invite,.nora-invite.visible,.nora-panel,.nora-open .nora-panel { animation:none; transition:none; }
  .nora-avatar-video { transition:none; }
}
.nora-head {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:.18rem;
  flex:none;
  position:relative;
  z-index:2;
  background:var(--nora-navy);
  color:#fff;
  padding:.62rem .55rem .6rem .86rem;
}
.nora-nameplate { display:flex; align-items:center; flex-wrap:wrap; gap:.42rem; margin-bottom:.13rem; }
.nora-head h2 {
  color:#fff;
  font:800 1.25rem/1 var(--display,var(--body,system-ui));
  margin:0;
  letter-spacing:.11em;
}
.nora-head p { color:#d3e1e4; font-size:.69rem; margin:0; }
.nora-icon {
  display:grid;
  width:33px;
  min-height:34px;
  place-items:center;
  color:inherit;
  border:0;
  border-radius:5px;
  background:transparent;
  padding:0;
  font-size:1.16rem!important;
  line-height:1;
}
.nora-icon:hover,.nora-options[open] summary { background:#284754; }
.nora-options { position:relative; }
.nora-options-trigger { list-style:none; font-size:1.42rem!important; }
.nora-options-trigger::-webkit-details-marker { display:none; }
.nora-menu {
  display:grid;
  gap:.1rem;
  position:absolute;
  inset-inline-end:0;
  top:calc(100% + 5px);
  min-width:170px;
  width:max-content;
  max-width:min(250px,calc(100vw - 60px));
  padding:.35rem;
  background:#fff;
  color:var(--nora-ink);
  border:1px solid #c7d4d0;
  border-radius:8px;
  box-shadow:0 9px 24px #0e273333;
}
.nora-language { display:flex; flex-wrap:wrap; gap:.2rem .5rem; align-items:center; padding:.2rem .36rem .3rem; font-size:.74rem; }
.nora-language select {
  flex:auto;
  min-width:70px;
  max-width:116px;
  padding:.22rem;
  border:1px solid #aabdbf;
  border-radius:4px;
  color:var(--nora-ink);
  background:#f9fbf9;
  font-size:.75rem;
}
.nora-menu-action {
  display:block;
  text-align:start;
  width:100%;
  background:transparent;
  border:0;
  border-radius:4px;
  padding:.4rem .36rem;
  color:var(--nora-ink);
  font-size:.76rem!important;
}
.nora-menu-action:hover { background:#eef3f0; }
.nora-preview-replay { color:var(--nora-red); }
.nora-page-context {
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  align-items:center;
  flex:none;
  gap:.14rem;
  padding:.28rem .85rem;
  font-size:.73rem;
  color:#385562;
  background:#edf2ee;
}
.nora-content {
  flex:0 1 auto;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  padding:.77rem .88rem .66rem;
}
.nora-message { max-width:95%; margin:0 0 .65rem; overflow-wrap:anywhere; white-space:pre-wrap; }
.nora-message:last-child { margin-bottom:0; }
.nora-message.user {
  width:fit-content;
  max-width:88%;
  margin-inline-start:auto;
  padding:.46rem .62rem;
  border-radius:9px 9px 3px 9px;
  background:#e4edeb;
  color:#173442;
}
.nora-message.nora-return { color:#526873; font-size:.8rem; padding-bottom:.54rem; border-bottom:1px solid #dbe5df; }
.nora-cards { display:grid; gap:.42rem; margin:-.12rem 0 .9rem; }
.nora-recommendations {
  flex:0 1 auto;
  max-height:min(13rem,34dvh);
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  padding:.5rem .72rem;
  border-bottom:1px solid #dbe4df;
}
.nora-recommendations .nora-cards { margin:0; }
.nora-card-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.25rem .45rem; margin-top:.25rem; }
.nora-card-actions .nora-open-product { background:#153d50; color:#fff; padding:.33rem .48rem; text-decoration:none; }
.nora-card-actions .nora-open-product:hover { background:#245264; }
.nora-card {
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-content:start;
  column-gap:.63rem;
  padding:.62rem .6rem;
  border-radius:7px;
  background:#edf2ee;
  border-inline-start:2px solid #658681;
  color:#143441;
}
.nora-card:has(.nora-card-photo) { grid-template-columns:60px minmax(0,1fr); }
.nora-card.near { border-inline-start-color:#995c41; }
.nora-card-photo {
  grid-column:1;
  grid-row:1/span 3;
  align-self:start;
  width:60px;
  height:56px;
  border-radius:4px;
  background:#d9e3e4;
  object-fit:cover;
}
.nora-card a { color:#153d50; font-weight:750; line-height:1.24; text-decoration:underline; overflow-wrap:anywhere; }
.nora-card p { margin:.27rem 0 .2rem; font-size:.73rem; }
.nora-card .nora-gaps { color:#79432b; font-weight:670; }
.nora-card:has(.nora-card-photo) > :not(.nora-card-photo) { grid-column:2; }
.nora-ref { display:block; font-size:.67rem; color:#375764; letter-spacing:.075em; font-weight:800; margin-bottom:.19rem; }
.nora-action,.nora-link {
  width:fit-content;
  border:0;
  border-radius:4px;
  color:#1e4b60;
  background:transparent;
  padding:.22rem .25rem;
  font-weight:750!important;
  font-size:.75rem!important;
  text-decoration:underline;
  text-underline-offset:.18em;
}
.nora-action:hover,.nora-link:hover { background:#dee9e4; }
.nora-action[aria-pressed="true"] { color:#0b502b; font-weight:800!important; }
.nora-inquiry-button { background:#e1ebe5; color:#193a47; margin-bottom:.65rem; padding:.39rem .57rem; }
.nora-compose { flex:none; padding:.54rem .61rem; border-top:1px solid #dbe4df; background:#fff; }
.nora-compose-row { display:flex; gap:.34rem; align-items:end; }
.nora-input,.nora-form :is(input,select,textarea) {
  width:100%;
  min-width:0;
  color:var(--nora-ink);
  background:#fff;
  border:1px solid #a7babd;
  border-radius:5px;
  font:inherit;
  padding:.46rem .49rem;
}
.nora-input { resize:vertical; min-height:40px; max-height:98px; }
.nora-send {
  color:#fff;
  background:var(--nora-red);
  border:1px solid var(--nora-red);
  border-radius:5px;
  min-height:40px;
  padding:.36rem .6rem;
  font-weight:750!important;
}
.nora button:disabled { opacity:.55; cursor:default; }
.nora-microphone {
  flex:0 0 31px;
  min-height:40px;
  display:grid;
  place-items:center;
  border:1px solid #cad6d2;
  border-radius:5px;
  color:#3c5964;
  background:#f7faf8;
}
.nora-microphone:disabled { background:#f9fbfa; color:#6c8290; }
.nora-microphone.recording { color:var(--nora-red); border-color:var(--nora-red); }
.nora-mic-icon { display:block; position:relative; width:13px; height:17px; }
.nora-mic-icon::before {
  content:"";
  position:absolute;
  inset:0 4px 6px;
  background:currentColor;
  border-radius:4px;
}
.nora-mic-icon::after {
  content:"";
  position:absolute;
  inset:5px 1px 3px;
  border:1px solid currentColor;
  border-top:0;
  border-radius:0 0 6px 6px;
  box-shadow:0 4px 0 -2px currentColor;
}
.nora-read-aloud { margin-top:.25rem; }
.nora-status,.nora-privacy { font-size:.71rem; color:var(--nora-muted); margin:.24rem 0 0; }
.nora-status:empty { display:none; }
.nora-privacy a { text-decoration:underline; }
.nora-link { color:var(--nora-muted); font-weight:650!important; }
.nora-reset { margin-top:.47rem; padding:.56rem .62rem; background:#f3e8e3; border-radius:6px; }
.nora-reset p { margin:0 0 .32rem; }
.nora-reset .nora-action { color:#8b342e; margin-inline-end:.55rem; }
.nora-form { display:grid; gap:.58rem; }
.nora-form h3 { font:800 1rem var(--body,system-ui); margin:.35rem 0; }
.nora-form p { margin:0; }
.nora-form label { display:grid; gap:.18rem; font-size:.77rem; font-weight:700; }
.nora-form fieldset { border:0; margin:0; padding:0; display:grid; gap:.35rem .5rem; grid-template-columns:1fr 1fr; }
.nora-form .nora-consent { display:flex; align-items:flex-start; gap:.36rem; }
.nora-form input[type=checkbox] { width:1rem; flex:none; }
.nora-form textarea { min-height:88px; resize:vertical; }
.nora-form .nora-trap { position:absolute; inline-size:1px; block-size:1px; opacity:0; pointer-events:none; }
.nora-gate { margin:.62rem 0 .15rem; padding:.68rem; border-radius:7px; background:#e5eeea; }
.nora-gate .nora-message { margin:0 0 .28rem; }
.nora-verify { padding:.78rem; border-radius:9px; background:#fff; }
.nora-verify > .nora-action { justify-self:start; min-height:34px; }
.nora-verify input[name="code"] { font-variant-numeric:tabular-nums; letter-spacing:.24em; }
body:is(.menu-open,.modal-open) .nora { visibility:hidden; }

@media(max-width:640px), (max-width:950px) and (max-height:490px) and (pointer:coarse) {
  .nora { --nora-avatar-width:85px; right:6px; bottom:max(6px,env(safe-area-inset-bottom)); }
  .nora-trigger { aspect-ratio:85/122; }
  .nora-name { bottom:.35rem; font-size:.52rem; }
  .nora-invite { right:7px; bottom:calc(100% - 7px); max-width:min(218px,calc(100vw - 22px)); }
  .nora-panel {
    right:4px;
    bottom:calc(100% + 4px);
    width:min(382px,calc(100vw - 20px));
    max-height:min(475px,calc(100dvh - 140px));
  }
  .nora-input,.nora-form :is(input,select,textarea),.nora-language select { font-size:16px; }
}
@media(min-width:641px) and (max-height:490px) {
  .nora { --nora-avatar-width:92px; }
  .nora-panel { right:calc(100% + 1px); bottom:.24rem; width:min(365px,calc(100vw - 119px)); max-height:calc(100dvh - 20px); }
}
@media(max-width:640px) and (max-height:490px), (max-width:950px) and (max-height:490px) and (pointer:coarse) {
  .nora { --nora-avatar-width:65px; }
  .nora-panel {
    right:4px;
    bottom:calc(100% + 4px);
    width:min(382px,calc(100vw - 20px));
    max-height:calc(100dvh - 109px);
  }
}

.nora-live-captions {
  max-height:95px;
  overflow:auto;
  overflow-wrap:anywhere;
  border-inline-start:2px solid #63a7ae;
  margin:0 0 .4rem;
  padding:.22rem .46rem;
  color:var(--nora-ink);
  background:#eef4f3;
  font-size:.76rem;
}
.nora-live-caption { margin:.14rem 0; }
