

.d5dog{
  --d5dog-w: 300px;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1045;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  line-height: 1.5;
}.d5dog-btn{
  position: relative;
  display: block;
  width: 76px;
  height: 76px;
  padding: 0;
  margin-left: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  overflow: visible;
  filter: drop-shadow(2px 3px 0 rgba(0,0,0,.30));
  transition: transform .12s ease, filter .12s ease;
}
.d5dog-btn:hover{
  transform: translate(-2px,-3px);
  filter: drop-shadow(4px 6px 0 rgba(0,0,0,.34));
}
.d5dog-btn:active{
  transform: translate(1px,1px);
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,.28));
}
.d5dog-btn img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.d5dog-btn:focus-visible{
  outline: 3px solid #000;
  outline-offset: 5px;
}
.d5dog-btn.is-barking{ animation: d5dog-bark .42s ease; }
@keyframes d5dog-bark{
  0%{ transform: scale(1) }
  22%{ transform: scale(1.1) rotate(-2deg) }
  55%{ transform: scale(.96) rotate(1.5deg) }
  100%{ transform: scale(1) }
}
.d5dog-panel{
  position: absolute;
  right: 0;
  bottom: 88px;
  width: min(var(--d5dog-w), calc(100vw - 32px));
  background: #fff;
  border: 2px solid #000;
  box-shadow: 6px 6px 0 rgba(0,0,0,.18);
  display: none;
  flex-direction: column;
  max-height: min(460px, calc(100vh - 130px));
}
.d5dog.is-open .d5dog-panel{ display: flex; }

.d5dog-head{
  background: #000;
  color: #fff;
  padding: .6rem .7rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 0 0 auto;
}
.d5dog-head strong{
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.d5dog-head .d5dog-status{
  margin-left: auto;
  font-size: .58rem;
  letter-spacing: .1em;
  opacity: .65;
  text-transform: uppercase;
}
.d5dog-close{
  background: none;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  width: 20px; height: 20px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}
.d5dog-close:hover{ background: #fff; color: #000; }

.d5dog-log{
  flex: 1 1 auto;
  overflow-y: auto;
  padding: .7rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-height: 90px;
}

.d5dog-msg{
  border: 1px solid #000;
  padding: .45rem .55rem;
  max-width: 92%;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
}
.d5dog-msg.d5dog-them{ background: #f2f2f2; }
.d5dog-msg.d5dog-me{
  background: #000;
  color: #fff;
  align-self: flex-end;
  max-width: 88%;
}
.d5dog-msg a{ text-decoration: underline; }
.d5dog-opts{
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 0 .7rem .7rem;
}
.d5dog-opt{
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: 0;
  padding: .45rem .55rem;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .1s linear, color .1s linear;
}
.d5dog-opt:hover{ background: #000; color: #fff; }
.d5dog-opt:focus-visible{ outline: 2px solid #000; outline-offset: 2px; }
.d5dog-form{
  display: flex;
  gap: 0;
  border-top: 1px solid #000;
  flex: 0 0 auto;
}
.d5dog-form input{
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: .5rem .6rem;
  font-family: inherit;
  font-size: 12px;
  background: #fff;
  color: #000;
}
.d5dog-form input:focus{ outline: 2px solid #000; outline-offset: -2px; }
.d5dog-form button{
  flex: 0 0 auto;
  background: #000;
  color: #fff;
  border: 0;
  border-left: 1px solid #000;
  padding: 0 .7rem;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.d5dog-form button:hover{ background: #fff; color: #000; }
.d5dog-foot{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .7rem;
  border-top: 1px solid #000;
  background: #fafafa;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.d5dog-foot label{ display: flex; align-items: center; gap: .3rem; cursor: pointer; margin: 0; }
.d5dog-foot .d5dog-hint{ margin-left: auto; opacity: .5; }

@media (max-width: 420px){
  .d5dog{ right: 12px; bottom: 12px; }
  .d5dog-btn{ width: 64px; height: 64px; }
  .d5dog-panel{ bottom: 76px; }
}

@media (prefers-reduced-motion: reduce){
  .d5dog-btn,
  .d5dog-btn.is-barking{ transition: none; animation: none; }
}
.d5dog-msg.is-pending{
  opacity:.55;
  font-style:italic;
}
.d5dog-msg.is-pending::after{
  content:'';
  display:inline-block;
  width:.5em;
  animation:d5bot-blink 1s steps(2,start) infinite;
}
@keyframes d5dog-blink{to{opacity:0}}
