

.tbm-expand { position: absolute; top: 6px; left: 8px; right: auto; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: auto; height: 34px; padding: 0 13px; cursor: pointer;
  font: inherit; font-size: .78rem; font-weight: 800; letter-spacing: .02em;
  color: #15181c; background: #d8a45f; border: 0; border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .45); }
.tbm-expand:hover { filter: brightness(1.08); }
.tbm-expand svg { width: 15px; height: 15px; display: block; }
.tbm-ex-t { white-space: nowrap; }

.tbm-jump { position: absolute; right: 12px; bottom: 74px; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; cursor: pointer;
  color: #15181c; background: #d8a45f; border: 0; border-radius: 50%;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .5); }
.tbm-jump:hover { filter: brightness(1.08); }
.tbm-jump[hidden] { display: none; }
.tbm-jump svg { width: 17px; height: 17px; display: block; }
#tb-mini.tb-expanded .tbm-jump { bottom: 70px; right: 416px; }
@media (max-width: 1240px) {
  
  #tb-mini.tb-expanded .tbm-jump { right: 16px; }
}

.tbm-expand .tbm-ex-in { display: none; }
.tb-expanded .tbm-expand .tbm-ex-out { display: none; }
.tb-expanded .tbm-expand .tbm-ex-in { display: block; }

.tp-side.tb-side-flat { position: static; }

#tb-mini.tb-expanded { position: fixed; inset: 60px 0 0; z-index: 1049;
  width: auto; max-width: none; margin: 0; border-radius: 0;
  display: grid; grid-template-columns: 240px minmax(0, 1fr) 400px;
  grid-template-rows: minmax(0, 1fr) auto auto auto; }
#tb-mini.tb-expanded .tbm-chan  { display: flex; grid-column: 1; grid-row: 1 / -1; }
#tb-mini.tb-expanded .tbm-info  { display: block; grid-column: 3; grid-row: 1 / -1; }

#tb-mini.tb-expanded .tbm-list  { grid-column: 2; grid-row: 1; max-height: none;
                                  min-height: 0; display: flex; flex-direction: column; }
#tb-mini.tb-expanded .tbm-list > :first-child { margin-top: auto; }
#tb-mini.tb-expanded .tbm-typing { grid-column: 2; grid-row: 2; }
#tb-mini.tb-expanded .tbm-form  { grid-column: 2; grid-row: 3; }
#tb-mini.tb-expanded .tbm-note  { grid-column: 2; grid-row: 4; }

@media (max-width: 1240px) {
  #tb-mini.tb-expanded { grid-template-columns: 220px minmax(0, 1fr); }
  #tb-mini.tb-expanded .tbm-info { display: none; }
}

