.abcpro-runtime-brand {
  position: fixed;
  right: 14px;
  bottom: 10px;
  z-index: 20;
  color: #1760a5;
  font: 900 clamp(15px, 2vw, 23px) "Trebuchet MS", Arial, sans-serif;
  letter-spacing: 0;
  pointer-events: none;
  text-shadow: 0 2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff;
}

.logo img {
  display: none !important;
}

.logo::after {
  color: #1760a5;
  content: "123 ABC Pro";
  font: 900 clamp(16px, 2vw, 25px) "Trebuchet MS", Arial, sans-serif;
  white-space: nowrap;
  text-shadow: 0 2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff;
}

.corner-back {
  z-index: 30 !important;
}

.abcpro-access-bar {
  position: relative;
  z-index: 24;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 9px 16px 9px 160px;
  border-bottom: 3px solid rgb(0 72 126 / 18%);
  background: #7bcdf5;
  color: #064f98;
  font: 800 20px "Trebuchet MS", Arial, sans-serif;
}

.abcpro-access-bar.math-access-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  min-height: 98px;
}

.abcpro-access-label {
  min-width: 200px;
  text-align: center;
}

.abcpro-access-button {
  min-height: 46px;
  padding: 7px 18px;
  border: 3px solid #164e71;
  border-radius: 7px;
  background: #e8f8ff;
  color: #123e68;
  box-shadow: 0 3px 0 #164e71;
  cursor: pointer;
  font: 800 18px "Trebuchet MS", Arial, sans-serif;
}

.abcpro-access-button[aria-pressed="true"] {
  border-color: #1c6f35;
  background: #dff6cf;
  color: #155226;
  box-shadow: 0 3px 0 #1c6f35;
}

.abcpro-profile-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 3px solid #164e71;
  border-radius: 50%;
  background: #fff;
  color: #123e68;
  box-shadow: 0 3px 0 #164e71;
  cursor: pointer;
  font-size: 23px;
  font-weight: 900;
}

body[data-full-access="true"] .rows-container .disabled-full-access img {
  filter: var(--unlock-filter, none);
  opacity: 1;
}

.disabled-full-access {
  cursor: pointer;
}

.disabled-full-access:focus-visible {
  outline: 4px solid #111;
  outline-offset: 4px;
}

.abcpro-math-grid {
  position: absolute;
  z-index: 18;
  inset: 0;
  display: grid;
  padding: 18% 5% 4% 12%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  pointer-events: none;
}

.abcpro-math-tile {
  display: grid;
  width: 72%;
  height: 72%;
  align-self: center;
  justify-self: center;
  place-items: center;
  padding: 8px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--tile-color, #2c8dc7);
  color: #fff;
  box-shadow: 0 5px 0 rgb(0 0 0 / 30%);
  cursor: pointer;
  font: 900 clamp(10px, 1.35vw, 17px) "Trebuchet MS", Arial, sans-serif;
  line-height: 1.05;
  pointer-events: auto;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 2px 0 rgb(0 0 0 / 35%);
}

.abcpro-math-tile span {
  display: block;
  font-size: clamp(24px, 3.8vw, 50px);
  line-height: 0.9;
}

#navigation {
  z-index: 30;
}

.abcpro-modal-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgb(9 29 40 / 72%);
}

.abcpro-modal-backdrop[hidden] {
  display: none;
}

.abcpro-modal {
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border: 5px solid #123e68;
  border-radius: 8px;
  background: #fff;
  color: #172431;
  box-shadow: 0 10px 0 rgb(0 0 0 / 28%);
  font-family: "Trebuchet MS", Arial, sans-serif;
}

.abcpro-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 3px solid #b9dfe8;
  background: #e7f8fb;
}

.abcpro-modal-header h2 {
  margin: 0;
  color: #123e68;
  font-size: clamp(25px, 5vw, 34px);
  text-align: left;
}

.abcpro-modal-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 3px solid #123e68;
  border-radius: 50%;
  background: #fff;
  color: #123e68;
  cursor: pointer;
  font-size: 27px;
  font-weight: 900;
}

.abcpro-modal-content {
  display: grid;
  gap: 16px;
  padding: 20px;
  font-size: 18px;
  line-height: 1.45;
}

.abcpro-modal-content p,
.abcpro-modal-content ul {
  margin: 0;
}

.abcpro-modal-content label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.abcpro-modal-content input {
  min-height: 48px;
  padding: 8px 12px;
  border: 3px solid #527184;
  border-radius: 6px;
  color: #172431;
  font: inherit;
}

.abcpro-primary-action {
  min-height: 50px;
  padding: 9px 16px;
  border: 3px solid #164e71;
  border-radius: 7px;
  background: #ffd52a;
  color: #172431;
  box-shadow: 0 3px 0 #164e71;
  cursor: pointer;
  font-size: 19px;
  font-weight: 900;
}

@media (max-width: 700px) {
  .abcpro-access-bar {
    min-height: 62px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 7px 8px 7px 76px;
    font-size: 15px;
  }

  .abcpro-access-bar.math-access-bar {
    min-height: 72px;
  }

  .abcpro-access-label {
    min-width: 120px;
  }

  .abcpro-access-button {
    min-height: 38px;
    padding-inline: 10px;
    font-size: 14px;
  }

  .abcpro-profile-button {
    width: 39px;
    height: 39px;
  }

  .abcpro-math-grid {
    padding-top: 18%;
  }
}
