/* Luma is an original, local guide. All styles stay inside her own surfaces. */
#luma-assistant {
  --luma-green: #177c72;
  --luma-ink: #233f3b;
  --luma-muted: #5d746e;
  --luma-bottom: 26px;
  font-family: inherit;
  color: var(--luma-ink);
  font-size: 16px;
  line-height: 1.55;
}
#luma-assistant *,
#luma-assistant *::before,
#luma-assistant *::after {
  box-sizing: border-box;
}
#luma-assistant button,
#luma-assistant textarea {
  font: inherit;
}
#luma-assistant button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#luma-assistant button:focus-visible,
#luma-assistant textarea:focus-visible {
  outline: 3px solid #51a99b;
  outline-offset: 3px;
}
#luma-assistant button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.luma-launch-wrap {
  position: fixed;
  z-index: 45;
  right: 26px;
  bottom: var(--luma-bottom);
  display: flex;
  gap: 12px;
  align-items: center;
  transition: bottom 0.16s ease;
}
.luma-launcher {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  border: 1px solid #ffffffb8;
  padding: 0;
  width: 66px;
  height: 66px;
  border-radius: 24px;
  background: linear-gradient(145deg, #effff4, #b9e2d3);
  box-shadow:
    0 8px 28px #1c635c26,
    0 2px 5px #123d3412;
  transition:
    transform 0.22s,
    border-radius 0.22s,
    box-shadow 0.22s;
}
.luma-launcher:hover {
  transform: translateY(-3px);
  border-radius: 50%;
  box-shadow: 0 10px 32px #177c7240;
}
.luma-launcher-name {
  position: absolute;
  bottom: -8px;
  padding: 1px 8px;
  background: #fff;
  border: 1px solid #d8e9e2;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.3px;
  color: #177c72;
}
.luma-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 28% 20%,
    #84d6be 0%,
    #279589 38%,
    #177c72 64%,
    #106b66 100%
  );
  box-shadow:
    inset 0 2px 4px #ffffff69,
    inset 0 -3px 7px #124e5259;
  isolation: isolate;
  flex: none;
}
.luma-orb > svg {
  position: relative;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 2px #0d5f5650);
}
.luma-orb-halo {
  position: absolute;
  inset: -5px;
  border: 1px solid #77cbb788;
  border-radius: 50%;
  box-shadow: 0 0 12px #a5ebcb38;
  animation: luma-breathe 3.2s ease-in-out 3;
}
.luma-petals {
  transform-origin: 32px 32px;
  transition: transform 0.4s ease;
}
.luma-launcher:hover .luma-petals {
  transform: rotate(22deg) scale(1.035);
}
.luma-greeting {
  border: 1px solid #dcebe3;
  border-radius: 16px 16px 3px 16px;
  padding: 12px 16px;
  background: #fffefc;
  box-shadow: 0 8px 30px #2a504014;
  text-align: left;
  color: #39584f;
  animation: luma-appear 0.3s ease-out;
}
.luma-greeting strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.luma-greeting span {
  display: block;
  color: #6d817a;
  font-size: 13px;
  margin-top: 2px;
}
.has-opened .luma-greeting,
.greeting-finished .luma-greeting {
  display: none;
}
.luma-panel {
  position: fixed;
  inset: auto 26px 26px auto;
  margin: 0;
  width: 420px;
  max-width: calc(100vw - 32px);
  height: min(700px, calc(100dvh - 52px));
  max-height: calc(100dvh - 52px);
  border: 1px solid #d4e8dd;
  border-radius: 25px;
  background: #fcfefa;
  color: #233f3b;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 22px 75px #193e3336;
  font-size: 16px;
  line-height: 1.55;
}
.luma-panel[open] {
  display: flex;
  flex-direction: column;
  animation: luma-panel-in 0.22s ease-out;
}
.luma-panel::backdrop {
  background: #133b2d15;
  backdrop-filter: blur(1px);
}
.luma-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 22px 18px 18px;
  background: radial-gradient(ellipse at 5% 0%, #ddefdf, transparent 70%), #f6fbf3;
  flex: none;
}
.luma-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.luma-header .luma-orb {
  width: 45px;
  height: 45px;
}
.luma-header .luma-orb-halo {
  animation: none;
  inset: -3px;
}
.luma-identity h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  font-weight: 650;
  line-height: 1.2;
  margin: 0;
  color: #234d43;
}
.luma-identity h2 span {
  display: block;
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 450;
  color: #526f65;
  margin-top: 4px;
}
.luma-identity p {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #607d71;
  margin: 6px 0 0;
}
.luma-identity p i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6b9d7e;
}
.luma-header-actions {
  display: flex;
  gap: 0;
  align-self: flex-start;
  margin: -6px -8px 0 0;
}
.luma-icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #517166;
}
.luma-icon-button:hover {
  background: #e7f2e7;
}
.luma-icon-button svg {
  width: 18px;
  height: 18px;
}
.luma-mode {
  border-top: 1px solid #e2ecdf;
  border-bottom: 1px solid #e2ecdf;
  background: #edf5e9;
  padding: 9px 20px;
  font-size: 12px;
  color: #50694b;
  flex: none;
  text-align: center;
}
.luma-context {
  padding: 11px 20px;
  font-size: 12px;
  color: #5c776a;
  border-bottom: 1px solid #e9eee4;
  overflow-wrap: anywhere;
  flex: none;
  background: #fbfdf8;
}
.luma-transcript {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 25px 20px 16px;
  scrollbar-width: thin;
  scrollbar-color: #bfd7c6 transparent;
}
.luma-eyebrow {
  font-size: 12px;
  letter-spacing: 1.4px;
  font-weight: 650;
  color: #7a927f;
}
.luma-welcome h3 {
  margin: 12px 0 11px;
  font-size: 26px;
  font-weight: 550;
  letter-spacing: -0.8px;
  line-height: 1.22;
  color: #294e41;
}
.luma-welcome > p {
  margin: 0;
  color: #6b7f72;
  font-size: 16px;
  line-height: 1.7;
}
.luma-suggestions {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}
.luma-suggestions button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 13px 15px;
  border: 1px solid #dfeade;
  background: #fff;
  border-radius: 14px;
  text-align: left;
  color: #385d49;
  transition:
    border-color 0.15s,
    transform 0.15s,
    background 0.15s;
}
.luma-suggestions button:hover {
  border-color: #a5c9b4;
  background: #f4faf2;
  transform: translateX(2px);
}
.luma-suggestions strong {
  display: block;
  font-size: 16px;
  font-weight: 550;
}
.luma-suggestions small {
  display: block;
  font-size: 12px;
  color: #6b8374;
  margin-top: 2px;
}
.luma-suggestions svg {
  width: 17px;
  height: 17px;
  color: #8aaa94;
  flex: none;
}
.luma-message {
  max-width: 100%;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  margin: 0 0 19px;
}
.luma-message p {
  margin: 6px 0 0;
  white-space: pre-wrap;
}
.luma-speaker {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: #6c8775;
}
.luma-speaker svg {
  width: 13px;
  height: 13px;
}
.luma-user {
  margin-left: 30px;
  padding: 12px 15px;
  border: 1px solid #dbe9dc;
  background: #eaf3e8;
  border-radius: 16px 16px 3px 16px;
  color: #385641;
}
.luma-user .luma-speaker {
  color: #57725b;
}
.luma-response {
  padding: 0 2px 8px;
}
.luma-response ul {
  padding: 0;
  margin: 15px 0;
  list-style: none;
}
.luma-response li {
  position: relative;
  padding: 7px 0 7px 16px;
  border-bottom: 1px solid #e9eee5;
}
.luma-response li::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 17px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #79a28b;
}
.luma-response p.luma-response-note {
  font-size: 12px;
  line-height: 1.65;
  color: #6c7f71;
  margin-top: 13px;
}
.luma-response-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
}
.luma-response-actions:empty {
  display: none;
}
.luma-response-actions button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  width: 100%;
  border: 1px solid #d5e6da;
  border-radius: 11px;
  padding: 10px 13px;
  background: #f3f9f0;
  color: #296150;
  text-align: left;
  font-size: 14px;
  font-weight: 550;
}
.luma-response-actions button:hover {
  background: #e7f2e7;
  border-color: #a9c9b4;
}
.luma-response-actions svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.luma-status {
  padding: 0 20px;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7f71;
  font-size: 12px;
  flex: none;
}
.luma-status:not(:empty) {
  padding-top: 10px;
  padding-bottom: 10px;
  min-height: 40px;
}
.luma-status button {
  border: 1px solid #d8e6db;
  background: #fff;
  color: #316854;
  min-height: 44px;
  border-radius: 8px;
  padding: 7px;
}
.luma-typing {
  display: flex;
  gap: 4px;
}
.luma-typing i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #72a58b;
  animation: luma-dot 0.8s ease-in-out 3;
}
.luma-typing i:nth-child(2) {
  animation-delay: 0.12s;
}
.luma-typing i:nth-child(3) {
  animation-delay: 0.24s;
}
.luma-composer {
  padding: 14px 17px 16px;
  margin: 0;
  background: #fff;
  border-top: 1px solid #e0eade;
  flex: none;
}
.luma-composer > label {
  display: block;
  font-size: 14px;
  color: #557262;
  margin: 0 0 8px;
  font-weight: 550;
}
.luma-composer > div {
  display: flex;
  align-items: flex-end;
  border: 1px solid #ccdcd0;
  background: #f9fcf6;
  border-radius: 14px;
  padding: 5px;
  gap: 4px;
}
.luma-composer textarea {
  display: block;
  flex: 1;
  width: 0;
  min-width: 0;
  min-height: 44px;
  max-height: 110px;
  height: 44px;
  resize: vertical;
  padding: 10px !important;
  border: 0 !important;
  border-radius: 9px;
  background: transparent;
  box-shadow: none !important;
  line-height: 1.5;
  font-size: 16px;
  color: #294c3d;
  margin: 0;
}
.luma-composer textarea::placeholder {
  color: #809184;
}
.luma-composer button {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  min-height: 44px;
  background: #177c72;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 0;
  transition: background 0.15s;
}
.luma-composer button:hover {
  background: #12675f;
}
.luma-composer button svg {
  width: 21px;
  height: 21px;
}
.luma-composer button span {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.luma-composer > small {
  display: block;
  font-size: 12px;
  color: #7e9081;
  margin: 8px 0 0;
  text-align: center;
}
body.menu-open .luma-launch-wrap {
  visibility: hidden;
}
@keyframes luma-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}
@keyframes luma-dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}
@keyframes luma-appear {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes luma-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 650px) {
  .luma-launch-wrap {
    right: 16px;
  }
  .luma-launcher {
    width: 57px;
    height: 57px;
    border-radius: 20px;
  }
  .luma-launcher .luma-orb {
    width: 47px;
    height: 47px;
  }
  .luma-greeting {
    padding: 10px 12px;
    max-width: 215px;
  }
  .luma-greeting strong {
    font-size: 15px;
  }
  .luma-greeting span {
    font-size: 13px;
  }
  .luma-panel {
    inset: 8px;
    margin: 0;
    width: calc(100vw - 16px);
    max-width: none;
    height: calc(100dvh - 16px);
    max-height: none;
    border-radius: 22px;
  }
  .luma-header {
    padding: 19px 17px 15px;
  }
  .luma-transcript {
    padding: 22px 19px 15px;
  }
  .luma-welcome h3 {
    font-size: 28px;
  }
  .luma-composer {
    padding: 12px 14px max(14px, env(safe-area-inset-bottom));
  }
  .luma-composer textarea {
    font-size: 16px;
  }
  .luma-message {
    font-size: 16px;
  }
  .luma-mode {
    font-size: 12px;
  }
  .luma-context {
    font-size: 12px;
  }
  .luma-suggestions strong {
    font-size: 16px;
  }
  .luma-suggestions small {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #luma-assistant *,
  #luma-assistant *::before,
  #luma-assistant *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .luma-launcher:hover,
  .luma-suggestions button:hover,
  .luma-launcher:hover .luma-petals {
    transform: none;
  }
}
@media print {
  #luma-assistant {
    display: none !important;
  }
}
