.tl-board { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
.tl-row { display: flex; min-height: 84px; border-bottom: 1px solid var(--border); }
.tl-row:last-child { border-bottom: 0; }
.tl-label { flex: 0 0 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px; color: #10131f; font-weight: 800; text-align: center; }
.tl-label span { outline: 0; font-size: 22px; word-break: break-word; max-width: 100%; }
.tl-items, .tl-pool { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; padding: 8px; min-height: 84px; }
.tl-pool { border: 1px dashed var(--border-strong); border-radius: 16px; background: rgba(255,255,255,.02); }
.tl-over { background: rgba(124,92,255,.14); }
.tl-it { width: 68px; height: 68px; border-radius: 10px; overflow: hidden; position: relative; cursor: grab; border: 2px solid transparent; background: #1b2033; display: grid; place-items: center; flex: none; }
.tl-it.sel { border-color: #f5b83d; }
.tl-it img { width: 100%; height: 100%; object-fit: contain; padding: 4px; display: block; pointer-events: none; }
.tl-it .tl-fb { font-weight: 800; font-size: 26px; color: #10131f; width: 100%; height: 100%; display: grid; place-items: center; }
@media (max-width: 620px) { .tl-label { flex-basis: 70px; } .tl-label span { font-size: 18px; } .tl-it { width: 56px; height: 56px; } }
.tl-foto .tl-it img { padding: 0; object-fit: cover; }
.tl-modal { position: fixed; inset: 0; background: rgba(5,7,15,.78); display: grid; place-items: center; padding: 16px; z-index: 100; }
.tl-modal[hidden] { display: none; }
.tl-modal-box { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; width: min(960px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.tl-modal-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.tl-x { background: none; border: 0; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; }
.tl-modal-body { padding: 16px; overflow: auto; text-align: center; min-height: 80px; }
.tl-modal-body img { max-width: 100%; height: auto; border-radius: 8px; }
.tl-modal-actions { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
#tl-modal-msg { font-size: 13px; color: var(--muted); }
.tl-head { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.tl-title { width: 100%; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--text); text-align: center; font-family: inherit; font-size: clamp(26px, 5vw, 44px); font-weight: 800; letter-spacing: -0.02em; padding: 6px 56px; border-radius: 8px; }
.tl-title:hover, .tl-title:focus { outline: 0; border-bottom-color: var(--border-strong); background: rgba(255,255,255,.03); }
.tl-icon { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.04); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.tl-icon:hover { color: var(--text); background: rgba(255,255,255,.1); }
.tl-icon svg { width: 20px; height: 20px; }
.tl-center { display: flex; justify-content: center; margin: 22px 0 8px; }
.tl-poolbar { display: flex; align-items: center; justify-content: flex-end; margin: 26px 0 10px; }
.tl-sub { font-size: 15px; color: var(--muted); font-weight: 700; margin: 0; }
.tl-poolbar .btn { width: auto; flex: none; white-space: nowrap; }
.tl-sub { white-space: nowrap; }
