* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ug-cream); color: var(--ug-ink); font-family: var(--font-body); }
body { margin: 0; min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.sidebar {
  background: var(--ug-navy);
  color: var(--white);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.shield {
  width: 38px;
  height: 44px;
  border: 2px solid var(--ug-gold);
  border-radius: 14px 14px 18px 18px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  color: var(--ug-gold);
}
.brand strong { font-family: var(--font-display); font-size: 21px; line-height: 1.05; }
.brand span { display: block; color: rgba(255,255,255,.72); font-size: 12px; margin-top: 3px; }
.nav { display: grid; gap: 8px; }
.nav a, .logout {
  border: 0;
  color: var(--white);
  text-decoration: none;
  background: rgba(255,255,255,.08);
  padding: 11px 12px;
  border-radius: 6px;
  text-align: left;
}
.nav a:hover, .logout:hover { box-shadow: inset 0 -3px 0 var(--ug-gold); }
.main { padding: 28px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(360px, 42vw);
  padding: 6px 10px 6px 7px;
  border: 1px solid rgba(0,41,100,.35);
  border-radius: 999px;
  background: rgba(216,236,255,.72);
  color: var(--ug-navy);
  box-shadow: 0 10px 24px rgba(0,41,100,.08);
}
.profile-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  background: var(--ug-navy);
  box-shadow: 0 0 0 1px rgba(0,41,100,.2);
}
.profile-avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}
.profile-copy {
  display: grid;
  min-width: 0;
  line-height: 1.1;
}
.profile-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.profile-copy span {
  margin-top: 3px;
  color: var(--ug-slate);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: 0; }
h1 { font-size: 34px; color: var(--ug-navy); }
h2 { font-size: 24px; color: var(--ug-navy); }
h3 { font-size: 18px; }
p { line-height: 1.55; }
.muted { color: var(--ug-slate); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); align-items: start; }
.panel {
  background: var(--white);
  border: 1px solid var(--ug-rule);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--ug-gold);
  margin-bottom: 16px;
}
@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid.two { grid-template-columns: 1fr; }
  .main { padding: 18px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .profile-chip { max-width: 100%; }
}
