html:has(> body.portal-navigation) {
  scroll-padding-top: calc(var(--portal-header-height, 100px) + 12px);
}
.portal-navigation > header {
  position: sticky;
  top: 0;
  z-index: 35;
  background: var(--cream, #f7f8fa);
  box-shadow: 0 1px 0 #08263b18;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}
.portal-navigation > header .header-brands { width: auto; }
.portal-navigation > header > .account-actions {
  position: static;
  margin-left: auto;
}
.portal-navigation > header .account-icon { width: 44px; height: 44px; }
.portal-menu-toggle,
.portal-menu-heading button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid #d6dfe5;
  border-radius: 9px;
  background: #fff;
  color: #08263b;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.portal-navigation :is(.portal-menu-toggle, .portal-menu, .portal-bottom) svg {
  width: 21px;
  height: 21px;
  flex: none;
}
.portal-menu {
  position: fixed;
  inset: 0 auto 0 0;
  margin: 0;
  box-sizing: border-box;
  width: min(304px, 90vw);
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 0;
  overflow: auto;
  border: 0;
  background: #08263b;
  color: #fff8ea;
  font: inherit;
}
.portal-menu::backdrop { background: #061b2a65; }
.portal-menu-panel { min-height: 100%; padding: 16px; }
.portal-menu-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ffffff26;
}
.portal-menu-heading h2 {
  margin: 0;
  color: inherit;
  font-size: 18px;
}
.portal-menu-heading button {
  background: #15394e;
  color: #fff8ea;
  border-color: #ffffff35;
}
.portal-menu nav { display: grid; gap: 4px; margin-top: 12px; }
.portal-menu nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 8px;
  color: inherit;
  font-size: 16px;
  text-decoration: none;
}
.portal-menu nav a[data-portal-destination="team"] {
  margin-top: 8px;
  border-top: 1px solid #ffffff26;
  color: #f1d6ad;
}
.portal-menu nav a:hover,
.portal-menu nav a[aria-current="page"] { background: #1c4358; color: #f4d7a5; }
.portal-bottom { display: none; }

.roda-mini-banners > .roda-mini {
  border-color: #d5ae79;
  box-shadow: inset 0 0 0 1px #d5ae7926;
}
@media (prefers-reduced-motion: no-preference) {
  .roda-mini-banners > .roda-mini {
    animation: roda-mini-gold 3s ease-in-out infinite;
  }
  .roda-mini-banners > .roda-mini:nth-child(2) { animation-delay: .24s; }
  .roda-mini-banners > .roda-mini:nth-child(3) { animation-delay: .48s; }
}
@keyframes roda-mini-gold {
  50% {
    border-color: #ffe1a6;
    box-shadow: inset 0 0 0 1px #ffdb9b80, 0 0 13px #f4c77185;
  }
}

@media (max-width: 760px) {
  .portal-navigation { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .portal-navigation > header { padding: 16px 5%; }
  .portal-navigation > header .account-actions { gap: 7px; }
  .portal-navigation .portal-menu-toggle { display: none; }
  .portal-navigation:not(.access-pending) > .portal-bottom {
    position: fixed;
    z-index: 40;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    padding: 4px max(6px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    border-top: 1px solid #d5ae79;
    background: #08263b;
    color: #fff8ea;
  }
  .portal-bottom :is(a, button) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 54px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 12px;
    line-height: 1.15;
    text-decoration: none;
  }
  .portal-bottom :is(a, button):is(:hover, [aria-current="page"]) {
    background: #1c4358;
    color: #f4d7a5;
  }
  .portal-menu {
    inset: auto 0 0;
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 20px);
    border: 1px solid #d5ae79;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
  }
  .portal-menu-panel { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

.is-loading::before {
  content: "";
  display: inline-block;
  width: .9em;
  height: .9em;
  margin-inline-end: .55em;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  vertical-align: -.12em;
  animation: roda-spin .8s linear infinite;
}
@keyframes roda-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  .is-loading::before { animation: none; }
}
.history-filter { display: inline-grid; gap: 4px; margin: 0 8px 12px 0; max-width: 100%; }
.history-filter[hidden] { display: none; }
.history-filter select { max-width: 100%; min-height: 40px; }
#history-chart svg { display: block; width: 100%; min-height: 120px; }
#history-chart text { font: 14px Arial, sans-serif; fill: #40596a; }
.history-values { max-height: 260px; overflow: auto; }
.history-values table { width: 100%; border-collapse: collapse; }
.history-values th, .history-values td { text-align: left; padding: 6px; border-bottom: 1px solid #dce4e9; }
