.dcp {
  --dcp-w: 320px;
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: var(--dcp-w);
  max-width: 100vw;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 0.8125rem;
  line-height: 1.45;
  box-shadow: -8px 0 28px rgb(16 35 55 / 8%);
  transform: translateX(0);
  transition: transform 200ms ease;
}
.dcp[data-open="false"] { transform: translateX(100%); visibility: hidden; transition: transform 200ms ease, visibility 0s 200ms; }
.dcp-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--navy-deep); color: var(--white); }
.dcp-title { flex: 1; margin: 0; color: var(--white); font-size: 0.9rem; letter-spacing: 0; }
.dcp-btn {
  min-height: 34px; padding: 4px 10px; border: 1px solid var(--accent); border-radius: 6px;
  background: transparent; color: inherit; cursor: pointer; font-size: 0.8125rem; font-weight: 650;
}
.dcp-head .dcp-btn { border-color: rgb(255 255 255 / 50%); color: var(--white); }
.dcp-btn:hover:not(:disabled) { background: var(--accent-pale); color: var(--navy-deep); }
.dcp-btn:disabled { opacity: 0.55; cursor: default; }
.dcp-status { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px; border-bottom: 1px solid var(--line); font-weight: 700; }
.dcp-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--muted); }
.dcp[data-state="connected"] .dcp-dot { background: var(--accent); }
.dcp[data-state="loading"] .dcp-dot { background: var(--warm); animation: dcp-pulse 1s ease-in-out infinite alternate; }
.dcp[data-state="error"] .dcp-dot, .dcp[data-state="stale"] .dcp-dot { background: #c2410c; }
.dcp[data-state="error"] .dcp-status, .dcp[data-state="stale"] .dcp-status { background: #fdf0e3; color: #7c2d12; }
@keyframes dcp-pulse { from { opacity: 0.35; } to { opacity: 1; } }
.dcp-body { flex: 1; overflow-y: auto; padding: 12px 14px 18px; }
.dcp-note { margin: 0 0 8px; color: var(--muted); }
.dcp-scope { margin: 0 0 10px; padding: 6px 8px; border-radius: 6px; background: var(--accent-pale); color: var(--navy); font-weight: 650; }
.dcp-meta { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0 0 12px; }
.dcp-meta dt { color: var(--muted); }
.dcp-meta dd { margin: 0; overflow-wrap: anywhere; }
.dcp-sub { margin: 14px 0 6px; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-dark); }
.dcp-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.dcp-item { padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.dcp-item-top { display: flex; justify-content: space-between; gap: 8px; }
.dcp-type { font-weight: 750; color: var(--navy); }
.dcp-time { color: var(--muted); white-space: nowrap; }
.dcp-path { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.75rem; color: var(--navy-soft); }
.dcp-empty { padding: 10px 0; color: var(--navy-soft); }
.dcp-skel { height: 44px; margin-bottom: 6px; border-radius: 6px; background: var(--line); animation: dcp-pulse 1s ease-in-out infinite alternate; }
@media (min-width: 1100px) {
  body.dcp-open { padding-right: 320px; transition: padding-right 200ms ease; }
}
@media (max-width: 1099px) {
  .dcp {
    top: auto;
    right: 12px;
    bottom: 12px;
    width: min(420px, calc(100vw - 24px));
    height: min(62dvh, 480px);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .dcp[data-open="false"] { transform: translateY(calc(100% + 16px)); }
}
@media (max-width: 520px) {
  .dcp {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    height: min(52dvh, 360px);
  }
  .dcp[data-open="false"] { transform: translateY(calc(100% + 12px)); }
}
@media (prefers-reduced-motion: reduce) { .dcp, body.dcp-open { transition: none; } .dcp-dot, .dcp-skel { animation: none; } }
