/* tribeDock (SHELL-5) — scoped entirely under .tcdock-*/#tcdock-* selectors,
 * matching center-pane.css's/right-rail.css's own scoping discipline
 * (SPEC-fragment-contract-v1 §2: no page-global selectors). */

#tc-dock-root {
  position: relative;
  z-index: 200;
}

.tcdock-window {
  display: flex;
  flex-direction: column;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  min-width: 240px;
  min-height: 160px;
}

.tcdock-window-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: grab;
  touch-action: none;
}

.tcdock-window-title {
  flex: 1 1 auto;
  font-size: 12px;
  font-weight: 600;
  color: #e4e4e7;
}

.tcdock-lights {
  display: flex;
  gap: 6px;
}

.tcdock-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
}

.tcdock-light-red { background: #ff5f57; }
.tcdock-light-yellow { background: #febc2e; }
.tcdock-light-green { background: #28c840; }
.tcdock-light:hover { filter: brightness(1.15); }

.tcdock-notes-textarea {
  flex: 1 1 auto;
  resize: none;
  border: none;
  outline: none;
  background: #101012;
  color: #ededed;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
}

/* Bottom hover-reveal dock bar — hidden until the cursor nears the bottom
 * edge (doc milestone 5); a mid-drag panel force-reveals it via
 * .is-revealed too, so a drop target is visible before the cursor
 * technically "arrives". */
.tcdock-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  transform: translateY(100%);
  transition: transform 0.18s ease;
  z-index: 300;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.tcdock-bar.is-revealed {
  transform: translateY(0);
  pointer-events: auto;
}

.tcdock-bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: rgba(24, 24, 27, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.5);
}

.tcdock-launcher,
.tcdock-chip {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tcdock-launcher:hover,
.tcdock-chip:hover {
  background: rgba(255, 122, 41, 0.12);
  border-color: rgba(255, 122, 41, 0.4);
}

.tcdock-toast {
  position: absolute;
  bottom: 64px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f4f5;
  font-size: 12px;
  white-space: nowrap;
}

.tc-cp-dock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #febc2e;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.tc-cp-dock-btn:hover {
  color: #fff;
  border-color: rgba(255, 122, 41, 0.4);
  background: rgba(255, 122, 41, 0.08);
}
