:root {
  color-scheme: light dark;
  --tf-bg: light-dark(#f7f7f9, #101114);
  --tf-panel: light-dark(#ffffff, #17181c);
  --tf-ink: light-dark(#111318, #f2f3f5);
  --tf-muted: light-dark(#5b616e, #a6abb6);
  --tf-line: light-dark(#e6e7eb, #26282e);
  --tf-purple: light-dark(#6d28d9, #a78bfa);
  --tf-soft: light-dark(#f1eafd, #251b3d);
  --tf-green: light-dark(#087b38, #2fbf6b);
  --tf-green-bg: light-dark(#edf8f1, #172c21);
  --tf-amber: light-dark(#925300, #fbbf24);
  --tf-amber-bg: light-dark(#fff8eb, #302516);
  --tf-orange: light-dark(#b13d00, #fb8c4b);
  --tf-orange-bg: light-dark(#fff2ea, #33221a);
  --tf-red: light-dark(#c5271e, #f97066);
  --tf-red-bg: light-dark(#fff1ef, #331c1b);
  --tf-neutral: light-dark(#5f6674, #a1a8b6);
  --tf-neutral-bg: light-dark(#eff0f3, #22242a);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--tf-ink);
  background: var(--tf-bg);
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

h1,
h2,
p {
  margin: 0;
}

a {
  color: var(--tf-purple);
}

:focus-visible {
  outline: 2px solid var(--tf-purple);
  outline-offset: 3px;
  border-radius: 4px;
}

.tf-skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  background: var(--tf-panel);
  border: 1px solid var(--tf-line);
  border-radius: 8px;
}

.tf-skip:focus {
  top: 12px;
}

.tf-shell {
  max-width: 824px;
  padding: 0 32px 34px;
  margin: auto;
}

.tf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0 36px;
}

.tf-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.tf-brand img {
  height: 32px;
  width: 32px;
}

.tf-wordmark {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.7px;
}

.tf-brand-divider {
  height: 20px;
  border-left: 1px solid var(--tf-line);
  margin: 0 3px 0 8px;
}

.tf-status-label {
  color: var(--tf-muted);
  font-size: 14px;
}

.tf-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tf-kicker {
  color: var(--tf-muted);
  font-size: 11px;
  letter-spacing: 0.09em;
  font-weight: 650;
  text-transform: uppercase;
}

.tf-hero {
  margin-bottom: 26px;
}

.tf-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 9px;
}

.tf-overall-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-top: 2px;
  flex-shrink: 0;
}

.tf-overall-icon .tf-icon {
  width: 20px;
  height: 20px;
}

h1 {
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: -0.9px;
  font-weight: 650;
}

.tf-description {
  color: var(--tf-muted);
  max-width: 600px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
}

.tf-coverage {
  color: var(--tf-muted);
  max-width: 600px;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.tf-freshness {
  color: var(--tf-muted);
  font-size: 12px;
  margin-top: 14px;
}

.tf-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 13px;
}

.tf-section-head h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.2px;
}

.tf-small {
  font-size: 12px;
  color: var(--tf-muted);
}

.tf-components {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--tf-panel);
  border: 1px solid var(--tf-line);
  border-radius: 12px;
  overflow: hidden;
}

.tf-components:empty {
  display: none;
}

.tf-component {
  padding: 17px 20px 16px;
  border-bottom: 1px solid var(--tf-line);
}

.tf-component:last-child {
  border: 0;
}

.tf-component-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tf-service {
  font-size: 13px;
  font-weight: 600;
}

.tf-health {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tf-times {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 8px 0 0;
  color: var(--tf-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.tf-times div {
  display: flex;
  gap: 5px;
}

.tf-times dd {
  margin: 0;
}

.tf-times dt::after {
  content: ':';
}

.tf-note {
  color: var(--tf-muted);
  font-size: 12px;
  margin-top: 6px;
}

[data-state='operational'] .tf-health,
[data-state='operational'].tf-hero .tf-overall-icon {
  color: var(--tf-green);
}

[data-state='degraded'] .tf-health,
[data-state='degraded'].tf-hero .tf-overall-icon {
  color: var(--tf-amber);
}

[data-state='partial_outage'] .tf-health,
[data-state='partial_outage'].tf-hero .tf-overall-icon {
  color: var(--tf-orange);
}

[data-state='major_outage'] .tf-health,
[data-state='major_outage'].tf-hero .tf-overall-icon {
  color: var(--tf-red);
}

[data-state='unknown'] .tf-health,
[data-state='unknown'].tf-hero .tf-overall-icon {
  color: var(--tf-neutral);
}

[data-state='operational'].tf-hero .tf-overall-icon {
  background: var(--tf-green-bg);
}

[data-state='degraded'].tf-hero .tf-overall-icon {
  background: var(--tf-amber-bg);
}

[data-state='partial_outage'].tf-hero .tf-overall-icon {
  background: var(--tf-orange-bg);
}

[data-state='major_outage'].tf-hero .tf-overall-icon {
  background: var(--tf-red-bg);
}

[data-state='unknown'].tf-hero .tf-overall-icon {
  background: var(--tf-neutral-bg);
}

.tf-incidents-section {
  margin-bottom: 28px;
}

.tf-past {
  margin: 32px 0 0;
}

.tf-active-list {
  display: grid;
  gap: 14px;
}

.tf-incident {
  background: var(--tf-panel);
  border: 1px solid var(--tf-line);
  border-left: 3px solid var(--tf-neutral);
  border-radius: 10px;
  padding: 18px 20px;
}

.tf-incident-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tf-badge {
  color: var(--tf-ink);
  background: var(--tf-neutral-bg);
  font-size: 11px;
  font-weight: 650;
  padding: 3px 8px;
  border-radius: 5px;
}

.tf-incident h3,
.tf-past-incident h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
}

.tf-affected,
.tf-next {
  color: var(--tf-muted);
  font-size: 12px;
  margin-top: 4px;
}

.tf-latest {
  margin-top: 10px;
}

.tf-message {
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.tf-corrected {
  color: var(--tf-muted);
  font-size: 11px;
  font-style: italic;
  margin-top: 3px;
}

.tf-timeline-details {
  margin-top: 10px;
}

.tf-timeline-details summary {
  color: var(--tf-purple);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  min-height: 32px;
  display: list-item;
  padding: 6px 0;
}

.tf-timeline {
  list-style: none;
  margin: 6px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--tf-line);
}

.tf-timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding-bottom: 14px;
  font-size: 12px;
}

.tf-timeline-item:last-child {
  padding-bottom: 0;
}

.tf-timeline-item time {
  color: var(--tf-muted);
  font-variant-numeric: tabular-nums;
}

.tf-past-days,
.tf-past-incidents {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tf-past-days {
  background: var(--tf-panel);
  border: 1px solid var(--tf-line);
  border-radius: 12px;
}

.tf-past-day {
  padding: 16px 20px;
  border-bottom: 1px solid var(--tf-line);
}

.tf-past-day:last-child {
  border: 0;
}

.tf-past-date {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--tf-muted);
}

.tf-past-incident + .tf-past-incident {
  margin-top: 14px;
}

.tf-resolved {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 4px;
}

[data-state='degraded'].tf-incident {
  border-left-color: var(--tf-amber);
}

[data-state='partial_outage'].tf-incident {
  border-left-color: var(--tf-orange);
}

[data-state='major_outage'].tf-incident {
  border-left-color: var(--tf-red);
}

.tf-footer {
  border-top: 1px solid var(--tf-line);
  padding-top: 22px;
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--tf-muted);
  font-size: 11px;
}

.tf-footer a {
  text-decoration: none;
  font-size: 12px;
}

@media (max-width: 560px) {
  .tf-shell {
    padding: 0 18px 25px;
  }

  .tf-header {
    padding: 23px 0 27px;
  }

  h1 {
    font-size: 26px;
  }

  .tf-component {
    padding: 15px 16px 14px;
  }

  .tf-times {
    flex-direction: column;
  }

  .tf-incident,
  .tf-past-day {
    padding: 15px 16px;
  }

  .tf-timeline-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (pointer: coarse) {
  .tf-footer a,
  .tf-brand {
    min-height: 44px;
  }
}
