.gpa {
  --navy: #132c49;
  --mustard: #ad7b14;
  --line: #dbe3eb;
  --muted: #516174;
  max-width: 1240px;
  margin: 24px auto;
  padding: 24px;
  background: #f5f7fa;
  color: var(--navy);
  font:
    16px/1.55 system-ui,
    -apple-system,
    sans-serif;
  border-radius: 20px;
}
.gpa * {
  box-sizing: border-box;
}
.gpa [hidden] {
  display: none !important;
}
.gpa h1 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.2;
  margin: 26px 0 20px;
}
.gpa h2 {
  font-size: 1.2rem;
}
.gpa h3 {
  font-size: 1.08rem;
}
.gpa p {
  margin: 8px 0 16px;
}
.gpa-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.gpa-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.gpa-header p {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0;
}
.gpa a {
  color: var(--navy);
  font-weight: 600;
}
.gpa nav,
.gpa-toolbar,
.gpa-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.gpa-toolbar {
  margin: 20px 0;
}
.gpa nav {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.gpa button {
  border: 1px solid var(--navy);
  border-radius: 8px;
  padding: 10px 15px;
  background: var(--navy);
  color: white;
  font: 600 0.9rem/1.4 system-ui;
  cursor: pointer;
  min-height: 42px;
  margin: 3px 4px 3px 0;
  white-space: normal;
}
.gpa button:hover {
  filter: brightness(1.15);
}
.gpa button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.gpa button.gpa-secondary {
  background: white;
  color: var(--navy);
}
.gpa button.gpa-quiet {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
}
.gpa button.gpa-selected {
  background: #f8e4b3;
  border-color: var(--mustard);
  color: #4c350a;
}
.gpa :is(button, input, select, textarea, a):focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
}
.gpa-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  margin: 18px 0;
  box-shadow: 0 3px 12px #132c4905;
}
.gpa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.gpa-grid .gpa-card {
  margin: 0;
}
.gpa-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gpa-stats strong {
  font-size: 2.1rem;
  color: var(--mustard);
}
.gpa label {
  display: block;
  margin: 12px 0;
}
.gpa label > span {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.gpa :is(input, select, textarea) {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #a9b7c7;
  background: white;
  color: var(--navy);
  border-radius: 7px;
  font: inherit;
  min-height: 44px;
}
.gpa textarea {
  resize: vertical;
}
.gpa-toolbar select {
  width: auto;
}
.gpa form {
  max-width: 820px;
}
.gpa fieldset {
  border: 1px solid var(--line);
  border-left: 4px solid var(--mustard);
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
}
.gpa legend {
  font-weight: 700;
  padding: 0 8px;
}
.gpa-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 20px 0;
  background: white;
}
.gpa table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
}
.gpa th {
  text-align: left;
  background: #eaf0f5;
  padding: 14px;
  white-space: nowrap;
}
.gpa td {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.gpa td .gpa-actions :is(input, select) {
  width: 180px;
}
.gpa-note,
.gpa-empty {
  font-size: 0.88rem;
  color: var(--muted);
}
#gpa-status:not(:empty) {
  border-left: 4px solid #31765b;
  background: #eaf5ef;
  padding: 14px;
  margin: 16px 0;
}
#gpa-status.gpa-error,
.gpa-error {
  background: #fff0ed;
  color: #8e2a1c;
}
.gpa-warning {
  padding: 12px;
  background: #fff4d9;
  color: #674606;
  border-radius: 7px;
}
@media (max-width: 650px) {
  .gpa {
    padding: 16px;
    margin: 12px 0;
    border-radius: 12px;
  }
  .gpa-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .gpa-stats {
    gap: 8px;
  }
  .gpa-stats .gpa-card {
    padding: 12px;
  }
  .gpa-stats p {
    font-size: 0.8rem;
  }
  .gpa-stats strong {
    font-size: 1.6rem;
  }
  .gpa nav {
    gap: 2px;
  }
  .gpa nav button {
    font-size: 0.8rem;
    padding: 8px;
  }
  .gpa-card {
    padding: 16px;
  }
  .gpa-toolbar select {
    width: 100%;
  }
}

