/* 123Proxy service status */

.status-page {
  --status-green: #0b8f76;
  --status-green-soft: #e9f7f3;
  --status-amber: #b97818;
  --status-amber-soft: #fff5df;
  --status-red: #c84747;
  --status-red-soft: #fff0f0;
  --status-purple: #7657bd;
  --status-purple-soft: #f2edff;
  --status-unknown: #8a95a3;
  --status-unknown-soft: #f0f2f5;
}

.status-page .utility-link.is-active {
  color: #fff;
}

.status-hero {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.status-hero-inner {
  padding: 58px 0 48px;
}

.status-heading {
  max-width: 760px;
}

.status-eyebrow,
.status-section-intro > div:first-child > span,
.status-group-head > div > span,
.status-method-inner > div:first-child > span {
  color: var(--blue);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-heading h1 {
  margin: 10px 0 8px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.08;
}

.status-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.status-overall {
  min-height: 126px;
  margin-top: 38px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 24px 26px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--status-unknown);
  border-radius: 7px;
  background: #fff;
}

.status-overall.is-operational {
  border-left-color: var(--status-green);
}

.status-overall.is-degraded,
.status-overall.is-maintenance {
  border-left-color: var(--status-amber);
}

.status-overall.is-partial_outage,
.status-overall.is-major_outage {
  border-left-color: var(--status-red);
}

.status-overall-symbol {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  color: var(--status-unknown);
  background: #f7f9fa;
}

.status-overall.is-operational .status-overall-symbol {
  color: var(--status-green);
  border-color: #b8ded4;
  background: var(--status-green-soft);
}

.status-overall.is-degraded .status-overall-symbol,
.status-overall.is-maintenance .status-overall-symbol {
  color: var(--status-amber);
  border-color: #ead3a9;
  background: var(--status-amber-soft);
}

.status-overall.is-partial_outage .status-overall-symbol,
.status-overall.is-major_outage .status-overall-symbol {
  color: var(--status-red);
  border-color: #edc3c3;
  background: var(--status-red-soft);
}

.status-overall-symbol svg {
  width: 23px;
  height: 23px;
}

.status-overall-copy small,
.status-updated small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.status-overall-copy strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 22px;
}

.status-overall-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status-overall-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.status-updated {
  min-width: 132px;
  text-align: right;
}

.status-updated strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.status-refresh {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.status-refresh:hover {
  color: var(--blue);
  border-color: #9fb1ec;
}

.status-refresh:disabled {
  cursor: progress;
  opacity: 0.65;
}

.status-refresh svg {
  width: 16px;
  height: 16px;
}

.status-refresh.is-loading svg {
  animation: status-spin 900ms linear infinite;
}

.status-source-note {
  margin-top: 10px;
  color: var(--status-amber);
  font-size: 11px;
  text-align: right;
}

.status-summary {
  border-bottom: 1px solid var(--line);
  background: #f7f8fa;
}

.status-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-summary-grid > div {
  min-height: 118px;
  padding: 23px 26px;
  border-right: 1px solid var(--line);
}

.status-summary-grid > div:first-child {
  border-left: 1px solid var(--line);
}

.status-summary-grid span,
.status-summary-grid small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.status-summary-grid strong {
  display: block;
  margin: 4px 0 2px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 25px;
}

.status-services {
  padding: 76px 0 86px;
}

.status-section-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 30px;
}

.status-section-intro h2,
.status-method-inner h2 {
  margin: 7px 0 0;
  font-size: 32px;
  line-height: 1.2;
}

.status-section-intro > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 11px;
}

.status-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-legend i,
.status-history-track i {
  display: block;
  border-radius: 2px;
  background: var(--status-unknown);
}

.status-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-legend i.is-operational,
.status-history-track i.is-operational {
  background: var(--status-green);
}

.status-legend i.is-degraded,
.status-history-track i.is-degraded {
  background: var(--status-amber);
}

.status-legend i.is-outage,
.status-history-track i.is-partial_outage,
.status-history-track i.is-major_outage {
  background: var(--status-red);
}

.status-legend i.is-maintenance,
.status-history-track i.is-maintenance {
  background: var(--status-purple);
}

.status-legend i.is-unknown,
.status-history-track i.is-unknown {
  background: #c8cfd7;
}

.status-group {
  margin-top: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
}

