:root {
  color-scheme: dark;
  --n900: #0f121a;
  --n800: #191c24;
  --n700: #21242d;
  --n600: #2d313c;
  --n500: #424757;
  --n400: #585e72;
  --n300: #70778c;
  --n200: #8a91a5;
  --n100: #a7acbb;
  --green: rgb(16 185 129);
  --red: rgb(248 113 113);
  --yellow: rgb(245 158 11);
  --blue: rgb(96 165 250);
  --shadow: 0 4px 7px #00000008;
  --font: "Inter", "SF Pro Text", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scrollbar-gutter: stable both-edges; }

body {
  margin: 0;
  background: var(--n900);
  color: var(--n200);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 1.5px solid #fff; outline-offset: 1px; border-radius: 4px; }
button { font: inherit; color: inherit; }

.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 540px) { .container { max-width: 540px; } }
@media (min-width: 802px) { .container { max-width: 802px; } }
@media (min-width: 1018px) { .container { max-width: 860px; } }

.heading-large { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 700; color: #fff; }
.heading-small { margin: 0; font-size: 22px; line-height: 1.1; font-weight: 700; color: #fff; }

.icon { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
.c-operational { color: var(--green); }
.c-downtime { color: var(--red); }
.c-degraded { color: var(--yellow); }
.c-maintenance { color: var(--blue); }
.c-not_monitored { color: var(--n500); }
.c-muted { color: var(--n400); }

.nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--n700);
}
.nav-side { display: flex; }
.nav-end { justify-content: flex-end; align-items: center; gap: 8px; }

.lang { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--n600);
  border-radius: 8px;
  background: var(--n700);
  box-shadow: var(--shadow);
  font-weight: 500;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: transform .15s;
}
.lang-btn::-webkit-details-marker { display: none; }
.lang-btn:active { transform: scale(.95); }
.lang-btn .chevron { width: 14px; height: 14px; margin: 0; color: var(--n200); }
.lang[open] .lang-btn .chevron { rotate: 180deg; }
.flag { display: block; width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgb(255 255 255 / .08); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: 180px;
  padding: 4px;
  border: 1px solid var(--n700);
  border-radius: 12px;
  background: var(--n800);
  box-shadow: 0 8px 24px rgb(0 0 0 / .35);
}
.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color .15s, color .15s;
}
.lang-item:hover, .lang-item.is-active { background: var(--n700); color: #fff; }
.lang-item span { flex-grow: 1; }
.lang-item .check { width: 16px; height: 16px; color: var(--green); }
.brand { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border-radius: 2px; transition: transform .15s; }
.brand:active { transform: scale(.95); }
.brand img { display: block; width: 29px; height: 29px; object-fit: contain; }
.brand span { font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.nav-menu { display: flex; justify-content: center; gap: 12px; font-weight: 500; }
.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .15s, color .15s, transform .15s;
}
.nav-link:hover, .nav-link.is-active { background: var(--n700); color: #fff; }
.nav-link:active { transform: scale(.95); }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--n200);
  cursor: pointer;
}
.nav-toggle .icon { width: 20px; height: 20px; }
@media (min-width: 802px) {
  .nav-side { width: 200px; }
}
@media (max-width: 801.98px) {
  .container { padding-top: 50px; }
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    height: 50px;
    padding: 0 20px;
    background: rgb(15 18 26 / .8);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 8px;
    padding: 16px 16px 24px;
    border-bottom: 1px solid var(--n700);
    background: rgb(15 18 26 / .92);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
  .nav.is-open .nav-menu { display: flex; }
}

