.portal-header {
  position:relative; z-index:40; overflow:visible;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
  gap:8px 16px; height:auto; min-height:60px; padding:9px clamp(12px,4vw,48px);
  color:#102f43; background:#fff; border-bottom:3px solid #e92032;
}
.portal-brand,.portal-actions { display:flex; align-items:center; gap:8px }
.portal-brand { color:inherit; text-decoration:none }
.portal-brand span {
  display:grid; place-items:center; width:32px; height:32px;
  border-radius:7px; background:#cb1630; color:#fff; font-weight:800;
}
.portal-actions { margin-inline-start:auto; font:600 .875rem/1.3 system-ui,sans-serif }
.portal-header-button {
  display:block; padding:8px 10px; border:1px solid #d1dce2; border-radius:6px;
  color:#102f43; background:#fff; text-decoration:none; cursor:pointer;
}
.portal-header-button:hover { background:#edf3f5 }
.portal-header :focus-visible { outline:2px solid #14759c; outline-offset:3px }
.portal-account { position:relative }
.portal-account-panel {
  position:absolute; z-index:30; right:0; top:calc(100% + 6px);
  display:grid; gap:8px; padding:12px; width:min(260px, calc(100vw - 40px));
  background:#fff; border:1px solid #d1dce2; border-radius:6px; overflow-wrap:anywhere;
}
.portal-account:not([open]) > .portal-account-panel { display:none }
.portal-header .portal-account[hidden] { display:none }
@media(max-width:380px) { .portal-brand strong { display:none } }

.portal-header-button.account-icon {
  display:grid; place-items:center; width:38px; height:38px;
  padding:0; border-radius:50%; list-style:none;
}
.account-icon::-webkit-details-marker { display:none }

.guest-account-panel {
  width:min(300px, calc(100vw - 28px)); padding:17px;
  border-top:3px solid #cb1630; box-shadow:0 10px 28px #102f4326;
}
.guest-account-panel p { margin:0 0 4px; color:#426070; font-weight:400 }
.guest-sign-in {
  display:flex; justify-content:space-between; padding:10px 12px;
  background:#cb1630; color:white; border-radius:5px; text-decoration:none;
}
.guest-sign-in:hover { background:#a71128 }
.guest-new { display:grid; gap:5px; margin-top:5px; padding-top:12px; border-top:1px solid #d1dce2 }
.guest-new a { color:#8e1125 }
.portal-account[open] > summary { background:#edf3f5; border-color:#426070 }

.portal-account[open] > summary { box-shadow:0 0 0 3px #cb163024 }
@media (prefers-reduced-motion: no-preference) {
  .portal-account[open] > .guest-account-panel {
    animation:guest-account-enter 220ms ease-out both;
  }
  @keyframes guest-account-enter {
    from { opacity:0; transform:translateY(-5px) }
    to { opacity:1; transform:translateY(0) }
  }
}
