.deg-status-app {
  --deg-page: #fff;
  --deg-text: #17181a;
  --deg-muted: #868a93;
  --deg-border: #dcdee2;
  --deg-border-soft: #eceef0;
  --deg-ink: #232428;
  --deg-green: #22bea0;
  --deg-green-soft: #d8f5ef;
  --deg-amber: #f5b31b;
  --deg-coral: #ff715f;
  --deg-unknown: #bcc1c8;
  --deg-expand: 650ms;
  --deg-focus: 500ms;
  --deg-ease: cubic-bezier(0.4, 0, 0.2, 1);
  width: min(100%, 760px);
  margin: 0 auto;
  color: var(--deg-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.deg-status-app *,
.deg-status-app *::before,
.deg-status-app *::after {
  box-sizing: border-box;
}

.deg-status-brand {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #0b0c0e;
  font-size: 23px;
  font-weight: 720;
  letter-spacing: -0.035em;
}

.deg-status-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 520;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.deg-status-button--primary {
  border-color: var(--deg-ink);
  background: var(--deg-ink);
  color: #fff;
}

.deg-status-button--outline {
  border-color: #cfd2d7;
  background: #fff;
  color: var(--deg-text);
}

.deg-status-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.deg-status-summary {
  overflow: hidden;
  margin-bottom: 26px;
  border: 1px solid var(--deg-unknown);
  border-radius: 11px;
}

.deg-status-summary__headline {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #f1f2f3;
}

.deg-status-summary--operational {
  border-color: var(--deg-green);
}

.deg-status-summary--operational .deg-status-summary__headline {
  background: var(--deg-green-soft);
}

.deg-status-summary--degraded {
  border-color: var(--deg-amber);
}

.deg-status-summary--degraded .deg-status-summary__headline {
  background: #fff3cf;
}

.deg-status-summary--outage {
  border-color: var(--deg-coral);
}

.deg-status-summary--outage .deg-status-summary__headline {
  background: #ffe3df;
}

.deg-status-summary h2,
.deg-status-panel__header h2,
.deg-status-history__header h2 {
  margin: 0;
  color: var(--deg-text);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.deg-status-summary > p {
  margin: 0;
  padding: 16px 18px 18px;
  color: var(--deg-text);
  font-size: 14px;
}

.deg-status-icon {
  display: inline-grid;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--deg-unknown);
  color: #fff;
}

.deg-status-icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.deg-status-icon--operational { background: var(--deg-green); }
.deg-status-icon--degraded { border-radius: 5px; background: var(--deg-amber); }
.deg-status-icon--outage { background: var(--deg-coral); }

.deg-status-panel {
  overflow: hidden;
  border: 1px solid var(--deg-border);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(18 24 40 / 4%);
}

.deg-status-panel__header,
.deg-status-history__header {
  display: flex;
  min-height: 55px;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid var(--deg-border-soft);
}

.deg-status-panel__header span,
.deg-status-history__header span {
  color: var(--deg-muted);
  font-size: 14px;
}

.deg-status-receiver {
  border-bottom: 1px solid var(--deg-border-soft);
  transition:
    opacity var(--deg-focus) var(--deg-ease),
    filter var(--deg-focus) var(--deg-ease);
}

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

.deg-status-receivers.has-focused-receiver .deg-status-receiver:not(.is-focused) {
  opacity: 0.38;
  filter: saturate(0.55);
}

.deg-status-receivers.has-focused-receiver .deg-status-receiver:not(.is-focused):hover,
.deg-status-receivers.has-focused-receiver .deg-status-receiver:not(.is-focused):focus-within {
  opacity: 0.68;
  filter: saturate(0.8);
}

.deg-status-receiver__trigger {
  display: block;
  width: 100%;
  min-height: 76px;
  padding: 13px 18px 12px;
  border: 0;
  background: #fff;
  color: var(--deg-text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    box-shadow 140ms ease;
}

.deg-status-app .deg-status-receiver__trigger:hover {
  border-color: transparent;
  background: #f7f8f8;
  color: var(--deg-text);
}

.deg-status-app .deg-status-receiver__trigger:focus-visible {
  outline: 0;
  border-color: transparent;
  background: #f7f8f8;
  color: var(--deg-text);
  box-shadow: inset 0 0 0 2px rgb(34 190 160 / 38%);
}

.deg-status-app .deg-status-receiver__trigger:active {
  border-color: transparent;
  background: #f1f3f3;
  color: var(--deg-text);
}

.deg-status-receiver__meta,
.deg-status-receiver__identity,
.deg-status-component__meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.deg-status-receiver__meta {
  margin-bottom: 10px;
}

.deg-status-receiver__identity strong,
.deg-status-component__meta strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 540;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deg-status-component-count,
.deg-status-uptime {
  color: var(--deg-muted);
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.deg-status-uptime {
  margin-left: auto;
}

.deg-status-chevron {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: #9ca1aa;
  transition: transform var(--deg-focus) var(--deg-ease);
}

.deg-status-chevron svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.deg-status-receiver__trigger[aria-expanded="true"] .deg-status-chevron {
  transform: rotate(180deg);
}

.deg-status-timeline {
  display: grid;
  grid-template-columns: repeat(90, minmax(2px, 1fr));
  gap: 2px;
  width: 100%;
  height: 15px;
}

.deg-status-timeline__day {
  min-width: 2px;
  border-radius: 1px;
  background: var(--deg-unknown);
}

.deg-status-timeline__day--operational { background: var(--deg-green); }
.deg-status-timeline__day--degraded { background: var(--deg-amber); }
.deg-status-timeline__day--outage { background: var(--deg-coral); }

.deg-status-components {
  height: 0;
  overflow: hidden;
  background: #fff;
  opacity: 0;
  transition:
    height var(--deg-expand) var(--deg-ease),
    opacity var(--deg-focus) var(--deg-ease);
  will-change: height, opacity;
}

.deg-status-components[aria-hidden="false"] {
  height: var(--deg-expanded-height, auto);
  opacity: 1;
}

.deg-status-component {
  display: grid;
  grid-template-columns: minmax(176px, 220px) minmax(0, 1fr);
  min-height: 56px;
  align-items: center;
  gap: 18px;
  padding: 8px 18px;
  border-top: 1px solid var(--deg-border-soft);
}

.deg-status-component__data {
  min-width: 0;
}

.deg-status-component__data .deg-status-uptime {
  display: block;
  margin: 0 0 7px;
  text-align: right;
}

.deg-status-centered-action {
  display: flex;
  justify-content: center;
  padding: 24px 0 8px;
}

.deg-status-history {
  margin-top: 28px;
  border-top: 1px solid var(--deg-border);
}

.deg-status-history[hidden] {
  display: none;
}

.deg-status-history__header {
  padding: 0;
}

.deg-status-history-day {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--deg-border-soft);
}

.deg-status-history-day > time {
  font-size: 13px;
  font-weight: 650;
}

.deg-status-incident {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 20px;
}

.deg-status-incident:last-child {
  margin-bottom: 0;
}

.deg-status-incident__rail {
  border-radius: 2px;
  background: var(--deg-amber);
}

.deg-status-incident--outage .deg-status-incident__rail {
  background: var(--deg-coral);
}

.deg-status-incident h3 {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 560;
}

.deg-status-incident p,
.deg-status-incident small {
  margin: 0;
  color: #6e737c;
  font-size: 13px;
}

.deg-status-incident > time {
  color: var(--deg-muted);
  font-size: 12px;
}

.deg-status-empty,
.deg-status-shortcode-message {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--deg-border);
  background: #fff;
  color: #646970;
}

@media (max-width: 680px) {
  .deg-status-brand {
    min-height: 76px;
    font-size: 17.5px;
  }

  .deg-status-summary {
    margin-bottom: 19px;
  }

  .deg-status-panel__header {
    min-height: 70px;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding: 13px 14px 11px;
  }

  .deg-status-receiver__trigger {
    min-height: 83px;
    padding: 13px 14px;
  }

  .deg-status-component-count {
    display: none;
  }

  .deg-status-timeline {
    grid-template-columns: repeat(45, minmax(3px, 1fr));
    overflow: hidden;
  }

  .deg-status-timeline__day:nth-child(-n + 45) {
    display: none;
  }

  .deg-status-component {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 7px;
    padding: 11px 14px 12px;
  }

  .deg-status-component__data .deg-status-uptime {
    display: none;
  }

  .deg-status-receiver__meta > .deg-status-uptime {
    font-size: 12px;
  }

  .deg-status-history-day {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
  }

  .deg-status-incident {
    grid-template-columns: 4px minmax(0, 1fr);
  }

  .deg-status-incident > time {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deg-status-app *,
  .deg-status-app *::before,
  .deg-status-app *::after {
    transition-duration: 0.01ms !important;
  }
}
