.deepseek-zibll-layer {
  --deepseek-zibll-navy: #07172b;
  --deepseek-zibll-cyan: #21c7e8;
  --deepseek-zibll-pink: #f04494;
  --deepseek-zibll-muted: #64748b;
  --deepseek-zibll-border: rgba(148, 163, 184, 0.28);
  --deepseek-zibll-shadow: 0 22px 60px rgba(15, 23, 42, 0.26);
}

.deepseek-zibll-layer .float-btn.deepseek-zibll-float {
  --this-color: var(--deepseek-zibll-cyan);
  --this-bg: rgba(33, 199, 232, 0.14);
  align-items: center;
  background: var(--this-bg, rgba(33, 199, 232, 0.14));
  border: 1px solid rgba(33, 199, 232, 0.26);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  color: var(--this-color, #21c7e8);
  display: flex;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  position: fixed;
  right: 12px;
  bottom: 132px;
  text-decoration: none;
  width: 38px;
  z-index: 9999;
}

.deepseek-zibll-float-icon {
  font-size: 13px;
  line-height: 1;
}

.deepseek-zibll-drawer {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 100000;
}

.deepseek-zibll-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.deepseek-zibll-drawer__backdrop {
  background: rgba(7, 23, 43, 0.28);
  inset: 0;
  position: absolute;
}

.deepseek-zibll-drawer__panel {
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid var(--deepseek-zibll-border);
  box-shadow: var(--deepseek-zibll-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: min(420px, calc(100vw - 28px));
  padding: 18px;
  position: absolute;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform 220ms ease;
  width: 420px;
}

.deepseek-zibll-drawer.is-open .deepseek-zibll-drawer__panel {
  transform: translateX(0);
}

.deepseek-zibll-drawer__close {
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  font-size: 20px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
}

.deepseek-zibll-drawer__header {
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 44px 14px 0;
}

.deepseek-zibll-drawer__header strong {
  color: var(--deepseek-zibll-navy);
  font-size: 18px;
}

.deepseek-zibll-drawer__header span {
  color: var(--deepseek-zibll-muted);
  font-size: 13px;
}

.deepseek-zibll-drawer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 6px;
}

.deepseek-zibll-drawer__messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 10px 0 14px;
}

.deepseek-zibll-drawer__form {
  border-top: 1px solid #e2e8f0;
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.deepseek-zibll-drawer__input {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-sizing: border-box;
  color: #0f172a;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
  -webkit-text-fill-color: #0f172a;
  width: 100%;
}

.deepseek-zibll-drawer__input::placeholder {
  color: #64748b;
  opacity: 1;
  -webkit-text-fill-color: #64748b;
}

.deepseek-zibll-drawer__input:focus {
  background: #fff;
  border-color: var(--deepseek-zibll-cyan);
  box-shadow: 0 0 0 3px rgba(33, 199, 232, 0.16);
  color: #0f172a;
  outline: none;
  -webkit-text-fill-color: #0f172a;
}

.deepseek-zibll-drawer__input:disabled {
  background: #f8fafc;
  color: #334155;
  opacity: 1;
  -webkit-text-fill-color: #334155;
}

.deepseek-zibll-drawer__send {
  background: linear-gradient(135deg, var(--deepseek-zibll-cyan), #2aa8ff);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  min-height: 40px;
  padding: 0 16px;
}

.deepseek-zibll-summary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
  border: 1px solid rgba(33, 199, 232, 0.2);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  margin: 18px 0 22px;
  overflow: hidden;
  padding: 16px 18px;
  position: relative;
}

.deepseek-zibll-summary__topline {
  background: linear-gradient(90deg, var(--deepseek-zibll-cyan), var(--deepseek-zibll-pink));
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.deepseek-zibll-summary__label {
  color: var(--deepseek-zibll-navy);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}

.deepseek-zibll-summary__content {
  color: #334155;
  font-size: 15px;
  line-height: 1.75;
}

.deepseek-zibll-summary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.deepseek-zibll-summary__actions button,
.deepseek-zibll-chip {
  background: rgba(33, 199, 232, 0.1);
  border: 1px solid rgba(33, 199, 232, 0.24);
  border-radius: 999px;
  color: #075985;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  min-height: 32px;
  padding: 0 12px;
}

.deepseek-zibll-message {
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.65;
  max-width: 92%;
  padding: 10px 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.deepseek-zibll-message--user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--deepseek-zibll-cyan), #2aa8ff);
  color: #fff;
}

.deepseek-zibll-message--assistant {
  align-self: flex-start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1f2937;
}

.deepseek-zibll-selection {
  background: var(--deepseek-zibll-navy);
  border: 1px solid rgba(33, 199, 232, 0.32);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  min-height: 34px;
  padding: 0 12px;
  position: fixed;
  z-index: 100001;
}

@media (max-width: 768px) {
  .deepseek-zibll-drawer__panel {
    border-left: 0;
    border-radius: 14px 14px 0 0;
    bottom: 0;
    height: min(78vh, 680px);
    max-width: none;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    top: auto;
    transform: translateY(100%);
    width: 100%;
  }

  .deepseek-zibll-drawer.is-open .deepseek-zibll-drawer__panel {
    transform: translateY(0);
  }
}
