/* Isolated header controls: compact Founder identity + Home refresh shortcut. */
.app-header {
  position: sticky !important;
  overflow: visible !important;
  z-index: 150 !important;
}
.rm-founder-credit {
  position: absolute !important;
  top: calc(100% + 2px) !important;
  right: 12px !important;
  left: auto !important;
  width: max-content !important;
  max-width: calc(100vw - 74px) !important;
  min-width: 0 !important;
  height: 42px !important;
  min-height: 42px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  padding: 4px 11px 4px 6px !important;
  border: 1.5px solid rgba(53, 232, 255, .9) !important;
  border-radius: 24px !important;
  color: #fff !important;
  background: linear-gradient(105deg, rgba(13, 35, 67, .98), rgba(44, 25, 76, .98), rgba(13, 35, 67, .98)) !important;
  box-shadow: 0 0 8px rgba(53, 232, 255, .2) !important;
  white-space: nowrap !important;
  animation: rm-founder-ribbon-glow 3.4s ease-in-out infinite !important;
}
.rm-founder-credit img {
  position: static !important;
  display: block !important;
  flex: 0 0 31px !important;
  width: 31px !important;
  height: 31px !important;
  min-width: 31px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  border: 1.5px solid #35e8ff !important;
  margin: 0 !important;
  transform: none !important;
  animation: none !important;
}
.rm-founder-credit span {
  display: block !important;
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  text-align: left !important;
  font-size: clamp(9px, 2.5vw, 11px) !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  letter-spacing: .1px !important;
  white-space: nowrap !important;
}
.rm-header-refresh {
  position: absolute;
  top: calc(100% + 3px);
  left: 12px;
  z-index: 170;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1.5px solid rgba(53, 232, 255, .95);
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 30% 20%, #16c9ff, #5548ec 66%, #9b35db);
  box-shadow: 0 0 10px rgba(53, 232, 255, .55), 0 0 17px rgba(155, 92, 255, .28), inset 0 1px 4px rgba(255,255,255,.4);
  font: 800 25px/1 system-ui, sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.rm-header-refresh:active {
  transform: scale(.91) rotate(-35deg);
  filter: brightness(1.2);
}
.rm-header-refresh:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.rm-header-refresh__icon {
  display: block;
  line-height: 1;
  transform-origin: center;
}
.rm-header-refresh.is-refreshing .rm-header-refresh__icon {
  animation: rm-header-refresh-spin .55s linear infinite;
}
@keyframes rm-header-refresh-spin {
  to { transform: rotate(360deg); }
}
@keyframes rm-founder-ribbon-glow {
  0%, 100% {
    border-color: rgba(53, 232, 255, .78);
    box-shadow: 0 0 6px rgba(53, 232, 255, .16);
  }
  50% {
    border-color: rgba(255, 69, 212, .9);
    box-shadow: 0 0 10px rgba(53, 232, 255, .22), 0 0 12px rgba(255, 69, 212, .16);
  }
}
@media (max-width: 400px) {
  .rm-founder-credit {
    right: 10px !important;
    max-width: calc(100vw - 70px) !important;
    height: 40px !important;
    min-height: 40px !important;
    gap: 6px !important;
    padding: 4px 8px 4px 5px !important;
  }
  .rm-founder-credit img {
    flex-basis: 29px !important;
    width: 29px !important;
    height: 29px !important;
    min-width: 29px !important;
  }
  .rm-founder-credit span {
    font-size: 9px !important;
    letter-spacing: 0 !important;
  }
  .rm-header-refresh {
    left: 10px;
    width: 38px;
    height: 38px;
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rm-founder-credit,
  .rm-header-refresh.is-refreshing .rm-header-refresh__icon {
    animation: none !important;
  }
  .rm-header-refresh { transition: none; }
}
