/* Calculator styles: gpa */

.gpa-two-step {
  width: 100%;
}

.gpa-semester-entry {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gpa-semester-entry__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gpa-semester-entry__header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gpa-semester-entry__title {
  display: none;
}

.gpa-scale-inline {
  justify-self: start;
  margin: 0;
}

.gpa-scale-inline-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  min-width: 0;
}

.gpa-scale-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sc-muted-text, #6b7280);
  white-space: nowrap;
}

.gpa-scale-settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--sc-card-border, #e5e7eb);
  border-radius: 8px;
  background: var(--sc-card-bg, #fff);
  color: var(--sc-muted-text, #6b7280);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.gpa-scale-settings-btn:hover {
  border-color: var(--sc-accent, #2563eb);
  color: var(--sc-accent, #2563eb);
  background: var(--sc-input-bg, #f8fafc);
}

.gpa-scale-settings-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sc-accent, #2563eb) 45%, transparent);
  outline-offset: 2px;
}

.gpa-scale-settings-btn.is-active {
  border-color: color-mix(in srgb, var(--sc-accent, #2563eb) 38%, var(--sc-card-border, #e5e7eb) 62%);
  color: var(--sc-accent, #2563eb);
  background: color-mix(in srgb, var(--sc-accent, #2563eb) 8%, var(--sc-card-bg, #fff) 92%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--sc-accent, #2563eb) 18%, transparent);
}

.gpa-scale-inline.vareoncalc-measurement-toggle,
.gpa-scale-inline.vareoncalc-measurement-toggle:not(.vareoncalc-toggle) {
  width: fit-content;
  min-width: 0;
  grid-template-columns: max-content max-content;
}

.gpa-scale-inline__btn {
  min-width: 42px;
  padding-inline: 10px;
}

.gpa-scale-inline.vareoncalc-measurement-toggle .gpa-scale-inline__btn,
.gpa-scale-inline.vareoncalc-measurement-toggle:not(.vareoncalc-toggle) .gpa-scale-inline__btn {
  min-width: 0;
}

.gpa-course-header {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 92px 92px 36px;
  gap: 8px;
  padding: 4px 14px;
  border-bottom: 1px solid var(--sc-card-border, #e5e7eb);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sc-muted-text, #6b7280);
}

.gpa-course-header--weighted {
  grid-template-columns: minmax(0, 1.6fr) 92px 96px 92px 36px;
}

.gpa-course-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  border: none;
  border-radius: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable both-edges;
  background: transparent;
  padding: 0 2px;
}

.gpa-course-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 92px 92px 36px;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  transition: background-color 0.15s ease;
}

.gpa-course-row:hover {
  background: var(--sc-input-bg, #f9fafb);
}

.gpa-course-row--weighted {
  grid-template-columns: minmax(0, 1.6fr) 92px 96px 92px 36px;
}

.gpa-course-header>div,
.gpa-course-row>div {
  min-width: 0;
}

.vareoncalc-card input.gpa-input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.vareoncalc-card select.gpa-input {
  width: 100%;
  min-width: 0;
  height: 38px;
  margin-bottom: 0;
  border: 1px solid var(--sc-input-border, #d1d5db);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  background: var(--sc-input-bg, #fff);
  color: var(--sc-card-text, #111827);
}

.vareoncalc-card input.gpa-input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
.vareoncalc-card select.gpa-input:focus {
  border-color: var(--sc-accent, #2563eb);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--sc-accent, #2563eb) 22%, transparent);
  outline: none;
}

.gpa-grade-tint--a {
  border-color: color-mix(in srgb, #16a34a 36%, var(--sc-input-border, #d1d5db) 64%) !important;
}

.gpa-grade-tint--b {
  border-color: color-mix(in srgb, #2563eb 36%, var(--sc-input-border, #d1d5db) 64%) !important;
}

.gpa-grade-tint--c {
  border-color: color-mix(in srgb, #f59e0b 36%, var(--sc-input-border, #d1d5db) 64%) !important;
}

.gpa-grade-tint--d {
  border-color: color-mix(in srgb, #ea580c 36%, var(--sc-input-border, #d1d5db) 64%) !important;
}

.gpa-grade-tint--f {
  border-color: color-mix(in srgb, #dc2626 36%, var(--sc-input-border, #d1d5db) 64%) !important;
}

.gpa-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--sc-muted-text, #94a3b8);
  cursor: pointer;
  margin: 0;
  padding: 0;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.gpa-remove-btn:hover {
  color: var(--sc-error, #dc2626);
  background: color-mix(in srgb, var(--sc-error, #dc2626) 10%, transparent);
}

.gpa-add-course-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px dashed var(--sc-accent, #2563eb);
  background: transparent;
  color: var(--sc-accent, #2563eb);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.gpa-add-course-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--sc-accent, #2563eb) 8%, transparent);
}

.gpa-add-course-btn:disabled,
.gpa-add-course-btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.gpa-add-course-btn__icon {
  font-size: 16px;
  font-weight: 700;
}

.gpa-step-actions {
  margin-top: 2px;
}

.gpa-step-actions .vareoncalc-btn {
  border-radius: 12px;
}

.gpa-step-actions .vareoncalc-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.gpa-limit-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px dashed color-mix(in srgb, var(--sc-warning, #f59e0b) 42%, var(--sc-card-border, #d1d5db) 58%);
  background: color-mix(in srgb, var(--sc-warning, #f59e0b) 9%, var(--sc-card-bg, #fff) 91%);
  font-size: 11px;
  max-width: min(100%, 420px);
  white-space: nowrap;
  color: color-mix(in srgb, var(--sc-warning, #f59e0b) 64%, var(--sc-muted-text, #6b7280) 36%);
}

.gpa-limit-note[hidden] {
  display: none !important;
}

.gpa-limit-note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.gpa-results-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vareoncalc-gpa-report {
  border: 1px solid var(--sc-card-border, #e5e7eb);
  border-radius: 12px;
  background: var(--sc-card-bg, #fff);
  overflow: hidden;
}

.vareoncalc-gpa-report--placeholder {
  padding: var(--sc-card-padding);
}

.gpa-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 170px;
  text-align: center;
  color: var(--sc-muted-text, #6b7280);
}

.gpa-empty-state svg {
  width: 40px;
  height: 40px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  opacity: 0.7;
}

.gpa-empty-state p {
  margin: 0;
  max-width: 300px;
  line-height: 1.45;
}

.gpa-report-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: var(--sc-card-padding);
  border-bottom: 1px solid var(--sc-card-border, #e5e7eb);
}

.gpa-ring-wrap {
  display: flex;
  justify-content: center;
}

.gpa-ring {
  position: relative;
  width: 150px;
  height: 150px;
}

.gpa-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gpa-ring__track,
.gpa-ring__progress {
  fill: none;
  stroke-width: 14;
}

.gpa-ring__track {
  stroke: color-mix(in srgb, var(--sc-card-border, #e5e7eb) 78%, transparent);
}

.gpa-ring__progress {
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

.gpa-ring__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gpa-ring__value {
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  color: var(--sc-card-text, #111827);
}

.gpa-ring__scale {
  margin-top: 3px;
  font-size: 11px;
  color: var(--sc-muted-text, #6b7280);
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.gpa-ring__letter {
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}

.gpa-report-hero__summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.gpa-report-hero__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--sc-muted-text, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gpa-report-hero__gpa-value {
  display: none;
}

.gpa-report-hero__badge {
  display: inline-flex;
  align-items: center;
  align-self: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.gpa-report-hero__stats {
  display: none;
}

.gpa-report-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sc-card-border, #e5e7eb);
}

.gpa-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  border: none;
  border-right: 1px solid var(--sc-card-border, #e5e7eb);
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.gpa-stat-card:last-child {
  border-right: none;
}

.gpa-stat-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sc-muted-text, #6b7280);
  line-height: 1.3;
}

.gpa-stat-card__value {
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  color: var(--sc-card-text, #111827);
}

.gpa-distribution {
  margin: 0;
  padding: 14px 16px 18px;
  border: none;
  border-top: 1px solid var(--sc-card-border, #e5e7eb);
  border-radius: 0;
  background: var(--sc-card-bg, #fff);
}

.gpa-distribution__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--sc-muted-text, #6b7280);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gpa-distribution__label::before,
.gpa-distribution__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sc-card-border, #e5e7eb);
}

.gpa-distribution__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.gpa-dist-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--sc-card-border, #e5e7eb);
  border-left: 3px solid currentColor;
  font-size: 12px;
  font-weight: 600;
  background: var(--sc-card-bg, #fff);
}

.gpa-dist-tag__count {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.gpa-dist-tag__label {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.72;
}

.gpa-dist-tag--a {
  color: #166534;
  border-left-color: #16a34a;
  background: color-mix(in srgb, #16a34a 6%, var(--sc-card-bg, #fff) 94%);
}

.gpa-dist-tag--b {
  color: #1d4ed8;
  border-left-color: #2563eb;
  background: color-mix(in srgb, #2563eb 6%, var(--sc-card-bg, #fff) 94%);
}

.gpa-dist-tag--c {
  color: #92400e;
  border-left-color: #eab308;
  background: color-mix(in srgb, #eab308 6%, var(--sc-card-bg, #fff) 94%);
}

.gpa-dist-tag--d {
  color: #c2410c;
  border-left-color: #ea580c;
  background: color-mix(in srgb, #ea580c 6%, var(--sc-card-bg, #fff) 94%);
}

.gpa-dist-tag--f {
  color: #b91c1c;
  border-left-color: #dc2626;
  background: color-mix(in srgb, #dc2626 6%, var(--sc-card-bg, #fff) 94%);
}

.gpa-dist-tag--empty {
  color: var(--sc-muted-text, #6b7280);
  border-left-color: var(--sc-card-border, #d1d5db);
  background: var(--sc-input-bg, #f8fafc);
}

.gpa-edit-semester-wrap {
  display: none;
}

.gpa-edit-semester-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--sc-accent, #2563eb);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.gpa-edit-semester-link:hover {
  opacity: 0.75;
}

.gpa-edit-semester-link svg {
  flex-shrink: 0;
}

.gpa-report-notes {
  margin: 0 16px 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--sc-warning, #f59e0b) 32%, var(--sc-card-border, #e5e7eb) 68%);
  background: color-mix(in srgb, var(--sc-warning, #f59e0b) 10%, transparent);
}

.gpa-report-note {
  font-size: 12px;
  color: color-mix(in srgb, var(--sc-warning, #f59e0b) 70%, var(--sc-card-text, #111827) 30%);
}

.gpa-scenarios {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gpa-form-section {
  background: var(--sc-card-bg, #fff);
  border: 1px solid var(--sc-card-border, #e5e7eb);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gpa-form-section.vareoncalc-section {
  padding: 0;
  gap: 0;
  box-shadow: none;
  background: var(--sc-card-bg, #fff);
}

.gpa-form-section.is-active,
.gpa-form-section:focus-within {
  border-color: color-mix(in srgb, var(--sc-accent, #2563eb) 34%, var(--sc-card-border, #e5e7eb) 66%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--sc-accent, #2563eb) 12%, transparent);
}

.gpa-form-section__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sc-card-text, #111827);
  border-bottom: 1px solid var(--sc-card-border, #e5e7eb);
  background: var(--sc-input-bg, #f9fafb);
  letter-spacing: 0.01em;
}

.gpa-form-section__header svg {
  color: var(--sc-accent, #2563eb);
  flex-shrink: 0;
}

.gpa-form-section__body {
  padding: 14px;
  background: var(--sc-card-bg, #fff);
}

.gpa-scenario-hint {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--sc-muted-text, #6b7280);
}

.gpa-scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gpa-scenario-grid .vareoncalc-field {
  margin-bottom: 0;
}

.gpa-scenario-grid .vareoncalc-field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sc-card-text, #374151);
}

.gpa-scenario-grid .vareoncalc-field > input {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--sc-input-border, #d1d5db);
  border-radius: 8px;
  background: var(--sc-input-bg, #fff);
  color: var(--sc-input-text, #111827);
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gpa-scenario-grid .vareoncalc-field > input:focus {
  outline: none;
  border-color: var(--sc-accent, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.gpa-scenario-grid--single {
  grid-template-columns: minmax(0, 260px);
}

.gpa-scenario-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--sc-muted-text, #6b7280);
}

.gpa-target-output {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--sc-card-border, #e5e7eb);
  background: var(--sc-input-bg, #f8fafc);
  font-size: 13px;
  line-height: 1.45;
}

.gpa-target-output--info {
  border-color: color-mix(in srgb, #2563eb 34%, var(--sc-card-border, #e5e7eb) 66%);
  background: color-mix(in srgb, #2563eb 10%, transparent);
  color: color-mix(in srgb, #2563eb 72%, var(--sc-card-text, #111827) 28%);
}

.gpa-target-output--success {
  border-color: color-mix(in srgb, #16a34a 34%, var(--sc-card-border, #e5e7eb) 66%);
  background: color-mix(in srgb, #16a34a 10%, transparent);
  color: color-mix(in srgb, #166534 72%, var(--sc-card-text, #111827) 28%);
}

.gpa-target-output--warning {
  border-color: color-mix(in srgb, #d97706 34%, var(--sc-card-border, #e5e7eb) 66%);
  background: color-mix(in srgb, #d97706 12%, transparent);
  color: color-mix(in srgb, #92400e 72%, var(--sc-card-text, #111827) 28%);
}

.gpa-scenario-modal {
  position: fixed;
  inset: 0;
  z-index: var(--vareoncalc-modal-z-index, 2000000);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sc-card-padding);
}

.gpa-scenario-modal[hidden] {
  display: none !important;
}

.gpa-scenario-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: gpa-modal-backdrop-in 0.18s ease;
}

@keyframes gpa-modal-backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.gpa-scenario-modal__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 40px);
  border: 1px solid var(--sc-card-border, #e5e7eb);
  border-top: 2px solid var(--sc-accent, #2563eb);
  border-radius: 11px;
  background: var(--sc-card-bg, #fff);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: gpa-modal-in 0.2s ease;
}

@keyframes gpa-modal-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gpa-scenario-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--sc-card-border, #e5e7eb);
  background: var(--sc-card-bg, #fff);
}

.gpa-scenario-modal__title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.gpa-scenario-modal__title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--sc-card-text, #111827);
  line-height: 1.25;
}

.gpa-scenario-modal__subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--sc-muted-text, #6b7280);
}

.gpa-scenario-modal__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--sc-muted-text, #6b7280);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.gpa-scenario-modal__close:hover {
  border-color: var(--sc-card-border, #e5e7eb);
  color: var(--sc-card-text, #111827);
  background: var(--sc-input-bg, #f9fafb);
}

.gpa-scenario-modal__close:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sc-accent, #2563eb) 45%, transparent);
  outline-offset: 2px;
}

.gpa-scenario-modal__body {
  padding: 14px 16px;
  overflow-y: auto;
  background: var(--sc-card-bg, #fff);
}

.gpa-scenario-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--sc-card-border, #e5e7eb);
  background: var(--sc-card-bg, #fff);
}

.gpa-scenario-modal__footer .vareoncalc-btn {
  margin-top: 0;
  background: var(--sc-button-bg, var(--sc-accent, #2563eb));
  color: var(--sc-button-text, #fff);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.gpa-scenario-modal__footer .vareoncalc-btn:hover:not(:disabled) {
  background: var(--sc-button-hover, color-mix(in srgb, var(--sc-accent, #2563eb) 85%, #000));
}

@media (max-width: 720px) {
  .gpa-scenario-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .gpa-semester-entry__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .gpa-limit-note {
    justify-self: start;
    order: 3;
  }

  .gpa-course-header,
  .gpa-course-row {
    grid-template-columns: 1fr 80px 74px 32px;
    gap: 6px;
    font-size: 12px;
  }

  .gpa-course-header--weighted,
  .gpa-course-row--weighted {
    grid-template-columns: 1fr 74px 78px 74px 32px;
    gap: 6px;
  }

  .gpa-scale-inline {
    justify-self: start;
    width: fit-content;
  }

  .gpa-scale-inline-wrap {
    justify-self: start;
    width: fit-content;
    order: 1;
  }

  .gpa-scale-inline__btn {
    min-width: 42px;
  }

  .gpa-scenario-modal {
    padding: 0;
    align-items: flex-end;
  }

  .gpa-scenario-modal__container {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    animation: gpa-modal-slide-up 0.28s ease;
  }

  .gpa-scenario-modal__header {
    padding: 14px 16px;
    gap: 10px;
  }

  .gpa-scenario-modal__title {
    font-size: 16px;
  }

  .gpa-scenario-modal__subtitle {
    font-size: 12px;
  }

  .gpa-scenario-modal__body {
    padding: 12px 16px;
  }

  .gpa-scenario-modal__footer {
    padding: 14px 16px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .gpa-scenario-modal__footer .vareoncalc-btn {
    width: 100%;
  }

  .gpa-stat-card__value {
    font-size: 18px;
  }

  .gpa-report-metrics {
    grid-template-columns: 1fr;
    padding: 8px 16px;
  }

  .gpa-stat-card {
    flex-direction: row;
    justify-content: space-between;
    border-right: none;
    border-bottom: 1px solid var(--sc-card-border, #e5e7eb);
    padding: 8px;
  }

  .gpa-stat-card:last-child {
    border-bottom: none;
  }
}

@keyframes gpa-modal-slide-up {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 410px) {
  .gpa-scale-inline-wrap {
    width: 100%;
    flex-wrap: wrap;
  }

  .gpa-course-header,
  .gpa-course-row {
    grid-template-columns: 1fr 64px 64px 28px;
    gap: 6px;
  }

  .gpa-course-header--weighted,
  .gpa-course-row--weighted {
    grid-template-columns: 1fr 64px 68px 64px 28px;
    gap: 6px;
  }
}

@media (max-width: 360px) {
  .gpa-course-header,
  .gpa-course-header--weighted {
    display: none;
  }

  .gpa-course-row {
    grid-template-columns: 1fr 1fr 28px;
    gap: 6px;
    padding: 10px 12px;
  }

  .gpa-course-row__name {
    grid-column: 1 / -1;
  }

  .gpa-course-row--weighted {
    grid-template-columns: 1fr 1fr 1fr 28px;
  }

  .gpa-course-row--weighted .gpa-course-row__name {
    grid-column: 1 / -1;
  }
}

@container vareoncalc (max-width: 480px) {
  .gpa-stat-card__value {
    font-size: 18px;
  }

  .gpa-report-metrics {
    grid-template-columns: 1fr;
    padding: 8px 16px;
  }

  .gpa-stat-card {
    flex-direction: row;
    justify-content: space-between;
    border-right: none;
    border-bottom: 1px solid var(--sc-card-border, #e5e7eb);
    padding: 8px;
  }

  .gpa-stat-card:last-child {
    border-bottom: none;
  }
}

@container vareoncalc (max-width: 410px) {
  .gpa-scale-inline-wrap {
    width: 100%;
    flex-wrap: wrap;
  }

  .gpa-course-header,
  .gpa-course-row {
    grid-template-columns: 1fr 64px 64px 28px;
    gap: 6px;
  }

  .gpa-course-header--weighted,
  .gpa-course-row--weighted {
    grid-template-columns: 1fr 64px 68px 64px 28px;
    gap: 6px;
  }
}

@container vareoncalc (max-width: 360px) {
  .gpa-course-header,
  .gpa-course-header--weighted {
    display: none;
  }

  .gpa-course-row {
    grid-template-columns: 1fr 1fr 28px;
    gap: 6px;
    padding: 10px 12px;
  }

  .gpa-course-row__name {
    grid-column: 1 / -1;
  }

  .gpa-course-row--weighted {
    grid-template-columns: 1fr 1fr 1fr 28px;
  }

  .gpa-course-row--weighted .gpa-course-row__name {
    grid-column: 1 / -1;
  }
}
