* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f8;
  color: #1f2937;
}

header {
  background: #111827;
  color: white;
  padding: 28px 40px;
}

header h1 {
  margin: 0;
  font-size: 30px;
}

header p {
  margin: 8px 0 0;
  color: #d1d5db;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px;
}

section {
  background: white;
  margin-bottom: 22px;
  padding: 24px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

section h2 {
  margin-top: 0;
}

section div:has(> h3) {
  display: inline-block;
  vertical-align: top;
  width: 30%;
  min-width: 220px;
  margin: 8px 1% 8px 0;
  padding: 18px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

section div:has(> h3) h3 {
  margin-top: 0;
}

section div:has(> h3) p {
  margin-bottom: 0;
  font-weight: bold;
}

/* Customer portal only. Auth, settings, billing, and support keep the light rules above. */
body.portal-shell {
  background: #0d1117;
  color: #e6edf3;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
}

body.portal-shell .portal-frame {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

body.portal-shell .portal-nav {
  width: 280px;
  flex: 0 0 280px;
  background: #010409;
  color: #e6edf3;
  border-right: 1px solid #30363d;
  padding: 24px 16px;
}

body.portal-shell .portal-brand {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.01em;
  border-left: 2px solid #2f81f7;
  padding-left: 10px;
}

body.portal-shell .portal-brand-sub {
  margin: 8px 0 20px;
  color: #8b949e;
  font-size: 13px;
}

body.portal-shell .portal-nav a {
  display: block;
  color: #e6edf3;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 8px 10px;
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.35;
}

body.portal-shell .portal-nav a:hover,
body.portal-shell .portal-nav a:focus {
  color: #58a6ff;
  border-color: #30363d;
}

body.portal-shell .portal-content {
  flex: 1;
  min-width: 0;
}

body.portal-shell header {
  background: #0d1117;
  border-bottom: 1px solid #30363d;
  padding: 20px 32px;
}

body.portal-shell header p {
  color: #8b949e;
}

body.portal-shell main {
  max-width: 1100px;
}

body.portal-shell section {
  background: #0d1117;
  color: #e6edf3;
  border: 1px solid #30363d;
  border-radius: 0;
}

body.portal-shell section h2 {
  padding-bottom: 8px;
  border-bottom: 1px solid #30363d;
}

body.portal-shell a {
  color: #58a6ff;
}

body.portal-shell .employee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

body.portal-shell section div:has(> h3) {
  display: block;
  width: auto;
  min-width: 0;
  margin: 0;
  background: #161b22;
  color: #e6edf3;
  border: 1px solid #30363d;
  border-top: 2px solid #2f81f7;
  border-radius: 0;
}

body.portal-shell .readiness {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.portal-shell .readiness li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #30363d;
}

body.portal-shell .readiness span {
  color: #8b949e;
}

@media (max-width: 800px) {
  body.portal-shell .portal-frame {
    flex-direction: column;
  }

  body.portal-shell .portal-nav {
    width: auto;
    flex: none;
    border-right: 0;
    border-bottom: 1px solid #30363d;
  }

  body.portal-shell main {
    padding: 16px;
  }

  body.portal-shell .employee-grid {
    grid-template-columns: 1fr;
  }

  body.portal-shell .readiness li {
    flex-direction: column;
    gap: 4px;
  }
}