@charset "UTF-8";

.gpa-rec {
  --gpa-ink: #3a2416;
  --gpa-muted: #745842;
  --gpa-border: #5a3520;
  --gpa-border-soft: #ad8a62;
  --gpa-paper: #fbf0d9;
  --gpa-paper-strong: #fff7e8;
  --gpa-panel: #fff3dd;
  --gpa-input: #fffaf0;
  --gpa-cta: #f9e4b8;
  --gpa-cta-hover: #f5d793;
  --gpa-green: #2f7d53;
  --gpa-green-dark: #1f5d3e;
  --gpa-shadow: rgba(90, 53, 32, 0.18);
  box-sizing: border-box !important;
  width: min(100%, 1040px) !important;
  margin: 22px auto 28px !important;
  color: var(--gpa-ink) !important;
  font-family: Inter, "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif !important;
  letter-spacing: -0.025em !important;
}

.gpa-rec,
.gpa-rec *,
.gpa-rec *::before,
.gpa-rec *::after {
  box-sizing: border-box !important;
}

.gpa-rec :where(button, input, select) {
  font: inherit !important;
}

.gpa-rec__shell {
  display: block !important;
  overflow: hidden !important;
  border: 2px solid var(--gpa-border) !important;
  border-radius: 0 !important;
  background:
    linear-gradient(rgba(90, 53, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 53, 32, 0.035) 1px, transparent 1px),
    var(--gpa-paper) !important;
  background-size: 18px 18px, 18px 18px, auto !important;
  box-shadow: 7px 7px 0 var(--gpa-shadow) !important;
}

.gpa-rec__title {
  display: block !important;
  padding: clamp(18px, 2.4vw, 26px) clamp(16px, 2.6vw, 28px) !important;
  background:
    linear-gradient(135deg, rgba(255, 247, 232, 0.96), rgba(249, 228, 184, 0.72)),
    var(--gpa-paper-strong) !important;
}

.gpa-rec__eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  margin: 0 0 8px !important;
  padding: 5px 8px !important;
  border: 2px solid var(--gpa-border) !important;
  border-radius: 0 !important;
  background: #fffaf0 !important;
  color: var(--gpa-ink) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
}

.gpa-rec__title h2 {
  margin: 0 !important;
  color: var(--gpa-ink) !important;
  font-size: clamp(25px, 3vw, 34px) !important;
  line-height: 1.08 !important;
  font-weight: 950 !important;
  letter-spacing: -0.045em !important;
}

.gpa-rec__title p:not(.gpa-rec__eyebrow) {
  max-width: 680px !important;
  margin: 8px 0 0 !important;
  color: var(--gpa-muted) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  font-weight: 750 !important;
}

.gpa-rec__body {
  display: grid !important;
  grid-template-columns: minmax(0, 1.32fr) minmax(300px, 0.88fr) !important;
  gap: 14px !important;
  align-items: start !important;
  min-width: 0 !important;
  padding: 16px !important;
  border-top: 2px solid var(--gpa-border) !important;
  background: rgba(255, 250, 240, 0.52) !important;
}

.gpa-rec__panel {
  min-width: 0 !important;
  border: 2px solid var(--gpa-border) !important;
  border-radius: 0 !important;
  background: var(--gpa-panel) !important;
  padding: 14px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48) !important;
}

.gpa-rec__panel-head {
  display: grid !important;
  gap: 3px !important;
  margin: 0 0 12px !important;
}

.gpa-rec__panel-head h3 {
  margin: 0 !important;
  color: var(--gpa-ink) !important;
  font-size: 18px !important;
  line-height: 1.18 !important;
  font-weight: 950 !important;
  letter-spacing: -0.04em !important;
}

.gpa-rec__panel-head p,
.gpa-rec__mini-note,
.gpa-rec__basis p {
  margin: 0 !important;
  color: var(--gpa-muted) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  font-weight: 720 !important;
}

.gpa-rec__table-wrap {
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border: 2px solid var(--gpa-border) !important;
  border-radius: 0 !important;
  background: var(--gpa-input) !important;
}

.gpa-rec__table {
  width: 100% !important;
  min-width: 560px !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  color: var(--gpa-ink) !important;
}

