.team-pair-entry {
  display: grid;
  gap: 12px;
  border: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}

.team-pair-entry.hidden {
  display: none;
}

.team-pair-entry-grid,
.team-pair-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.team-pair-entry label {
  display: grid;
  gap: 7px;
  font-size: 0.8125rem;
  font-weight: 900;
}

.team-pair-entry select,
.team-pair-entry input {
  width: 100%;
  border: 2px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  padding: 13px 12px;
  font: inherit;
  box-shadow: 3px 3px 0 var(--ink);
}

.team-pair-entry-status {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 10px 12px;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.team-pair-action-panel {
  display: grid;
  gap: 12px;
  font-size: 0.7rem;
   color: #f60;
}

.team-pair-note {
  margin: 0;
  color: #F60;
  font-size: 0.7rem;
  line-height: 1.5;
}

.team-pair-consent-card {
  display: grid;
  gap: 10px;
  color: rgba(255, 200, 151, 0.94)
  padding: 0 10px;
}

.team-pair-consent-card > strong {
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.3;
}

.team-pair-consent-card p {
  margin: 0;
  color: #ffffff;
  font-size: 0.7rem;
  line-height: 1.5;
}

.team-pair-consent-card .team-pair-consent-notice {
  display: grid;
  gap: 4px;
  color: #F60;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.5;
}

.team-pair-consent-card .team-pair-consent-status {
  color: #F60;
}

.team-pair-consent-card .team-pair-consent-caution {
  color: #ffffff;
  font-weight: 500;
}

.team-pair-consent-card .team-consent-list {
  display: none;
}

.team-pair-consent-card .team-pair-consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  margin: 0;
}

.team-pair-consent-card .team-pair-consent-actions > button {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  margin: 0;
}

.team-pair-consent-card .team-pair-consent-actions > button:only-child {
  grid-column: 1 / -1;
}

.team-pair-consent-card .team-inline-action {
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  background: #0bdd12;
  color: #ffffff;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
}

.team-pair-consent-card .team-inline-action:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.team-pair-consent-card .team-copy-action {
  background: #ffffff;
  color: #000;
}

.team-consent-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.team-consent-list span {
  min-width: 0;
  border: 1px solid rgba(17, 17, 17, 0.22);
  border-radius: 8px;
  background: #000000;
  color: #ffffff;
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.team-pair-consent-card .team-consent-list span {
  background: #000000;
  color: #ffffff;
}

.team-consent-list span.agreed {
  border-color: rgba(52, 128, 82, 0.34);
  color: #ffffff;
}

.team-pair-consent-card .team-consent-list span.agreed {
  background: #000000;
  color: #ffffff;
}

.team-consent-list span.rejected {
  border-color: rgba(181, 65, 42, 0.34);
  background: #000000;
  color: #ffffff;
}

.team-pair-consent-card .team-consent-list span.rejected {
  background: #000000;
  color: #ffffff;
}

.member-row-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(31, 248, 0, 0.9);
  border-radius: 6px;
  color: rgba(53, 189, 4, 1);
  padding: 8px 12px;
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;margin-right: 5px;
}

.member-row-link.primary {
  border-color: rgba(26, 173, 25, 0.18);
  background: #00c300;
  color: #ffffff;
}

.team-pair-simple-btn {
  width: fit-content;
  max-width: 100%;
  margin: 0 10px 5px 0;
}

.team-pair-simple-btn:disabled {
  cursor: default;
  opacity: 0.72;
}

.g48-top-btn {
  position: fixed;
  right: max(22px, calc((100vw - 760px) / 2 + 2px));
  bottom: 24px;
  z-index: 80;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(#44ea76, #39fad7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;

}

.g48-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.g48-top-arrow path {
  fill: #ffffff;
}

.g48-top-text {
  position: absolute;
  bottom: -18px;
  width: 100px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  opacity: 0;
  transition-duration: 0.7s;
}

.g48-top-btn:hover .g48-top-text {
  opacity: 1;
}

.g48-top-btn:hover .g48-top-arrow {
  animation: g48-slide-in-bottom 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes g48-slide-in-bottom {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

#resultView .team-v3-boundary-mobile {
  display: none;
}

@media (max-width: 640px) {
  #resultView .team-v3-boundary-desktop {
    display: none !important;
  }

  #resultView .team-v3-boundary-mobile {
    display: block;
  }

  #resultView .team-v3-boundary-mobile > p {
    margin: 0;
  }

  #resultView .team-v3-boundary-mobile > p + p {
    margin-top: 10px !important;
  }
}

@media (max-width: 720px) {
  .team-pair-entry-grid,
  .team-pair-code-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .team-pair-action-panel {
    grid-template-columns: 1fr;
  }

  .team-consent-list {
    grid-template-columns: 1fr;
  }

  .team-pair-simple-btn {
    padding: 9px 10px;
    font-size: 0.75rem;
    color: #fff;
  }

  .g48-top-btn {
    right: 14px;
    bottom: 84px;
    width: 40px;
    height: 40px;
  }
}
