/* Tournament dock extras */
.dock.tn-dock { max-width: 520px; }

.tn-dock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tn-dock-actions button {
  flex: 1 1 30%;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--border));
  background: var(--panel);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.78rem;
}

.tn-dock-actions button.primary {
  background: linear-gradient(135deg, var(--gold), var(--lime));
  color: #1a1a10;
  border: none;
}

.tn-dock-actions button:hover { border-color: var(--gold); }
.tn-dock-actions button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.tn-dock-match {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  min-height: 150px;
}

.tn-dock-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.tn-dock-side img,
.tn-dock-ph {
  width: 100px;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  background: #1a1a14;
  border: 1px solid var(--border);
}

.tn-dock-ph { display: block; }

.tn-dock-side span {
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.25;
  max-width: 140px;
}

.tn-dock-match.n4 {
  display: flex;
  flex-wrap: nowrap;
  min-height: 150px;
  gap: 8px;
}

.tn-dock-match.n4 .tn-dock-side img,
.tn-dock-match.n4 .tn-dock-ph {
  width: 64px;
  height: 96px;
}

.tn-dock-match.n4 .tn-dock-side span {
  font-size: 0.75rem;
  max-width: 80px;
}

.tn-dock-actions button.hidden { display: none; }

#dock-preset,
#dock-award-cat {
  width: 100%;
  margin: 0 0 8px;
  padding: 6px 8px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.tn-dock-tag {
  font-size: 0.62rem;
  color: var(--gold);
}

.tn-dock-slots {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tn-dock-slot {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.tn-dock-slot.selected { outline: 1px solid var(--gold); border-radius: 6px; }

.tn-dock-slot img,
.tn-dock-slot-ph {
  width: 48px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  background: #1a1a14;
  flex-shrink: 0;
}

.tn-dock-slot img.missing,
.tn-dock-slot img:not([src]) {
  display: none;
}

.tn-dock-slot input {
  flex: 1;
  min-width: 0;
  padding: 5px 7px;
  font-size: 0.75rem;
}

.tn-search-drop {
  position: absolute;
  left: 28px;
  right: 0;
  top: 100%;
  z-index: 20;
  background: #12120e;
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 160px;
  overflow-y: auto;
}

.tn-search-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  cursor: pointer;
  font-size: 0.75rem;
}

.tn-search-item:hover { background: rgba(251, 208, 124, 0.12); }
.tn-search-item img { width: 48px; height: 18px; object-fit: cover; background: #111; }
.tn-search-item img.pending,
.tn-search-item img.missing,
.tn-dock-slot img.pending,
.tn-dock-slot img.missing { visibility: hidden; }
