/* TeleLive Docs — self-hosted, brand-aligned */
:root {
  --td-bg: #0f1115;
  --td-side: #12141a;
  --td-line: rgba(255,255,255,.08);
  --td-text: #e8eaf0;
  --td-muted: #9aa3b2;
  --td-brand: #1e56f5;
  --td-r: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--td-bg); color: var(--td-text); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
.tl-docs-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--td-line);
  position: sticky; top: 0; z-index: 20; background: rgba(15,17,21,.92); backdrop-filter: blur(10px);
}
.tl-docs-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.tl-docs-brand__word { height: 26px; width: auto; display: block; }
.tl-docs-brand__pill {
  font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: rgba(30,86,245,.2); color: #c7d4ff;
  border: 1px solid rgba(30,86,245,.35);
}
.tl-docs-topnav { display: flex; gap: 12px; align-items: center; }
.tl-docs-topnav a { color: var(--td-muted); text-decoration: none; font-size: .84rem; font-weight: 700; }
.tl-docs-topnav a:hover { color: #fff; }
.tl-docs-burger {
  display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--td-line);
  background: rgba(255,255,255,.04); padding: 10px; flex-direction: column; justify-content: space-between;
}
.tl-docs-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; }
.tl-docs-body { display: grid; grid-template-columns: 260px minmax(0,1fr); min-height: calc(100vh - 58px); }
.tl-docs-side {
  position: sticky; top: 58px; height: calc(100vh - 58px); overflow: auto;
  background: var(--td-side); border-inline-end: 1px solid var(--td-line);
  padding: 18px 14px 24px; display: flex; flex-direction: column; gap: 8px;
}
.tl-docs-group { margin: 14px 8px 6px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--td-muted); }
.tl-docs-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--td-r);
  color: var(--td-muted); text-decoration: none; font-size: .86rem; font-weight: 600;
}
.tl-docs-link:hover { color: #fff; background: rgba(255,255,255,.04); }
.tl-docs-link.is-on { color: #fff; background: rgba(30,86,245,.14); border: 1px solid rgba(30,86,245,.28); }
.tl-docs-ico {
  width: 18px; height: 18px; flex: 0 0 18px; opacity: .72;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.tl-docs-link.is-on .tl-docs-ico,
.tl-docs-link:hover .tl-docs-ico { opacity: 1; }
.tl-docs-ico[data-ico="home"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 10.5 12 3l9 7.5V21a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1v-10.5z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 10.5 12 3l9 7.5V21a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1v-10.5z'/%3E%3C/svg%3E"); }
.tl-docs-ico[data-ico="list"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E"); }
.tl-docs-ico[data-ico="app"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E"); }
.tl-docs-ico[data-ico="lock"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
.tl-docs-ico[data-ico="key"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11.5 13.5 21 4m-5 1 3 3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11.5 13.5 21 4m-5 1 3 3'/%3E%3C/svg%3E"); }
.tl-docs-ico[data-ico="live"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M5 12a7 7 0 0 1 14 0'/%3E%3Cpath d='M8.5 12a3.5 3.5 0 0 1 7 0'/%3E%3Ccircle cx='12' cy='12' r='1.5' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M5 12a7 7 0 0 1 14 0'/%3E%3Cpath d='M8.5 12a3.5 3.5 0 0 1 7 0'/%3E%3Ccircle cx='12' cy='12' r='1.5' fill='black'/%3E%3C/svg%3E"); }
.tl-docs-ico[data-ico="grid"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='8' height='8' rx='1'/%3E%3Crect x='13' y='3' width='8' height='8' rx='1'/%3E%3Crect x='3' y='13' width='8' height='8' rx='1'/%3E%3Crect x='13' y='13' width='8' height='8' rx='1'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='8' height='8' rx='1'/%3E%3Crect x='13' y='3' width='8' height='8' rx='1'/%3E%3Crect x='3' y='13' width='8' height='8' rx='1'/%3E%3Crect x='13' y='13' width='8' height='8' rx='1'/%3E%3C/svg%3E"); }
.tl-docs-ico[data-ico="tv"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='6' width='20' height='13' rx='2'/%3E%3Cpath d='m8 6 4-3 4 3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='6' width='20' height='13' rx='2'/%3E%3Cpath d='m8 6 4-3 4 3'/%3E%3C/svg%3E"); }
.tl-docs-ico[data-ico="user"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.tl-docs-ico[data-ico="chat"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 12a8 8 0 0 1-8 8H7l-4 3V12a8 8 0 1 1 18 0z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 12a8 8 0 0 1-8 8H7l-4 3V12a8 8 0 1 1 18 0z'/%3E%3C/svg%3E"); }
.tl-docs-ico[data-ico="shield"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3 4 6v6c0 5 3.5 8.5 8 10 4.5-1.5 8-5 8-10V6l-8-3z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3 4 6v6c0 5 3.5 8.5 8 10 4.5-1.5 8-5 8-10V6l-8-3z'/%3E%3C/svg%3E"); }
.tl-docs-ico[data-ico="coin"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v10M9 9.5c1-.8 5-.8 6 0M9 14.5c1 .8 5 .8 6 0'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v10M9 9.5c1-.8 5-.8 6 0M9 14.5c1 .8 5 .8 6 0'/%3E%3C/svg%3E"); }
.tl-docs-ico[data-ico="gift"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='8' width='18' height='13' rx='2'/%3E%3Cpath d='M12 8v13M3 12h18M12 8c-2-3-5-3-5-1s2 2 5 1zm0 0c2-3 5-3 5-1s-2 2-5 1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='8' width='18' height='13' rx='2'/%3E%3Cpath d='M12 8v13M3 12h18M12 8c-2-3-5-3-5-1s2 2 5 1zm0 0c2-3 5-3 5-1s-2 2-5 1z'/%3E%3C/svg%3E"); }
.tl-docs-ico[data-ico="help"],
.tl-docs-ico[data-ico="doc"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9a2.5 2.5 0 1 1 3.7 2.2c-.8.5-1.2 1-1.2 2M12 17h.01'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9a2.5 2.5 0 1 1 3.7 2.2c-.8.5-1.2 1-1.2 2M12 17h.01'/%3E%3C/svg%3E"); }
.tl-docs-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--td-line); display: flex; flex-direction: column; gap: 6px; }
.tl-docs-foot a { color: var(--td-muted); font-size: .78rem; text-decoration: none; padding: 6px 8px; }
.tl-docs-foot a:hover { color: #fff; }
.tl-docs-main { padding: 36px 40px 64px; max-width: 860px; }
.tl-docs-article h1 { margin: 0 0 16px; font-size: 1.85rem; letter-spacing: -.02em; }
.tl-docs-article h2 { margin: 28px 0 10px; font-size: 1.2rem; }
.tl-docs-article h3 { margin: 20px 0 8px; font-size: 1.02rem; }
.tl-docs-article p, .tl-docs-article li { line-height: 1.65; color: #c9ced8; font-size: .95rem; }
.tl-docs-article a { color: #93b4ff; }
.tl-docs-article code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 4px; }
.tl-docs-pre { overflow: auto; background: #0a0b0e; border: 1px solid var(--td-line); border-radius: var(--td-r); padding: 14px 16px; }
.tl-docs-pre code { background: none; padding: 0; color: #d7dbe5; font-size: .82rem; line-height: 1.5; }
.tl-docs-table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .88rem; }
.tl-docs-table td { border: 1px solid var(--td-line); padding: 8px 10px; vertical-align: top; }
@media (max-width: 860px) {
  .tl-docs-burger { display: flex; }
  .tl-docs-topnav { display: none; }
  .tl-docs-body { grid-template-columns: 1fr; }
  .tl-docs-side {
    display: none; position: static; height: auto;
    border-inline-end: 0; border-bottom: 1px solid var(--td-line);
  }
  .tl-docs-side.is-open { display: flex; }
  .tl-docs-main { padding: 24px 18px 48px; }
  .tl-docs-brand__word { height: 22px; }
}
