:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #152033;
  --muted: #667085;
  --accent: #176b87;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.topbar {
  background: linear-gradient(135deg, #12343b, #176b87);
  color: white;
  padding: 2rem clamp(1rem, 4vw, 3rem);
}
.eyebrow {
  margin: 0 0 .35rem;
  color: #b6e3ef;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
}
h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 3rem); }
.shell {
  width: min(1100px, calc(100% - 2rem));
  margin: -1.5rem auto 3rem;
}
.hero-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(21, 32, 51, .12);
  padding: clamp(1.25rem, 4vw, 2rem);
}
.hero-card h2 { margin-top: 0; }
.hero-card p { color: var(--muted); line-height: 1.6; }
.portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.25rem;
}
.portal-nav a,
.portal-nav .nav-placeholder,
.account-link,
.link-button {
  color: white;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: .45rem .8rem;
  text-decoration: none;
  background: rgba(255, 255, 255, .12);
  font: inherit;
  cursor: pointer;
}
.portal-nav .nav-placeholder {
  cursor: default;
  opacity: .62;
  border-style: dashed;
}
.portal-nav a:hover,
.account-link:hover,
.link-button:hover { background: rgba(255, 255, 255, .2); }
.user-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
  color: #d7f4fb;
}
.user-menu form { margin: 0; }
.dashboard-hero { margin-bottom: 1.25rem; }
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.summary-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(21, 32, 51, .09);
  padding: 1.25rem;
}
.summary-label {
  display: block;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: .5rem;
}
.summary-count {
  display: block;
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
}
.summary-card p { color: var(--muted); line-height: 1.5; }
