*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

.hidden {
  display: none !important;
}

body {
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #1a1d26;
  background: #f4f6f9;
}

.portal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.25rem 3rem;
}

.portal-header {
  width: 100%;
  max-width: 40rem;
  margin-bottom: 2rem;
  text-align: center;
}

.portal-logo {
  display: block;
  width: 5.75rem;
  height: auto;
  margin: 0 auto 0.85rem;
}

.portal-header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.portal-header p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.portal-main {
  width: 100%;
  max-width: 40rem;
}

.portal-status {
  text-align: center;
  color: #6b7280;
  font-size: 0.88rem;
  padding: 2rem 0;
}

.portal-status.is-error {
  color: #b91c1c;
}

.portal-categories {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.portal-category {
  background: #fff;
  border: 1px solid #e2e6ee;
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 4px 18px rgba(26, 35, 50, 0.05);
}

.portal-category-title {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.portal-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.portal-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: #1a1d26;
  font-weight: 500;
  transition: background 0.15s ease;
}

.portal-link:hover {
  background: #f3f5f9;
}

.portal-link-title {
  flex: 1;
  min-width: 0;
}

.portal-link-url {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  color: #9ca3af;
}

.portal-link-arrow {
  flex-shrink: 0;
  color: #9ca3af;
  font-size: 0.85rem;
}

.portal-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: #9ca3af;
}
