.match-inbox-app {
  min-height: 620px;
}

#inboxSignOutButton {
  border-color:
    rgba(255, 112, 124, 0.38);
  color: #ffabb3;
  background:
    rgba(255, 112, 124, 0.055);
}

.inbox-summary-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.inbox-summary-grid article {
  min-width: 0;
  padding: 1.15rem;
  border:
    1px solid rgba(145, 170, 202, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(10, 38, 68, 0.82),
      rgba(2, 15, 30, 0.94)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.inbox-summary-grid span,
.inbox-summary-grid small {
  display: block;
}

.inbox-summary-grid span {
  color: #9eb1c7;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inbox-summary-grid strong {
  display: block;
  margin: 0.55rem 0 0.35rem;
  color: #ffe18a;
  font-family:
    "Bebas Neue",
    Impact,
    sans-serif;
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
}

.inbox-summary-grid small {
  color: #758aa2;
  font-size: 0.7rem;
}

.inbox-control-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 0.85rem;
  border:
    1px solid rgba(67, 200, 255, 0.16);
  border-radius: 15px;
  background:
    rgba(4, 24, 46, 0.74);
}

.inbox-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.inbox-tabs button,
#refreshMatchInboxButton {
  min-height: 42px;
  padding: 0 0.9rem;
  border:
    1px solid rgba(145, 170, 202, 0.2);
  border-radius: 10px;
  color: #b8c7d8;
  background:
    rgba(3, 17, 34, 0.84);
  font-size: 0.7rem;
  font-weight: 850;
  cursor: pointer;
}

.inbox-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.inbox-tabs button span {
  min-width: 22px;
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  color: #bfeaff;
  background:
    rgba(67, 200, 255, 0.1);
  text-align: center;
}

.inbox-tabs button.is-active {
  border-color:
    rgba(255, 225, 138, 0.58);
  color: #07101d;
  background:
    linear-gradient(
      110deg,
      #b98622,
      #ffe18a,
      #ce9d30
    );
}

.inbox-tabs button.is-active span {
  color: #07101d;
  background:
    rgba(7, 16, 29, 0.12);
}

#refreshMatchInboxButton {
  border-color:
    rgba(67, 200, 255, 0.32);
  color: #bfeaff;
}

#refreshMatchInboxButton:disabled,
.inbox-match-actions button:disabled,
.inbox-dialog-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.inbox-category-status {
  margin: 1rem 0 0;
  color: #8fa4ba;
  font-size: 0.73rem;
}

.inbox-match-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.inbox-empty-state {
  padding: 2rem 1.3rem;
  border:
    1px dashed rgba(145, 170, 202, 0.24);
  border-radius: 15px;
  color: #8399b0;
  background:
    rgba(2, 15, 30, 0.48);
  text-align: center;
}

.inbox-empty-state strong {
  display: block;
  color: #dce8f4;
}

.inbox-empty-state p {
  max-width: 660px;
  margin: 0.6rem auto 0;
  line-height: 1.65;
}

.inbox-match-card {
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
  border:
    1px solid rgba(145, 170, 202, 0.17);
  border-radius: 17px;
  background:
    linear-gradient(
      145deg,
      rgba(10, 39, 70, 0.76),
      rgba(2, 14, 28, 0.96)
    );
}

.inbox-match-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.2rem;
  width: 88px;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      #d8aa38,
      #43c8ff
    );
}

.inbox-match-card.is-disputed {
  border-color:
    rgba(255, 112, 124, 0.32);
}

.inbox-match-card.is-awaiting-response {
  border-color:
    rgba(255, 225, 138, 0.32);
}

.inbox-card-header,
.inbox-score-row,
.inbox-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.inbox-card-header {
  padding-bottom: 0.85rem;
  border-bottom:
    1px solid rgba(145, 170, 202, 0.12);
}

.inbox-card-header div {
  min-width: 0;
}

.inbox-card-header strong {
  display: block;
  color: white;
  font-size: 1rem;
}

.inbox-card-header small {
  display: block;
  margin-top: 0.25rem;
  color: #7f95ac;
  font-size: 0.67rem;
}