.gpa-rec__table caption {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.gpa-rec__table th,
.gpa-rec__table td {
  border: 1px solid rgba(90, 53, 32, 0.38) !important;
  padding: 8px !important;
  vertical-align: middle !important;
  text-align: center !important;
}

.gpa-rec__table th {
  background: #f7dfad !important;
  color: var(--gpa-ink) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

.gpa-rec__table td:first-child,
.gpa-rec__table th:first-child {
  text-align: left !important;
  width: 42% !important;
}

.gpa-rec__table td:nth-child(2),
.gpa-rec__table th:nth-child(2),
.gpa-rec__table td:nth-child(3),
.gpa-rec__table th:nth-child(3) {
  width: 20% !important;
}

.gpa-rec__table td:last-child,
.gpa-rec__table th:last-child {
  width: 18% !important;
  text-align: center !important;
}

.gpa-rec__subject-input,
.gpa-rec__select {
  display: block !important;
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 2px solid var(--gpa-border-soft) !important;
  border-radius: 0 !important;
  background: var(--gpa-input) !important;
  color: var(--gpa-ink) !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 950 !important;
  font-variant-numeric: tabular-nums !important;
  outline: none !important;
  box-shadow: none !important;
  appearance: auto !important;
}

.gpa-rec__subject-input::placeholder {
  color: rgba(116, 88, 66, 0.72) !important;
  font-weight: 650 !important;
}

.gpa-rec__subject-input:focus,
.gpa-rec__select:focus,
.gpa-rec__button:focus-visible,
.gpa-rec__delete:focus-visible,
.gpa-rec__table-wrap:focus-visible {
  outline: 3px solid rgba(47, 125, 83, 0.38) !important;
  outline-offset: 2px !important;
}

.gpa-rec__delete {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border: 2px solid var(--gpa-border-soft) !important;
  border-radius: 0 !important;
  background: #fff0df !important;
  color: #8b392d !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.gpa-rec__delete:hover {
  background: #f7d4bf !important;
}

.gpa-rec__actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 12px 0 8px !important;
}

.gpa-rec__button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  width: 100% !important;
  padding: 10px 12px !important;
  border: 2px solid var(--gpa-border) !important;
  border-radius: 0 !important;
  color: var(--gpa-ink) !important;
  font-size: 14px !important;
  line-height: 1.12 !important;
  font-weight: 950 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: 3px 3px 0 rgba(90, 53, 32, 0.12) !important;
}

.gpa-rec__button--primary {
  background: var(--gpa-cta) !important;
}

.gpa-rec__button--primary:hover {
  background: var(--gpa-cta-hover) !important;
}

.gpa-rec__button--secondary {
  background: #fffaf0 !important;
}

.gpa-rec__button--secondary:hover {
  background: #f6e6c7 !important;
}

.gpa-rec__hero-card {
  display: grid !important;
  gap: 5px !important;
  margin: 0 0 10px !important;
  padding: 18px 16px !important;
  border: 2px solid var(--gpa-border) !important;
  border-radius: 0 !important;
  background: linear-gradient(135deg, var(--gpa-green), var(--gpa-green-dark)) !important;
  color: #fffaf0 !important;
  text-align: center !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16) !important;
}

.gpa-rec__hero-card span,
.gpa-rec__metric span {
  display: block !important;
  color: inherit !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 850 !important;
}

.gpa-rec__hero-card strong {
  display: block !important;
  color: inherit !important;
  font-size: clamp(40px, 5vw, 58px) !important;
  line-height: 0.98 !important;
  font-weight: 950 !important;
  font-variant-numeric: tabular-nums !important;
}

.gpa-rec__metrics {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 0 12px !important;
}

.gpa-rec__metric {
  display: grid !important;
  place-items: center !important;
  min-height: 82px !important;
  padding: 12px 8px !important;
  border: 2px solid var(--gpa-border-soft) !important;
  border-radius: 0 !important;
  background: var(--gpa-input) !important;
  color: var(--gpa-ink) !important;
  text-align: center !important;
}

.gpa-rec__metric strong {
  display: block !important;
  color: var(--gpa-ink) !important;
  font-size: 25px !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
  font-variant-numeric: tabular-nums !important;
}

