/* Tool Hub — shared corner chrome (home / donate / language) */
.th-chrome {
  position: fixed;
  top: 14px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.th-chrome-left { left: 14px; }
.th-chrome-right { right: 14px; }
.th-chrome a, .th-chrome .th-lang { pointer-events: auto; }

.th-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: .04em;
  white-space: nowrap;
  color: var(--muted, #7b7f8f);
  background: color-mix(in srgb, var(--panel, #14161e) 82%, transparent);
  border: 1px solid var(--panel-border, var(--border, #262a37));
  border-radius: 20px;
  padding: 7px 13px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.th-pill:hover {
  border-color: var(--holo-b, #29e0d6);
  color: var(--holo-b, #29e0d6);
  transform: translateY(-1px);
}
.th-pill--accent {
  color: var(--holo-b, #29e0d6);
  border-color: color-mix(in srgb, var(--holo-b, #29e0d6) 35%, var(--panel-border, #262a37));
}
.th-pill-x { font-size: 13px; line-height: 1; }

.th-lang {
  display: flex;
  background: color-mix(in srgb, var(--panel, #14161e) 82%, transparent);
  border: 1px solid var(--panel-border, var(--border, #262a37));
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.th-lang button {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  border: none;
  background: transparent;
  color: var(--muted, #7b7f8f);
  padding: 7px 12px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.th-lang button:hover { color: var(--ink, var(--text, #eef0f5)); }
.th-lang button.active {
  background: var(--holo-b, #29e0d6);
  color: #08090d;
}

@media (max-width: 560px) {
  .th-chrome { top: 10px; }
  .th-chrome-left { left: 10px; }
  .th-chrome-right { right: 10px; }
  .th-pill { padding: 6px 10px; font-size: 10.5px; }
  .th-pill--accent span.full { display: none; }
  .th-lang button { padding: 6px 9px; }
}
