/* Cache-busting status pill styles for team submission result labels. */
:root {
  --yc-status-accepted: #2f8f48;
  --yc-status-accepted-bg: #e8f8ec;
  --yc-status-accepted-border: #9bd7ae;
  --yc-status-wrong-answer: #d83b36;
  --yc-status-wrong-answer-bg: #fff0ef;
  --yc-status-wrong-answer-border: #f1aaa7;
  --yc-status-time-limit-exceeded: #a06712;
  --yc-status-time-limit-exceeded-bg: #fff7dd;
  --yc-status-time-limit-exceeded-border: #edcc77;
  --yc-status-runtime-error: #6f4dcc;
  --yc-status-runtime-error-bg: #f4efff;
  --yc-status-runtime-error-border: #cab7ef;
  --yc-status-compilation-error: #d3473f;
  --yc-status-compilation-error-bg: #fff0ef;
  --yc-status-compilation-error-border: #f1aaa7;
  --yc-status-waiting: #2c5d97;
  --yc-status-waiting-bg: #edf5ff;
  --yc-status-waiting-border: #b4cdec;
  --yc-status-neutral: #52606d;
  --yc-status-neutral-bg: #f3f5f7;
  --yc-status-neutral-border: #cdd5de;
}

.yc-result-guide {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
  color: #606b78;
  font-size: 14px;
  font-weight: 700;
}

.yc-result-guide-title {
  margin-right: 2px;
  color: #4d5967;
  font-weight: 850;
}

.yc-result-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 28px;
  padding: 4px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: var(--yc-status-neutral-bg);
  color: var(--yc-status-neutral);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: middle;
}

.yc-result-guide .yc-result-pill {
  min-width: 0;
  min-height: 24px;
  padding: 3px 10px !important;
  font-size: 13px;
}

.yc-status.ACCEPTED {
  border-color: var(--yc-status-accepted-border) !important;
  background: var(--yc-status-accepted-bg) !important;
  color: var(--yc-status-accepted) !important;
}

.yc-status.WRONG_ANSWER,
.yc-status.NO_OUTPUT {
  border-color: var(--yc-status-wrong-answer-border) !important;
  background: var(--yc-status-wrong-answer-bg) !important;
  color: var(--yc-status-wrong-answer) !important;
}

.yc-status.TIME_LIMIT_EXCEEDED,
.yc-status.MEMORY_LIMIT_EXCEEDED,
.yc-status.OUTPUT_LIMIT_EXCEEDED {
  border-color: var(--yc-status-time-limit-exceeded-border) !important;
  background: var(--yc-status-time-limit-exceeded-bg) !important;
  color: var(--yc-status-time-limit-exceeded) !important;
}

.yc-status.RUNTIME_ERROR {
  border-color: var(--yc-status-runtime-error-border) !important;
  background: var(--yc-status-runtime-error-bg) !important;
  color: var(--yc-status-runtime-error) !important;
}

.yc-status.COMPILATION_ERROR {
  border-color: var(--yc-status-compilation-error-border) !important;
  background: var(--yc-status-compilation-error-bg) !important;
  color: var(--yc-status-compilation-error) !important;
}

.yc-status.PRESENTATION_ERROR,
.yc-status.WAITING,
.yc-status.JUDGING {
  border-color: var(--yc-status-waiting-border) !important;
  background: var(--yc-status-waiting-bg) !important;
  color: var(--yc-status-waiting) !important;
}

.yc-status.TOO_LATE,
.yc-status.ABORTED,
.yc-status.UNKNOWN {
  border-color: var(--yc-status-neutral-border) !important;
  background: var(--yc-status-neutral-bg) !important;
  color: var(--yc-status-neutral) !important;
}

.submissions-table th,
.submissions-table td {
  vertical-align: middle;
}

.submissions-table .yc-result-cell a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

@media (max-width: 720px) {
  .yc-result-guide {
    gap: 6px;
    margin-top: 8px;
  }

  .yc-result-guide-title {
    width: 100%;
  }

  .yc-result-pill {
    min-width: 68px;
    font-size: 13px;
  }
}