.gpa-rec__basis {
  display: grid !important;
  gap: 4px !important;
  padding: 12px !important;
  border: 2px dashed rgba(90, 53, 32, 0.45) !important;
  border-radius: 0 !important;
  background: rgba(255, 250, 240, 0.72) !important;
}

.gpa-rec__basis strong {
  color: var(--gpa-ink) !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 950 !important;
}

@media (max-width: 820px) {
  .gpa-rec {
    margin: 16px auto 22px !important;
  }

  .gpa-rec__body {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
  }

  .gpa-rec__title {
    padding: 18px 14px !important;
  }

  .gpa-rec__panel {
    padding: 12px !important;
  }
}

@media (max-width: 430px) {
  .gpa-rec {
    width: min(100%, calc(100vw - 16px)) !important;
    margin-inline: auto !important;
  }

  .gpa-rec__shell {
    box-shadow: 4px 4px 0 var(--gpa-shadow) !important;
  }

  .gpa-rec__body {
    gap: 10px !important;
    padding: 10px !important;
  }

  .gpa-rec__panel {
    padding: 10px !important;
  }

  .gpa-rec__table-wrap {
    overflow-x: hidden !important;
  }

  .gpa-rec__table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .gpa-rec__table th,
  .gpa-rec__table td {
    padding: 4px 3px !important;
  }

  .gpa-rec__table td:first-child,
  .gpa-rec__table th:first-child {
    width: 34% !important;
  }

  .gpa-rec__table td:nth-child(2),
  .gpa-rec__table th:nth-child(2),
  .gpa-rec__table td:nth-child(3),
  .gpa-rec__table th:nth-child(3) {
    width: 25% !important;
  }

  .gpa-rec__table td:last-child,
  .gpa-rec__table th:last-child {
    width: 16% !important;
  }

  .gpa-rec__subject-input,
  .gpa-rec__select {
    height: 34px !important;
    min-height: 34px !important;
    padding-inline: 4px !important;
    font-size: 12px !important;
  }

  .gpa-rec__delete {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    font-size: 14px !important;
  }

  .gpa-rec__actions,
  .gpa-rec__metrics {
    gap: 8px !important;
  }

  .gpa-rec__button {
    min-height: 42px !important;
    padding-inline: 8px !important;
    font-size: 13px !important;
  }

  .gpa-rec__metric strong {
    font-size: 22px !important;
  }
}

body.cs-scheme-dark .gpa-rec,
body.cs-site-scheme-dark .gpa-rec,
body.dark-mode .gpa-rec,
html[data-scheme="dark"] .gpa-rec,
body[data-scheme="dark"] .gpa-rec {
  --gpa-ink: #f8ead1;
  --gpa-muted: #d8bea0;
  --gpa-border: #e2bb83;
  --gpa-border-soft: #a98358;
  --gpa-paper: #24170f;
  --gpa-paper-strong: #332115;
  --gpa-panel: #2b1c12;
  --gpa-input: #1c130d;
  --gpa-cta: #e5c17c;
  --gpa-cta-hover: #f0d49d;
  --gpa-green: #2f8f61;
  --gpa-green-dark: #236b4b;
  --gpa-shadow: rgba(0, 0, 0, 0.36);
}

body.cs-scheme-dark .gpa-rec__title,
body.cs-site-scheme-dark .gpa-rec__title,
body.dark-mode .gpa-rec__title,
html[data-scheme="dark"] .gpa-rec__title,
body[data-scheme="dark"] .gpa-rec__title {
  background: linear-gradient(135deg, rgba(51, 33, 21, 0.98), rgba(77, 50, 28, 0.84)) !important;
}

body.cs-scheme-dark .gpa-rec__table th,
body.cs-site-scheme-dark .gpa-rec__table th,
body.dark-mode .gpa-rec__table th,
html[data-scheme="dark"] .gpa-rec__table th,
body[data-scheme="dark"] .gpa-rec__table th {
  background: #3d2818 !important;
}

body.cs-scheme-dark .gpa-rec__button--secondary,
body.cs-site-scheme-dark .gpa-rec__button--secondary,
body.dark-mode .gpa-rec__button--secondary,
html[data-scheme="dark"] .gpa-rec__button--secondary,
body[data-scheme="dark"] .gpa-rec__button--secondary,
body.cs-scheme-dark .gpa-rec__basis,
body.cs-site-scheme-dark .gpa-rec__basis,
body.dark-mode .gpa-rec__basis,
html[data-scheme="dark"] .gpa-rec__basis,
body[data-scheme="dark"] .gpa-rec__basis {
  background: #24170f !important;
}