.tbm-chan { display: none; flex-direction: column; gap: 1px; overflow-y: auto;
  padding: 10px 9px 19px; background: var(--panel, #12151a);
  border-right: 1px solid var(--border, #383838); }
.tbm-chan-h { margin: 2px 6px 7px; font-size: .62rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #8a8a8a); }
.tbm-chan-i { display: flex; align-items: center; gap: 5px; min-width: 0;
  padding: 5px 8px; border-radius: 4px; text-decoration: none;
  color: var(--muted, #8a8a8a); font-size: .82rem; font-weight: 600; }
.tbm-chan-i .sy-logo { flex: none; border-radius: 4px; overflow: hidden; }

.tbm-chan-i .sy-logo { opacity: .72; }
.tbm-chan-i:hover .sy-logo, .tbm-chan-i.on .sy-logo { opacity: 1; }

.tbm-ch-live { width: 9px; height: 9px; margin: 0 4px; border-radius: 50%;
  flex: none; background: #46d884;
  animation: l2-livepulse 1.6s ease-in-out infinite; }

.tbm-ch-dot { width: 7px; height: 7px; margin: 0 5px; border-radius: 50%;
  flex: none; background: var(--muted, #8a8a8a); opacity: .55; }
.tbm-chan-i .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbm-chan-i:hover { color: var(--text, #ececec); background: rgba(255, 255, 255, .055);
  text-decoration: none; }
.tbm-chan-i.on { color: #fff; background: rgba(255, 255, 255, .09); }

.tbm-info { display: none; overflow-y: auto; padding: 14px 14px 18px;
  background: var(--panel, #12151a); border-left: 1px solid var(--border, #383838); }
.tbm-info-card { display: none; }
.tbm-info-card.on { display: block; }
.tbm-info-k { margin: 0 0 6px; font-size: .6rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #8a8a8a); }
.tbm-info-t { margin: 0 0 8px; font-size: .95rem; font-weight: 800; line-height: 1.3;
  color: var(--text, #ececec); }
.tbm-info-m { display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: 0 0 9px; font-size: .68rem; font-weight: 700; }
.tbm-info-m .tk { color: var(--accent, #4aa8e0); }
.tbm-info-m .dir { text-transform: uppercase; letter-spacing: .05em; }
.tbm-info-m .dir.long { color: var(--te-long, #1f9d5b); }
.tbm-info-m .dir.short { color: var(--te-short, #e0576a); }
.tbm-info-m .by { color: var(--muted, #8a8a8a); font-weight: 600; }
.tbm-info-b { margin: 0 0 12px; font-size: .76rem; line-height: 1.5;
  color: var(--muted, #8a8a8a); }
.tbm-info-go { font-size: .72rem; font-weight: 800; color: var(--accent, #4aa8e0);
  text-decoration: none; }
.tbm-info-go:hover { text-decoration: underline; }

.tbm-art { font-size: .8rem; line-height: 1.55; color: var(--text, #ececec); }
.tbm-art img, .tbm-art svg, .tbm-art canvas { max-width: 100%; height: auto; }
.tbm-art table { width: 100%; display: block; overflow-x: auto; }
.tbm-art pre { overflow-x: auto; }
.tbm-art p { margin: 0 0 9px; }
.tbm-art .ch { display: block; margin: 0 0 10px; }
.tbm-art-k { margin: 0 0 6px; font-size: .6rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #8a8a8a); }
.tbm-art-t { margin: 0 0 8px; font-size: 1rem; font-weight: 800; line-height: 1.3; }

.tbm-chan-new { position: sticky; bottom: 0; margin: auto 0 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 10px; border-radius: 6px; text-decoration: none;
  font-size: .78rem; font-weight: 800; color: #fff;
  background: var(--accent, #4aa8e0);
  
  box-shadow: 0 0 0 9px var(--panel, #12151a); }
.tbm-chan-new:hover { color: #fff; text-decoration: none; filter: brightness(1.08); }
.tbm-chan-new .p { font-size: 1.05rem; line-height: 1; font-weight: 700; }

.tbm-chan-more { margin: 7px 2px 2px; padding: 6px 9px; cursor: pointer;
  font: inherit; font-size: .72rem; font-weight: 800; color: var(--muted, #8a8a8a);
  background: transparent; border: 1px dashed var(--border, #383838);
  border-radius: 6px; text-align: center; }
.tbm-chan-more:hover { color: var(--text, #ececec); border-color: #4a5568; }
.tbm-chan-more[hidden] { display: none; }

.tbm-chan-n { margin-left: auto; flex: none; font-size: .64rem; font-weight: 800;
  color: var(--muted, #8a8a8a); background: rgba(255, 255, 255, .07);
  border-radius: 9px; padding: 1px 6px; }
.tbm-chan-i:hover .tbm-chan-n, .tbm-chan-i.on .tbm-chan-n { color: var(--text, #ececec); }

html.tb-full .cs-tas-nudge { display: none !important; }

.tbm-cm { display: flex; gap: 7px; padding: 5px 9px; align-items: flex-start; }
.tbm-cm .av { width: 19px; height: 19px; border-radius: 50%; flex: none;
  margin-top: 1px; object-fit: cover; display: grid; place-items: center;
  font-size: .58rem; font-weight: 800; color: #fff; }

.tbm-cm .bd { min-width: 0; flex: 1; display: flex; flex-wrap: nowrap;
  align-items: baseline; column-gap: 6px; }
.tbm-cm .wh { flex: none; font-size: .73rem; font-weight: 700; color: var(--text, #ececec); }
.tbm-cm .ag { flex: none; font-size: .64rem; color: var(--muted, #8a8a8a); }
.tbm-cm .tx { flex: 1 1 0; min-width: 0; font-size: .8rem; line-height: 1.45; }
.tbm-cm .tx p { margin: 0; }
.tbm-empty-ch { padding: 22px 12px; color: var(--muted, #8a8a8a); font-size: .8rem; }

#tb-mini.tb-expanded .tbm-row,
#tb-mini.tb-expanded .tbm-cm { max-width: none; margin-left: 0; margin-right: 0; }
#tb-mini.tb-expanded .tbm-form { width: auto; max-width: none;
  margin-left: 0; margin-right: 0; }

#tb-mini.tb-expanded .tbm-t { display: inline; margin-left: 6px; }

#tb-mini.tb-expanded .tbm-b { line-height: 17px; }

#tb-mini.tb-expanded .tbm-expand { top: 10px; left: auto; right: 12px;
  height: 36px; padding: 6px 13px; font-size: 1rem; font-weight: 700;
  border-radius: 999px; }
#tb-mini.tb-expanded .tbm-expand svg { width: 16px; height: 16px; }

#tb-mini.tb-expanded .tbm-expand { display: none; }

@media (max-width: 1100px) {
  .tbm-expand { display: none; }
}

@keyframes l2-livepulse { 0%, 100% { opacity: 1; } 50% { opacity: .28; } }
@media (prefers-reduced-motion: reduce) {
  .tbm-ch-live { animation: none; }
}

.chat-host[hidden] { display: none; }
.chat-host { display: block; }

.chat-host > #tb-mini:not(.tb-expanded) { display: none; }

.chat-host > #tb-mini:not(.tb-expanded) .tbm-expand { display: none; }

@media (max-width: 1100px) {
  #tb-mini.tb-expanded { grid-template-columns: minmax(0, 1fr); }
  #tb-mini.tb-expanded .tbm-chan,
  #tb-mini.tb-expanded .tbm-info { display: none; }
  #tb-mini.tb-expanded .tbm-jump { right: 16px; }
}

.tbm-chan-h.tbm-chan-hot { color: #d8a45f; }

.tbm-chan-h.tbm-chan-mine { color: var(--accent, #4aa8e0); }
.tbm-chan-i.mine .n { color: var(--text, #e8edf2); font-weight: 700; }
.tbm-chan-i.hot .n { color: #e6e9ee; }

#tb-mini.tb-expanded .tbm-info { padding-top: 54px; }
