:root {
  color-scheme: light;
  font-family: "Aptos", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(127, 190, 210, 0.28), transparent 28%),
    radial-gradient(circle at bottom right, rgba(245, 184, 116, 0.18), transparent 26%),
    linear-gradient(180deg, #fbf6ec 0%, #eef6f8 100%);
  color: #173042;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

body,
button,
input,
textarea,
select,
table,
th,
td {
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

a {
  color: #15546b;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.portal-nav,
.stack {
  display: grid;
  gap: 1rem;
}

.auth-summary-card {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  color: #23455c;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(35, 69, 92, 0.08);
}

.auth-summary-card small {
  color: #5b6d81;
  word-break: normal;
}

.portal-link,
.student-subnav-link {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  color: #23455c;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(35, 69, 92, 0.08);
}

.portal-link.active,
.student-subnav-link.active {
  background: linear-gradient(135deg, #0c6277, #1e8790);
  color: #f7fbfd;
}

.student-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
}

.student-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(12, 98, 119, 0.12);
  color: #0c6277;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-card,
.student-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.4rem;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(12, 98, 119, 0.95), rgba(38, 115, 120, 0.82)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  color: #f4fbfd;
  box-shadow: 0 28px 64px rgba(23, 48, 66, 0.16);
}

.hero-card h2,
.student-hero h2 {
  margin: 0.55rem 0 0.4rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.hero-card p,
.student-hero p {
  margin: 0;
  color: rgba(244, 251, 253, 0.86);
  line-height: 1.6;
}

.hero-actions,
.student-hero-meta {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.hero-action-link,
.student-summary-card,
.action-row,
.activity-row,
.snapshot-row,
.risk-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: #173042;
}

.hero-action-link {
  background: rgba(255, 255, 255, 0.12);
  color: #f7fbfd;
}

.hero-action-link span,
.hero-action-link small {
  color: rgba(247, 251, 253, 0.82);
}

.hero-action-link,
.student-summary-card,
.action-row {
  flex-direction: column;
}

.action-row p,
.activity-row p,
.snapshot-row p,
.student-summary-card small {
  margin: 0.2rem 0 0;
  color: #4f6576;
}

.action-row-meta,
.activity-meta {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
}

.student-card-link,
.student-summary-card {
  border: 1px solid rgba(23, 48, 66, 0.08);
}

.chip-row,
.button-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(12, 98, 119, 0.1);
  color: #0d5b70;
  font-size: 0.82rem;
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.two-column,
.document-grid,
.three-column {
  display: grid;
  gap: 1rem;
}

.two-column {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 1rem;
}

.compact-grid {
  align-items: start;
}

.document-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.document-catalog-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.document-accordion {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(23, 48, 66, 0.08);
  overflow: clip;
}

.document-accordion + .document-accordion {
  margin-top: 0.25rem;
}

.document-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
}

.document-accordion-summary::-webkit-details-marker {
  display: none;
}

.document-accordion-summary strong,
.document-accordion-summary small {
  display: block;
}

.document-accordion-summary small {
  margin-top: 0.2rem;
  color: #587080;
}

.document-accordion-indicator::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(12, 98, 119, 0.1);
  color: #0c6277;
  font-size: 1.2rem;
  font-weight: 700;
}

.document-accordion[open] .document-accordion-indicator::before {
  content: "−";
}

.document-accordion .document-grid {
  padding: 0 1rem 1rem;
}

.three-column {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 1rem;
}

.plain-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.1rem;
}

.field-label {
  display: grid;
  gap: 0.45rem;
}

.field-input,
.entry-textarea {
  width: 100%;
  border: 1px solid rgba(23, 48, 66, 0.14);
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  color: #173042;
}

.entry-textarea {
  min-height: 130px;
  resize: vertical;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
}

.primary-button {
  background: #0d6278;
  color: #f8fbfd;
}

.secondary-button {
  background: #dbeef4;
  color: #17485a;
}

.ghost-button {
  background: transparent;
  color: #0d6278;
  border: 1px solid rgba(13, 98, 120, 0.2);
}

@media (max-width: 900px) {
  .hero-card,
  .student-hero {
    grid-template-columns: 1fr;
  }
}
