#tg-theme-toggle {
 display: inline-grid;
 place-items: center;
 flex: none;
 width: 36px;
 height: 36px;
 border-radius: 50%;
 background: #f0f1f2;
 color: #e8ab00;
}
[data-bs-theme="dark"] #tg-theme-toggle {background:#2d3035;color:#397dfa}
#tg-theme-toggle:hover {filter:brightness(.93)}
#tg-theme-toggle:active {transform:scale(.95)}
#tg-theme-toggle svg {display:none;width:18px;height:18px}
[data-tg-mode="light"] #tg-theme-toggle .tg-light-label,
[data-tg-mode="dark"] #tg-theme-toggle .tg-dark-label,
[data-tg-mode="system"] #tg-theme-toggle .tg-system-label {display:block}
#tg-theme-toggle .tg-system-label {color:var(--bs-body-color)}
#tg-rules-link {margin-inline-start:.35rem}
[component="brand/wrapper"] {flex-grow:1;min-width:0}
[component="brand/wrapper"] #tg-theme-toggle {margin-inline-start:auto}
@media (min-width: 992px) {
 [component="brand/logo"] {width:112px;height:75px;max-width:18vw;object-fit:contain}
 [component="brand/wrapper"] {min-height:84px}
}
.tg-hide-management {display:none!important}
[data-bs-theme="dark"] {color-scheme:dark}
[data-bs-theme="dark"] body {background:var(--bs-body-bg,#212529);color:var(--bs-body-color,#dee2e6)}
.users > h3,#tg-popular-title,a[href$="/users"] .nav-text,a[href$="/popular"] .nav-text {direction:rtl;unicode-bidi:isolate;font-family:Arial,sans-serif;letter-spacing:normal}
.tg-emoji-menu {position:fixed;z-index:1080;display:grid;direction:rtl;grid-template-columns:repeat(7,minmax(0,1fr));width:min(292px,calc(100vw - 16px));gap:2px;padding:6px;border:1px solid var(--bs-border-color);border-radius:10px;background:var(--bs-body-bg);box-shadow:0 .25rem .75rem #0002}
.tg-emoji-menu button {border:0;background:transparent;border-radius:6px;min-height:36px;font-size:20px;line-height:1.2;padding:0}
.tg-emoji-menu button:hover,.tg-emoji-menu button:focus-visible,.tg-emoji-menu button[aria-pressed=true] {background:var(--bs-secondary-bg)}
.tg-counts {display:inline-flex;gap:2px}
.tg-counts span {font-size:.8rem;white-space:nowrap}
.tg-custom-badge {background:#40577a;color:#fff}
.tg-badge-dialog {padding:1.1rem;width:min(24rem,92vw);border:1px solid var(--bs-border-color);border-radius:.8rem;background:var(--bs-body-bg);color:var(--bs-body-color)}
#tg-rules-link {color:#fff;background-color:#18733e;border-color:#18733e}
#tg-rules-link:hover,#tg-rules-link:focus-visible {color:#fff;background-color:#105e31;border-color:#105e31}
#tg-rules-link:active {background-color:#0d522a}
#tg-profile-card {position:fixed;z-index:1080;width:min(19rem,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;box-sizing:border-box;text-align:center;color:var(--bs-body-color);background:var(--bs-body-bg);border:1px solid var(--bs-border-color);border-radius:.7rem;box-shadow:0 .5rem 1.5rem #0003}
.tg-profile-cover {height:6.6rem;background:var(--bs-tertiary-bg,#8883)}
.tg-profile-cover img {width:100%;height:100%;object-fit:cover}
.tg-profile-identity {display:flex;position:relative;align-items:center;flex-direction:column;gap:.25rem;margin:-1.8rem .75rem .4rem;color:inherit;text-decoration:none;overflow-wrap:anywhere}
.tg-profile-portrait {display:grid;place-items:center;width:3.6rem;height:3.6rem;object-fit:cover;border:3px solid var(--bs-body-bg);border-radius:50%;color:white;font-size:1.35rem}
.tg-profile-actions {display:flex;justify-content:center;gap:.3rem}
.tg-profile-tags {display:flex;justify-content:center;gap:.25rem;flex-wrap:wrap;margin:.3rem .6rem}
.tg-profile-tags:empty {display:none}
.tg-profile-bio {margin:.5rem .8rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere}
#tg-profile-card dl {display:flex;justify-content:center;gap:1.35rem;margin:.9rem .5rem 1.15rem}
#tg-profile-card dl div {display:flex;flex-direction:column-reverse}
#tg-profile-card dt {font-size:.75rem;font-weight:400;color:var(--bs-secondary-color)}
#tg-profile-card dd {font-size:1.35rem;margin:0;font-variant-numeric:tabular-nums}
