/* Holodepth — transform sync: dual object + update order lab */

.doc-tsync-lab {
  margin: 1rem 0 0;
  padding: 0.75rem 0.85rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(46, 200, 210, 0.22);
  background: linear-gradient(
    165deg,
    rgba(10, 22, 34, 0.58) 0%,
    rgba(5, 10, 18, 0.78) 100%
  );
}

.doc-tsync-lab__tag {
  margin: 0 0 0.5rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(120, 210, 220, 0.9);
}

.doc-tsync-lab__note {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(165, 190, 215, 0.92);
}

.doc-tsync-lab__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-bottom: 0.5rem;
}

.doc-tsync-lab__fieldset {
  margin: 0;
  padding: 0.45rem 0.55rem 0.5rem;
  min-width: min(100%, 220px);
  flex: 1 1 200px;
  border-radius: 8px;
  border: 1px solid rgba(70, 110, 130, 0.35);
  background: rgba(4, 10, 18, 0.42);
}

.doc-tsync-lab__fieldset legend {
  padding: 0 0.25rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(170, 205, 220, 0.95);
}

.doc-tsync-lab__radios {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.doc-tsync-lab__radio {
  display: flex;
  align-items: flex-start;
  gap: 0.38rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(195, 215, 235, 0.95);
  cursor: pointer;
  user-select: none;
}

.doc-tsync-lab__radio input {
  margin-top: 0.12rem;
  accent-color: #2ee7f2;
  flex-shrink: 0;
}

.doc-tsync-lab__radio code {
  font-size: 0.62rem;
}

.doc-tsync-lab__scene-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.15rem 0 0.35rem;
}

.doc-tsync-lab__key {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(80, 120, 140, 0.4);
  background: rgba(4, 12, 22, 0.55);
  color: rgba(195, 215, 235, 0.95);
  cursor: default;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

.doc-tsync-lab__key--leader {
  border-color: rgba(46, 231, 242, 0.35);
  color: rgba(170, 245, 252, 0.98);
}

.doc-tsync-lab__key--follower {
  border-color: rgba(255, 120, 80, 0.35);
  color: rgba(255, 200, 175, 0.98);
}

.doc-tsync-lab__key:hover,
.doc-tsync-lab__key:focus-visible {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.doc-tsync-lab__key--leader:hover,
.doc-tsync-lab__key--leader:focus-visible {
  border-color: rgba(46, 231, 242, 0.65);
  box-shadow: 0 0 12px rgba(46, 231, 242, 0.22);
}

.doc-tsync-lab__key--follower:hover,
.doc-tsync-lab__key--follower:focus-visible {
  border-color: rgba(255, 120, 80, 0.6);
  box-shadow: 0 0 12px rgba(255, 106, 61, 0.2);
}

.doc-tsync-lab__check {
  display: flex;
  align-items: flex-start;
  gap: 0.42rem;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(195, 215, 235, 0.95);
  cursor: pointer;
  user-select: none;
}

.doc-tsync-lab__check input {
  margin-top: 0.12rem;
  accent-color: #2ee7f2;
  flex-shrink: 0;
}

.doc-tsync-lab__viewport {
  position: relative;
  width: 100%;
  height: min(260px, 48vw);
  min-height: 200px;
  margin: 0.35rem 0 0.45rem;
  border-radius: 8px;
  overflow: hidden;
  background: radial-gradient(ellipse 72% 78% at 50% 40%, rgba(18, 40, 52, 0.5), rgba(3, 6, 12, 0.95));
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.doc-tsync-lab__viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.doc-tsync-lab__hint {
  margin: 0;
  font-size: 0.65rem;
  line-height: 1.45;
  color: rgba(140, 168, 195, 0.92);
  padding: 0.35rem 0.42rem;
  border-radius: 6px;
  background: rgba(4, 12, 22, 0.5);
  border: 1px solid rgba(60, 90, 115, 0.28);
  white-space: pre-line;
}

.doc-tsync-lab__hint--warn {
  border-color: rgba(255, 120, 80, 0.35);
  color: rgba(255, 190, 165, 0.95);
}

.doc-tsync-lab__hint--ok {
  border-color: rgba(46, 231, 180, 0.35);
  color: rgba(175, 245, 228, 0.95);
}
