.gt-sb { position: relative; display: flex; align-items: center; margin-left: -24px; }
.gt-sb-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border: 1px solid var(--panel-line); border-radius: 999px; background: var(--panel); color: var(--ink); font: 600 11px/1 inherit; font-family: inherit; letter-spacing: .06em; cursor: pointer; white-space: nowrap; }
.gt-sb-pill:hover, .gt-sb-pill:focus-visible, .gt-sb.is-open .gt-sb-pill { border-color: var(--accent); }
.gt-sb-tag + .gt-sb-tag::before { content: "·"; margin-right: 6px; opacity: .5; }
.gt-sb-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.gt-sb.is-beta .gt-sb-pill .gt-sb-dot, .gt-sb.is-maintenance .gt-sb-pill .gt-sb-dot, .gt-sb.is-tester .gt-sb-pill .gt-sb-dot { background: #ea580c; box-shadow: 0 0 0 3px rgba(234, 88, 12, .2); }
.gt-sb.is-hidden-page:not(.is-beta):not(.is-maintenance) .gt-sb-pill .gt-sb-dot { background: #a855f7; box-shadow: 0 0 0 3px rgba(168, 85, 247, .2); }

.gt-sb-card { position: absolute; top: calc(100% + 10px); left: 50%; z-index: 300; width: 340px; max-width: calc(100vw - 24px); padding: 14px 16px; border-radius: 12px; background: #0b1220; color: #cbd5e1; font-size: 13px; line-height: 1.45; box-shadow: 0 12px 32px rgba(10, 35, 65, .28); opacity: 0; visibility: hidden; transform: translate(-50%, -4px); transition: opacity .15s ease, transform .15s ease, visibility 0s .15s; }
.gt-sb-card::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.gt-sb:hover .gt-sb-card, .gt-sb:focus-within .gt-sb-card, .gt-sb.is-open .gt-sb-card { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.gt-sb-card p { margin: 0 0 8px; }
.gt-sb-card b { color: #fff; font-weight: 600; }
.gt-sb-who { display: flex; align-items: center; gap: 8px; }
.gt-sb-links { display: flex; flex-wrap: nowrap; gap: 6px; margin: 4px 0 0 !important; }
.gt-sb-links a { flex: none; padding: 4px 10px; white-space: nowrap; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; text-decoration: none; }
.gt-sb-links a:hover, .gt-sb-links a:focus-visible { background: rgba(255, 255, 255, .2); }

@media (min-width: 1021px) and (max-width: 1240px) { .gt-sb { margin-left: -12px; } }
@media (max-width: 800px) {
  .gt-sb { position: static; margin-left: 12px; }
  .gt-sb-card { left: 12px; right: 12px; width: auto; max-width: none; top: calc(100% - 4px); transform: translate(0, -4px); }
  .gt-sb:hover .gt-sb-card, .gt-sb:focus-within .gt-sb-card, .gt-sb.is-open .gt-sb-card { transform: translate(0, 0); }
}

@media (max-width: 420px) { .gt-sb { margin-left: 8px; } .gt-sb-pill { width: 26px; padding: 0; justify-content: center; } .gt-sb-tag { display: none; } }
@media (prefers-reduced-motion: reduce) { .gt-sb-card { transition: none; } }

.gt-hmark { display: inline-flex; align-items: center; gap: 5px; height: 22px; margin-left: 8px; padding: 0 9px 0 7px; vertical-align: middle; border-radius: 999px; color: #fff; background: #9333ea; font: 600 10.5px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .1em; cursor: help; white-space: nowrap; box-shadow: 0 2px 8px rgba(147, 51, 234, .35); }
.gt-hmark svg { flex: none; }

.gt-vv { position: fixed; left: 50%; bottom: 16px; z-index: 400; display: flex; align-items: center; gap: 6px; max-width: calc(100vw - 24px); padding: 6px 6px 6px 14px; border-radius: 999px; background: #0b1220; color: #cbd5e1; font: 13px/1.3 Inter, system-ui, sans-serif; box-shadow: 0 12px 32px rgba(10, 35, 65, .3); transform: translateX(-50%); white-space: nowrap; }
.gt-vv-t { display: inline-flex; align-items: center; gap: 8px; margin-right: 4px; }
.gt-vv-t .gt-sb-dot { background: #ea580c; box-shadow: 0 0 0 3px rgba(234, 88, 12, .25); }
.gt-vv b { color: #fff; font-weight: 600; }
.gt-vv a { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; text-decoration: none; }
.gt-vv a:hover, .gt-vv a:focus-visible { background: rgba(255, 255, 255, .2); }
@media (min-width: 901px) { .gt-vv { top: 12px; bottom: auto; left: 12px; transform: none; } .gt-vv-m { display: none; } }
@media (max-width: 900px) { body:has(.gt-vv) { padding-bottom: 72px; } }
@media (max-width: 480px) { .gt-vv-m { display: none; } }
@media print { .gt-vv { display: none; } }

.sc-home > .gt-hmark { position: absolute; top: 8px; left: 8px; z-index: 3; margin: 0; }
.sc-home.is-staff-only { outline: 2px dashed rgba(147, 51, 234, .55); outline-offset: -2px; border-radius: 6px; background: rgba(147, 51, 234, .04); }

.sc-home.is-off { visibility: hidden; }
