:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f4f6f9;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }
button, a.button { font: inherit; }
.topbar {
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border-bottom: 1px solid #dfe4ec;
}
.brand { font-weight: 800; text-decoration: none; }
nav { display: flex; gap: 18px; }
nav a { text-decoration: none; color: #5b6475; }
nav a:hover, nav a.active { color: #172033; }
.session { display: flex; align-items: center; gap: 12px; }
.hero, .center-card {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 32px;
}
.hero section { width: min(760px, 100%); text-align: center; }
.hero h1, .card h1 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
}
.card h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.lead {
  margin: 22px auto;
  max-width: 650px;
  color: #5b6475;
  font-size: 1.12rem;
}
.eyebrow {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  color: #5d55d6;
}
.actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 11px 18px;
  background: #2f3bbd;
  color: white;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
}
.button:hover { filter: brightness(1.08); }
.button.small { padding: 8px 12px; }
.button.secondary { background: #e8ebf3; color: #172033; }
.button.danger { background: #b3261e; }
.page { width: min(1000px, calc(100% - 32px)); margin: 40px auto; }
.card {
  padding: clamp(24px, 5vw, 48px);
  background: white;
  border: 1px solid #dfe4ec;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(31, 42, 68, .08);
}
.notice { margin: 24px 0; padding: 16px; border-radius: 10px; }
.notice.success { background: #e9f8ef; color: #176c3a; }
.error-card { max-width: 620px; }
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.profile-grid div { padding: 16px; background: #f6f7fa; border-radius: 10px; }
.profile-grid .wide { grid-column: 1 / -1; }
dt {
  margin-bottom: 4px;
  color: #687184;
  font-size: .83rem;
  font-weight: 700;
  text-transform: uppercase;
}
dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  nav { flex-wrap: wrap; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-grid .wide { grid-column: auto; }
}

[hidden] {
  display: none !important;
}