.tb-side,.tb-side *{box-sizing:border-box}
body.tb-has-side{display:flex;min-height:100vh;align-items:stretch}
.tb-side{position:sticky;top:0;flex:0 0 248px;width:248px;height:100vh;overflow:auto;border-right:1px solid #30354d;background:#12162a;color:#eef2ff;padding:12px 10px 28px;z-index:8}
.tb-side a{color:inherit;text-decoration:none}
.tb-brand{display:flex;align-items:center;gap:8px;padding:6px 8px 12px;font-weight:750}
.tb-brand img{width:28px;height:28px;border-radius:8px}
.tb-side .tb-group{margin:10px 0 6px;padding:0 8px;color:#8b96b8;font-size:.75rem;letter-spacing:.04em}
.tb-side .tb-item{display:flex;align-items:center;gap:4px;border-radius:8px}
.tb-side .tb-item a{flex:1;min-width:0;display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:8px;font-size:.88rem}
.tb-side .tb-item a:hover,.tb-side .tb-item.is-on a{background:#2a3358}
.tb-side .tb-item.is-on a{color:#7ad7ff}
.tb-side .tb-ico{width:1.25em;text-align:center}
.tb-side .tb-star{width:34px;min-height:34px;border:0;background:transparent;color:#9aa6c8;cursor:pointer;border-radius:8px}
.tb-side .tb-star:hover,.tb-side .tb-star.is-on{color:#f2d36b}
.tb-main{flex:1;min-width:0}
.tb-burger{display:none;position:fixed;top:10px;left:10px;z-index:12;min-width:44px;min-height:44px;border:1px solid #39425f;border-radius:8px;background:#191c2e;color:#eef0ff}
.tb-mask{display:none}
.tb-help{margin:18px 0 8px;border:1px solid #30354d;border-radius:12px;background:#191c2e;padding:14px 16px;color:#cbd3ee;font-size:.92rem}
.tb-help h2{margin:0 0 8px;font-size:1rem;color:#eef2ff}
html[data-theme=light] .tb-side{background:#f3f5fb;color:#17243b;border-color:#d9dfec}
html[data-theme=light] .tb-side .tb-group{color:#6b778c}
html[data-theme=light] .tb-side .tb-item a:hover,html[data-theme=light] .tb-side .tb-item.is-on a{background:#e8ecfb}
html[data-theme=light] .tb-side .tb-item.is-on a{color:#2156c9}
html[data-theme=light] .tb-burger{background:#fff;color:#17243b;border-color:#cbd5e5}
html[data-theme=light] .tb-help{background:#fff;color:#52627a;border-color:#d9dfec}
html[data-theme=light] .tb-help h2{color:#17243b}
@media(max-width:900px){
  body.tb-has-side{display:block}
  .tb-burger{display:inline-flex;align-items:center;justify-content:center}
  .tb-side{position:fixed;left:0;top:0;transform:translateX(-105%);transition:transform .18s ease;box-shadow:8px 0 28px rgba(0,0,0,.28)}
  body.tb-side-open .tb-side{transform:none}
  body.tb-side-open .tb-mask{display:block;position:fixed;inset:0;background:rgba(6,8,16,.45);z-index:7}
  .tb-main{padding-top:52px}
}
