/* Ask Boss demo drawer styles. Layout values measured from the real panel; written new. */
.ab-wrap {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
}
.ab-wrap.on {
  display: block;
}
.ab-back {
  position: absolute;
  inset: 0;
  background: var(--scrim);
}
.ab {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100%;
  background: var(--card);
  color: var(--text);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  border-left: 1px solid var(--hair);
}
.ab-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--side);
  color: #f5f5f5;
}
.ab-head > div:first-child {
  flex: 1;
  min-width: 0;
}
.ab-t {
  font-size: 15px;
  font-weight: 600;
}
.ab-s {
  font-size: 11.5px;
  color: rgba(245, 245, 245, 0.62);
  line-height: 1.3;
  margin-top: 1px;
}
.ab-head .btn-ghost {
  color: rgba(245, 245, 245, 0.85);
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
}
.ab-head .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.ab-log {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ab-msg {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.ab-msg.m {
  justify-content: flex-end;
}
.ab-av {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--side);
  color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
.ab-bub {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--sunk);
  border: 1px solid var(--hair);
  font-size: 14px;
  line-height: 1.5;
}
.ab-msg.m .ab-bub {
  background: var(--btn);
  color: var(--btn-t);
  border-color: var(--btn);
}
.ab-bub b {
  font-weight: 600;
}
.ab-dots {
  display: flex;
  gap: 4px;
  padding: 14px 13px;
}
.ab-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--faint);
  animation: ab-blink 1.1s infinite;
}
.ab-dots i:nth-child(2) {
  animation-delay: 0.16s;
}
.ab-dots i:nth-child(3) {
  animation-delay: 0.32s;
}
@keyframes ab-blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}
.ab-src {
  margin-top: 9px;
  border-top: 1px solid var(--hair);
  padding-top: 7px;
}
.ab-src > summary {
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  list-style: none;
}
.ab-src > summary::-webkit-details-marker {
  display: none;
}
.ab-src > summary::before {
  content: '\25B8  ';
}
.ab-src[open] > summary::before {
  content: '\25BE  ';
}
.ab-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.ab-chip {
  border: 1px solid var(--hair);
  background: var(--card);
  color: var(--info-fg);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12.5px;
  line-height: 1.3;
  text-align: left;
}
.ab-chip:hover {
  background: var(--info-bg);
  border-color: var(--accent);
}
.ab-chip.q {
  color: var(--text);
}
@media (pointer: coarse) {
  .ab-chip {
    min-height: 44px;
    padding: 8px 14px;
    max-width: 100%;
  }
  .ab-chips {
    gap: 8px;
  }
}
.ab-nl {
  flex: 0 0 100%;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ab-next {
  margin-top: 9px;
}
.ab-more {
  padding: 4px 0 0 37px;
}
.ab-more > summary {
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ab-ex {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 0 0 0 37px;
}
.ab-in {
  display: flex;
  gap: 8px;
  padding: 14px 18px 6px;
  border-top: 1px solid var(--hair);
  background: var(--card);
}
.ab-in input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--input);
  border-radius: 8px;
  background: var(--card);
  font-size: 14px;
}
.ab-in input:focus {
  outline: none;
  border-color: var(--accent);
}
.ab-note {
  padding: 0 18px 14px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
  background: var(--card);
}
@media (max-width: 768px) {
  .ab-wrap {
    height: 100vh;
    height: 100dvh;
  }
  .ab {
    width: 100%;
    border-left: 0;
    height: 100%;
    max-height: 100%;
  }
  .ab-head {
    flex: none;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px 16px;
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .ab-head .btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0 14px;
  }
  .ab-s {
    overflow-wrap: anywhere;
  }
  .ab-more > summary {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .ab-log {
    -webkit-overflow-scrolling: touch;
    padding: 14px;
    min-height: 0;
  }
  .ab-bub {
    max-width: 92%;
    overflow-wrap: anywhere;
  }
  .ab-src > summary {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .ab-chips {
    gap: 8px;
  }
  .ab-chip {
    min-height: 44px;
    padding: 8px 14px;
    max-width: 100%;
  }
  .ab-ex {
    padding-left: 0;
  }
  .ab-in {
    flex: none;
    padding: 10px 14px 6px;
    gap: 8px;
  }
  .ab-in input {
    height: 44px;
    font-size: 16px;
  }
  .ab-in .btn {
    min-height: 44px;
    min-width: 64px;
  }
  .ab-note {
    flex: none;
    padding: 0 14px calc(10px + env(safe-area-inset-bottom));
  }
}
