.hana{--hana-bottom:100px;--hana-panel-bottom:172px;--hana-height:440px;color:#263c40;font-family:inherit}
.hana [hidden]{display:none!important}
.hana-toggle{position:fixed;right:24px;bottom:var(--hana-bottom);z-index:61;width:56px;height:56px;border:0;border-radius:50%;background:#186c7a;color:#fff;box-shadow:0 6px 22px #123b4033;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;font:700 11px/1.1 inherit;padding:5px}
.hana-toggle-logo{display:block;width:32px;height:32px;max-width:100%;object-fit:contain;border-radius:50%;background:transparent}
.hana-toggle-label{display:block;font-size:11px;line-height:1.1;font-weight:700;white-space:nowrap}
@media(max-width:680px){.hana-toggle-logo{width:27px;height:27px}.hana-toggle-label{font-size:10px}}
.hana-panel{position:fixed;right:24px;bottom:var(--hana-panel-bottom);z-index:62;width:min(370px,calc(100vw - 32px));height:min(480px,var(--hana-height));max-height:var(--hana-height);display:flex;flex-direction:column;overflow:hidden;border:1px solid #d6e4e3;border-radius:20px;background:#fff;box-shadow:0 12px 40px #143e4233}
.hana-header{display:flex;flex-shrink:0;justify-content:space-between;align-items:center;background:#186c7a;color:white;padding:12px 16px}.hana-header strong{font-size:20px}.hana-header p{margin:2px 0 0;font-size:12px}.hana-close{width:40px;height:40px;border:0;border-radius:50%;background:#ffffff20;color:white;font-size:28px;cursor:pointer}
.hana-scroll{padding:12px 14px;overflow:auto;min-height:0;overscroll-behavior:contain;flex:1}.hana-notice{font-size:11px;line-height:1.45;color:#586a6c;margin:0 0 12px}.hana-notice a{color:#186c7a;text-decoration:underline}
.hana-message{font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;background:#edf6f4;border-radius:12px;padding:11px;margin:0 0 10px}.hana-message.user{background:#f9edf4;margin-left:24px}.hana-message p{margin:0}
.hana-actions,.hana-quick{display:flex;flex-wrap:wrap;gap:7px}.hana-actions{margin-top:10px}.hana-actions a,.hana-quick button,.hana-quick a{font-family:inherit;font-size:12px;line-height:1.4;border:1px solid #b8d2d5;border-radius:12px;padding:9px 10px;color:#186c7a;background:white;cursor:pointer;text-decoration:none}
.hana-form{flex-shrink:0;border-top:1px solid #d6e4e3;padding:10px 12px;background:#fff}.hana-label{display:block;font-size:11px;margin-bottom:5px}.hana-input-row{display:flex;gap:7px}.hana-input-row input{min-width:0;flex:1;width:0;border:1px solid #b8d2d5;border-radius:10px;padding:10px;font:16px/1.2 inherit}.hana-input-row button{border:0;border-radius:10px;background:#ac116b;color:#fff;font:700 13px/1.2 inherit;padding:10px;cursor:pointer}.hana-status{font-size:11px;line-height:1.2;min-height:14px;margin:4px 0 0;color:#586a6c}.hana button:disabled{opacity:.55;cursor:wait}.hana :focus-visible{outline:3px solid #ac116b;outline-offset:3px}
@media(max-width:680px){.hana{--hana-bottom:calc(89px + env(safe-area-inset-bottom));--hana-panel-bottom:calc(161px + env(safe-area-inset-bottom))}.hana-toggle,.hana-panel{right:16px}.hana-panel{border-radius:16px}.hana-header{padding:9px 12px}}
@media(prefers-reduced-motion:reduce){.hana *{scroll-behavior:auto}}

/* Only an open desktop panel reserves document width. */
@media(min-width:961px){.hana-panel{right:88px;width:340px}}
@media(max-width:960px){
  body.hana-open::before{content:"";position:fixed;inset:0;z-index:60;background:var(--sand,#f7f4ef)}
  body.hana-open .whatsapp-float{z-index:63}
  body.hana-open .hana-toggle{z-index:64}
}
@media(max-width:680px){
  .hana-toggle{width:48px;height:48px;right:16px}
  .hana-panel{left:12px;right:12px;width:auto;height:var(--hana-height);background:#fff}
  body.hana-open .mobile-actions{z-index:63}
  body.hana-open .hana-toggle{z-index:64}
  body.hana-open{overflow:hidden}
}


/* Hanami flat assistant alignment */
.hana-panel{
  border-radius:0;
  box-shadow:none;
}
.hana-message,
.hana-actions a,
.hana-quick button,
.hana-quick a,
.hana-input-row input,
.hana-input-row button,
.hana-close{
  border-radius:0;
  box-shadow:none;
}


/* Flat utility toggle */
.hana-toggle{
  box-shadow:none!important;
}

/* Only Hana's name and description are displayed in the open header. */
.hana-header{gap:10px}
.hana-header-copy{min-width:0;flex:1}
.hana-close{flex:0 0 40px}

/* Subtle scale-and-fade without modifying the panel's final position. */
.hana-panel{transform-origin:bottom right}
.hana-panel.hana-entering{animation:hana-open .26s cubic-bezier(.2,.75,.25,1) both}
.hana-panel.hana-closing{animation:hana-close .22s ease-in both;pointer-events:none}
@keyframes hana-open{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}
@keyframes hana-close{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.96)}}
@media(prefers-reduced-motion:reduce){.hana-panel.hana-entering,.hana-panel.hana-closing{animation:none!important}}


/* Stitch-approved Hana launcher: horizontal white button, magenta marker and flower.
   The chat panel, controls and all existing open/close behavior are unchanged. */
.hana-toggle{
  width:auto;
  min-width:0;
  max-width:calc(100vw - 32px);
  height:50px;
  padding:10px 16px;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:9px;
  border:1px solid #e1e7ea;
  border-radius:0;
  background:#fff;
  color:#005864;
  box-shadow:0 8px 22px rgba(0,88,100,.13)!important;
  font-family:"Plus Jakarta Sans",sans-serif!important;
  white-space:nowrap;
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.hana-toggle:hover{background:#e8f3f5;border-color:#b8d2d5}
.hana-toggle-dot{display:block;flex:none;width:10px;height:10px;background:#9b1864}
.hana-toggle-label{display:block;font-size:13px;line-height:1.2;font-weight:700;color:#005864;white-space:nowrap}
.hana-toggle-flower{display:block;flex:none;font-size:17px;line-height:1}
@media(max-width:680px){
  .hana-toggle{right:16px;width:auto;height:48px;max-width:calc(100vw - 32px);padding:10px 13px;gap:8px}
  .hana-toggle-label{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
  .hana-toggle{transition:none}
}
