.maharaja-root{--m-red:#9b1c1f;--m-gold:#e5a11c;--m-cream:#fff8ec;--m-ink:#2a201c;position:fixed;bottom:24px;z-index:999998;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--m-ink)}
.maharaja-root.is-right{right:24px}.maharaja-root.is-left{left:24px}.maharaja-root *{box-sizing:border-box}.maharaja-root svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.maharaja-launcher{appearance:none;border:1px solid rgba(113,21,23,.2);background:linear-gradient(135deg,#8e171a,var(--m-red) 58%,#761215);color:#fff;height:68px;min-width:224px;border-radius:999px;padding:6px 18px 6px 7px;display:flex;align-items:center;gap:12px;cursor:pointer;box-shadow:0 18px 45px rgba(76,13,15,.24),inset 0 1px 0 rgba(255,255,255,.12);transition:transform .2s ease,box-shadow .2s ease}.maharaja-launcher:hover{transform:translateY(-2px);box-shadow:0 22px 54px rgba(76,13,15,.29),inset 0 1px 0 rgba(255,255,255,.14)}.maharaja-launcher:active{transform:translateY(0)}
.maharaja-launcher-avatar{width:58px;height:58px;flex:0 0 58px;border-radius:18px;overflow:hidden;position:relative;background:#fff0c6;border:1.5px solid rgba(255,207,111,.82);box-shadow:0 6px 18px rgba(66,8,11,.18);display:grid;place-items:center;padding:4px}.maharaja-launcher-avatar img{width:100%;height:100%;object-fit:contain;object-position:center center;transform:none}.maharaja-launcher-avatar i{position:absolute;right:2px;bottom:2px;width:10px;height:10px;border-radius:50%;background:#69cf8b;border:2px solid #8f171a}
.maharaja-launcher-text{display:flex;flex-direction:column;align-items:flex-start;line-height:1.1}.maharaja-launcher-text strong{font-family:Georgia,"Times New Roman",serif;font-size:18px;font-weight:600;letter-spacing:.01em}.maharaja-launcher-text small{font-size:9px;letter-spacing:.14em;text-transform:uppercase;margin-top:6px;color:#f2d9b3;font-weight:700}
.maharaja-panel{position:absolute;bottom:82px;width:min(404px,calc(100vw - 32px));height:min(640px,calc(100dvh - 120px));display:flex;flex-direction:column;background:#fffaf2;border:1px solid rgba(83,37,24,.12);border-radius:28px;overflow:hidden;box-shadow:0 30px 90px rgba(37,16,12,.28),0 3px 14px rgba(37,16,12,.08);animation:maharajaPanelIn .22s cubic-bezier(.2,.75,.2,1)}.maharaja-panel[hidden]{display:none}.is-right .maharaja-panel{right:0;transform-origin:bottom right}.is-left .maharaja-panel{left:0;transform-origin:bottom left}@keyframes maharajaPanelIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.maharaja-header{min-height:82px;padding:12px 13px 12px 14px;display:flex;align-items:center;gap:11px;background:radial-gradient(circle at 10% -30%,rgba(246,178,51,.28),transparent 38%),linear-gradient(135deg,#8c171a,#a52123 58%,#7c1114);color:#fff;border-bottom:1px solid rgba(255,214,132,.22)}
.maharaja-header-avatar{width:58px;height:58px;flex:0 0 58px;border-radius:18px;overflow:hidden;background:#fff0c6;border:1.5px solid rgba(255,207,111,.82);box-shadow:0 6px 18px rgba(66,8,11,.18);display:grid;place-items:center;padding:4px}.maharaja-header-avatar img{width:100%;height:100%;object-fit:contain;object-position:center center;transform:none}
.maharaja-header-copy{flex:1;min-width:0;display:flex;flex-direction:column}.maharaja-header-copy strong{font-family:Georgia,"Times New Roman",serif;font-size:22px;font-weight:600;line-height:1.1}.maharaja-header-copy span{display:flex;align-items:center;gap:7px;margin-top:6px;font-size:9px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:#f2d4ad;white-space:nowrap}.maharaja-header-copy span i{width:7px;height:7px;border-radius:50%;background:#79db96;box-shadow:0 0 0 3px rgba(121,219,150,.12)}
.maharaja-header-actions{display:flex;align-items:center;gap:7px}.maharaja-lang-control{height:38px;display:flex;align-items:center;gap:5px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.09);border-radius:12px;padding:0 7px;color:#fff}.maharaja-lang-control>svg{width:16px;height:16px;flex:0 0 16px}.maharaja-language{appearance:auto!important;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:#fff!important;font-size:10.5px!important;font-weight:700!important;min-height:0!important;height:auto!important;max-width:78px;padding:0!important;margin:0!important}.maharaja-language option{color:#2f241f;background:#fff}.maharaja-icon-btn{appearance:none;width:38px;height:38px;flex:0 0 38px;padding:0;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.09);color:#fff;display:grid;place-items:center;cursor:pointer;line-height:0;transition:background .17s ease,transform .17s ease}.maharaja-icon-btn:hover{background:rgba(255,255,255,.16)}.maharaja-icon-btn:active{transform:scale(.96)}.maharaja-icon-btn svg{width:18px;height:18px}
.maharaja-chat-area{flex:1;min-height:0;overflow:auto;padding:16px 14px 10px;scrollbar-width:thin;scrollbar-color:rgba(122,75,52,.22) transparent}.maharaja-chat-area::-webkit-scrollbar{width:5px}.maharaja-chat-area::-webkit-scrollbar-thumb{background:rgba(122,75,52,.22);border-radius:10px}.maharaja-chat-area::-webkit-scrollbar-track{background:transparent}
.maharaja-welcome-card{background:#fff;border:1px solid rgba(110,56,36,.1);border-radius:20px;padding:15px;box-shadow:0 7px 24px rgba(73,38,24,.055);transition:opacity .18s ease,transform .18s ease,max-height .25s ease,margin .25s ease,padding .25s ease}.maharaja-welcome-card.is-hidden{opacity:0;transform:translateY(-7px);max-height:0;overflow:hidden;margin:0;padding-top:0;padding-bottom:0;border-width:0}.maharaja-welcome-top{display:flex;align-items:center;gap:14px}.maharaja-welcome-avatar{width:70px;height:78px;border-radius:18px;background:#fff4d4;border:1px solid rgba(229,161,28,.32);overflow:hidden;display:grid;place-items:center;padding:5px;flex:0 0 70px}.maharaja-welcome-avatar img{width:100%;height:100%;object-fit:contain;object-position:center center;transform:none}.maharaja-eyebrow{display:block;font-size:8.5px;letter-spacing:.18em;color:#a97825;font-weight:800}.maharaja-welcome-top h3{font-family:Georgia,"Times New Roman",serif;font-size:19px;line-height:1.1;margin:4px 0 0;color:#5f191c;font-weight:600}.maharaja-welcome-text{font-size:12.5px;line-height:1.55;color:#6f5a4e;margin:12px 0 13px}
.maharaja-quick{display:grid;grid-template-columns:1fr 1fr;gap:7px}.maharaja-quick-btn{appearance:none;min-width:0;border:1px solid rgba(113,30,27,.1);background:#fff9ef;color:#5f2423;border-radius:13px;min-height:46px;padding:8px 9px;display:flex;align-items:center;gap:8px;text-align:left;cursor:pointer;font-size:11px;font-weight:700;transition:border-color .16s ease,background .16s ease,transform .16s ease}.maharaja-quick-btn:hover{background:#fff4e2;border-color:rgba(156,47,36,.2);transform:translateY(-1px)}.maharaja-quick-icon{width:27px;height:27px;flex:0 0 27px;border-radius:9px;background:#f6e5bd;color:#8e2927;display:grid;place-items:center}.maharaja-quick-icon svg{width:14px;height:14px}.maharaja-quick-btn>span:nth-child(2){flex:1;min-width:0}.maharaja-quick-btn>i{width:13px;height:13px;color:#b89972;display:grid;place-items:center}.maharaja-quick-btn>i svg{width:12px;height:12px;transform:rotate(-90deg)}
.maharaja-messages{padding-top:2px}.maharaja-message{display:flex;align-items:flex-start;gap:8px;margin:14px 0}.maharaja-message.user{justify-content:flex-end}.maharaja-message-avatar{width:82px;height:120px;flex:0 0 82px;border-radius:0;overflow:visible;background:transparent;border:0;margin-top:4px;display:grid;place-items:end center;align-self:flex-start}.maharaja-message-avatar img{width:100%;height:100%;object-fit:contain;object-position:center bottom;transform:none;filter:drop-shadow(0 6px 10px rgba(72,38,25,.08))}.maharaja-message-stack{max-width:84%;min-width:0}.maharaja-message.user .maharaja-message-stack{display:flex;justify-content:flex-end}.maharaja-bubble{font-size:13px;line-height:1.58;overflow-wrap:anywhere}.maharaja-message.assistant .maharaja-bubble{background:#fff;border:1px solid rgba(96,50,34,.1);border-radius:5px 16px 16px 16px;padding:11px 13px;color:#43362f;box-shadow:0 4px 14px rgba(72,38,25,.04)}.maharaja-message.user .maharaja-bubble{background:linear-gradient(135deg,#9b1c1f,#7d1517);border-radius:16px 16px 5px 16px;padding:10px 13px;color:#fff;box-shadow:0 5px 15px rgba(117,20,22,.13)}
.maharaja-sources{margin-top:7px;border:1px solid rgba(113,64,42,.1);background:#fffaf2;border-radius:12px;overflow:hidden}.maharaja-sources summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:7px;padding:8px 10px;color:#765a4c;font-size:10px}.maharaja-sources summary::-webkit-details-marker{display:none}.maharaja-sources summary>span{width:18px;height:18px;border-radius:6px;background:#f5e7c8;color:#9a6d22;display:grid;place-items:center}.maharaja-sources summary>span svg{width:11px;height:11px}.maharaja-sources summary strong{font-weight:700;flex:1}.maharaja-sources summary em{font-style:normal;background:#f2e8d7;border-radius:999px;min-width:20px;height:20px;display:grid;place-items:center;font-size:9px;font-weight:800}.maharaja-sources summary>i{width:13px;height:13px;color:#9b8171;transition:transform .18s ease}.maharaja-sources[open] summary>i{transform:rotate(180deg)}.maharaja-sources summary>i svg{width:13px;height:13px}.maharaja-source-list{border-top:1px solid rgba(113,64,42,.08);padding:5px}.maharaja-source-list a{display:flex;align-items:center;gap:8px;padding:8px 9px;border-radius:9px;text-decoration:none!important;color:#6c2423!important;font-size:10.5px;font-weight:650}.maharaja-source-list a:hover{background:#fff3dd}.maharaja-source-text{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.maharaja-source-open{width:18px;height:18px;display:grid;place-items:center;color:#9a765b}.maharaja-source-open svg{width:12px;height:12px}
.maharaja-feedback{display:flex;gap:5px;margin-top:7px}.maharaja-feedback button{appearance:none;width:28px;height:27px;border:1px solid rgba(103,68,50,.12);border-radius:9px;background:#fff;color:#8a7467;display:grid;place-items:center;cursor:pointer;padding:0}.maharaja-feedback button:hover{color:#8d211f;border-color:rgba(141,33,31,.24)}.maharaja-feedback button svg{width:13px;height:13px}.maharaja-feedback span{font-size:10px;color:#9a7d6c;padding:5px 0}
.maharaja-typing{display:flex;align-items:center;gap:4px;padding:8px 16px 10px;color:#886d5d;font-size:10.5px;background:#fffaf2}.maharaja-typing span{width:5px;height:5px;border-radius:50%;background:var(--m-gold);animation:mDot 1s infinite}.maharaja-typing span:nth-child(2){animation-delay:.14s}.maharaja-typing span:nth-child(3){animation-delay:.28s}.maharaja-typing em{font-style:normal;margin-left:6px}@keyframes mDot{0%,65%,100%{transform:translateY(0);opacity:.45}32%{transform:translateY(-3px);opacity:1}}
.maharaja-composer{padding:10px 11px 11px;background:#fff;border-top:1px solid rgba(93,49,32,.08)}.maharaja-input-shell{display:flex;align-items:flex-end;gap:8px;border:1px solid rgba(92,53,38,.16);background:#fffaf4;border-radius:17px;padding:6px 6px 6px 13px;transition:border-color .17s ease,box-shadow .17s ease}.maharaja-input-shell:focus-within{border-color:rgba(155,28,31,.32);box-shadow:0 0 0 3px rgba(155,28,31,.055)}.maharaja-input{flex:1;resize:none;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:#372b26!important;font-size:13px!important;line-height:1.45!important;min-height:37px;max-height:112px;padding:8px 0!important;margin:0!important}.maharaja-input::placeholder{color:#a48d80}.maharaja-send{appearance:none;width:40px;height:40px;flex:0 0 40px;border:0;border-radius:13px;background:linear-gradient(135deg,#a21f22,#7b1416);color:#ffe4ad;display:grid;place-items:center;cursor:pointer;padding:0;box-shadow:0 5px 13px rgba(119,20,22,.17);transition:transform .16s ease,filter .16s ease}.maharaja-send:hover{filter:brightness(1.06)}.maharaja-send:active{transform:scale(.96)}.maharaja-send:disabled{opacity:.45;cursor:not-allowed}.maharaja-send svg{width:19px;height:19px}.maharaja-trustline{display:flex;align-items:center;justify-content:center;gap:6px;font-size:8.5px;color:#a08b7f;margin-top:8px;text-align:center}.maharaja-trust-dot{width:6px;height:6px;border-radius:50%;background:#71c98a}
.maharaja-contact-wrap{margin-top:10px}.maharaja-contact-btn{display:inline-flex!important;align-items:center;justify-content:center;padding:8px 11px;border-radius:10px;background:#8f1b1e;color:#fff!important;text-decoration:none!important;font-size:10.5px;font-weight:700}
@media(max-width:600px){.maharaja-root{bottom:14px}.maharaja-root.is-right{right:14px}.maharaja-root.is-left{left:14px}.maharaja-panel{position:fixed;left:9px!important;right:9px!important;bottom:9px;width:auto;height:min(720px,calc(100dvh - 18px));border-radius:24px}.maharaja-launcher{min-width:0;width:62px;height:62px;padding:5px;border-radius:50%}.maharaja-launcher-avatar{width:52px;height:52px;flex-basis:52px}.maharaja-launcher-text{display:none}.maharaja-header{min-height:76px}.maharaja-header-copy strong{font-size:20px}.maharaja-header-copy span{font-size:8.4px;letter-spacing:.09em}.maharaja-lang-control{padding:0 5px}.maharaja-language{max-width:58px}.maharaja-quick{grid-template-columns:1fr 1fr}.maharaja-chat-area{padding-left:12px;padding-right:12px}}
@media(max-width:370px){.maharaja-header-avatar{width:46px;height:46px;flex-basis:46px}.maharaja-header{gap:8px;padding-left:10px;padding-right:10px}.maharaja-header-copy span{display:none}.maharaja-language{max-width:48px}.maharaja-quick{grid-template-columns:1fr}.maharaja-welcome-card{padding:13px}}

/* v1.3 composer language control + theme-safe interaction states */
.maharaja-root .maharaja-typing[hidden],
.maharaja-root .maharaja-typing[aria-hidden="true"]{display:none!important}
.maharaja-root .maharaja-typing:not([hidden]){display:flex!important}

.maharaja-root .maharaja-header-actions{margin-left:auto}
.maharaja-root .maharaja-header-copy{padding-right:8px}

.maharaja-root .maharaja-input-shell{
  display:block;
  padding:9px 9px 8px 13px;
  border-radius:20px;
  background:#fffbf5;
}
.maharaja-root .maharaja-input{
  display:block!important;
  width:100%!important;
  min-height:39px!important;
  padding:6px 2px 7px!important;
}
.maharaja-root .maharaja-composer-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding-top:3px;
}
.maharaja-root .maharaja-lang-inline{
  height:34px;
  max-width:170px;
  border:1px solid rgba(112,65,43,.12)!important;
  background:#f8efe2!important;
  color:#6d4138!important;
  border-radius:11px;
  padding:0 9px!important;
  transition:border-color .16s ease,background .16s ease;
}
.maharaja-root .maharaja-lang-inline>svg{width:15px;height:15px;flex:0 0 15px;color:#9b1c1f!important}
.maharaja-root .maharaja-lang-inline .maharaja-language{
  color:#5a3730!important;
  max-width:125px!important;
  font-size:10.5px!important;
  font-weight:700!important;
  cursor:pointer;
}
.maharaja-root .maharaja-lang-inline:hover{
  background:#f5e8d6!important;
  border-color:rgba(155,28,31,.18)!important;
}
.maharaja-root .maharaja-lang-inline:focus-within{
  border-color:rgba(155,28,31,.28)!important;
  box-shadow:0 0 0 3px rgba(155,28,31,.05)!important;
}

/* Prevent host WordPress/theme button hover CSS from leaking into Maharaja. */
.maharaja-root .maharaja-launcher,
.maharaja-root .maharaja-launcher:hover,
.maharaja-root .maharaja-launcher:focus,
.maharaja-root .maharaja-launcher:active{
  color:#fff!important;
  background:linear-gradient(135deg,#8e171a,var(--m-red) 58%,#761215)!important;
  text-decoration:none!important;
}
.maharaja-root .maharaja-icon-btn,
.maharaja-root .maharaja-icon-btn:hover,
.maharaja-root .maharaja-icon-btn:focus{
  color:#fff!important;
  background:rgba(255,255,255,.09)!important;
  border-color:rgba(255,255,255,.18)!important;
  text-decoration:none!important;
}
.maharaja-root .maharaja-icon-btn:hover{background:rgba(255,255,255,.16)!important}
.maharaja-root .maharaja-quick-btn,
.maharaja-root .maharaja-quick-btn:visited{
  color:#5f2423!important;
  background:#fff9ef!important;
}
.maharaja-root .maharaja-quick-btn:hover,
.maharaja-root .maharaja-quick-btn:focus{
  color:#5f2423!important;
  background:#fff4e2!important;
  border-color:rgba(156,47,36,.20)!important;
  text-decoration:none!important;
}
.maharaja-root .maharaja-send,
.maharaja-root .maharaja-send:hover,
.maharaja-root .maharaja-send:focus,
.maharaja-root .maharaja-send:active{
  color:#ffe4ad!important;
  background:linear-gradient(135deg,#a21f22,#7b1416)!important;
  border:0!important;
  text-decoration:none!important;
  box-shadow:0 5px 13px rgba(119,20,22,.17)!important;
}
.maharaja-root .maharaja-send:hover{filter:brightness(1.07)!important}
.maharaja-root .maharaja-send:disabled{opacity:.45!important;background:linear-gradient(135deg,#a21f22,#7b1416)!important}

.maharaja-root .maharaja-feedback{display:flex;align-items:center;gap:6px;margin-top:8px}
.maharaja-root .maharaja-feedback button,
.maharaja-root .maharaja-feedback button:visited{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  min-height:30px!important;
  padding:0!important;
  margin:0!important;
  border:1px solid rgba(103,68,50,.13)!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#786257!important;
  display:grid!important;
  place-items:center!important;
  line-height:0!important;
  box-shadow:none!important;
  text-decoration:none!important;
  transform:none!important;
}
.maharaja-root .maharaja-feedback button:hover,
.maharaja-root .maharaja-feedback button:focus{
  background:#fff7eb!important;
  color:#7f2524!important;
  border-color:rgba(155,28,31,.18)!important;
  box-shadow:none!important;
  transform:none!important;
}
.maharaja-root .maharaja-feedback button:active{
  background:#f9ead8!important;
  color:#7f2524!important;
  transform:scale(.96)!important;
}
.maharaja-root .maharaja-feedback button svg{width:14px!important;height:14px!important;display:block!important}
.maharaja-root .maharaja-feedback>span{font-size:10px;color:#8e7567}

.maharaja-root .maharaja-source-list a:hover,
.maharaja-root .maharaja-source-list a:focus{background:#fff3dd!important;color:#6c2423!important}

.maharaja-root .maharaja-bubble{user-select:text;-webkit-user-select:text}
.maharaja-root .maharaja-message.assistant .maharaja-bubble{font-size:13.25px;line-height:1.62}

@media(max-width:600px){
  .maharaja-root .maharaja-lang-inline{max-width:145px}
  .maharaja-root .maharaja-lang-inline .maharaja-language{max-width:104px!important}
}

/* v1.5 mobile viewport, isolated scrolling, auto-open attention states */
html.maharaja-page-lock,
body.maharaja-page-lock{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
.maharaja-root .maharaja-panel{
  overscroll-behavior:none;
}
.maharaja-root .maharaja-header,
.maharaja-root .maharaja-typing,
.maharaja-root .maharaja-composer{
  flex:0 0 auto;
}
.maharaja-root .maharaja-chat-area{
  flex:1 1 auto;
  min-height:0;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  position:relative;
}
.maharaja-root .maharaja-welcome-card{
  max-height:900px;
}
.maharaja-root.is-attention .maharaja-launcher{
  animation:maharajaAttention 1.05s ease-in-out 3;
}
.maharaja-root.is-attention .maharaja-launcher-avatar{
  animation:maharajaAvatarAttention 1.05s ease-in-out 3;
}
@keyframes maharajaAttention{
  0%,100%{box-shadow:0 18px 45px rgba(76,13,15,.24),inset 0 1px 0 rgba(255,255,255,.12)}
  50%{box-shadow:0 20px 54px rgba(76,13,15,.31),0 0 0 7px rgba(229,161,28,.13),inset 0 1px 0 rgba(255,255,255,.12)}
}
@keyframes maharajaAvatarAttention{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.045)}
}
@media (prefers-reduced-motion:reduce){
  .maharaja-root.is-attention .maharaja-launcher,
  .maharaja-root.is-attention .maharaja-launcher-avatar{animation:none!important}
}

@media(max-width:780px){
  .maharaja-root{
    bottom:max(10px,env(safe-area-inset-bottom));
    z-index:2147483000;
  }
  .maharaja-root.is-right{right:max(10px,env(safe-area-inset-right))}
  .maharaja-root.is-left{left:max(10px,env(safe-area-inset-left))}
  .maharaja-root .maharaja-panel{
    position:fixed!important;
    top:var(--m-mobile-top,8px)!important;
    bottom:auto!important;
    left:max(8px,env(safe-area-inset-left))!important;
    right:max(8px,env(safe-area-inset-right))!important;
    width:auto!important;
    height:var(--m-mobile-height,calc(100dvh - 16px))!important;
    max-height:none!important;
    min-height:300px;
    border-radius:22px;
    overflow:hidden!important;
    transform:none!important;
  }
  .maharaja-root.is-open .maharaja-launcher{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:scale(.94)!important;
  }
  .maharaja-root .maharaja-header{
    min-height:70px;
    padding:10px 11px 10px 12px;
    gap:9px;
  }
  .maharaja-root .maharaja-header-avatar{
    width:48px;
    height:48px;
    flex-basis:48px;
    border-radius:14px;
  }
  .maharaja-root .maharaja-header-copy strong{font-size:20px}
  .maharaja-root .maharaja-header-copy span{font-size:8px;letter-spacing:.085em;margin-top:5px}
  .maharaja-root .maharaja-icon-btn{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    flex-basis:42px!important;
  }
  .maharaja-root .maharaja-chat-area{
    padding:12px 11px 10px!important;
    scrollbar-width:none;
  }
  .maharaja-root .maharaja-chat-area::-webkit-scrollbar{display:none}
  .maharaja-root .maharaja-welcome-card{
    border-radius:18px;
    padding:14px;
  }
  .maharaja-root .maharaja-welcome-text{
    margin:10px 0 12px;
    font-size:12px;
    line-height:1.5;
  }
  .maharaja-root .maharaja-quick{
    grid-template-columns:1fr 1fr;
    gap:7px;
  }
  .maharaja-root .maharaja-quick-btn{
    min-height:48px;
    padding:8px;
    font-size:10.7px;
  }
  .maharaja-root .maharaja-message{margin:11px 0}
  .maharaja-root .maharaja-message-stack{max-width:88%}
  .maharaja-root .maharaja-typing{
    padding:7px 13px 8px;
  }
  .maharaja-root .maharaja-composer{
    position:relative;
    z-index:6;
    padding:8px 9px max(9px,env(safe-area-inset-bottom));
    background:#fff;
  }
  .maharaja-root .maharaja-input-shell{
    border-radius:18px;
    padding:7px 8px 7px 11px;
  }
  .maharaja-root .maharaja-input{
    min-height:38px!important;
    max-height:84px!important;
    font-size:16px!important;
    line-height:1.4!important;
    padding:5px 2px 6px!important;
  }
  .maharaja-root .maharaja-composer-actions{padding-top:2px}
  .maharaja-root .maharaja-lang-inline{
    height:36px;
    max-width:155px;
  }
  .maharaja-root .maharaja-lang-inline .maharaja-language{
    max-width:112px!important;
    font-size:11px!important;
  }
  .maharaja-root .maharaja-send{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    flex-basis:42px!important;
  }
  .maharaja-root .maharaja-trustline{margin-top:6px}

  /* Keyboard-open state: keep the composer visible and give conversation area priority. */
  .maharaja-root.is-keyboard-open .maharaja-header{
    min-height:58px;
    padding-top:7px;
    padding-bottom:7px;
  }
  .maharaja-root.is-keyboard-open .maharaja-header-avatar{
    width:42px;
    height:42px;
    flex-basis:42px;
    border-radius:12px;
  }
  .maharaja-root.is-keyboard-open .maharaja-header-copy strong{font-size:18px}
  .maharaja-root.is-keyboard-open .maharaja-header-copy span{display:none}
  .maharaja-root.is-keyboard-open .maharaja-chat-area{
    padding-top:8px!important;
    padding-bottom:7px!important;
  }
  .maharaja-root.is-keyboard-open .maharaja-composer{
    padding-top:7px;
  }
  .maharaja-root.is-keyboard-open .maharaja-input{max-height:68px!important}
  .maharaja-root.is-keyboard-open .maharaja-trustline{display:none}
}

@media(max-width:390px){
  .maharaja-root .maharaja-quick{grid-template-columns:1fr}
  .maharaja-root .maharaja-welcome-top{gap:9px}
  .maharaja-root .maharaja-welcome-avatar{width:39px;height:39px}
  .maharaja-root .maharaja-welcome-top h3{font-size:17px}
  .maharaja-root .maharaja-lang-inline{max-width:142px}
  .maharaja-root .maharaja-lang-inline .maharaja-language{max-width:99px!important}
}

/* v1.6 conversation navigation + stable message flow */
.maharaja-root .maharaja-welcome-card[hidden],
.maharaja-root .maharaja-conversation-nav[hidden]{display:none!important}
.maharaja-root .maharaja-welcome-card.is-hidden{display:none!important;opacity:1!important;transform:none!important;max-height:none!important;margin:0!important;padding:15px!important;border-width:1px!important}
.maharaja-root .maharaja-conversation-nav{
  position:sticky;
  top:-1px;
  z-index:5;
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 0 9px;
  margin:0 0 2px;
  background:linear-gradient(180deg,#fffaf2 76%,rgba(255,250,242,0));
}
.maharaja-root .maharaja-topics-btn,
.maharaja-root .maharaja-topics-btn:visited{
  appearance:none!important;
  -webkit-appearance:none!important;
  min-height:36px!important;
  padding:0 12px!important;
  margin:0!important;
  border:1px solid rgba(112,58,39,.12)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#6a2a27!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  font:700 10.5px/1 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  text-decoration:none!important;
  box-shadow:0 3px 12px rgba(77,41,26,.045)!important;
  cursor:pointer!important;
}
.maharaja-root .maharaja-topics-btn:hover,
.maharaja-root .maharaja-topics-btn:focus{
  background:#fff5e7!important;
  color:#6a2a27!important;
  border-color:rgba(155,28,31,.2)!important;
  box-shadow:0 3px 12px rgba(77,41,26,.055)!important;
}
.maharaja-root .maharaja-topics-btn:active{transform:scale(.98)!important}
.maharaja-root .maharaja-topics-btn svg{width:14px;height:14px;display:block}
.maharaja-root .maharaja-messages{padding-top:0!important;min-height:0!important}
.maharaja-root .maharaja-message:first-child{margin-top:4px!important}
.maharaja-root .maharaja-chat-area{scroll-padding-top:46px}
.maharaja-root .maharaja-language:disabled{opacity:.58!important;cursor:wait!important}

@media(max-width:780px){
  .maharaja-root .maharaja-conversation-nav{
    min-height:42px;
    padding-bottom:7px;
    background:linear-gradient(180deg,#fffaf2 80%,rgba(255,250,242,0));
  }
  .maharaja-root .maharaja-topics-btn{
    min-height:36px!important;
    padding:0 12px!important;
    font-size:11px!important;
  }
  .maharaja-root .maharaja-message:first-child{margin-top:2px!important}
}

/* v1.7 resolution feedback + Interakt WhatsApp expert handoff */
.maharaja-root .maharaja-resolution{
  margin-top:9px;
  padding:10px;
  border:1px solid rgba(103,68,50,.12);
  border-radius:15px;
  background:#fffaf3;
}
.maharaja-root .maharaja-resolution-question{
  margin:0 0 8px;
  color:#68483b;
  font:700 10.5px/1.35 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.maharaja-root .maharaja-resolution-actions{display:flex;gap:7px;flex-wrap:wrap}
.maharaja-root .maharaja-resolve-yes,
.maharaja-root .maharaja-resolve-expert,
.maharaja-root .maharaja-handoff-connect,
.maharaja-root .maharaja-handoff-cancel{
  appearance:none!important;-webkit-appearance:none!important;
  min-height:36px!important;margin:0!important;padding:0 11px!important;
  border-radius:11px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  font:700 10.5px/1 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  text-decoration:none!important;box-shadow:none!important;transform:none!important;cursor:pointer!important;
}
.maharaja-root .maharaja-resolve-yes{
  border:1px solid rgba(103,68,50,.13)!important;background:#fff!important;color:#6b4b3e!important;
}
.maharaja-root .maharaja-resolve-expert,
.maharaja-root .maharaja-handoff-connect{
  border:1px solid var(--m-red)!important;background:var(--m-red)!important;color:#fff!important;
}
.maharaja-root .maharaja-handoff-cancel{border:1px solid rgba(103,68,50,.13)!important;background:#fff!important;color:#6b4b3e!important}
.maharaja-root .maharaja-resolve-yes:hover,.maharaja-root .maharaja-resolve-yes:focus,
.maharaja-root .maharaja-handoff-cancel:hover,.maharaja-root .maharaja-handoff-cancel:focus{background:#fff4e4!important;color:#6b2a28!important;border-color:rgba(155,28,31,.2)!important}
.maharaja-root .maharaja-resolve-expert:hover,.maharaja-root .maharaja-resolve-expert:focus,
.maharaja-root .maharaja-handoff-connect:hover,.maharaja-root .maharaja-handoff-connect:focus{background:#86181b!important;color:#fff!important;border-color:#86181b!important}
.maharaja-root .maharaja-resolve-yes svg,.maharaja-root .maharaja-resolve-expert svg,.maharaja-root .maharaja-handoff-connect svg{width:14px;height:14px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.maharaja-root .maharaja-resolution.is-form{padding:12px;background:#fff}
.maharaja-root .maharaja-handoff-title{display:flex;align-items:center;gap:8px;margin-bottom:10px;color:#612522}
.maharaja-root .maharaja-handoff-title span{width:28px;height:28px;border-radius:9px;background:#eef9ef;color:#238b45;display:grid;place-items:center}
.maharaja-root .maharaja-handoff-title svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.maharaja-root .maharaja-handoff-title strong{font-size:11.5px}
.maharaja-root .maharaja-handoff-input{
  appearance:none!important;-webkit-appearance:none!important;display:block!important;width:100%!important;box-sizing:border-box!important;
  min-height:41px!important;margin:7px 0 0!important;padding:9px 11px!important;border:1px solid rgba(103,68,50,.16)!important;border-radius:11px!important;
  background:#fffdf9!important;color:#4f3d35!important;font:500 12px/1.35 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;box-shadow:none!important;
}
.maharaja-root .maharaja-handoff-input:focus{outline:2px solid rgba(155,28,31,.16)!important;outline-offset:1px!important;border-color:rgba(155,28,31,.35)!important}
.maharaja-root .maharaja-handoff-help{display:block;margin:5px 2px 8px;color:#987f72;font-size:9.5px}
.maharaja-root .maharaja-handoff-consent{display:flex;align-items:flex-start;gap:7px;margin:7px 0;color:#745d51;font-size:9.6px;line-height:1.45;cursor:pointer}
.maharaja-root .maharaja-handoff-consent input{margin:2px 0 0!important;width:15px!important;height:15px!important;accent-color:var(--m-red)}
.maharaja-root .maharaja-handoff-status{min-height:14px;margin:5px 0;color:#8e322f;font-size:9.7px;line-height:1.4}
.maharaja-root .maharaja-handoff-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:6px}
.maharaja-root .maharaja-handoff-actions button:disabled{opacity:.55!important;cursor:wait!important}
.maharaja-root .maharaja-handoff-success{display:flex;align-items:flex-start;gap:9px;color:#375e3d}
.maharaja-root .maharaja-handoff-success>span{width:31px;height:31px;border-radius:10px;background:#ecf8ee;display:grid;place-items:center;flex:0 0 31px}
.maharaja-root .maharaja-handoff-success svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.maharaja-root .maharaja-handoff-success strong{display:block;font-size:10.5px;line-height:1.45}
.maharaja-root .maharaja-handoff-success small{display:block;margin-top:4px;color:#829083;font-size:9px;letter-spacing:.03em}
.maharaja-root .maharaja-solved-note{color:#466848;font-size:10.5px;font-weight:700;line-height:1.45}
@media(max-width:480px){
  .maharaja-root .maharaja-resolution-actions{display:grid;grid-template-columns:1fr 1fr}
  .maharaja-root .maharaja-resolution-actions>button{width:100%!important;padding:0 8px!important}
  .maharaja-root .maharaja-handoff-input{font-size:16px!important}
  .maharaja-root .maharaja-handoff-actions{display:grid;grid-template-columns:.8fr 1.2fr}
  .maharaja-root .maharaja-handoff-actions>button{width:100%!important}
}

/* v1.8 two-way expert bridge */
.maharaja-root .maharaja-expert-tag{
  display:flex;align-items:center;gap:6px;margin:0 0 6px 2px;color:#7a5d4c;font-size:9.5px;line-height:1.2
}
.maharaja-root .maharaja-expert-tag>span{width:22px;height:22px;border-radius:8px;background:#edf8ef;color:#248b48;display:grid;place-items:center;flex:0 0 22px}
.maharaja-root .maharaja-expert-tag svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.maharaja-root .maharaja-expert-tag strong{font-size:9.5px;letter-spacing:.03em;text-transform:uppercase;color:#6b2a28}
.maharaja-root .maharaja-expert-tag em{font-style:normal;color:#9b7a67;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}
.maharaja-root .maharaja-message.is-expert-reply .maharaja-bubble{border-color:rgba(36,139,72,.2)!important;background:#fbfffb!important}
.maharaja-root .maharaja-handoff-success.is-connected{color:#2e6e40}
.maharaja-root .maharaja-handoff-inline-error{margin-top:8px;padding:8px 10px;border-radius:10px;background:#fff4f3;color:#8f2d2a;font-size:10px;line-height:1.45}
.maharaja-root.is-expert-mode .maharaja-input-shell{border-color:rgba(36,139,72,.25)!important;box-shadow:0 0 0 3px rgba(36,139,72,.05)!important}
.maharaja-root .maharaja-input:disabled{opacity:.72!important;cursor:wait!important;background:transparent!important;color:#8d7569!important;-webkit-text-fill-color:#8d7569!important}


/* v1.9 mascot update */
.maharaja-root .maharaja-message.assistant{gap:10px}
.maharaja-root .maharaja-message.assistant .maharaja-message-stack{max-width:calc(100% - 70px)}
@media(max-width:600px){
  .maharaja-root .maharaja-message-avatar{width:48px;height:104px;flex-basis:48px}
  .maharaja-root .maharaja-message.assistant .maharaja-message-stack{max-width:calc(100% - 56px)}
  .maharaja-root .maharaja-header-avatar{width:50px;height:50px;flex-basis:50px}
  .maharaja-root .maharaja-welcome-avatar{width:42px;height:52px}
}


/* v1.9.2 avatar fitting update */
@media(max-width:600px){
  .maharaja-root .maharaja-launcher-avatar{width:52px;height:52px;flex-basis:52px;padding:3px;border-radius:16px}
  .maharaja-root .maharaja-header-avatar{width:52px;height:52px;flex-basis:52px;padding:3px;border-radius:16px}
  .maharaja-root .maharaja-welcome-avatar{width:58px;height:68px;flex-basis:58px;padding:4px;border-radius:16px}
  .maharaja-root .maharaja-message-avatar{width:64px;height:96px;flex-basis:64px}
  .maharaja-root .maharaja-message.assistant .maharaja-message-stack{max-width:calc(100% - 74px)}
}
@media(max-width:390px){
  .maharaja-root .maharaja-welcome-avatar{width:54px;height:62px;flex-basis:54px}
  .maharaja-root .maharaja-message-avatar{width:58px;height:88px;flex-basis:58px}
}


/* v1.9.3 circular face avatar treatment */
.maharaja-root .maharaja-launcher-avatar,
.maharaja-root .maharaja-header-avatar,
.maharaja-root .maharaja-welcome-avatar{
  border-radius:50%!important;
  overflow:hidden!important;
  padding:0!important;
  background:#fff1cf!important;
  border:2px solid rgba(247,197,92,.92)!important;
  display:grid!important;
  place-items:center!important;
}
.maharaja-root .maharaja-launcher-avatar img,
.maharaja-root .maharaja-header-avatar img,
.maharaja-root .maharaja-welcome-avatar img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
  transform:scale(1.06)!important;
  transform-origin:center!important;
}
.maharaja-root .maharaja-launcher-avatar{width:56px!important;height:56px!important;flex-basis:56px!important}
.maharaja-root .maharaja-header-avatar{width:58px!important;height:58px!important;flex-basis:58px!important}
.maharaja-root .maharaja-welcome-avatar{width:56px!important;height:56px!important;flex-basis:56px!important}
@media(max-width:600px){
  .maharaja-root .maharaja-launcher-avatar{width:52px!important;height:52px!important;flex-basis:52px!important}
  .maharaja-root .maharaja-header-avatar{width:50px!important;height:50px!important;flex-basis:50px!important}
  .maharaja-root .maharaja-welcome-avatar{width:52px!important;height:52px!important;flex-basis:52px!important}
}

/* v2.1 compact standing Maharaja beside assistant replies */
.maharaja-root .maharaja-message-avatar{width:52px!important;height:78px!important;flex:0 0 52px!important;margin-top:3px!important}
.maharaja-root .maharaja-message.assistant .maharaja-message-stack{max-width:calc(100% - 61px)!important}
@media(max-width:600px){
  .maharaja-root .maharaja-message-avatar{width:40px!important;height:62px!important;flex-basis:40px!important}
  .maharaja-root .maharaja-message.assistant .maharaja-message-stack{max-width:calc(100% - 47px)!important}
}

/* v2.3 feedback escalation + live ARCASIA Team typing */
.maharaja-root .maharaja-resolve-no{
  appearance:none!important;-webkit-appearance:none!important;min-height:36px!important;margin:0!important;padding:0 11px!important;
  border:1px solid rgba(103,68,50,.13)!important;border-radius:11px!important;background:#fff!important;color:#6b4b3e!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  font:700 10.5px/1 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;cursor:pointer!important;
}
.maharaja-root .maharaja-resolve-no:hover,.maharaja-root .maharaja-resolve-no:focus{background:#fff4e4!important;color:#6b2a28!important;border-color:rgba(155,28,31,.2)!important}
.maharaja-root .maharaja-resolve-no svg{width:14px;height:14px;display:block}
.maharaja-root .maharaja-resolution-actions button:disabled{opacity:.58!important;cursor:wait!important}
.maharaja-root .maharaja-escalation-btn{margin-top:9px!important;width:100%!important}
.maharaja-root .maharaja-live-typing{display:flex!important;align-items:center!important;gap:4px!important;min-height:42px!important}
.maharaja-root .maharaja-live-typing>span{width:6px;height:6px;border-radius:50%;background:#a48979;animation:mTeamDot 1.05s infinite ease-in-out}
.maharaja-root .maharaja-live-typing>span:nth-child(2){animation-delay:.14s}.maharaja-root .maharaja-live-typing>span:nth-child(3){animation-delay:.28s}
.maharaja-root .maharaja-live-typing>em{font-style:normal;font-size:10px;color:#806b5f;margin-left:5px}
@keyframes mTeamDot{0%,65%,100%{transform:translateY(0);opacity:.38}32%{transform:translateY(-3px);opacity:1}}
.maharaja-root .maharaja-team-typing-row{margin-top:5px!important;margin-bottom:7px!important}
@media(max-width:480px){.maharaja-root .maharaja-resolution-actions{grid-template-columns:1fr 1fr}.maharaja-root .maharaja-escalation-btn{grid-column:1/-1}}


/* v2.3.1 compact sticky topics + solid chat header */
.maharaja-root .maharaja-chat-area{
  padding-top:0!important;
}
.maharaja-root .maharaja-conversation-nav{
  top:0!important;
  min-height:54px!important;
  margin:0 -14px 8px!important;
  padding:10px 14px 8px!important;
  background:#fffaf2!important;
  background-image:none!important;
  border-bottom:1px solid rgba(103,68,50,.08)!important;
  box-shadow:0 4px 12px rgba(76,39,26,.025)!important;
}
.maharaja-root .maharaja-conversation-nav[hidden] + .maharaja-welcome-card{
  margin-top:16px!important;
}
@media(max-width:780px){
  .maharaja-root .maharaja-conversation-nav{
    margin-left:-11px!important;
    margin-right:-11px!important;
    padding-left:11px!important;
    padding-right:11px!important;
    min-height:52px!important;
  }
  .maharaja-root .maharaja-conversation-nav[hidden] + .maharaja-welcome-card{
    margin-top:12px!important;
  }
}

/* v2.4 dedicated /chat-with-maharaja/ page */
.maharaja-dedicated-page{
  width:min(1180px,calc(100% - 32px));
  margin:34px auto 54px;
  display:grid;
  grid-template-columns:minmax(300px,.78fr) minmax(520px,1.35fr);
  gap:24px;
  align-items:stretch;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.maharaja-dedicated-intro{
  position:relative;min-height:720px;overflow:hidden;border-radius:30px;padding:38px 34px 30px;
  background:radial-gradient(circle at 85% 8%,rgba(250,189,63,.22),transparent 25%),linear-gradient(150deg,#751316 0%,#991b1f 58%,#5e1013 100%);
  color:#fff;border:1px solid rgba(255,212,125,.24);box-shadow:0 26px 70px rgba(77,16,17,.18)
}
.maharaja-dedicated-kicker{display:flex;align-items:center;gap:9px;font-size:11px;letter-spacing:.13em;text-transform:uppercase;font-weight:800;color:#f5d9a8}
.maharaja-dedicated-kicker span{width:8px;height:8px;border-radius:50%;background:#72d28d;box-shadow:0 0 0 4px rgba(114,210,141,.12)}
.maharaja-dedicated-intro h1{margin:18px 0 13px;font-family:Georgia,"Times New Roman",serif;font-size:43px;line-height:1.02;font-weight:600;color:#fff}
.maharaja-dedicated-intro h1 em{font-style:normal;color:#ffd88b}
.maharaja-dedicated-intro>p{max-width:420px;margin:0;color:#f4dfd4;font-size:15px;line-height:1.7}
.maharaja-dedicated-points{position:relative;z-index:2;margin-top:28px;display:grid;gap:10px;max-width:390px}
.maharaja-dedicated-points>div{display:flex;align-items:center;gap:12px;padding:12px 13px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.07);border-radius:16px;backdrop-filter:blur(4px)}
.maharaja-dedicated-points>div>span{width:36px;height:36px;flex:0 0 36px;border-radius:12px;background:rgba(255,221,153,.14);color:#ffd98e;display:grid;place-items:center}
.maharaja-dedicated-points svg{width:18px;height:18px}
.maharaja-dedicated-points strong{display:block;color:#fff;font-size:12px;line-height:1.25}
.maharaja-dedicated-points small{display:block;margin-top:3px;color:#e7c9bd;font-size:10.5px;line-height:1.4}
.maharaja-dedicated-mascot{position:absolute;right:-18px;bottom:-44px;width:230px;height:355px;pointer-events:none;opacity:.98}
.maharaja-dedicated-mascot img{width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 20px 24px rgba(34,4,6,.2))}
.maharaja-dedicated-chat-wrap{min-width:0}

.maharaja-root.maharaja-page-mode{
  position:relative!important;inset:auto!important;right:auto!important;left:auto!important;bottom:auto!important;
  width:100%!important;height:100%!important;z-index:1!important;display:block!important;
}
.maharaja-root.maharaja-page-mode .maharaja-panel{
  position:relative!important;inset:auto!important;right:auto!important;left:auto!important;bottom:auto!important;
  width:100%!important;height:720px!important;max-height:none!important;min-height:620px!important;
  border-radius:30px!important;overflow:hidden!important;transform:none!important;animation:none!important;
  box-shadow:0 26px 70px rgba(47,20,15,.14),0 2px 10px rgba(47,20,15,.05)!important;
}
.maharaja-root.maharaja-page-mode .maharaja-header{min-height:92px;padding:15px 18px 15px 19px}
.maharaja-root.maharaja-page-mode .maharaja-header-avatar{width:62px!important;height:62px!important;flex-basis:62px!important}
.maharaja-root.maharaja-page-mode .maharaja-header-copy strong{font-size:25px}
.maharaja-root.maharaja-page-mode .maharaja-header-copy span{font-size:9.5px}
.maharaja-root.maharaja-page-mode .maharaja-chat-area{padding-left:20px!important;padding-right:20px!important}
.maharaja-root.maharaja-page-mode .maharaja-conversation-nav{margin-left:-20px!important;margin-right:-20px!important;padding-left:20px!important;padding-right:20px!important}
.maharaja-root.maharaja-page-mode .maharaja-welcome-card{max-width:640px;margin-left:auto;margin-right:auto;padding:22px;border-radius:22px}
.maharaja-root.maharaja-page-mode .maharaja-welcome-text{font-size:14px;line-height:1.65}
.maharaja-root.maharaja-page-mode .maharaja-quick{gap:9px}
.maharaja-root.maharaja-page-mode .maharaja-quick-btn{min-height:54px;font-size:12px;border-radius:15px}
.maharaja-root.maharaja-page-mode .maharaja-messages{max-width:660px;margin:0 auto}
.maharaja-root.maharaja-page-mode .maharaja-bubble{font-size:14px;line-height:1.65}
.maharaja-root.maharaja-page-mode .maharaja-composer{padding:13px 17px 14px}
.maharaja-root.maharaja-page-mode .maharaja-input-shell{max-width:670px;margin:0 auto;padding:11px 11px 9px 15px;border-radius:22px}
.maharaja-root.maharaja-page-mode .maharaja-input{font-size:15px!important;min-height:45px!important}
.maharaja-root.maharaja-page-mode .maharaja-trustline{font-size:9.5px;margin-top:10px}
.maharaja-root.maharaja-page-mode .maharaja-typing{padding-left:max(24px,calc((100% - 660px)/2));padding-right:24px}

@media(max-width:900px){
  .maharaja-dedicated-page{grid-template-columns:1fr;width:min(760px,calc(100% - 24px));margin-top:22px;gap:16px}
  .maharaja-dedicated-intro{min-height:245px;padding:27px 26px 24px}
  .maharaja-dedicated-intro h1{font-size:34px;margin-top:13px}
  .maharaja-dedicated-intro>p{max-width:70%;font-size:13px;line-height:1.55}
  .maharaja-dedicated-points{display:flex;flex-wrap:wrap;max-width:72%;margin-top:17px;gap:7px}
  .maharaja-dedicated-points>div{padding:8px 10px;min-width:170px}
  .maharaja-dedicated-points>div>span{width:30px;height:30px;flex-basis:30px;border-radius:9px}
  .maharaja-dedicated-points small{display:none}
  .maharaja-dedicated-mascot{right:5px;bottom:-54px;width:160px;height:245px}
  .maharaja-root.maharaja-page-mode .maharaja-panel{height:700px!important;min-height:600px!important}
}

@media(max-width:600px){
  .maharaja-dedicated-page{display:block;width:100%;margin:0;padding:0;background:#fffaf2}
  .maharaja-dedicated-intro{display:none}
  .maharaja-dedicated-chat-wrap{width:100%}
  .maharaja-root.maharaja-page-mode{position:relative!important;width:100%!important;min-height:100dvh!important}
  .maharaja-root.maharaja-page-mode .maharaja-panel{
    position:relative!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
    width:100%!important;height:100dvh!important;min-height:620px!important;border-radius:0!important;border-left:0!important;border-right:0!important;box-shadow:none!important;
  }
  .maharaja-root.maharaja-page-mode .maharaja-header{min-height:76px;padding:10px 12px}
  .maharaja-root.maharaja-page-mode .maharaja-header-avatar{width:50px!important;height:50px!important;flex-basis:50px!important}
  .maharaja-root.maharaja-page-mode .maharaja-header-copy strong{font-size:21px}
  .maharaja-root.maharaja-page-mode .maharaja-chat-area{padding-left:11px!important;padding-right:11px!important}
  .maharaja-root.maharaja-page-mode .maharaja-conversation-nav{margin-left:-11px!important;margin-right:-11px!important;padding-left:11px!important;padding-right:11px!important}
  .maharaja-root.maharaja-page-mode .maharaja-welcome-card{padding:15px;margin-left:0;margin-right:0;border-radius:18px}
  .maharaja-root.maharaja-page-mode .maharaja-welcome-text{font-size:12.5px;line-height:1.55}
  .maharaja-root.maharaja-page-mode .maharaja-quick{grid-template-columns:1fr 1fr}
  .maharaja-root.maharaja-page-mode .maharaja-quick-btn{font-size:10.7px;min-height:48px;padding:8px}
  .maharaja-root.maharaja-page-mode .maharaja-messages{max-width:none}
  .maharaja-root.maharaja-page-mode .maharaja-bubble{font-size:13px;line-height:1.58}
  .maharaja-root.maharaja-page-mode .maharaja-composer{padding:8px 9px max(9px,env(safe-area-inset-bottom))}
  .maharaja-root.maharaja-page-mode .maharaja-input-shell{max-width:none;margin:0;padding:7px 8px 7px 11px;border-radius:18px}
  .maharaja-root.maharaja-page-mode .maharaja-input{font-size:16px!important;min-height:38px!important}
  .maharaja-root.maharaja-page-mode .maharaja-typing{padding-left:13px;padding-right:13px}
}

body.maharaja-chat-page{background:#f7f3ed}
body.maharaja-chat-page .maharaja-dedicated-template{width:100%;max-width:none;margin:0;padding:1px 0}


/* v2.7 dedicated chat mobile viewport fix */
@media(max-width:600px){
  html:has(body.maharaja-chat-page),body.maharaja-chat-page{overflow:hidden!important;overscroll-behavior:none!important}
  body.maharaja-chat-page .maharaja-dedicated-template{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100%!important;height:var(--m-page-mobile-height,100dvh)!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#fffaf2!important}
  body.maharaja-chat-page .maharaja-dedicated-page,body.maharaja-chat-page .maharaja-dedicated-chat-wrap,body.maharaja-chat-page .maharaja-root.maharaja-page-mode{width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
  body.maharaja-chat-page .maharaja-root.maharaja-page-mode .maharaja-panel{height:var(--m-page-mobile-height,100dvh)!important;min-height:0!important;max-height:none!important;display:flex!important;overflow:hidden!important}
  body.maharaja-chat-page .maharaja-root.maharaja-page-mode .maharaja-chat-area{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch}
  body.maharaja-chat-page .maharaja-root.maharaja-page-mode .maharaja-composer{flex:0 0 auto!important;position:relative!important;bottom:auto!important}
  body.maharaja-chat-page .maharaja-root.maharaja-page-mode .maharaja-header{flex:0 0 auto!important}
  body.maharaja-chat-page .maharaja-root.maharaja-page-mode .maharaja-typing{flex:0 0 auto!important}
}


/* v2.8.1 dedicated-page desktop document scrolling fix */
@media(min-width:601px){
  html:has(body.maharaja-chat-page),
  body.maharaja-chat-page{
    overflow-x:hidden!important;
    overflow-y:auto!important;
    height:auto!important;
    min-height:100%!important;
    max-height:none!important;
    overscroll-behavior-y:auto!important;
    position:static!important;
  }
  html.maharaja-page-lock:has(body.maharaja-chat-page),
  body.maharaja-chat-page.maharaja-page-lock{
    overflow-y:auto!important;
    height:auto!important;
    max-height:none!important;
    position:static!important;
  }
  body.maharaja-chat-page .maharaja-dedicated-template{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  body.maharaja-chat-page .maharaja-dedicated-page{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  body.maharaja-chat-page .maharaja-dedicated-chat-wrap,
  body.maharaja-chat-page .maharaja-root.maharaja-page-mode{
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }
  /* The chat itself keeps its own internal scrolling; only the outer document is unlocked. */
  body.maharaja-chat-page .maharaja-root.maharaja-page-mode .maharaja-panel{
    height:720px!important;
    min-height:620px!important;
    max-height:none!important;
    overflow:hidden!important;
  }
}
