/* SakibPro DLS Tournament Maker — on top of kit.css (shell) + poster.css (lists, fields) */
.tm .pm-view canvas { cursor: pointer; }
.tm-slots { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; max-height: 420px; overflow: auto; }
.tm-slot { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; }
.tm-slot.on { border-color: var(--acc); background: rgba(0, 229, 255, .08); }
.tm-no { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .06); font: 800 13px/1 var(--head, Inter); color: var(--mut); }
.tm-slot.on .tm-no { background: var(--acc); color: #04131a; }
.tm-empty { color: var(--mut); font-weight: 600; }
.tm-slot .ico.sm { flex: none; width: 30px; height: 30px; padding: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--card2); color: var(--txt); font-size: 15px; }
.tm-slot .pm-x { color: #fda4af; }
.tm-addto { display: block; margin: 12px 0 2px; color: var(--acc); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.tm-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 8px 0 12px; }
.tm-row .btn { padding: 10px 8px; }
.tm-names { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tm-matches h4 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
.tm-match { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 6px; padding: 6px; margin-bottom: 6px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg2); }
.tm-match.on { border-color: var(--acc); }
.tm-p { min-width: 0; padding: 9px 8px; border-radius: 9px; border: 1px solid var(--line2); background: var(--card2); color: var(--txt); font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-p.win { background: rgba(56, 239, 125, .16); border-color: #38ef7d; color: #b9ffd4; }
.tm-p.lose { opacity: .5; text-decoration: line-through; }
.tm-p:disabled { opacity: .45; cursor: not-allowed; }
.tm-vs { color: var(--mut); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.tm-show { padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line2); background: none; color: var(--mut); font-size: 12px; font-weight: 700; }
.tm-show.on { background: var(--acc); border-color: var(--acc); color: #04131a; }
.tm-bgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.tm-bgs button { aspect-ratio: 4 / 5; border-radius: 12px; border: 2px solid transparent; background: var(--bg2) center / cover no-repeat; display: flex; align-items: flex-end; padding: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.tm-bgs button span { font-size: 11.5px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); text-align: left; }
.tm-bgs button.on { border-color: var(--acc); }
.tm-bg-up { background: repeating-linear-gradient(45deg, #17213d 0 10px, #111a31 10px 20px) !important; align-items: center !important; justify-content: center; }
.tm-react { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 4px 0 12px; }
.tm-react button { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); color: var(--mut); font-size: 10.5px; font-weight: 700; }
.tm-react button.on { border-color: var(--acc); background: rgba(0, 229, 255, .12); color: var(--txt); }
.tm-react img { width: 28px; height: 28px; }
.tm-tip { color: var(--mut); font-size: 13px; margin: 8px 12px 0; }
.tm-tip b { color: var(--txt); }
@media (max-width: 600px) {
  .tm-names { grid-template-columns: 1fr; }
  .tm-match { grid-template-columns: 1fr auto 1fr; }
  .tm-show { grid-column: 1 / -1; }
  .tm-react span { display: none; }
}