.status-group-head {
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(360px, 1.35fr);
  align-items: center;
  gap: 40px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.status-group-head h2 {
  margin: 5px 0 0;
  font-size: 23px;
}

.status-group-head > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.status-component {
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(270px, 0.95fr) minmax(260px, 1.1fr) 220px 116px;
  align-items: center;
  gap: 28px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}

.status-component:last-child {
  border-bottom: 0;
}

.status-component-main {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.status-component-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8dfe7;
  border-radius: 6px;
  color: var(--blue);
  background: #f7f9fc;
}

.status-component-icon svg {
  width: 18px;
  height: 18px;
}

.status-component h3 {
  margin: 0;
  font-size: 15px;
}

.status-component p {
  margin: 2px 0 5px;
  color: var(--muted);
  font-size: 11px;
}

.status-component code {
  display: block;
  overflow: hidden;
  color: #657081;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-history-label {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
}

.status-history-label small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-history-track {
  height: 27px;
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.status-history-track i {
  min-width: 1px;
  flex: 1 1 0;
}

.status-component-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.status-component-metrics span,
.status-component-metrics strong {
  display: block;
}

.status-component-metrics span {
  color: var(--muted);
  font-size: 10px;
}

.status-component-metrics strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
}

.status-badge {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid #d8dfe7;
  border-radius: 4px;
  color: var(--status-unknown);
  background: var(--status-unknown-soft);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.is-operational {
  color: var(--status-green);
  border-color: #b8ded4;
  background: var(--status-green-soft);
}

.status-badge.is-degraded {
  color: var(--status-amber);
  border-color: #ead3a9;
  background: var(--status-amber-soft);
}

.status-badge.is-partial_outage,
.status-badge.is-major_outage {
  color: var(--status-red);
  border-color: #edc3c3;
  background: var(--status-red-soft);
}

.status-badge.is-maintenance {
  color: var(--status-purple);
  border-color: #d3c6f0;
  background: var(--status-purple-soft);
}

.status-events {
  padding: 76px 0 84px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.status-event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: 7px;
}

.status-event-column {
  min-width: 0;
}

.status-event-column + .status-event-column {
  border-left: 1px solid var(--line);
}

.status-event-column > header {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.status-event-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8dfe7;
  border-radius: 5px;
  color: var(--blue);
  background: #f7f9fc;
}

.status-event-icon svg {
  width: 16px;
  height: 16px;
}

.status-event-column h3 {
  margin: 0;
  font-size: 15px;
}

.status-event-column header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.status-event-list {
  min-height: 190px;
}

.status-empty {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.status-empty strong {
  color: var(--text);
  font-size: 13px;
}

.status-empty span {
  margin-top: 4px;
  font-size: 11px;
}

.status-event-item {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.status-event-item:last-child {
  border-bottom: 0;
}

.status-event-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.status-event-item strong {
  color: var(--ink);
  font-size: 13px;
}

.status-event-item time,
.status-event-item p,
.status-event-item small {
  color: var(--muted);
  font-size: 11px;
}

.status-event-item p {
  margin: 7px 0 0;
}

.status-event-item small {
  display: block;
  margin-top: 6px;
}

.status-method {
  padding: 70px 0;
  color: var(--dark-text);
  background: var(--code);
}

.status-method-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
  align-items: center;
  gap: 70px;
}

.status-method-inner h2 {
  color: #fff;
}

.status-method-inner p {
  max-width: 520px;
  margin: 15px 0 0;
  color: #9aabba;
  font-size: 13px;
}

.status-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #2a3c4b;
  border-radius: 6px;
}

.status-method-grid > div {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-right: 1px solid #2a3c4b;
}

.status-method-grid > div:last-child {
  border-right: 0;
}

.status-method-grid svg {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.status-method-grid strong,
.status-method-grid small {
  display: block;
}

.status-method-grid strong {
  color: #e7eef5;
  font-size: 12px;
}

.status-method-grid small {
  margin-top: 3px;
  color: #8497a7;
  font-size: 10px;
}

@keyframes status-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .status-component {
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) 180px;
  }

  .status-component-history {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .status-component-metrics {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .status-badge {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    justify-self: end;
  }

  .status-method-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .status-hero-inner {
    padding: 42px 0 34px;
  }

  .status-heading h1 {
    font-size: 39px;
  }

  .status-overall {
    grid-template-columns: 42px minmax(0, 1fr);
    margin-top: 28px;
    padding: 20px;
  }

  .status-overall-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .status-updated {
    text-align: left;
  }

  .status-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-summary-grid > div {
    min-height: 104px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
  }

  .status-summary-grid > div:nth-child(odd) {
    border-left: 1px solid var(--line);
  }

  .status-services,
  .status-events {
    padding: 56px 0 62px;
  }

  .status-section-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .status-legend {
    justify-content: flex-start;
  }

  .status-group-head {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px;
  }

  .status-component {
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding: 20px;
  }

  .status-component-main {
    grid-column: 1;
    grid-row: 1;
  }

  .status-badge {
    grid-column: 2;
    grid-row: 1;
  }

  .status-component-history {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .status-component-metrics {
    grid-column: 1 / -1;
    grid-row: 3;
    padding-top: 15px;
    border-top: 1px solid var(--line);
  }

  .status-event-grid {
    grid-template-columns: 1fr;
  }

  .status-event-column + .status-event-column {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .status-method-inner {
    gap: 40px;
  }

  .status-method-grid {
    grid-template-columns: 1fr;
  }

  .status-method-grid > div {
    min-height: 96px;
    border-right: 0;
    border-bottom: 1px solid #2a3c4b;
  }

  .status-method-grid > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 480px) {
  .status-overall {
    grid-template-columns: 1fr;
  }

  .status-overall-symbol {
    width: 40px;
    height: 40px;
  }

  .status-overall-actions {
    grid-column: 1;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .status-refresh {
    width: 100%;
  }

  .status-component {
    grid-template-columns: 1fr;
  }

  .status-component-main,
  .status-badge,
  .status-component-history,
  .status-component-metrics {
    grid-column: 1;
  }

  .status-badge {
    grid-row: 2;
    justify-self: start;
  }

  .status-component-history {
    grid-row: 3;
  }

  .status-component-metrics {
    grid-row: 4;
  }
}