/* Academic workspace 1.2: a scoped application shell, independent of the site theme. */
@font-face {
  font-family: "GPA Poppins";
  src: url("fonts/Poppins-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "GPA Poppins";
  src: url("fonts/Poppins-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}
.gpa-app-page
  :is(
    .entry-title,
    .wp-block-post-title,
    .site-header,
    .site-footer,
    #masthead,
    #colophon,
    header.wp-block-template-part,
    footer.wp-block-template-part
  ) {
  display: none !important;
}
.gpa-app-page :is(.ast-container, .site-content, .wp-block-post-content) {
  max-width: none !important;
}
.gpa-app-page .entry-content > .gpa {
  max-width: 1440px !important;
  width: calc(100% - 40px) !important;
}
.gpa-app-page {
  background: #f3f6fa;
}
.gpa-app-page .entry-content,
.gpa-app-page main.wp-block-group {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.gpa {
  --navy: #153452;
  --mustard: #d39408;
  --line: #dfe7f0;
  --muted: #64758a;
  max-width: 1440px;
  margin: 26px auto;
  padding: 0;
  background: white;
  border: 1px solid var(--line);
  border-top: 5px solid #e6ab24;
  border-radius: 22px;
  box-shadow: 0 18px 70px #17375709;
  overflow: hidden;
  font-size: 15px;
}
.gpa :is(h1, h2, h3, h4, .gpa-brand) {
  font-family: "GPA Poppins", system-ui, sans-serif;
}
.gpa h1 {
  letter-spacing: -0.035em;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.gpa h2 {
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}
.gpa h3 {
  font-size: 1.08rem;
}
.gpa-header {
  padding: 25px 38px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.gpa-brand {
  font-weight: 700 !important;
  letter-spacing: -0.055em;
  font-size: 1.5rem;
}
.gpa-brand span {
  font-weight: 400;
}
.gpa-header a {
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px solid #b8c8db;
}
.gpa-header p {
  font-size: 0.65rem;
  color: #6681a3;
  letter-spacing: 0.16em;
}
.gpa #gpa-status:not(:empty) {
  margin: 16px 28px;
  font-size: 0.9rem;
  border-radius: 6px;
}
.gpa-toolbar {
  padding: 20px 30px;
  margin: 0;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
}
.gpa-toolbar > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gpa-toolbar strong {
  font-size: 1rem;
}
.gpa-toolbar select {
  font-size: 0.85rem;
  min-width: 190px;
}
.gpa button {
  font-size: 0.84rem;
  border-radius: 9px;
  padding: 10px 16px;
  transition:
    background 0.15s,
    box-shadow 0.15s;
  letter-spacing: 0;
}
.gpa button:hover {
  filter: none;
  box-shadow: 0 3px 10px #132c4912;
}
.gpa button.gpa-quiet:hover {
  background: #f0f4fa;
}
.gpa button.gpa-secondary:hover {
  background: #f4f7fc;
}
.gpa button.gpa-selected {
  background: #eaf1fb;
  color: #123c69;
  border-color: transparent;
}
.gpa .gpa-eyebrow {
  font-size: 0.66rem !important;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #a67714;
  display: block;
  margin: 0 0 8px;
}
.gpa-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 650px;
}
.gpa nav.gpa-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 25px 14px;
  border-bottom: 0;
  border-right: 1px solid var(--line);
  background: #fbfcfe;
}
.gpa-nav button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 11px;
  padding: 11px 10px;
  margin: 0;
  font-size: 0.82rem;
}
.gpa-nav-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: #53749c;
  font-size: 1.15rem;
  font-weight: 400;
}
.gpa-content {
  min-width: 0;
  padding: 30px;
  background: #f6f8fc;
}
.gpa-section-head {
  margin-bottom: 26px;
}
.gpa-section-head h1 {
  margin: 0 0 10px;
}
.gpa-section-head p {
  color: var(--muted);
  max-width: 660px;
}
.gpa-hero {
  background: linear-gradient(120deg, #102d4c, #1d4b76);
  color: white;
  padding: 55px 55px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(170px, 0.6fr);
  gap: 60px;
  align-items: center;
  position: relative;
  isolation: isolate;
}
.gpa-hero::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  right: -100px;
  top: -150px;
  z-index: -1;
  box-shadow:
    0 0 0 45px #ffffff04,
    0 0 0 90px #ffffff03;
}
.gpa-hero h1 {
  font-family: "GPA Poppins", system-ui, sans-serif;
  color: white;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: 1.14;
  max-width: 720px;
  margin: 13px 0 22px;
}
.gpa-hero .gpa-eyebrow {
  color: #f3bf47;
}
.gpa-hero .gpa-lead {
  color: #c5d5e7;
  font-size: 1rem;
  max-width: 570px;
  line-height: 1.85;
  margin: 0;
}
.gpa-emblem {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.gpa-hero-art {
  background: #ffffff0c;
  border: 1px solid #ffffff24;
  border-radius: 24px;
  padding: 25px;
  transform: rotate(5deg);
  max-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 15px 17px 0 #ffffff04;
}
.gpa-hero-art .gpa-emblem {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  padding: 12px;
  background: #f5bf44;
}
.gpa-hero-art strong {
  font:
    700 1.15rem/1.5 "GPA Poppins",
    sans-serif;
  white-space: pre-line;
}
.gpa-content .gpa-hero {
  border-radius: 16px;
  padding: 32px;
  gap: 25px;
}
.gpa-content .gpa-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}
.gpa-content .gpa-hero-art {
  padding: 15px;
  border-radius: 16px;
}
.gpa-content .gpa-hero-art .gpa-emblem {
  width: 64px;
  height: 64px;
}
.gpa-content .gpa-hero-art strong {
  font-size: 0.86rem;
}
.gpa-choice-section {
  padding: 40px 48px 48px;
  background: #f7f9fc;
}
.gpa-choice-section > p {
  color: var(--muted);
  max-width: 900px;
}
.gpa-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 28px;
}
.gpa-choice-card {
  background: white;
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.gpa-choice-card::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 140px;
  height: 140px;
  border: 24px solid #eff4fc;
  border-radius: 50%;
  pointer-events: none;
}
.gpa-choice-card > .gpa-emblem {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  padding: 9px;
  background: #edf3fb;
  margin-bottom: 22px;
}
.gpa-choice-card:nth-child(2) > .gpa-emblem {
  background: #fff4d7;
}
.gpa-choice-card h3 {
  font-size: 1.6rem;
  margin: 9px 0 14px;
}
.gpa-choice-card p {
  max-width: 470px;
  color: var(--muted);
  font-size: 0.94rem;
  min-height: 56px;
}
.gpa-choice-card ul {
  padding-left: 20px;
  color: #41576f;
  font-size: 0.88rem;
  line-height: 2;
}
.gpa-choice-card button {
  margin-top: 15px;
}
.gpa-card {
  box-shadow: 0 4px 15px #17375704;
  border-radius: 15px;
  margin: 20px 0;
}
.gpa-grid {
  gap: 16px;
}
.gpa-shortcut {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.gpa-shortcut p {
  font-size: 0.87rem;
  color: var(--muted);
  flex: 1;
}
.gpa-shortcut h2 {
  margin: 14px 0 8px;
}
.gpa-shortcut-icon {
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  background: #eef3fa;
  color: #426a99;
  border-radius: 12px;
  width: 45px;
  height: 45px;
}
.gpa-soon {
  background: #fbfcfe;
  opacity: 0.85;
}
.gpa-stats .gpa-card {
  padding: 20px;
  margin: 22px 0;
}
.gpa-stats strong {
  color: var(--navy);
  font-size: 2rem;
}
.gpa-stats p {
  font-size: 0.82rem;
  margin-bottom: 0;
  color: var(--muted);
}
.gpa-info,
.gpa-course-summary {
  padding: 17px 20px;
  border: 1px solid #dce6f4;
  background: #edf3fb;
  color: #33516f;
  border-radius: 10px;
  margin: 18px 0;
  line-height: 1.75;
  font-size: 0.9rem;
}
.gpa-info p {
  margin-bottom: 0;
}
.gpa-course-summary strong {
  display: block;
  font-size: 1rem;
}
.gpa-course-summary small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.gpa-details {
  margin: 24px 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
}
.gpa-details > summary {
  cursor: pointer;
  font-weight: 700;
  color: #1a436c;
}
.gpa-details[open] > summary {
  margin-bottom: 10px;
}
.gpa-details .gpa-card {
  box-shadow: none;
}
.gpa :is(input, select, textarea) {
  font-size: 0.92rem;
  border-color: #c4d0de;
}
.gpa label > span {
  font-size: 0.84rem;
}
.gpa :is(input, select, textarea):read-only:not(select) {
  background: #f6f8fc;
}
.gpa input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: #194a78;
  flex-shrink: 0;
}
.gpa-source-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #4c6887;
  margin: -5px 0 20px;
}
.gpa-source-toggle input {
  margin: 0;
}
.gpa-image-field {
  padding: 16px;
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 20px 0;
}
.gpa-image-field h4 {
  margin: 0 0 10px;
}
.gpa-profile-image {
  max-width: 150px;
  max-height: 110px;
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
  border-radius: 8px;
}
.gpa-days {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.gpa-days label {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 0.85rem;
}
.gpa-student-picker {
  display: grid;
  gap: 6px;
  max-height: 320px;
  overflow: auto;
  margin: 15px 0;
}
.gpa-student-picker label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 13px;
  margin: 0;
}
.gpa-student-picker label > span {
  margin: 0;
  font-weight: 400;
}
.gpa-month-bar {
  display: flex;
  align-items: end;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.gpa-month-bar label {
  margin: 10px 0;
}
.gpa-month-bar button {
  margin-bottom: 10px;
}
.gpa-attendance-sheet {
  max-height: 650px;
  position: relative;
  isolation: isolate;
}
.gpa-attendance-sheet table {
  font-size: 0.8rem;
}
.gpa-attendance-sheet th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #e7eff9;
  font-size: 0.8rem;
  min-width: 54px;
  padding: 8px 4px;
  text-align: center;
}
.gpa-attendance-sheet th:first-child,
.gpa-attendance-sheet td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 190px;
  max-width: 230px;
  text-align: left;
  padding: 12px;
  background: white;
  box-shadow: 2px 0 4px #132c4908;
}
.gpa-attendance-sheet th:first-child {
  z-index: 4;
  background: #e7eff9;
}
.gpa-attendance-sheet td {
  padding: 6px 4px;
  vertical-align: middle;
  background: #fff;
}
.gpa-day-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 43px;
}
.gpa-day-head small {
  font-size: 0.65rem;
  font-weight: 400;
  color: #718197;
}
.gpa button.gpa-day-enable {
  font-size: 0.65rem;
  min-height: 18px;
  width: 22px;
  padding: 0;
  border: 0;
  background: #dfe8f4;
  color: var(--navy);
  margin: 2px 0 0;
}
.gpa-roster-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gpa-roster-name strong {
  font-weight: 600;
}
.gpa-roster-name small {
  font-size: 0.64rem;
  color: var(--muted);
}
.gpa select.gpa-att-mark {
  appearance: auto;
  width: 48px;
  min-width: 48px;
  min-height: 38px;
  border: 1px solid #dce4ed;
  padding: 3px;
  font-size: 0.76rem;
  text-align: center;
  border-radius: 6px;
  background: #f8fafd;
}
.gpa select.gpa-att-mark:disabled {
  background: #eff2f6;
  color: #b3bfcb;
  border-color: transparent;
  opacity: 1;
}
.gpa select.gpa-att-mark[data-status="present"] {
  background: #e6f3ec;
  border-color: #b8deca;
  color: #27684a;
}
.gpa select.gpa-att-mark[data-status="absent"] {
  background: #fcebe8;
  border-color: #f3c7c0;
  color: #9d372b;
}
.gpa select.gpa-att-mark[data-status="excused"] {
  background: #fff3cf;
  border-color: #edd88c;
  color: #866212;
}
.gpa .gpa-grade-input {
  width: 110px;
  min-width: 90px;
}
.gpa-save-bar {
  padding: 12px 0;
}
.gpa .gpa-warning {
  font-size: 0.88rem;
}
@media (max-width: 1000px) {
  .gpa-shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .gpa nav.gpa-nav {
    padding: 20px 8px;
  }
  .gpa-nav button {
    font-size: 0.77rem;
    gap: 7px;
    padding: 10px 6px;
  }
  .gpa-content {
    padding: 22px;
  }
  .gpa-hero {
    gap: 30px;
    padding: 40px;
  }
  .gpa-content .gpa-hero-art {
    display: none;
  }
  .gpa-content .gpa-hero {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .gpa-app-page .entry-content > .gpa {
    width: calc(100% - 16px) !important;
  }
  .gpa {
    border-radius: 15px;
    margin: 12px auto;
    font-size: 14px;
  }
  .gpa-header {
    padding: 19px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .gpa-brand {
    font-size: 1.12rem;
  }
  .gpa-header p {
    font-size: 0.52rem;
    letter-spacing: 0.06em;
  }
  .gpa-header a {
    font-size: 0.7rem;
    max-width: 100px;
  }
  .gpa-toolbar {
    padding: 17px;
    align-items: stretch;
    gap: 13px;
  }
  .gpa-toolbar > div {
    width: 100%;
  }
  .gpa-toolbar .gpa-actions {
    justify-content: space-between;
  }
  .gpa-toolbar select {
    width: auto;
    min-width: 160px;
    max-width: 100%;
    font-size: 0.77rem;
  }
  .gpa-toolbar button {
    font-size: 0.73rem;
    padding: 9px;
  }
  .gpa-shell {
    display: flex;
    flex-direction: column;
  }
  .gpa nav.gpa-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px;
    gap: 3px;
  }
  .gpa-nav button {
    flex-shrink: 0;
    white-space: nowrap;
    gap: 5px;
  }
  .gpa-nav-icon {
    width: 20px;
    font-size: 1rem;
  }
  .gpa-content {
    padding: 19px;
  }
  .gpa-hero {
    padding: 30px 24px;
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .gpa-hero h1 {
    font-size: 2.15rem;
  }
  .gpa-hero .gpa-lead {
    font-size: 0.88rem;
  }
  .gpa-hero-art {
    display: none;
  }
  .gpa-choice-section {
    padding: 25px 20px;
  }
  .gpa-choice-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .gpa-choice-card {
    padding: 24px;
  }
  .gpa-choice-card h3 {
    font-size: 1.4rem;
  }
  .gpa-choice-card p {
    min-height: 0;
  }
  .gpa-choice-card > .gpa-emblem {
    margin-bottom: 14px;
  }
  .gpa-stats {
    gap: 6px;
  }
  .gpa-stats .gpa-card {
    padding: 12px;
    margin: 16px 0;
  }
  .gpa-stats strong {
    font-size: 1.5rem;
  }
  .gpa-stats p {
    font-size: 0.66rem;
  }
  .gpa-card {
    padding: 17px;
  }
  .gpa-grid {
    grid-template-columns: 1fr;
  }
  .gpa-stats .gpa-card {
    border-radius: 10px;
  }
  .gpa-details {
    padding: 14px;
  }
  .gpa-info,
  .gpa-course-summary {
    padding: 13px;
    font-size: 0.84rem;
  }
  .gpa-attendance-sheet th:first-child,
  .gpa-attendance-sheet td:first-child {
    min-width: 135px;
    max-width: 150px;
    font-size: 0.72rem;
  }
  .gpa-roster-name small {
    font-size: 0.59rem;
  }
  .gpa-month-bar button {
    font-size: 0.72rem;
    padding: 9px;
  }
  .gpa .gpa-note {
    font-size: 0.77rem;
  }
}
.gpa-hero {
  overflow: hidden;
}
.gpa-hero::after {
  pointer-events: none;
}
.gpa :is(h1, h2, h3, h4) {
  font-weight: 700;
}
.gpa-app-page #wpadminbar {
  display: none !important;
}

.gpa-app-page {
  --wp--style--root--padding-left: 16px;
  --wp--style--root--padding-right: 16px;
}
/* Institutional coordination */
.gpa-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
  background: white;
}
.gpa-calendar-week {
  background: #e8eff9;
  padding: 10px;
  text-align: center;
  font-size: 0.78rem;
}
.gpa-calendar-day {
  min-height: 120px;
  padding: 9px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.gpa-calendar-empty {
  background: #f6f8fb;
  border-top: 1px solid var(--line);
}
.gpa button.gpa-calendar-date {
  width: 30px;
  min-height: 30px;
  padding: 3px;
  border: 0;
  background: transparent;
  color: var(--navy);
  margin: 0;
  align-self: flex-start;
  font-size: 0.82rem;
}
.gpa-cal-tag {
  font-size: 0.68rem;
  padding: 3px 5px;
  background: #eaf1fb;
  color: #345575;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gpa-cal-off {
  background: #fff0c7;
  color: #7c5b19;
}
.gpa-calendar-off {
  background: #fffbf0;
}
.gpa-calendar-day > small {
  font-size: 0.65rem;
  color: #657a92;
}
.gpa-event {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 14px 0;
}
.gpa-event small {
  display: block;
  color: var(--muted);
}
.gpa-thread-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 22px 0;
}
.gpa-thread-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gpa button.gpa-thread-topic {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  text-align: left;
  background: white;
  border-color: var(--line);
  color: var(--navy);
  padding: 15px;
  margin: 0;
}
.gpa-thread-topic small {
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--muted);
}
.gpa-thread-layout > .gpa-card {
  margin: 0;
  min-width: 0;
}
.gpa-message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.gpa-reply {
  padding: 15px;
  margin: 18px 0;
  background: #f4f7fb;
  border-left: 3px solid #b9cde6;
  border-radius: 7px;
}
.gpa-reply > strong {
  font-size: 0.86rem;
}
.gpa-reply > small {
  font-size: 0.68rem;
  color: var(--muted);
}
.gpa-audit-json {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 600px;
  max-height: 350px;
  overflow: auto;
  font-size: 0.7rem;
  line-height: 1.5;
  background: #f5f7fa;
  padding: 12px;
}
.gpa-nav {
  max-height: none;
}
.gpa .gpa-closed-period {
  background: #fff3d5;
  border: 1px solid #efd188;
  padding: 14px;
  border-radius: 8px;
  font-size: 0.88rem;
}
@media (max-width: 1000px) {
  .gpa-thread-layout {
    grid-template-columns: 1fr;
  }
  .gpa-thread-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .gpa-calendar-day {
    min-height: 100px;
    padding: 5px;
  }
  .gpa-calendar-week {
    padding: 8px 2px;
  }
}
@media (max-width: 600px) {
  .gpa-calendar-day {
    min-height: 88px;
    padding: 3px;
    gap: 3px;
  }
  .gpa-calendar-week {
    font-size: 0.64rem;
  }
  .gpa-cal-tag {
    font-size: 0.57rem;
    padding: 2px 3px;
  }
  .gpa-calendar-day > small {
    font-size: 0.54rem;
  }
  .gpa button.gpa-calendar-date {
    font-size: 0.72rem;
    width: 24px;
    min-height: 25px;
  }
  .gpa-calendar-empty {
    min-height: 60px;
  }
  .gpa-thread-layout {
    gap: 12px;
  }
}
#gpa-app[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.72;
  cursor: progress;
}