@media (prefers-color-scheme: dark) {
  body:not(.cs-scheme-light):not([data-scheme="light"]) .gpa-rec {
    --gpa-ink: #f8ead1;
    --gpa-muted: #d8bea0;
    --gpa-border: #e2bb83;
    --gpa-border-soft: #a98358;
    --gpa-paper: #24170f;
    --gpa-paper-strong: #332115;
    --gpa-panel: #2b1c12;
    --gpa-input: #1c130d;
    --gpa-cta: #e5c17c;
    --gpa-cta-hover: #f0d49d;
    --gpa-green: #2f8f61;
    --gpa-green-dark: #236b4b;
    --gpa-shadow: rgba(0, 0, 0, 0.36);
  }
}

/* 20260617 mobile table no-scroll hardening: render rows as compact mobile cards instead of a wide table. */
@media (max-width: 430px) {
  .gpa-rec .gpa-rec__table-wrap {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: auto !important;
  }

  .gpa-rec .gpa-rec__table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }

  .gpa-rec .gpa-rec__table thead {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .gpa-rec .gpa-rec__table tbody {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  .gpa-rec .gpa-rec__table tr.gpa-rec__row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 7px !important;
    border: 1px solid rgba(90, 53, 32, 0.38) !important;
    background: rgba(255, 250, 240, 0.78) !important;
  }

  .gpa-rec .gpa-rec__table th,
  .gpa-rec .gpa-rec__table td {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
  }

  .gpa-rec .gpa-rec__table td:first-child {
    grid-column: 1 / -1 !important;
  }

  .gpa-rec .gpa-rec__table td:nth-child(2) {
    grid-column: 1 !important;
  }

  .gpa-rec .gpa-rec__table td:nth-child(3) {
    grid-column: 2 !important;
  }

  .gpa-rec .gpa-rec__table td:last-child {
    grid-column: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .gpa-rec .gpa-rec__subject-input,
  .gpa-rec .gpa-rec__select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 32px !important;
    min-height: 32px !important;
    padding-inline: 5px !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
  }

  .gpa-rec .gpa-rec__subject-input::placeholder {
    font-size: 11px !important;
  }

  .gpa-rec .gpa-rec__delete {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    font-size: 14px !important;
  }
}

body.cs-scheme-dark .gpa-rec .gpa-rec__table tr.gpa-rec__row,
body.cs-site-scheme-dark .gpa-rec .gpa-rec__table tr.gpa-rec__row,
body.dark-mode .gpa-rec .gpa-rec__table tr.gpa-rec__row,
html[data-scheme="dark"] .gpa-rec .gpa-rec__table tr.gpa-rec__row,
body[data-scheme="dark"] .gpa-rec .gpa-rec__table tr.gpa-rec__row {
  background: rgba(36, 23, 15, 0.82) !important;
  border-color: rgba(226, 187, 131, 0.5) !important;
}


/* 20260617 dark-readable hardening: dark mode must pass visible text contrast, not only overflow. */
body.cs-scheme-dark .gpa-rec .gpa-rec__body,
body.cs-site-scheme-dark .gpa-rec .gpa-rec__body,
body.dark-mode .gpa-rec .gpa-rec__body,
html[data-scheme="dark"] .gpa-rec .gpa-rec__body,
body[data-scheme="dark"] .gpa-rec .gpa-rec__body {
  background: rgba(28, 19, 13, 0.78) !important;
}

body.cs-scheme-dark .gpa-rec .gpa-rec__eyebrow,
body.cs-site-scheme-dark .gpa-rec .gpa-rec__eyebrow,
body.dark-mode .gpa-rec .gpa-rec__eyebrow,
html[data-scheme="dark"] .gpa-rec .gpa-rec__eyebrow,
body[data-scheme="dark"] .gpa-rec .gpa-rec__eyebrow {
  color: #2b2119 !important;
  background: #f7df9d !important;
  border-color: #e2bb83 !important;
}

