/* Shared by all user pages, so the persistent header never changes layout on navigation. */
.fw-user-body .fw-brand-pill { gap: 10px; padding: 3px 12px 3px 4px; border-color: transparent; background: transparent; box-shadow: none; overflow: visible; }
.fw-user-body .fw-brand-logo { flex-shrink: 0; width: 42px; height: 46px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.fw-user-body .fw-brand-logo img { width: 37px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 5px #ff7b2c55) drop-shadow(0 0 13px #ff7b2c20); transition: filter .2s; }
.fw-user-body .fw-brand-copy strong { font: 600 17px/1.2 'IBM Plex Sans', sans-serif; letter-spacing: -.045em; color: #f5f0e9; }
.fw-user-body .fw-brand-copy small { font: 400 8px/1.5 'IBM Plex Mono', monospace; letter-spacing: .15em; color: #cb9062; }
.fw-user-body .fw-brand-pill:focus-visible { outline: 2px solid #ffad70; outline-offset: 4px; border-radius: 8px; }
@media (hover: hover) and (pointer: fine) {
  .fw-user-body .fw-brand-pill:hover .fw-brand-logo img { filter: drop-shadow(0 0 7px #ff9b4e99) drop-shadow(0 0 16px #ff7b2c40); }
}
.fw-user-body .fw-balance-pill { position: relative; }
.fw-user-body .fw-balance-pill::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #73737e; position: absolute; right: 6px; top: 6px; }
.fw-user-body .fw-balance-pill[data-live='true']::after { background: #83d9ba; box-shadow: 0 0 6px #83d9ba66; }
.fw-user-body .fw-balance-pill[data-live='false']::after { background: #e6b270; }
@media (max-width: 1280px) {
  .fw-user-body .fw-topbar { grid-template-columns: auto minmax(0,1fr) auto; min-height: 62px; height: auto; gap: 8px; padding: 7px 9px; }
  .fw-user-body .fw-brand-pill { grid-column: auto; width: auto; justify-self: start; }
  .fw-user-body .fw-top-tabs { grid-column: auto; grid-row: auto; width: auto; justify-self: center; }
  .fw-user-body .fw-top-actions { grid-column: auto; grid-row: auto; display: flex; width: auto; justify-content: end; flex-wrap: nowrap; }
  .fw-user-body .fw-user-pill span, .fw-user-body .fw-credit-button span { display: none; }
  .fw-user-body .fw-credit-button { width: 40px; padding: 0; justify-content: center; }
  .fw-user-body .fw-user-pill { padding: 0; }
}
@media (max-width: 640px) {
  .fw-user-body .fw-user-pill { display: none; }
  .fw-user-body .fw-topbar { width: calc(100vw - 16px); gap: 4px; padding: 5px; }
  .fw-user-body .fw-brand-copy small { display: none; }
  .fw-user-body .fw-brand-pill { gap: 6px; padding: 0 4px; }
  .fw-user-body .fw-brand-logo { width: 30px; height: 36px; }
  .fw-user-body .fw-brand-logo img { width: 29px; height: 33px; }
  .fw-user-body .fw-brand-copy strong { font-size: 13px; }
  .fw-user-body .fw-top-tab span { display: none; }
  .fw-user-body .fw-top-tabs { gap: 3px; padding: 3px; }
  .fw-user-body .fw-top-tab { width: 36px; height: 36px; padding: 8px; justify-content: center; }
  .fw-user-body .fw-top-actions { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .fw-user-body .fw-brand-logo img { transition: none; }
}
@media (max-width: 440px) {
  .fw-user-body .fw-brand-copy { display: none; }
  .fw-user-body .fw-brand-pill { min-width: 38px; width: 38px; padding: 3px; }
  .fw-user-body .fw-topbar { grid-template-columns: 38px auto minmax(0,1fr); }
  .fw-user-body .fw-balance-pill { padding: 0 6px; max-width: 85px; }
  .fw-user-body .fw-balance-pill strong { overflow: hidden; text-overflow: ellipsis; }
}

/* One moving surface avoids overlapping hover/active tiles during shell navigation. */
.fw-user-body .fw-top-tabs {
  --tab-inset: 4px;
  --tab-gap: 4px;
  --tab-height: 40px;
  position: relative;
  isolation: isolate;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  width: 280px;
  height: calc(var(--tab-height) + var(--tab-inset) * 2 + 2px);
  min-height: 0;
  gap: var(--tab-gap);
  padding: var(--tab-inset);
  border: 1px solid #ffffff0b;
  border-radius: 17px;
  background: linear-gradient(180deg, #08090bb3, #0c0d1099);
  box-shadow: inset 0 1px 3px #0004;
}
.fw-user-body .fw-tab-thumb {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  top: var(--tab-inset);
  left: var(--tab-inset);
  width: calc((100% - var(--tab-inset) * 2 - var(--tab-gap)) / 2);
  height: var(--tab-height);
  border: 1px solid #ffb77b35;
  border-radius: 13px;
  background: linear-gradient(155deg, #39322cf5, #211e1bf5 60%, #27211af5);
  box-shadow: inset 0 1px #fff2, inset 0 -1px #ff9b3914, 0 3px 8px #0004, 0 0 16px #ff8b2710;
  transform: translateX(0);
  opacity: 1;
  transition: transform 360ms cubic-bezier(.22, 1, .36, 1), opacity 180ms ease;
}
.fw-user-body .fw-tab-thumb::after {
  content: '';
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffc28caa, transparent);
  box-shadow: 0 1px 7px #ff973b44;
}
.fw-user-body .fw-top-tabs[data-active="1"] .fw-tab-thumb { transform: translateX(calc(100% + var(--tab-gap))); }
.fw-user-body .fw-top-tabs[data-active="none"] .fw-tab-thumb { opacity: 0; }
.fw-user-body .fw-top-tab {
  position: relative;
  z-index: 1;
  width: auto;
  min-width: 0;
  height: var(--tab-height);
  min-height: 0;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 13px;
  color: #96969e;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 220ms ease;
}
.fw-user-body .fw-top-tab,
.fw-user-body .fw-top-tab:hover,
.fw-user-body .fw-top-tab.is-active { background: transparent; border-color: transparent; box-shadow: none; }
.fw-user-body .fw-top-tab.is-active { color: #fff1e3; }
.fw-user-body .fw-top-tab img {
  opacity: .55;
  transition: opacity 220ms ease, filter 220ms ease, transform 160ms ease;
}
.fw-user-body .fw-top-tab.is-active img { opacity: 1; filter: brightness(0) invert(1) drop-shadow(0 0 4px #ffc58d45); }
.fw-user-body .fw-top-tab:active img { transform: scale(.92); }
.fw-user-body .fw-top-tab:focus-visible { outline: 2px solid #ffbc85; outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .fw-user-body .fw-top-tab:not(.is-active):hover { color: #e1d7cd; }
  .fw-user-body .fw-top-tab:not(.is-active):hover img { opacity: .85; }
}
@media (max-width: 720px) {
  .fw-user-body .fw-top-tabs { --tab-inset: 3px; --tab-gap: 2px; --tab-height: 38px; width: 86px; border-radius: 15px; }
  .fw-user-body .fw-top-tab { padding: 8px; border-radius: 11px; }
  .fw-user-body .fw-tab-thumb { border-radius: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .fw-user-body .fw-tab-thumb, .fw-user-body .fw-top-tab, .fw-user-body .fw-top-tab img { transition: none; }
  .fw-user-body .fw-top-tab:active img { transform: none; }
}