/* Student records remain readable without horizontal table scrolling on phones. */
@media (max-width: 600px) {
  #gpa-portal .gpa-table-wrap { overflow: visible; }
  #gpa-portal table, #gpa-portal tbody, #gpa-portal tr, #gpa-portal td { display: block; width: auto; }
  #gpa-portal thead { display: none; }
  #gpa-portal tr + tr { border-top: 2px solid var(--line); }
  #gpa-portal td { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; overflow-wrap: anywhere; }
  #gpa-portal td::before { content: attr(data-label); font-weight: 700; }
  #gpa-portal td:first-child { border-top: 0; }
}
/* Certificate editor and review, scoped to the academic application. */
.gpa-certificate-preview{display:block;width:100%;height:450px;border:1px solid #cbd7e4;margin:18px 0}.gpa [hidden]{display:none!important}.gpa-certificate-list .gpa-card{padding:16px;margin:12px 0}.gpa-certificate-list button,.gpa-certificate-list a{margin:5px}.gpa fieldset{border:1px solid #cbd7e4;border-radius:12px;padding:16px;margin:16px 0}.gpa fieldset label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px}.gpa details>summary{cursor:pointer;font-weight:600;margin:12px 0}
.gpa-cert-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}.gpa-cert-tabs button{padding:13px 18px}.gpa-cert-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.gpa-cert-gallery img{display:block;width:100%;aspect-ratio:297/210;object-fit:contain;background:#fff;border:1px solid #d8e1ed}.gpa-cert-gallery .gpa-cert-signature{height:140px;aspect-ratio:auto}.gpa-cert-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}.gpa-cert-filters label{margin:0}.gpa-cert-table{min-width:880px;width:100%}.gpa-cert-table td{vertical-align:top;overflow-wrap:anywhere}.gpa-cert-table details[open]{min-width:150px}.gpa-cert-table details button,.gpa-cert-table details a{display:block;margin:6px 0}.gpa-cert-table input[type=checkbox]{width:20px;height:20px}.gpa-cert-dialog{width:min(850px,95vw);max-height:90vh;border:0;border-radius:16px;padding:0;color:#142d4c}.gpa-cert-dialog::backdrop{background:#142d4c80}.gpa-cert-dialog .gpa-card{margin:0}.gpa label:has(>input[type=checkbox]),.gpa label:has(>input[type=radio]){display:flex;align-items:center;gap:10px}.gpa input[type=checkbox],.gpa input[type=radio]{width:20px;flex:0 0 20px}.gpa .gpa-actions{margin:15px 0;align-items:center}.gpa .gpa-actions>span{margin-right:10px}@media(max-width:650px){.gpa-cert-filters{grid-template-columns:1fr}.gpa-cert-table{min-width:0}.gpa-cert-table thead{display:none}.gpa-cert-table tr{display:block;border:1px solid #d7e1ed;border-radius:12px;margin:12px 0;padding:12px}.gpa-cert-table td{display:block;border:0;padding:8px 0}.gpa-cert-table td:before{content:attr(data-label);display:block;font-size:12px;font-weight:bold;color:#64778e;margin-bottom:4px}.gpa-cert-gallery{grid-template-columns:1fr}}

/* Quotations retain compact rows inside their horizontal scroll area on phones. */
.gpa-quote-list table { min-width: 900px; }
.gpa-quote-total { font-weight: 700; padding: 16px; background: #f2f6fb; border-radius: 10px; }
.gpa-quote-items { min-width: 0; }
@media (min-width: 900px) {
  .gpa-quote-items fieldset { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px; }
  .gpa-quote-items fieldset > label:has(textarea), .gpa-quote-items fieldset > p { grid-column: 1 / -1; }
}
