.assistant-empty-page {
  min-height: calc(100vh - 140px);
}

.assistant-bubble-shell {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
}

.assistant-bubble-toggle {
  width: 60px;
  height: 60px;
  padding: 0;
  border: 1px solid #153249;
  border-radius: 0;
  background: #0d2436;
  color: white;
  box-shadow: 0 10px 24px rgba(4, 23, 43, 0.22);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.assistant-bubble-toggle:hover {
  background-color: #14354d;
  box-shadow: 0 14px 28px rgba(4, 23, 43, 0.26);
}

.assistant-bubble-toggle-icon {
  font-size: 24px;
}

.assistant-bubble-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(400px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 120px));
  display: none;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #d7e0ea;
  border-radius: 0;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.assistant-bubble-shell.open .assistant-bubble-panel {
  display: flex;
}

.assistant-bubble-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e5ebf1;
  background: #f7fafc;
}

.assistant-bubble-header-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.assistant-bubble-kicker {
  display: block;
  color: #6b7485;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assistant-bubble-title {
  display: block;
  color: #112033;
  font-size: 15px;
  margin-top: 0;
}

.assistant-bubble-close {
  width: 34px;
  height: 34px;
  border: 1px solid #d7e0ea;
  border-radius: 0;
  background-color: #ffffff;
  color: #172033;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.assistant-bubble-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #ffffff;
}

.assistant-bubble-empty {
  min-height: 180px;
  border: 1px dashed #d6deea;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.55rem;
  text-align: center;
  color: #6b7485;
  padding: 1.2rem;
  background-color: #fafcfe;
}

.assistant-bubble-empty strong {
  color: #112033;
  font-size: 15px;
}

.assistant-bubble-empty span {
  max-width: 280px;
  line-height: 1.45;
  font-size: 13px;
}

.assistant-bubble-message {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 85%;
}

.assistant-bubble-message.user {
  align-self: flex-end;
}

.assistant-bubble-message.assistant {
  align-self: flex-start;
}

.assistant-bubble-role {
  color: #6b7485;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.assistant-bubble-content {
  border-radius: 0;
  padding: 0.85rem 1rem;
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 14px;
  box-shadow: none;
  border: 1px solid #dde5ee;
}

.assistant-bubble-message.user .assistant-bubble-content {
  background: #14354d;
  border-color: #14354d;
  color: white;
}

.assistant-bubble-message.assistant .assistant-bubble-content {
  background-color: #ffffff;
  color: #172033;
}

.assistant-bubble-composer {
  padding: 1rem;
  border-top: 1px solid #e5ebf1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #f7fafc;
}

.assistant-bubble-composer textarea {
  width: 100%;
  min-height: 116px;
  border: 1px solid #ced8e4;
  border-radius: 0;
  padding: 0.95rem 1rem;
  resize: none;
  font-family: inherit;
  line-height: 1.45;
  background-color: #ffffff;
}

.assistant-bubble-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.assistant-bubble-actions button {
  border: 1px solid #d0dae6;
  border-radius: 0;
  padding: 0.85rem 1rem;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.assistant-bubble-reset {
  background-color: #eef3f8;
  color: #172033;
}

.assistant-bubble-send {
  background: #14354d;
  border-color: #14354d;
  color: white;
}

.assistant-bubble-actions button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.assistant-bubble-status {
  color: #5f6c80;
  font-size: 12px;
}

@media (max-width: 768px) {
  .assistant-bubble-shell {
    right: 16px;
    left: 16px;
    bottom: 16px;
  }

  .assistant-bubble-toggle {
    margin-left: auto;
  }

  .assistant-bubble-panel {
    right: 0;
    width: 100%;
    height: min(560px, calc(100vh - 96px));
  }
}