.hero { margin: 80px 0 48px; text-align: center; }
.hero-icon { display: block; width: 40px; height: 40px; margin: 0 auto; }
.hero .heading-large { margin-top: 8px; }
.hero-updated { margin: 12px 0 0; font-weight: 500; }
.hero-updated a { color: #fff; }

.card {
  background: var(--n800);
  border: 1px solid var(--n700);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.reports { display: grid; gap: 16px; margin-bottom: 44px; }
.report { overflow: hidden; }

.sections { padding: 12px; }
@media (min-width: 540px) { .sections { margin-bottom: 96px; } }

.section { margin: 8px -12px 0; padding: 0 12px; border-top: 1px solid var(--n700); }
.section:first-child { margin-top: -4px; border-top: 0; }
.section.is-collapsed, .section.is-collapsed + .section { border-top-color: transparent; }
.section-toggle {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 4px;
  padding: 8px 8px 8px 0;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.section-toggle:hover, .is-collapsed .section-toggle { background: var(--n700); }
.section-toggle:active { transform: scale(.98); }
.section-name {
  min-width: 0;
  margin: 0 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: #fff;
}
.section-right { display: flex; align-items: center; }
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px 4px 4px;
  border-radius: 9999px;
  background: var(--n600);
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  transition: background-color .15s;
}
.is-collapsed .section-badge, .section-toggle:hover .section-badge { background: transparent; }
.chevron { width: 16px; height: 16px; margin: 1px 0 0 8px; color: var(--n200); transition: rotate .15s; }
.is-collapsed .chevron { rotate: -90deg; }
.section-content { margin: 0 8px; }
.is-collapsed .section-content { display: none; }
@media (min-width: 540px) {
  .section-toggle { padding: 12px 12px 12px 0; }
  .section-name { margin: 0 16px; }
  .chevron { margin-right: 8px; }
  .section-content { margin: 0 12px; }
}

.monitor { margin-top: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--n700); }
.monitor:last-child { border-bottom: 0; }
.monitor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -4px 0;
  font-weight: 500;
  color: #fff;
}
.monitor-name { display: flex; align-items: center; flex-grow: 1; min-width: 0; margin-right: 8px; font-size: 15px; }
.monitor-name .icon { margin-right: 4px; }
.monitor-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monitor-uptime { flex-shrink: 0; }

