#tierlist-screen { background: repeating-linear-gradient(0deg, #1c1c1c 0 2px, #252525 2px 4px); }
#tierlist-screen { overflow: hidden; }
.tl-stage {
  position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: center center; transform: translate(-50%, -50%);
  display: flex; flex-direction: column;
  color: #d6d6d6; user-select: none; overflow: visible;
  --glow: #35b4ff; --grey: #9a9a9a;
}
.tl-stage, .tl-stage button, .tl-stage input, .tl-stage select {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif; -webkit-font-smoothing: auto; font-size: 14px;
}
.tl-stage [hidden] { display: none !important; }
.tl-stage:not(.is-host) .host-only { display: none !important; }
.tl-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.tl-ico.fill { fill: currentColor; stroke: none; }

.tl-top { display: flex; align-items: center; gap: 12px; padding: 8px 16px; min-height: 52px; }
.tl-players { display: flex; gap: 16px; padding-left: 4px; }
.tl-avatar { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--c); background: #111; display: block; transition: transform .12s; }
.tl-avatar::before { content: ''; position: absolute; inset: -7px; border-radius: 50%; background: conic-gradient(var(--c) var(--p, 0%), transparent 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); }
.tl-voted { display: none; position: absolute; left: -6px; bottom: -6px; width: 16px; height: 16px; border-radius: 50%; background: #4ade80; color: #111; font-size: 10px; font-style: normal; line-height: 1; align-items: center; justify-content: center; border: 2px solid #1c1c1c; z-index: 1; }
.tl-avatar.voted .tl-voted { display: flex; }
.is-host .tl-avatar:not(.host):hover { transform: scale(1.14); }
.tl-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.tl-avatar.host::after {
  content: '★'; position: absolute; right: -6px; bottom: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--c); color: #111;
  font-size: 10px; line-height: 1; display: flex; align-items: center; justify-content: center; border: 2px solid #1c1c1c;
}
.tl-album-title { margin-left: auto; color: var(--grey); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50vw; }

