/* Wire dock — the live signal stream. */

#wireDock {
  flex: 0 0 200px;
  display: flex; flex-direction: column;
  background: #14111b;
  border-top: 1px solid #241e30;
  color: #e9e3d8;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  transition: flex-basis .15s ease;
}
#wireDock.wd-collapsed { flex: 0 0 auto; cursor: pointer; }
#wireDock.wd-collapsed .wd-body { display: none; }
#wireDock.wd-collapsed .wd-toggle { display: none; }

.wd-head {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px;
  background: #1a1424;
  border-bottom: 1px solid #2a2336;
  font-size: 11px;
  color: #9c93a6;
}
.wd-head b { color: #e9e3d8; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.wd-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #a9e5c2; box-shadow: 0 0 8px rgba(169,229,194,.8);
  animation: wdPulse 1.4s ease-in-out infinite;
}
@keyframes wdPulse {
  0%,100% { opacity: .55; transform: scale(.85); }
  50%     { opacity: 1;   transform: scale(1.1); }
}
.wd-counts { color: #c7b5ff; }
.wd-counts span { color: #f3eee6; font-weight: 600; }
.wd-spacer { flex: 1; }
.wd-toggle { color: #9c93a6; display: inline-flex; gap: 5px; align-items: center; }
.wd-toggle input { transform: translateY(1px); }

.wd-toggle-btn {
  border: 1px solid #2a2336; background: #0d0a13; color: #c7b5ff;
  width: 24px; height: 22px; border-radius: 6px;
  font-size: 11px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
}
.wd-toggle-btn:hover { background: #1c1726; }

.wd-unread {
  display: none;
  align-items: center; gap: 6px;
  color: #ffce6b; font-weight: 600; font-size: 10.5px;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255,206,107,0.10);
  border: 1px solid rgba(255,206,107,0.30);
}
.wd-unread.on { display: inline-flex; }
.wd-unread-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ffce6b; box-shadow: 0 0 6px rgba(255,206,107,0.7);
  animation: wdPulse 1.2s ease-in-out infinite;
}

.wd-body {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column-reverse;
  padding: 4px 0;
}
.wd-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 3px 14px;
  border-bottom: 1px solid #1d1828;
}
.wd-row.sim { opacity: .55; }
.wd-time     { color: #5b4f78; flex: 0 0 64px; }
.wd-dot      { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; }
.wd-dot.cap  { background: #a9e5c2; }
.wd-dot.raw  { background: #4a4060; }
.wd-surface  { color: #c7b5ff; }
.wd-verb     { color: #e9e3d8; }
.wd-props    {
  color: #9c93a6; flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wd-visitor  { color: #5b4f78; }

/* On phones the dock's fixed 200px row eats nearly half the viewport
 * (and pushes useful panel content above the fold). Shrink to a
 * thinner default; the user can still expand via the toggle. */
@media (max-width: 640px) {
  #wireDock { flex: 0 0 140px; }
  .wd-row { padding: 3px 10px; gap: 8px; }
  .wd-time { flex: 0 0 56px; }
}
