html.portfolio-auth-pending body > *:not(#portfolio-auth-root) {
  display: none !important;
}

#portfolio-auth-root {
  display: block;
}

.portfolio-access-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eef6ff;
  color: #071426;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.portfolio-access-panel {
  width: min(100%, 560px);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid #b8d5ee;
  border-top: 8px solid #00599c;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(4, 56, 109, 0.12);
}

.portfolio-access-panel img {
  width: min(100%, 230px);
  height: auto;
  margin-bottom: 28px;
}

.portfolio-access-eyebrow {
  margin: 0 0 10px;
  color: #00599c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.portfolio-access-panel h1 {
  margin: 0 0 14px;
  color: #04386d;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.08;
}

.portfolio-access-panel p {
  line-height: 1.6;
}

.portfolio-primary,
.portfolio-signout,
.portfolio-secondary {
  min-height: 44px;
  border: 2px solid #00599c;
  border-radius: 4px;
  background: #00599c;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.portfolio-primary {
  margin-top: 18px;
  padding: 10px 18px;
}

.portfolio-secondary {
  padding: 10px 18px;
  background: #fff;
  color: #04386d;
}

.portfolio-session-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  padding-left: 16px;
}

.portfolio-signout {
  padding: 8px 14px;
  white-space: nowrap;
}

.portfolio-primary:hover,
.portfolio-signout:hover,
.portfolio-secondary:hover {
  background: #04386d;
  border-color: #04386d;
  color: #fff;
}

.portfolio-primary:focus-visible,
.portfolio-signout:focus-visible,
.portfolio-secondary:focus-visible {
  outline: 3px solid #e07a28;
  outline-offset: 3px;
}

.portfolio-primary:disabled {
  cursor: wait;
  opacity: 0.72;
}

.portfolio-session-warning {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 56, 109, 0.74);
  color: #071426;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.portfolio-session-warning-panel {
  width: min(100%, 560px);
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid #b8d5ee;
  border-top: 8px solid #00599c;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
}

.portfolio-session-warning-panel h2 {
  margin: 0 0 14px;
  color: #04386d;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.08;
}

.portfolio-session-warning-copy {
  margin-bottom: 0;
  line-height: 1.6;
}

.portfolio-session-warning-error:not(:empty) {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 4px solid #a12a1e;
  background: #fff0ee;
  color: #721c13;
}

.portfolio-session-warning-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.portfolio-session-warning-actions .portfolio-primary {
  margin-top: 0;
}

@media (max-width: 720px) {
  .portfolio-session-actions {
    width: 100%;
    margin-left: 0;
    padding: 12px 0 0;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-primary,
  .portfolio-signout,
  .portfolio-secondary {
    scroll-behavior: auto;
  }
}
