:root{
  --ad-bg:#0b0b0f;
  --ad-panel:#15151c;
  --ad-card:#22222c;
  --ad-text:#ffffff;
  --ad-muted:#b8b8c7;
  --ad-border:rgba(255,255,255,.12);
  --ad-shadow:0 18px 60px rgba(0,0,0,.38);
}
#dodong-daga-chatbot,
#dodong-daga-chatbot *{
  box-sizing:border-box;
  font-family:Arial,Helvetica,sans-serif;
}
#dodong-daga-chatbot{
  position:fixed!important;
  right:20px!important;
  bottom:20px!important;
  z-index:2147483647!important;
  pointer-events:auto!important;
}
.dd-toggle{
  width:68px;
  height:68px;
  padding:0;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.18);
  background:#111;
  box-shadow:var(--ad-shadow);
  cursor:pointer;
  overflow:hidden;
  display:block!important;
  pointer-events:auto!important;
}
.dd-toggle img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.dd-window{
  position:absolute;
  right:0;
  bottom:84px;
  width:min(470px,calc(100vw - 34px));
  height:min(760px,calc(100vh - 120px));
  background:var(--ad-panel);
  color:var(--ad-text);
  border:1px solid var(--ad-border);
  border-radius:20px;
  box-shadow:var(--ad-shadow);
  overflow:hidden;
  display:none;
  flex-direction:column;
  pointer-events:auto!important;
}
.dd-window.open{display:flex}
.dd-header{
  padding:16px;
  background:linear-gradient(135deg,#111 0%,#252532 100%);
  border-bottom:1px solid var(--ad-border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.dd-title{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.dd-avatar{
  width:44px;
  height:44px;
  border-radius:999px;
  overflow:hidden;
  border:2px solid rgba(255,255,255,.18);
  flex:0 0 auto;
}
.dd-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.dd-title strong{
  display:block;
  font-size:15px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.dd-title span{
  display:block;
  font-size:12px;
  color:var(--ad-muted);
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.dd-close{
  background:transparent;
  color:var(--ad-text);
  border:none;
  font-size:24px;
  cursor:pointer;
  line-height:1;
  opacity:.85;
}
.dd-messages{
  flex:1;
  overflow-y:auto;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  scroll-behavior:smooth;
}
.dd-message{
  max-width:92%;
  padding:11px 13px;
  border-radius:15px;
  line-height:1.42;
  font-size:14px;
  white-space:pre-wrap;
  word-break:break-word;
}
.dd-message.bot{
  align-self:flex-start;
  background:var(--ad-card);
  color:var(--ad-text);
  border-top-left-radius:5px;
}
.dd-message.user{
  align-self:flex-end;
  background:var(--ad-text);
  color:var(--ad-bg);
  border-top-right-radius:5px;
}
.dd-message.typing{
  color:var(--ad-muted);
  font-style:italic;
}
.dd-actions{
  padding:0 16px 12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.dd-chip{
  border:1px solid var(--ad-border);
  background:transparent;
  color:var(--ad-text);
  border-radius:999px;
  padding:8px 10px;
  font-size:12px;
  cursor:pointer;
}
.dd-chip:hover{background:rgba(255,255,255,.08)}
.dd-form{
  border-top:1px solid var(--ad-border);
  padding:12px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:8px;
  background:#101016;
}
.dd-file-btn,
.dd-send{
  border:none;
  border-radius:12px;
  padding:0 13px;
  background:var(--ad-text);
  color:var(--ad-bg);
  font-weight:800;
  cursor:pointer;
  min-height:44px;
}
.dd-file-btn{font-size:18px}
.dd-input{
  border:1px solid var(--ad-border);
  outline:none;
  border-radius:12px;
  padding:12px;
  background:#08080c;
  color:var(--ad-text);
  font-size:14px;
  min-width:0;
}
.dd-input::placeholder{color:#858596}
.dd-file-input{display:none}
.dd-note{
  grid-column:1/-1;
  font-size:11px;
  color:var(--ad-muted);
  padding:2px 2px 0;
}
.dd-img-preview{
  max-width:230px;
  max-height:170px;
  border-radius:12px;
  border:1px solid var(--ad-border);
  object-fit:cover;
  margin-top:6px;
}
@media(max-width:460px){
  #dodong-daga-chatbot{
    right:12px!important;
    bottom:12px!important;
  }
  .dd-window{
    right:-4px;
    bottom:76px;
    width:calc(100vw - 24px);
    height:min(760px,calc(100vh - 100px));
  }
}