.inbox-status-badge {
  flex: 0 0 auto;
  padding: 0.4rem 0.65rem;
  border:
    1px solid rgba(67, 200, 255, 0.25);
  border-radius: 999px;
  color: #bfeaff;
  background:
    rgba(67, 200, 255, 0.07);
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.inbox-score-row {
  padding: 1.1rem 0;
}

.inbox-player-result {
  min-width: 0;
  flex: 1;
}

.inbox-player-result:last-child {
  text-align: right;
}

.inbox-player-result span {
  display: block;
  overflow: hidden;
  color: #dce8f4;
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-player-result strong {
  display: block;
  margin-top: 0.3rem;
  color: #ffe18a;
  font-family:
    "Bebas Neue",
    Impact,
    sans-serif;
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
}

.inbox-score-divider {
  color: #5f7891;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.inbox-stat-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.inbox-stat-grid div {
  padding: 0.75rem;
  border:
    1px solid rgba(145, 170, 202, 0.11);
  border-radius: 11px;
  background:
    rgba(2, 15, 30, 0.52);
}

.inbox-stat-grid span,
.inbox-stat-grid strong {
  display: block;
}

.inbox-stat-grid span {
  color: #71879e;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.inbox-stat-grid strong {
  margin-top: 0.28rem;
  color: #dce8f4;
  font-size: 0.76rem;
}

.inbox-dispute-note {
  margin: 0.9rem 0 0;
  padding: 0.85rem;
  border:
    1px solid rgba(255, 112, 124, 0.22);
  border-radius: 11px;
  color: #ffbdc3;
  background:
    rgba(255, 112, 124, 0.055);
  font-size: 0.73rem;
  line-height: 1.55;
}

.inbox-card-footer {
  align-items: flex-end;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top:
    1px solid rgba(145, 170, 202, 0.1);
}

.inbox-card-dates {
  color: #71879e;
  font-size: 0.66rem;
  line-height: 1.55;
}

.inbox-match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.inbox-match-actions button {
  min-height: 42px;
  padding: 0 0.9rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
}

.inbox-confirm-button {
  border:
    1px solid rgba(255, 225, 138, 0.68);
  color: #07101d;
  background:
    linear-gradient(
      110deg,
      #b98622,
      #ffe18a,
      #ce9d30
    );
}

.inbox-dispute-button {
  border:
    1px solid rgba(255, 112, 124, 0.4);
  color: #ffb9c0;
  background:
    rgba(255, 112, 124, 0.07);
}

.inbox-dispute-dialog {
  width: min(620px, calc(100% - 24px));
  padding: 0;
  border:
    1px solid rgba(255, 225, 138, 0.28);
  border-radius: 18px;
  color: #dce8f4;
  background:
    linear-gradient(
      145deg,
      #0d2a48,
      #020e1c
    );
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.62);
}

.inbox-dispute-dialog::backdrop {
  background:
    rgba(0, 6, 14, 0.82);
  backdrop-filter:
    blur(7px);
}

.inbox-dispute-dialog form {
  padding: 1.4rem;
}

.inbox-dispute-dialog header p:not(.match-eyebrow) {
  color: #8ea3b9;
  line-height: 1.6;
}

.inbox-dispute-dialog textarea {
  width: 100%;
  resize: vertical;
  padding: 0.85rem;
  border:
    1px solid rgba(145, 170, 202, 0.25);
  border-radius: 11px;
  color: white;
  background:
    rgba(1, 10, 20, 0.82);
  font: inherit;
  line-height: 1.55;
}

.inbox-dialog-status {
  min-height: 1.2rem;
  color: #ffb9c0;
  font-size: 0.7rem;
}

.inbox-dispute-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1rem;
}

.inbox-dispute-dialog footer button {
  min-height: 43px;
  padding: 0 0.95rem;
  border-radius: 10px;
  font-weight: 900;
}

.inbox-dialog-cancel {
  border:
    1px solid rgba(145, 170, 202, 0.24);
  color: #b8c7d8;
  background:
    rgba(2, 15, 30, 0.7);
}

.inbox-dialog-submit {
  border:
    1px solid rgba(255, 112, 124, 0.42);
  color: #ffbdc3;
  background:
    rgba(255, 112, 124, 0.08);
}

@media (max-width: 1000px) {
  .inbox-summary-grid,
  .inbox-stat-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .inbox-control-panel {
    align-items: stretch;
    flex-direction: column;
  }

  #refreshMatchInboxButton {
    align-self: flex-start;
  }
}

@media (max-width: 650px) {
  .inbox-summary-grid,
  .inbox-stat-grid {
    grid-template-columns: 1fr;
  }

  .inbox-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .inbox-card-header,
  .inbox-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .inbox-score-row {
    gap: 0.5rem;
  }

  .inbox-player-result strong {
    font-size: 2rem;
  }

  .inbox-match-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
