.portal-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.portal-shell[hidden] {
  display: none !important;
}

.portal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.portal-header-spacer {
  flex: 1;
}

.portal-landing {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 32px 20px;
}

.portal-logo {
  display: block;
  height: 90px;
  width: auto;
  max-width: min(450px, 88vw);
  object-fit: contain;
}

.portal-access-message {
  margin: 0;
  max-width: 22rem;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  color: var(--amber, #ffb84d);
}

.portal-access-message[hidden] {
  display: none;
}

.portal-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 22rem;
}

.portal-nav .portal-card[hidden] {
  display: none !important;
}

.portal-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

a.portal-card:hover {
  border-color: var(--accent);
  background: var(--surface2);
}

a.portal-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.portal-card--stub {
  opacity: 0.55;
  cursor: not-allowed;
}

.portal-card-title {
  font-family: "Syne", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.portal-card-hint {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text2);
}