body.cs-scheme-dark .gpa-rec .gpa-rec__button--primary,
body.cs-site-scheme-dark .gpa-rec .gpa-rec__button--primary,
body.dark-mode .gpa-rec .gpa-rec__button--primary,
html[data-scheme="dark"] .gpa-rec .gpa-rec__button--primary,
body[data-scheme="dark"] .gpa-rec .gpa-rec__button--primary {
  color: #2b2119 !important;
  background: #e5c17c !important;
  border-color: #e2bb83 !important;
}

body.cs-scheme-dark .gpa-rec .gpa-rec__button--primary:hover,
body.cs-site-scheme-dark .gpa-rec .gpa-rec__button--primary:hover,
body.dark-mode .gpa-rec .gpa-rec__button--primary:hover,
html[data-scheme="dark"] .gpa-rec .gpa-rec__button--primary:hover,
body[data-scheme="dark"] .gpa-rec .gpa-rec__button--primary:hover {
  color: #2b2119 !important;
  background: #f0d49d !important;
}

body.cs-scheme-dark .gpa-rec .gpa-rec__button--secondary,
body.cs-site-scheme-dark .gpa-rec .gpa-rec__button--secondary,
body.dark-mode .gpa-rec .gpa-rec__button--secondary,
html[data-scheme="dark"] .gpa-rec .gpa-rec__button--secondary,
body[data-scheme="dark"] .gpa-rec .gpa-rec__button--secondary {
  color: #f8ead1 !important;
  background: #1c130d !important;
  border-color: #a98358 !important;
}

body.cs-scheme-dark .gpa-rec .gpa-rec__button--secondary:hover,
body.cs-site-scheme-dark .gpa-rec .gpa-rec__button--secondary:hover,
body.dark-mode .gpa-rec .gpa-rec__button--secondary:hover,
html[data-scheme="dark"] .gpa-rec .gpa-rec__button--secondary:hover,
body[data-scheme="dark"] .gpa-rec .gpa-rec__button--secondary:hover {
  color: #f8ead1 !important;
  background: #2d1e13 !important;
}


/* 20260617 dark-readable v2: also safe when stale mobile HTML references this older CSS path. */
body.cs-scheme-dark .gpa-rec .gpa-rec__body,
body.cs-site-scheme-dark .gpa-rec .gpa-rec__body,
body.dark-mode .gpa-rec .gpa-rec__body,
html[data-scheme="dark"] .gpa-rec .gpa-rec__body,
body[data-scheme="dark"] .gpa-rec .gpa-rec__body {
  background: rgba(28, 19, 13, 0.78) !important;
}
body.cs-scheme-dark .gpa-rec .gpa-rec__eyebrow,
body.cs-site-scheme-dark .gpa-rec .gpa-rec__eyebrow,
body.dark-mode .gpa-rec .gpa-rec__eyebrow,
html[data-scheme="dark"] .gpa-rec .gpa-rec__eyebrow,
body[data-scheme="dark"] .gpa-rec .gpa-rec__eyebrow {
  color: #2b2119 !important;
  background: #f7df9d !important;
  border-color: #e2bb83 !important;
}
body.cs-scheme-dark .gpa-rec .gpa-rec__button--primary,
body.cs-site-scheme-dark .gpa-rec .gpa-rec__button--primary,
body.dark-mode .gpa-rec .gpa-rec__button--primary,
html[data-scheme="dark"] .gpa-rec .gpa-rec__button--primary,
body[data-scheme="dark"] .gpa-rec .gpa-rec__button--primary,
body.cs-scheme-dark .gpa-rec .gpa-rec__button--primary:hover,
body.cs-site-scheme-dark .gpa-rec .gpa-rec__button--primary:hover,
body.dark-mode .gpa-rec .gpa-rec__button--primary:hover,
html[data-scheme="dark"] .gpa-rec .gpa-rec__button--primary:hover,
body[data-scheme="dark"] .gpa-rec .gpa-rec__button--primary:hover {
  color: #2b2119 !important;
  background: #e5c17c !important;
  border-color: #e2bb83 !important;
}
body.cs-scheme-dark .gpa-rec .gpa-rec__button--secondary,
body.cs-site-scheme-dark .gpa-rec .gpa-rec__button--secondary,
body.dark-mode .gpa-rec .gpa-rec__button--secondary,
html[data-scheme="dark"] .gpa-rec .gpa-rec__button--secondary,
body[data-scheme="dark"] .gpa-rec .gpa-rec__button--secondary {
  color: #f8ead1 !important;
  background: #1c130d !important;
  border-color: #a98358 !important;
}


