/* Same-HQ Val-Chat dock — ValARC session on Comms Chat */

.hub-ms-root {
  position: fixed;
  right: 24px;
  bottom: 72px;
  z-index: 12010;
  width: min(420px, calc(100vw - 48px));
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: #1c1c1b;
  color: #e7e5e4;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.hub-ms-root[hidden] {
  display: none !important;
}
.hub-ms-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.hub-ms-kicker {
  font: 800 10px/1 Geist, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbbf24;
}
.hub-ms-title {
  flex: 1;
  font: 700 13px/1.2 Geist, system-ui, sans-serif;
}
.hub-ms-x {
  appearance: none;
  border: 0;
  background: transparent;
  color: #a8a29e;
  font-size: 18px;
  cursor: pointer;
}
.hub-ms-head {
  cursor: grab;
}
.hub-ms-root.is-dragging .hub-ms-head {
  cursor: grabbing;
}
.hub-ms-pop {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--select-execute, #3b82f6) 50%, transparent);
  background: var(--select-execute-soft, rgba(59, 130, 246, 0.16));
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font: 700 10px/1 Geist, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.hub-ms-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  padding: 6px 0 8px;
}
.hub-ms-pop-stub {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  color: #cbd5e1;
  font: 600 12px/1.3 Geist, system-ui, sans-serif;
}
[data-valchat-pane].is-popped .hub-ms-pane-inner,
[data-valchat-pane].is-popped .hub-ms-pane-head {
  display: none !important;
}
[data-valchat-pane].is-popped .hub-ms-pop-stub {
  display: flex;
}
.hub-ms-log {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hub-ms-line {
  padding: 8px 10px;
  border-radius: 10px;
  background: #262624;
  font: 500 13px/1.4 Geist, system-ui, sans-serif;
  max-width: 92%;
}
.hub-ms-line--in {
  align-self: flex-start;
  border-left: 3px solid #94a3b8;
  background: #2a2a28;
}
.hub-ms-line--out {
  align-self: flex-end;
  border-left: 3px solid #3b82f6;
  background: #1e3a5f;
  color: #e8f0fe;
}
.hub-ms-att {
  display: block;
  margin-top: 6px;
  color: #93c5fd;
  font-size: 12px;
}
.hub-ms-icon {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #141413;
  color: #e7e5e4;
  border-radius: 8px;
  padding: 8px 8px;
  font: 700 11px Geist, system-ui, sans-serif;
  cursor: pointer;
  flex: 0 0 auto;
}
.hub-ms-line small {
  display: block;
  color: #a8a29e;
  font-size: 10px;
  margin-bottom: 4px;
}
.hub-ms-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.hub-ms-field {
  display: block;
  width: 100%;
  min-width: 0;
}
.hub-ms-field input[data-ms-input] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: #141413;
  color: #fafaf9;
  padding: 8px 14px;
  font: 500 13px Geist, system-ui, sans-serif;
}
.hub-ms-foot input[type="file"] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  flex: 0 0 0 !important;
  position: absolute;
}
.hub-ms-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.hub-ms-foot .sig-human-chip,
.hub-ms-foot .hub-next-pill {
  appearance: none;
  flex: 0 0 auto;
  font: 600 11px/1.2 system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--select-execute, #3b82f6) 50%, transparent);
  background: var(--select-execute-soft, rgba(59, 130, 246, 0.16));
  color: #fff;
  cursor: pointer;
}
.hub-ms-foot .sig-human-chip:hover,
.hub-ms-foot .hub-next-pill:hover {
  border-color: var(--select-execute-strong, #60a5fa);
  background: var(--select-execute, #3b82f6);
  color: #fff;
}
.hub-ms-foot .sig-human-chip.is-on,
.hub-ms-foot .hub-next-pill.is-on {
  border-color: var(--select-execute-strong, #60a5fa);
  background: var(--select-execute, #3b82f6);
  color: #fff;
}
.hub-ms-status {
  padding: 6px 12px;
  font-size: 11px;
  color: #a8a29e;
}
.hub-ms-who {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px 4px;
}
.hub-ms-who[hidden] {
  display: none !important;
}
.hub-ms-chip {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #141413;
  color: #e7e5e4;
  border-radius: 999px;
  padding: 4px 10px;
  font: 700 11px/1.2 Geist, system-ui, sans-serif;
  cursor: pointer;
}
.hub-ms-chip.is-on {
  border-color: #3b82f6;
  background: #1d4ed8;
  color: #fff;
}
.hub-ms-pickup {
  appearance: none;
  border: 1px solid #fbbf24;
  background: #fbbf24;
  color: #1c1917;
  border-radius: 8px;
  padding: 8px 10px;
  font: 700 12px Geist, system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.hub-ms-pane-inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}
.sig-valchat-pane .hub-ms-log {
  min-height: 0;
  overflow: auto;
}
.sig-valchat-pane .hub-ms-foot {
  flex: 0 0 auto;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}
