/* GGTime Hermes design system (2026-10-19).
   Kelvin-style minimal white interface; GGTime blue brand tokens.
   Only the embedded Hermes widget is affected. */
.hermes-widget-btn{
  width:56px!important;height:56px!important;right:20px!important;bottom:22px!important;
  background:#fff!important;border:2px solid #80b9db!important;border-radius:50%!important;
  box-shadow:0 7px 23px rgba(28,80,113,.18)!important;overflow:hidden!important;
  transition:transform .2s ease,box-shadow .2s ease!important;
}
.hermes-widget-btn:hover{transform:translateY(-2px) scale(1.03)!important;box-shadow:0 10px 28px rgba(28,80,113,.23)!important}
.hermes-widget-btn img{width:100%!important;height:100%!important;object-fit:contain!important;background:#fff!important;padding:4px!important}
.hermes-widget-container{
  right:20px!important;bottom:94px!important;
  width:min(390px,calc(100vw - 24px))!important;
  height:min(580px,calc(100dvh - 115px))!important;
  max-height:calc(100dvh - 115px)!important;
  border:1px solid #dfebf2!important;border-radius:18px!important;
  background:#fff!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  box-shadow:0 18px 54px rgba(26,63,88,.2)!important;isolation:isolate;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
}
.hermes-header{
  min-height:72px!important;padding:13px 16px!important;flex:0 0 auto!important;
  background:#f3f8fc!important;color:#304d60!important;border-bottom:1px solid #e1ecf3!important
}
.hermes-header-title{gap:10px!important;min-width:0}
.hermes-header-title>div:nth-child(2){min-width:0!important}
.hermes-header-title>div:nth-child(2)>div:first-child{color:#29475b!important;font-size:15px!important;font-weight:700!important;line-height:1.4!important}
.hermes-avatar{
  width:42px!important;height:42px!important;flex:0 0 42px!important;
  background:#fff!important;border:1px solid #cce0ed!important;border-radius:50%!important;
  padding:3px!important;box-shadow:0 2px 7px rgba(42,100,139,.09)!important;
}
.hermes-avatar img{object-fit:contain!important}
.hermes-status{color:#738d9e!important;font-size:11px!important;line-height:1.5!important}
.hermes-status-dot{background:#43aa7c!important;box-shadow:0 0 0 3px rgba(67,170,124,.13)!important}
.hermes-close{width:36px!important;height:36px!important;border-radius:50%!important;display:flex;align-items:center;justify-content:center}
.hermes-close:hover{background:rgba(51,127,175,.09)!important}
.hermes-close svg{stroke:#668294!important}
.hermes-messages{
  min-height:0!important;flex:1 1 auto!important;padding:15px!important;gap:12px!important;
  background:linear-gradient(#f9fbfd,#fff)!important;overscroll-behavior:contain;
}
.hermes-message{
  max-width:88%!important;padding:11px 13px!important;border-radius:14px!important;
  font-size:13px!important;line-height:1.65!important;font-weight:400!important;
  overflow-wrap:anywhere!important;word-break:normal!important;white-space:pre-wrap!important
}
.hermes-message.bot{background:#fff!important;color:#354e60!important;border:1px solid #e5ecf1!important;border-bottom-left-radius:5px!important;box-shadow:0 1px 5px rgba(25,50,70,.04)!important}
.hermes-message.user{background:#287eac!important;color:#fff!important;border:0!important;border-bottom-right-radius:5px!important}
.hermes-message.bot a{color:#267eaf!important;overflow-wrap:anywhere}
.hermes-input-area{
  min-height:65px!important;flex:0 0 auto!important;padding:10px 12px!important;gap:9px!important;
  border-top:1px solid #e4edf2!important;background:#fff!important
}
.hermes-input{
  height:44px!important;min-height:44px!important;min-width:0!important;
  padding:10px 12px!important;background:#f8fafc!important;
  border:1px solid #dce7ef!important;border-radius:12px!important;
  color:#2b4559!important;font-size:14px!important;box-shadow:none!important
}
.hermes-input:focus{border-color:#7db5d4!important;box-shadow:0 0 0 2px #dceef9!important}
.hermes-send-btn{
  width:44px!important;height:44px!important;min-width:44px!important;flex:0 0 44px!important;
  border:0!important;border-radius:12px!important;background:#287eac!important;
  position:relative!important;box-shadow:none!important
}
.hermes-send-btn:hover{background:#1c6e9b!important}
.hermes-send-btn svg{display:none!important}
.hermes-send-btn::after{content:"➤"!important;color:#fff!important;display:block!important;font-size:19px!important;font-weight:600!important;line-height:1!important;transform:rotate(-28deg)!important}
body:has(.hermes-widget-container.open) .hermes-widget-btn{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
.hermes-widget-btn:focus-visible,.hermes-close:focus-visible,.hermes-send-btn:focus-visible{outline:3px solid #89b9d8!important;outline-offset:3px!important}
@media(max-width:767px){
  .hermes-widget-btn{right:13px!important;bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;width:54px!important;height:54px!important}
  .hermes-widget-container{
    left:10px!important;right:10px!important;bottom:calc(82px + env(safe-area-inset-bottom,0px))!important;
    width:auto!important;height:min(540px,calc(100dvh - 128px - env(safe-area-inset-bottom,0px)))!important;
    max-height:calc(100dvh - 128px - env(safe-area-inset-bottom,0px))!important;
    border-radius:18px!important
  }
  .hermes-header{min-height:66px!important;padding:11px 14px!important}
  .hermes-avatar{width:38px!important;height:38px!important;flex-basis:38px!important}
  .hermes-messages{padding:13px!important}
  .hermes-message{max-width:91%!important}
  .hermes-input{font-size:16px!important}
}
@media(max-height:520px) {
  .hermes-widget-container{height:calc(100dvh - 108px)!important;max-height:calc(100dvh - 108px)!important}
}
@media(prefers-reduced-motion:reduce) {
  .hermes-widget-btn,.hermes-widget-container{transition:none!important}
}