.ticks { display: flex; margin-top: 12px; }
.tick {
  flex: 1 1 0;
  height: 32px;
  margin-right: 1px;
  border-radius: 1px;
  background: var(--tick);
  transition: opacity .15s;
}
.tick:last-child { margin-right: 0; border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.tick:hover, .tick.is-active { opacity: .6; }
.s-operational { --tick: var(--green); }
.s-downtime { --tick: var(--red); }
.s-degraded { --tick: var(--yellow); }
.s-maintenance { --tick: var(--blue); }
.s-not_monitored { --tick: var(--n600); }
.t-sm, .t-md { display: none; }
.tick:nth-child(61) { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.ticks-legend { display: flex; justify-content: space-between; margin: 12px 4px 0; line-height: 1; }

.only-sm, .only-md { display: none; }
@media (min-width: 540px) {
  .t-sm { display: block; }
  .tick:nth-child(61) { border-radius: 1px; }
  .tick:nth-child(31) { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
  .only-xs { display: none; }
  .only-sm { display: inline; }
}
@media (min-width: 802px) {
  .t-md { display: block; }
  .tick:nth-child(31) { border-radius: 1px; }
  .tick:first-child { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
  .only-sm { display: none; }
  .only-md { display: inline; }
}

.tooltip {
  position: absolute;
  z-index: 200;
  width: 190px;
  padding: 8px 8px 4px;
  border: 1px solid var(--n600);
  border-radius: 12px;
  background: var(--n700);
  box-shadow: var(--shadow);
  text-align: center;
  pointer-events: none;
}
.tooltip-status { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 8px; font-weight: 500; color: #fff; }
.tooltip-detail { margin: 0 8px 8px; font-size: 12px; }
.tooltip hr { margin: 4px 0; border: 0; border-bottom: 1px solid var(--n600); }
.tooltip-date { padding-bottom: 4px; font-size: 12px; }

.page-title { margin-top: 80px; text-align: center; }
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 24px 0 80px;
  font-size: 15px;
  font-weight: 500;
}
.pager-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--n700);
  transition: transform .15s, color .15s;
}
.pager-btn .icon { width: 16px; height: 16px; }
.pager-btn:hover { color: #fff; }
.pager-btn:active { transform: scale(.9); }
.pager-btn.is-disabled { opacity: .4; }

.month { margin-top: 44px; overflow: hidden; }
.month-head { padding: 20px 28px; border-bottom: 1px solid var(--n700); font-weight: 500; color: #fff; }
.month-empty { margin: 56px 0; text-align: center; font-size: 15px; font-weight: 500; }
.month-empty .icon { margin: -2px 4px 0 0; }
.day-row { display: flex; justify-content: space-between; padding: 12px 28px; background: var(--n700); }
.day-date { font-weight: 500; }

.item {
  display: block;
  padding: 32px 28px;
  border-bottom: 1px solid var(--n700);
  transition: background-color .15s;
}
.item:last-child { border-bottom: 0; }
.item:hover { background: rgb(33 36 45 / .3); }
.item-head { display: flex; align-items: flex-start; }
.item-title { flex-grow: 1; margin: 0; font-size: 15px; font-weight: 500; color: #fff; }
.item-head .pill { margin-left: 16px; }
.item-window { margin: 8px 0 0; }
.sep { margin: 0 4px; color: var(--n400); }

.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 9999px;
  line-height: 1;
  white-space: nowrap;
}
.pill-operational { color: var(--green); background: rgb(16 185 129 / .2); }
.pill-downtime { color: var(--red); background: rgb(248 113 113 / .2); }
.pill-degraded { color: var(--yellow); background: rgb(245 158 11 / .2); }
.pill-maintenance { color: var(--blue); background: rgb(96 165 250 / .2); }

.timeline { display: flex; margin-top: 24px; }
.timeline-icon { position: relative; flex-shrink: 0; margin: 16px 8px 0 0; }
.timeline-line { position: absolute; top: 28px; left: 8px; bottom: -8px; border-left: 1px solid var(--n700); }
.update-wrap { position: relative; flex-grow: 1; min-width: 0; margin-bottom: 4px; }
.update {
  position: relative;
  z-index: 2;
  padding: 16px 16px 0;
  border: 1px solid var(--n600);
  border-radius: 12px;
  background: var(--n700);
  box-shadow: var(--shadow);
}
.update-head { margin: 0 0 12px; }
.update-label { font-weight: 500; color: #fff; }
.update-head [data-time] { margin-left: 4px; }
.update-ghost {
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  border: 1px solid var(--n600);
  border-radius: 12px;
  background: var(--n700);
  box-shadow: var(--shadow);
}
.update-ghost.g1 { bottom: -4px; z-index: 1; margin: 0 1px; }
.update-ghost.g2 { bottom: -8px; z-index: 0; margin: 0 2px; }
.prev-updates { display: flex; align-items: center; margin-top: 16px; }
.prev-updates .icon { margin-right: 8px; }
.prev-updates p { margin: 0; }

.prose { padding-bottom: 12px; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose > :last-child { margin-bottom: 0; }
.prose a { color: var(--n300); text-decoration: underline; }
.prose strong { color: var(--n100); }
.prose code { padding: 1px 4px; border-radius: 4px; background: var(--n600); font-size: 12px; }

.back { display: inline-flex; align-items: center; margin-top: 64px; font-weight: 500; transition: transform .15s; }
.back:active { transform: scale(.98); }
.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 6px;
  background: var(--n700);
}
.back-btn .icon { width: 16px; height: 16px; }
.detail { margin: 16px 0 96px; overflow: hidden; }
.detail-head { padding: 32px; }
.detail-head .heading-small { max-width: 420px; margin-top: 12px; }
.detail-time { margin: 12px 0 0; font-weight: 500; }
.affected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 32px;
  border-top: 1px solid var(--n700);
  font-weight: 500;
  white-space: nowrap;
}
.affected-label { margin-right: 8px; }
.chip { margin: 4px 8px 4px 0; padding: 4px 8px; border-radius: 9999px; background: var(--n600); }
.detail-updates { padding: 4px 32px 24px; background: #151820; }
.detail-updates .timeline { margin-top: 20px; }
@media (max-width: 539.98px) {
  .detail-head, .affected { padding-left: 20px; padding-right: 20px; }
  .detail-updates { padding-left: 16px; padding-right: 16px; }
  .item, .month-head, .day-row { padding-left: 20px; padding-right: 20px; }
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 40px 0;
  font-size: 12px;
  font-weight: 500;
}
.footer-brand { display: inline-flex; align-items: center; gap: 6px; color: var(--n100); border-radius: 2px; }
.footer-brand img { display: block; width: 20px; height: 20px; object-fit: contain; }
.footer-brand span { font-size: 13px; font-weight: 800; letter-spacing: -.01em; }