/* 20260617 no-xscroll hard gate: the GPA input table must not expose left/right scrolling on mobile or desktop. */
.gpa-rec .gpa-rec__table-wrap,
.gpa-rec #gpa-table,
.gpa-rec #gpa-table-body,
.gpa-rec .gpa-rec__row,
.gpa-rec .gpa-rec__table th,
.gpa-rec .gpa-rec__table td,
.gpa-rec .gpa-rec__subject-input,
.gpa-rec .gpa-rec__select,
.gpa-rec .gpa-rec__delete {
  max-inline-size: 100% !important;
  min-inline-size: 0 !important;
  box-sizing: border-box !important;
}

.gpa-rec .gpa-rec__table-wrap {
  overflow-x: hidden !important;
  overscroll-behavior-x: none !important;
  touch-action: pan-y !important;
  scrollbar-width: none !important;
}

.gpa-rec .gpa-rec__table-wrap::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.gpa-rec #gpa-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 430px) {
  .gpa-rec .gpa-rec__table-wrap,
  .gpa-rec #gpa-table,
  .gpa-rec #gpa-table-body {
    inline-size: 100% !important;
    width: 100% !important;
    max-inline-size: 100% !important;
    overflow-x: hidden !important;
    overscroll-behavior-x: none !important;
    touch-action: pan-y !important;
  }

  .gpa-rec #gpa-table,
  .gpa-rec #gpa-table thead,
  .gpa-rec #gpa-table tbody,
  .gpa-rec #gpa-table tr,
  .gpa-rec #gpa-table th,
  .gpa-rec #gpa-table td {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .gpa-rec #gpa-table-body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  .gpa-rec #gpa-table-body .gpa-rec__row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px !important;
    column-gap: 5px !important;
    row-gap: 6px !important;
    inline-size: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    padding: 6px !important;
  }

  .gpa-rec #gpa-table-body .gpa-rec__row > td {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .gpa-rec #gpa-table-body .gpa-rec__row > td:first-child {
    grid-column: 1 / -1 !important;
  }

  .gpa-rec #gpa-table-body .gpa-rec__row > td:nth-child(2) {
    grid-column: 1 !important;
  }

  .gpa-rec #gpa-table-body .gpa-rec__row > td:nth-child(3) {
    grid-column: 2 !important;
  }

  .gpa-rec #gpa-table-body .gpa-rec__row > td:nth-child(4) {
    grid-column: 3 !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }

  .gpa-rec .gpa-rec__subject-input,
  .gpa-rec .gpa-rec__select {
    inline-size: 100% !important;
    width: 100% !important;
    max-inline-size: 100% !important;
    min-inline-size: 0 !important;
    height: 31px !important;
    min-height: 31px !important;
    padding-inline: 5px !important;
    font-size: 12px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .gpa-rec .gpa-rec__select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%) !important;
    background-position: calc(100% - 11px) 13px, calc(100% - 7px) 13px !important;
    background-size: 4px 4px, 4px 4px !important;
    background-repeat: no-repeat !important;
    padding-right: 16px !important;
  }

  .gpa-rec .gpa-rec__delete {
    inline-size: 28px !important;
    width: 28px !important;
    min-width: 0 !important;
    max-width: 28px !important;
    height: 31px !important;
    min-height: 31px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 374px) {
  .gpa-rec #gpa-table-body .gpa-rec__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 26px !important;
    column-gap: 4px !important;
    padding: 5px !important;
  }
  .gpa-rec .gpa-rec__subject-input,
  .gpa-rec .gpa-rec__select {
    height: 30px !important;
    min-height: 30px !important;
    font-size: 11px !important;
    padding-inline: 4px !important;
  }
  .gpa-rec .gpa-rec__delete {
    width: 26px !important;
    max-width: 26px !important;
    height: 30px !important;
    min-height: 30px !important;
  }
}
