/* Shared static HSX brand layer. Kept outside application containers. */
.hsx-brand-logo {
  display: inline-block;
  width: auto;
  height: 30px;
  max-width: 112px;
  margin-right: 9px;
  object-fit: contain;
  object-position: left center;
  vertical-align: middle;
}

.hsx-brand-name {
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-weight: 700;
  letter-spacing: .12em;
}

#footer .hsx-brand-name,
footer .hsx-brand-name,
.footer .hsx-brand-name {
  letter-spacing: .08em;
}

/* Draggable, viewport-safe return button. */
.hsx-home-return {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 2147483647;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(15, 23, 42, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .20);
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.hsx-home-return span { font: 700 24px/1 Arial, sans-serif; transform: translateY(-1px); }
.hsx-home-return em { font-style: normal; }
.hsx-home-return:hover { background: #0f4c81; color: #fff; border-color: #0f4c81; }
.hsx-home-return:focus-visible { outline: 3px solid #7dd3fc; outline-offset: 3px; }
.hsx-home-return.is-dragging { cursor: grabbing; opacity: .9; }
@media (max-width: 480px) {
  .hsx-home-return { min-height: 40px; padding: 0 11px; right: max(12px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
}
