.pdc-app {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 12px;
  min-height: 520px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.pdc-sidebar {
  border-right: 1px solid #eef2f7;
  background: #fafafa;
  display: flex;
  flex-direction: column;
}

.pdc-sidebar-header {
  padding: 12px;
  border-bottom: 1px solid #eef2f7;
}

.pdc-sessions {
  padding: 8px;
  overflow: auto;
}

.pdc-session-item {
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  margin-bottom: 8px;
  background: #fff;
}
.pdc-session-item.active {
  border-color: #2563eb;
  background: #eff6ff;
}

.pdc-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pdc-main-header {
  padding: 12px;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  gap: 10px;
  align-items: center;
}

.pdc-session-title {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.pdc-header-actions {
  display: flex;
  gap: 8px;
}

.pdc-messages {
  padding: 12px;
  overflow: auto;
  flex: 1;
}

.pdc-msg {
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}
.pdc-msg-user { background: #f8fafc; }
.pdc-msg-assistant { background: #fff; }

.pdc-msg-header {
  display:flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #475569;
}

.pdc-msg-actions button {
  margin-left: 6px;
}

.pdc-composer {
  padding: 12px;
  border-top: 1px solid #eef2f7;
  display: flex;
  gap: 10px;
}

#pdc-input {
  flex: 1;
  resize: vertical;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.pdc-btn {
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.pdc-btn:disabled { opacity: .5; cursor: not-allowed; }

.pdc-btn-secondary { background: #334155; }
.pdc-btn-danger { background: #b91c1c; }

.pdc-notice{
  padding: 12px;
  border: 1px solid #fee2e2;
  background: #fff1f2;
  border-radius: 10px;
}

.pdc-thinking{
  padding: 10px 12px;
  border-top: 1px solid #eef2f7;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
  background: #f8fafc;
}

.pdc-dots{
  display: inline-flex;
  gap: 4px;
}

.pdc-dots i{
  width: 6px;
  height: 6px;
  background: #2563eb;
  border-radius: 999px;
  display: inline-block;
  opacity: .3;
  animation: pdcDot 1s infinite ease-in-out;
}

.pdc-dots i:nth-child(2){ animation-delay: .15s; }
.pdc-dots i:nth-child(3){ animation-delay: .30s; }

@keyframes pdcDot{
  0%, 100% { transform: translateY(0); opacity: .3; }
  50% { transform: translateY(-4px); opacity: 1; }
}
.pdc-thinking[hidden] { display: none !important; }