.tl-search { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 28px 24px; gap: 20px; overflow: auto; min-height: 0; }
.tl-pick { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.tl-pick-boxes { display: flex; gap: 30px; }
.tl-pick-box {
  width: 300px; height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: #141414; border: 1px solid #333; color: #ddd; transition: border-color .12s, transform .12s;
}
.tl-pick-box .tl-ico { width: 60px; height: 60px; color: var(--grey); stroke-width: 1.6; }
.tl-pick-box b { font-size: 26px; font-weight: 600; }
.tl-pick-box small { color: var(--grey); font-size: 13px; }
.tl-pick-box:hover:not(:disabled) { border-color: var(--glow); transform: translateY(-3px); }
.tl-pick-box:hover:not(:disabled) .tl-ico { color: var(--glow); }
.tl-pick-box:disabled { opacity: .55; }
.tl-saved { width: min(1100px, 92%); margin-top: 28px; }
.tl-saved-title { color: var(--grey); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.tl-saved-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.tl-saved-item { flex: none; width: 210px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; background: #141414; border: 1px solid #333; color: #ddd; text-align: left; }
.tl-saved-item:hover { border-color: var(--glow); }
.tl-saved-src { color: var(--grey); }
.tl-saved-src .tl-ico { width: 16px; height: 16px; }
.tl-saved-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tl-saved-item small { color: var(--grey); font-size: 11px; }
.viewing .tl-tray, .viewing .tl-clock, .viewing .tl-bar-center, .viewing .tl-bar-side.right { display: none; }
.viewing .tl-bottom { padding-top: 0; }
.viewing .tl-card { cursor: default; }
.tl-view-back { border: 0; background: transparent; color: var(--grey); padding: 4px; }
.tl-view-back:hover { color: #fff; }
.tl-view-edit { border: 1px solid #444; background: transparent; color: #ddd; padding: 4px 12px; font-size: 13px; }
.tl-view-edit:hover { border-color: var(--glow); color: #fff; }
.tl-search-back { border: 0; background: transparent; color: var(--grey); padding: 4px; margin-right: 2px; }
.tl-search-back:hover { color: #fff; }
.mode-none .tl-bottom { padding-top: 0; }
.mode-none .tl-clock, .mode-none .tl-bar-center, .mode-none .tl-bar-side.right { display: none; }
.tl-stage:not(.has-list) #tl-finish-btn, .tl-stage:not(.has-list) #tl-verdict-btn { display: none !important; }
#tl-finish-btn:not(:disabled) { border-color: #7fff7f; color: #fff; }
.tl-search-box { display: flex; align-items: center; gap: 10px; width: min(560px, 90%); border-bottom: 2px solid var(--glow); padding: 4px 6px; color: var(--grey); }
.tl-search-box input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #eee; font-size: 20px; padding: 6px 0; }
.tl-search-box input:disabled { color: #777; }
.tl-search-box input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.tl-search-box button { border: 0; background: transparent; color: var(--grey); padding: 4px; }
.tl-search-box button:hover { color: #fff; }
.tl-src { display: flex; align-items: center; gap: 14px; margin-top: -8px; background: transparent; border: 0; color: #555; padding: 4px 8px; }
.tl-src-side { display: flex; align-items: center; gap: 6px; transition: color .15s; }
.tl-src-ico { display: block; font-style: normal; }
.tl-src-ico .tl-ico { width: 26px; height: 26px; }
.tl-src[data-src="kh"] .kh { color: #fff; }
.tl-src[data-src="yt"] .yt { color: #ff4e45; }
.tl-src-side b { font-size: 12px; color: var(--glow); min-width: 14px; }
.tl-src-track { position: relative; width: 56px; height: 26px; border-radius: 13px; background: #141414; border: 1px solid #3a3a3a; }
.tl-src-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--glow); transition: left .15s; }
.tl-src[data-src="yt"] .tl-src-knob { left: 33px; }
.mode-general .tl-src { display: none; }
.tl-results { display: grid; grid-template-columns: repeat(auto-fit, 150px); gap: 14px; justify-content: center; width: 100%; }
.tl-result { position: relative; width: 150px; background: #141414; border: 1px solid #2b2b2b; padding: 6px; }
.tl-result-src { position: absolute; left: 10px; top: 10px; width: 26px; height: 26px; border-radius: 4px; background: rgba(0, 0, 0, .75); color: #ddd; display: flex; align-items: center; justify-content: center; }
.tl-result-src .tl-ico { width: 18px; height: 18px; }
.tl-result-src.yt { color: #ff4e45; }
.tl-result-src.tm { color: #ffb84d; }
.mode-general .tl-bottom { padding-top: 0; }
.mode-general .tl-clock, .mode-general .tl-bar-center { display: none; }
.tl-result:hover { border-color: var(--glow); }
.tl-result-cover { width: 100%; aspect-ratio: 1; background: #222 center / cover no-repeat; }
.tl-result-title { font-size: 13px; color: #ddd; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-result-meta { font-size: 11px; color: #8a8a8a; }
.tl-result-meta b { color: #ddd; font-size: 12px; }
.tl-empty { color: #666; padding: 20px; grid-column: 1 / -1; text-align: center; }

.tl-board { flex: 1; display: flex; flex-direction: column; padding: 0 16px; gap: 4px; min-height: 0; }
.tl-row { display: flex; min-height: 104px; background: #111; border: 1px solid #2c2c2c; outline: 2px solid transparent; transition: outline-color .1s; }
.tl-row.hot { outline-color: var(--glow); background: color-mix(in srgb, var(--tc) 14%, #111); }
.tl-label { width: 80px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: #222; background: var(--tc); }
.tl-drop { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; padding: 2px; }
.tl-drop .tl-card { width: 98px; height: 98px; }
.tl-tray { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; padding: 8px; margin-top: 6px; background: #0d0d0d; border: 1px dashed #333; overflow-y: auto; flex: 1; min-height: 90px; }
.tl-tray .tl-card { width: var(--cs, 50px); height: var(--cs, 50px); }
.tl-tray .tl-card-num { left: 2px; bottom: 2px; padding: 0 4px; font-size: 10px; }
.tl-tray .tl-wave { padding: 20% 22%; gap: 2px; }

.tl-card {
  position: relative; width: 72px; height: 72px; flex: none; background-size: cover; background-position: center; background-color: #333;
  border-radius: 6px; border: 2px solid #444; box-shadow: 0 2px 6px #000; transition: transform .12s, box-shadow .12s, opacity .12s, filter .2s;
}
.tl-card:hover { transform: translateY(-2px); }
.tl-card.current { border-color: var(--glow); animation: tl-pulse 1.6s ease-in-out infinite; }
.tl-card.dragging { opacity: .35; }
.tl-card.pop { animation: tl-pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.tl-card-num { position: absolute; left: 3px; bottom: 3px; padding: 0 5px; font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, .7); border-radius: 4px; color: #fff; z-index: 1; }
.tl-tray .tl-card.upcoming { filter: grayscale(.85) brightness(.5); }
.tl-tray .tl-card.trashed { filter: grayscale(1) brightness(.3); }
.tl-tray .tl-card.trashed::after { content: '✕'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #ff5a5a; font-size: calc(var(--cs, 50px) * .4); font-weight: 700; }
.tl-tier-badge {
  position: absolute; right: -6px; top: -6px; width: 24px; height: 24px; border-radius: 5px; background: var(--tc); color: #222; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; border: 2px solid #111; z-index: 2;
}
.tl-wave { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 14px 16px; background: rgba(0, 0, 0, .35); border-radius: 4px; }
.tl-wave i { flex: 1; height: 100%; background: var(--glow); border-radius: 2px 2px 0 0; transform-origin: bottom; transition: transform 70ms linear; }
.tl-wave i:nth-child(1) { transform: scaleY(var(--l0, .12)); }
.tl-wave i:nth-child(2) { transform: scaleY(var(--l1, .12)); }
.tl-wave i:nth-child(3) { transform: scaleY(var(--l2, .12)); }
.tl-wave i:nth-child(4) { transform: scaleY(var(--l3, .12)); }
.tl-card.pinged { border-color: var(--c, #fff); z-index: 3; }
.tl-ping { position: absolute; inset: -4px; border-radius: 10px; border: 3px solid var(--c); pointer-events: none; animation: tl-ping 1.6s ease-out forwards; }
@keyframes tl-ping { 0% { transform: scale(.8); opacity: 1; } 60% { transform: scale(1.6); opacity: .6; } 100% { transform: scale(2.1); opacity: 0; } }
.tl-vote { width: 64px; height: 64px; align-self: center; border: 2px solid var(--c); box-shadow: 0 0 8px var(--c); animation: tl-pop .3s cubic-bezier(.2, 1.4, .4, 1); }
.tl-vote-badge {
  position: absolute; right: -8px; bottom: -8px; width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: #fff;
  font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #111; text-shadow: 0 1px 1px #000;
}
.tl-ghost { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; box-shadow: 0 10px 24px #000; will-change: transform; transition: none; }
@keyframes tl-pulse { 0%, 100% { box-shadow: 0 0 6px var(--glow); } 50% { box-shadow: 0 0 16px var(--glow); } }
@keyframes tl-pop { from { transform: scale(1.6); } to { transform: scale(1); } }
.tl-fxc { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; z-index: 60; }
.tl-tray .tl-card.pending { background-image: none !important; background-color: #161616; }
.tl-tray .tl-card.pending::before { content: ''; position: absolute; inset: 0; margin: auto; width: 38%; height: 38%; border: 3px solid #2e2e2e; border-top-color: var(--glow); border-radius: 50%; animation: tl-spin .9s linear infinite; }
.viewing #tl-back-btn { display: none; }
.tl-tier-badge.stamp { animation: tl-stamp .3s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes tl-stamp { from { transform: scale(2.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.tl-token {
  width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid #111; text-shadow: 0 1px 1px #000;
  animation: tl-pop .3s cubic-bezier(.2, 1.4, .4, 1);
}

.tl-bubble {
  position: absolute; transform: translate(-50%, -100%); pointer-events: none; z-index: 60; white-space: nowrap;
  background: #fff; color: #111; padding: 7px 14px; border-radius: 14px; font-size: 17px; font-weight: 600; box-shadow: 0 2px 6px #000;
}
.tl-bubble::after { content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #fff; }

.tl-bottom { position: relative; padding-top: 36px; flex: none; }
.tl-clock { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); font-size: 26px; color: #bdbdbd; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.tl-bar { position: relative; display: flex; align-items: flex-start; background: #161616; border-top: 2px solid var(--glow); min-height: 124px; padding: 0 28px 10px; }
.tl-bar::before { content: ''; position: absolute; z-index: -1; top: -2px; bottom: -2000px; left: -3000px; right: -3000px; background: #161616; border-top: 2px solid var(--glow); }
.tl-bar-side { display: flex; align-items: center; gap: 16px; padding-top: 20px; flex: 1; }
.tl-bar-side.right { justify-content: flex-end; }
.tl-bar-center { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; width: min(680px, 48vw); }
.tl-tab-wrap { background: var(--glow); clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 28px 100%); padding: 0 2px 2px; margin-top: -2px; }
.tl-tab { display: flex; background: linear-gradient(#4b4b4b, #333); clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 26px 100%); padding: 0 36px; }
.tl-tab-btn {
  width: 58px; height: 46px; padding: 0; border: 0; border-left: 1px solid #5c5c5c; border-right: 1px solid #1d1d1d; background: transparent; color: #d6d6d6;
  display: flex; align-items: center; justify-content: center; transition: background .1s, color .1s;
}
.tl-tab-btn:first-child { border-left: 0; }
.tl-tab-btn:last-child { border-right: 0; }
.tl-tab-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .08); color: #fff; }
.tl-tab-btn:disabled { color: #6a6a6a; }
#tl-play .ico-pause { display: none; }
#tl-play.playing .ico-play { display: none; }
#tl-play.playing .ico-pause { display: block; }
.tl-trash.hot { background: rgba(255, 90, 90, .25); color: #ff5a5a; }
.tl-vol { width: auto; padding: 0 12px; gap: 8px; }
.tl-now { color: var(--glow); font-size: 17px; margin-top: 8px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-info { color: var(--grey); font-size: 14px; margin-top: 2px; }
.tl-round {
  width: 58px; height: 58px; flex: none; border-radius: 50%; border: 2px solid var(--glow); color: #d6d6d6;
  background: radial-gradient(circle at 40% 35%, #676767, #262626 72%); box-shadow: 0 0 7px rgba(53, 180, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .15);
  display: flex; align-items: center; justify-content: center;
}
.tl-round:hover:not(:disabled) { box-shadow: 0 0 12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .15); color: #fff; }
.tl-round:disabled { border-color: #444; box-shadow: none; color: #666; }
.tl-round .tl-ico { width: 26px; height: 26px; }
.tl-round-big { width: 92px; height: 92px; margin: 0 auto; }
.tl-round-big .tl-ico { width: 42px; height: 42px; }
.is-host .tl-round-big:not(:disabled) { border-color: #ffd54a; color: #fff; animation: tl-verdict-glow 1.6s ease-in-out infinite; }
@keyframes tl-verdict-glow { 0%, 100% { box-shadow: 0 0 10px rgba(255, 213, 74, .6), inset 0 1px 0 rgba(255, 255, 255, .15); } 50% { box-shadow: 0 0 26px rgba(255, 213, 74, .95), inset 0 1px 0 rgba(255, 255, 255, .15); } }
.tl-stage input[type="range"] { -webkit-appearance: none; appearance: none; height: 16px; background: transparent; margin: 0; }
.tl-slider { position: relative; display: block; height: 16px; }
.tl-slider.seek { width: 100%; margin-top: 10px; }
.tl-slider.vol { width: 84px; }
.tl-slider input[type="range"] { display: block; width: 100%; height: 16px; margin: 0; }
.tl-slider::after {
  content: ''; position: absolute; top: 50%; left: calc(8px + (100% - 16px) * var(--f, 0)); width: 12px; height: 12px; margin: -8px 0 0 -8px;
  border-radius: 50%; background: #e8e8e8; border: 2px solid var(--glow); pointer-events: none;
}
.tl-stage input[type="range"]::-webkit-slider-runnable-track {
  height: 16px; border: 0; border-radius: 0; box-shadow: none;
  background: linear-gradient(to right, var(--glow) calc(8px + (100% - 16px) * var(--f, 0)), #3a3a3a 0) center / 100% 4px no-repeat;
}
.tl-stage input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: 0; border: 0; background: transparent; box-shadow: none; opacity: 0; }

.tl-verdict { position: absolute; inset: -2000px; z-index: 70; background: rgba(0, 0, 0, .65); display: flex; align-items: center; justify-content: center; }
.tl-verdict-box { background: #161616; border: 1px solid var(--glow); padding: 18px 20px 14px; width: 1400px; }
.tl-verdict-title { color: var(--glow); font-size: 24px; font-weight: 600; margin-bottom: 14px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-verdict-title img { height: 96px; border: 2px solid #444; border-radius: 6px; vertical-align: middle; }
#tl-verdict-rows { display: flex; flex-direction: column; gap: 4px; }
.tl-verdict-row {
  position: relative; display: flex; align-items: stretch; height: 84px; padding: 0 14px 0 0; background: #111; border: 1px solid #2c2c2c; outline: 2px solid transparent;
  color: #ddd; text-align: left; transition: outline-color .1s, background .1s, transform .35s, filter .35s;
}
.tl-verdict:not(.readonly) .tl-verdict-row:hover { outline-color: #fff; background: #151515; }
.tl-verdict-row.avg { outline-color: #ffd54a; }
.tl-verdict-row.split { outline-color: #4ade80; }
.tl-verdict-tag { align-self: center; margin-right: 16px; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #ffd54a; border: 1px solid currentColor; border-radius: 3px; padding: 2px 7px; }
.tl-verdict-row.split .tl-verdict-tag { color: #4ade80; }
.tl-verdict.decided .tl-verdict-row { pointer-events: none; transform: scale(.96); filter: brightness(.4); }
.tl-verdict.decided .tl-verdict-row.chosen { transform: scale(1.04); filter: none; z-index: 1; outline-color: var(--tc); }
.tl-verdict-row.chosen::after { content: ''; position: absolute; inset: -4px; border: 3px solid var(--tc); pointer-events: none; animation: tl-chosen 1s ease-out infinite; }
@keyframes tl-chosen { 0% { inset: -4px; opacity: 1; } 100% { inset: -22px; opacity: 0; } }
.tl-verdict-cards { flex: 1; display: flex; align-items: center; gap: 6px; padding: 0 8px; overflow: hidden; }
.tl-verdict-row em { align-self: center; font-style: normal; font-weight: 700; font-size: 30px; min-width: 44px; text-align: right; color: var(--glow); }
.tl-verdict-row kbd { align-self: center; margin-left: 12px; font: 600 13px 'Segoe UI', sans-serif; color: var(--grey); border: 1px solid #3a3a3a; border-radius: 4px; padding: 1px 7px; }
.tl-verdict.readonly .tl-verdict-row:hover { outline-color: #555; }
.tl-verdict-row.pinged { outline-color: var(--c); }
.tl-verdict-row .tl-ping { border-radius: 4px; animation: tl-ping-row 1.2s ease-out forwards; }
@keyframes tl-ping-row { 0% { inset: -3px; opacity: 1; } 100% { inset: -22px; opacity: 0; } }
.tl-verdict-hint { color: var(--grey); text-align: center; margin-top: 12px; font-size: 14px; }

.tl-loading { position: absolute; inset: -2000px; z-index: 85; background: rgba(0, 0, 0, .62); display: flex; align-items: center; justify-content: center; }
.tl-loading span { color: #ddd; font-size: 26px; font-weight: 700; letter-spacing: 4px; }
.tl-preview { position: absolute; inset: -2000px; z-index: 80; background: rgba(0, 0, 0, .8); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.tl-preview img { display: block; border: 2px solid #444; background: #111; box-shadow: 0 12px 40px #000; }
.tl-leave { position: absolute; inset: -2000px; z-index: 70; background: rgba(0, 0, 0, .65); display: flex; align-items: center; justify-content: center; }
.tl-leave-box { background: #161616; border: 1px solid var(--glow); padding: 24px 28px; }
.tl-leave-title { color: var(--glow); font-size: 24px; font-weight: 600; text-align: center; margin-bottom: 20px; }
.tl-leave-boxes { display: flex; gap: 24px; }
.tl-leave .tl-pick-box { width: 340px; height: 200px; }
.tl-leave .tl-pick-box b { font-size: 22px; }
.tl-spin { display: none; position: absolute; left: 0; top: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; will-change: transform; z-index: 3; }
.tl-spin::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .18); border-top-color: var(--c); animation: tl-spin .8s linear infinite; }
.tl-cursors.loading .tl-cursor { display: none; }
.tl-cursors.loading .tl-spin { display: block; }
@keyframes tl-spin { to { transform: rotate(360deg); } }

.tl-dim { position: absolute; inset: -2000px; z-index: 85; background: rgba(0, 0, 0, .62); }
.tl-chat-input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.tl-chat-bubble {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; z-index: 5; will-change: transform;
  max-width: 340px; padding: 8px 14px; background: #fff; color: #111; border-radius: 16px; border-top-left-radius: 3px;
  font-size: 18px; font-weight: 600; line-height: 1.3; white-space: pre-wrap; word-break: break-word; box-shadow: 0 3px 10px #000;
}
.tl-chat-bubble::before { content: ''; position: absolute; left: -9px; top: 0; width: 10px; height: 10px; background: #fff; clip-path: polygon(100% 0, 100% 100%, 0 0); }
.tl-chat-bubble.typing { min-width: 14px; min-height: 1.3em; }
.tl-chat-bubble.typing::after { content: ''; display: inline-block; width: 2px; height: 1em; background: #111; margin-left: 2px; vertical-align: -2px; animation: tl-caret 1s steps(2) infinite; }
@keyframes tl-caret { 50% { opacity: 0; } }

.tl-stage, .tl-stage * { cursor: none !important; }
.tl-cursors { position: absolute; inset: 0; pointer-events: none; z-index: 90; }
.tl-cursor {
  --h: 38px;
  position: absolute; left: 0; top: 0; height: var(--h); margin: -1px 0 0 calc(var(--h) * -0.205);
  transform-origin: 50% 100%; will-change: transform; filter: drop-shadow(0 2px 3px #000); z-index: 3;
}
.tl-cursor.me { --h: 44px; z-index: 4; }
.tl-cursor-fallback {
  width: 28px; height: 28px; border-radius: 50%; margin: -14px 0 0 -14px; transform-origin: 14px 14px; background: var(--c); color: #fff;
  font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
