:root {
  font-family: Manrope, sans-serif;
  color: #edf8ff;
  background: #091724;
  --green: #51c8f2;
  --line: #284354;
  --muted: #91a9b9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 20rem;
  background: radial-gradient(circle at 70% 5%, #183b50 0, transparent 28%), #091724;
}
button,
input {
  font: inherit;
}
body > header {
  height: 4.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2.125rem;
  border-bottom: 0.0625rem solid var(--line);
}
.logo {
  font:
    700 0.9375rem 'Space Mono',
    monospace;
}
.logo i {
  display: inline-grid;
  place-items: center;
  width: 1.6875rem;
  height: 1.6875rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--green);
  color: #132736;
  font-style: normal;
}
nav {
  display: flex;
  gap: 1.625rem;
}
nav a {
  color: #91a9b9;
  font-size: 0.5625rem;
}
nav .active {
  color: white;
}
.add {
  justify-self: end;
  margin-right: 2.8125rem;
  border: 0.0625rem solid #284354;
  border-radius: 0.4375rem;
  background: #132736;
  color: #edf8ff;
  padding: 0.5rem 0.75rem;
  font-size: 0.5rem;
}
.avatar {
  position: absolute;
  right: 2.125rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #e3b66f;
  color: #091724;
  font-size: 0.5rem;
}
main {
  max-width: 80rem;
  margin: auto;
  padding: 3.4375rem 2.125rem 5.625rem;
}
.hero {
  display: flex;
  justify-content: space-between;
  min-height: 20.625rem;
}
.hero small,
.panel small,
.overall small,
.stats small {
  font:
    400 0.4375rem 'Space Mono',
    monospace;
  letter-spacing: 0.12em;
  color: #91a9b9;
}
.hero h1 {
  margin: 0.875rem 0;
  font-size: 3.5625rem;
  line-height: 0.92;
  letter-spacing: -0.06em;
}
.hero h1 em {
  color: var(--green);
  font-style: normal;
}
.hero p {
  color: #91a9b9;
  font:
    400 0.5625rem/1.6 'Space Mono',
    monospace;
}
@keyframes scan {
  to {
    transform: rotate(360deg);
  }
}
.overview {
  border: 0.0625rem solid var(--line);
  border-radius: 0.6875rem;
  background: #091724;
}
.overall {
  display: flex;
  align-items: center;
  gap: 0.8125rem;
  padding: 1.25rem;
  border-bottom: 0.0625rem solid var(--line);
}
.pulse {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: #e7b45d;
  box-shadow: 0 0 0 0.375rem #e7b45d18;
}
.overall strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
}
.overall time {
  margin-left: auto;
  color: #91a9b9;
  font:
    400 0.4375rem 'Space Mono',
    monospace;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stats article {
  padding: 1.125rem;
  border-right: 0.0625rem solid var(--line);
}
.stats article:last-child {
  border: 0;
}
.stats strong {
  display: block;
  margin: 0.4375rem 0;
  font:
    700 1.375rem 'Space Mono',
    monospace;
}
.stats span {
  color: #91a9b9;
  font-size: 0.4375rem;
}
.grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0.625rem;
  margin: 0.625rem 0;
}
.panel {
  padding: 1.25rem;
  border: 0.0625rem solid var(--line);
  border-radius: 0.6875rem;
  background: #091724;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel h2 {
  margin: 0.3125rem 0 0;
  font-size: 1.0625rem;
}
.panel-head button {
  border: 0;
  background: none;
  color: #91a9b9;
  font-size: 0.5rem;
}
.monitor {
  display: grid;
  grid-template-columns: 1fr 5.625rem 4.6875rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.875rem 0;
  border-top: 0.0625rem solid #284354;
}
.monitor:first-child {
  margin-top: 0.9375rem;
}
.monitor-name {
  display: flex;
  gap: 0.625rem;
  align-items: center;
}
.monitor-name > i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0.3125rem #51c8f21c;
}
.monitor.down .monitor-name > i {
  background: #f07272;
  box-shadow: 0 0 0 0.3125rem #f0727213;
}
.monitor.unknown .monitor-name > i {
  background: #91a9b9;
  box-shadow: none;
}
.monitor.degraded .monitor-name > i {
  background: #e7b45d;
  box-shadow: 0 0 0 0.3125rem #e7b45d13;
}
.monitor b,
.monitor small {
  display: block;
}
.monitor b {
  font-size: 0.5625rem;
}
.monitor small {
  margin-top: 0.1875rem;
  font:
    400 0.375rem 'Space Mono',
    monospace;
  letter-spacing: 0;
}
.spark {
  display: flex;
  align-items: end;
  gap: 0.1875rem;
  height: 1.6875rem;
}
.spark i {
  width: 0.25rem;
  background: #284354;
}
.spark i:nth-child(1) {
  height: 35%;
}
.spark i:nth-child(2) {
  height: 60%;
}
.spark i:nth-child(3) {
  height: 45%;
}
.spark i:nth-child(4) {
  height: 85%;
}
.spark i:nth-child(5) {
  height: 55%;
}
.spark i:nth-child(6) {
  height: 75%;
}
.monitor > span {
  text-align: right;
  font:
    700 0.5625rem 'Space Mono',
    monospace;
}
.monitor > span small {
  color: #91a9b9;
}
.line-chart {
  height: 11.875rem;
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
}
.line-chart svg {
  grid-column: 1/-1;
  width: 100%;
  height: 9.6875rem;
  overflow: visible;
}
.area {
  fill: url(#g);
}
.line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
}
.line-chart > span {
  color: #91a9b9;
  font:
    400 0.375rem 'Space Mono',
    monospace;
}
.line-chart > span:not(:first-of-type) {
  text-align: right;
}
.latency-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 0.9375rem;
  padding-top: 0.9375rem;
  border-top: 0.0625rem solid var(--line);
}
.latency-foot > span {
  font:
    400 0.4375rem 'Space Mono',
    monospace;
  color: #91a9b9;
}
.latency-foot i {
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  margin-right: 0.3125rem;
  border-radius: 50%;
  background: var(--green);
}
.latency-foot strong {
  font:
    700 1.1875rem 'Space Mono',
    monospace;
}
.latency-foot small {
  display: block;
  text-align: right;
  letter-spacing: 0;
}
.incident {
  display: grid;
  grid-template-columns: 5rem 1fr 6.25rem;
  gap: 1.125rem;
  padding: 1rem 0;
  border-top: 0.0625rem solid var(--line);
}
.incident:first-child {
  margin-top: 0.9375rem;
}
.incident time {
  font:
    400 0.4375rem 'Space Mono',
    monospace;
  color: #91a9b9;
}
.incident h3 {
  margin: 0 0 0.3125rem;
  font-size: 0.625rem;
}
.incident p {
  margin: 0;
  color: #91a9b9;
  font-size: 0.5rem;
  line-height: 1.5;
}
.incident > span {
  height: max-content;
  padding: 0.3125rem 0.4375rem;
  border-radius: 0.75rem;
  background: #183b50;
  color: #91ddf7;
  font-size: 0.4375rem;
  text-align: center;
}
.incident.open > span {
  background: #3c3221;
  color: #ecc174;
}
.report {
  border: 0.0625rem solid #284354 !important;
  border-radius: 0.375rem !important;
  padding: 0.4375rem 0.625rem !important;
  color: #c6dbe5 !important;
}
dialog {
  width: min(27.5rem, calc(100% - 1.5rem));
  border: 0.0625rem solid #284354;
  border-radius: 0.875rem;
  background: #132736;
  color: #edf8ff;
  padding: 0;
}
dialog::backdrop {
  background: #091724b8;
}
dialog form {
  position: relative;
  display: grid;
  gap: 0.8125rem;
  padding: 1.5625rem;
}
dialog h2 {
  margin: 0 0 0.75rem;
}
dialog label {
  display: grid;
  gap: 0.3125rem;
  color: #91a9b9;
  font-size: 0.5rem;
}
dialog input {
  border: 0.0625rem solid #284354;
  border-radius: 0.4375rem;
  background: #091724;
  color: white;
  padding: 0.625rem;
}
.close {
  position: absolute;
  right: 0.9375rem;
  top: 0.625rem;
  border: 0;
  background: none;
  color: white;
  font-size: 1.375rem;
}
.submit {
  border: 0;
  border-radius: 0.4375rem;
  background: var(--green);
  color: #183b50;
  padding: 0.6875rem;
  font-size: 0.5625rem;
  font-weight: 700;
}
@media (max-width: 760px), (min-width: 801px) and (max-width: 950px) {
  body > header {
    grid-template-columns: 1fr auto;
    padding: 0 1rem;
  }
  nav,
  .add {
    display: none;
  }
  .avatar {
    right: 1rem;
  }
  main {
    padding: 2.1875rem 0.875rem 4.375rem;
  }
  .hero {
    min-height: 19.375rem;
  }
  .hero h1 {
    font-size: 2.6875rem;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stats article {
    border-right: 0;
    border-bottom: 0.0625rem solid var(--line);
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .incident {
    grid-template-columns: 4.0625rem 1fr;
  }
  .incident > span {
    display: none;
  }
  .monitor {
    grid-template-columns: 1fr 3.75rem;
  }
  .spark {
    display: none;
  }
}

.hero {
  position: relative;
  overflow: hidden;
}
@media (max-width: 760px), (min-width: 801px) and (max-width: 950px) {
  header .add {
    display: inline-flex;
    font-size: 0.625rem;
    padding: 0.5rem;
  }
  header .avatar {
    display: none;
  }
}

.service-visual {
  position: relative;
  flex: 0 1 44%;
  height: 17.8125rem;
  margin-left: 1.75rem;
  border-radius: 1rem;
  overflow: hidden;
  background: #183b50;
}
.service-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.service-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.75rem 1.125rem;
  border: 0.0625rem solid #ffffff30;
  border-radius: 0.625rem;
  background: #091724dd;
  color: #edf8ff;
}
.service-caption b {
  font:
    700 1.875rem 'Space Mono',
    monospace;
}
.service-caption span {
  font-size: 0.75rem;
}
@media (max-width: 760px), (min-width: 801px) and (max-width: 950px) {
  .hero {
    display: grid;
    gap: 1.5rem;
    min-height: 0;
    margin-bottom: 1.75rem;
  }
  .hero h1 {
    font-size: clamp(2.375rem, calc(9vw / var(--page-zoom, 1)), 3.375rem);
    line-height: 1;
  }
  .hero p {
    font-size: 0.75rem;
  }
  .service-visual {
    margin: 0;
    height: auto;
    aspect-ratio: 16/9;
  }
  .monitor {
    gap: 0.75rem;
  }
  .monitor-name {
    min-width: 0;
  }
  .monitor-name small {
    overflow-wrap: anywhere;
  }
  .overall {
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  .overall time {
    margin-left: 0;
  }
  .add {
    margin-right: 0;
  }
}

/* Desktop readability at native browser scale. */
@media (min-width: 801px) and (min-width: 1001.25px) {
  .logo {
    font-size: 1rem;
  }
  nav a {
    font-size: 0.875rem;
  }
  .add {
    font-size: 0.875rem;
  }
  .avatar {
    font-size: 0.875rem;
  }
  .hero small,
  .panel small,
  .overall small,
  .stats small {
    font-size: 0.75rem;
  }
  .hero p {
    font-size: 0.875rem;
  }
  .overall strong {
    font-size: 1rem;
  }
  .overall time {
    font-size: 0.875rem;
  }
  .stats span {
    font-size: 0.875rem;
  }
  .panel h2 {
    font-size: 1.3125rem;
  }
  .panel-head button {
    font-size: 0.875rem;
  }
  .monitor b {
    font-size: 0.875rem;
  }
  .monitor small {
    font-size: 0.75rem;
  }
  .monitor > span {
    font-size: 0.875rem;
  }
  .line-chart > span {
    font-size: 0.875rem;
  }
  .latency-foot > span {
    font-size: 0.875rem;
  }
  .incident time {
    font-size: 0.875rem;
  }
  .incident h3 {
    font-size: 0.875rem;
  }
  .incident p {
    font-size: 0.875rem;
  }
  .incident > span {
    font-size: 0.875rem;
  }
  dialog label {
    font-size: 0.875rem;
  }
  .submit {
    font-size: 0.875rem;
  }
  .service-caption span {
    font-size: 1rem;
  }
}

/* Responsive desktop component scale. */
@media (min-width: 801px) and (min-width: 1001.25px) {
  html {
    font-size: clamp(18px, calc(1.35vw / var(--page-zoom, 1)), 20px);
  }
}

/* Component fit at intermediate desktop widths. */
@media (min-width: 801px) and (min-width: 1001.25px) {
  .grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  }
  .panel,
  .monitor-name {
    min-width: 0;
  }
  .monitor-name b {
    overflow-wrap: anywhere;
  }
  .panel-head {
    gap: 1rem;
    flex-wrap: wrap;
  }
}
@media (min-width: 801px) and (min-width: 1001.25px) and (max-width: 1437.5px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: clamp(2.6rem, calc(5vw / var(--page-zoom, 1)), 3.6rem);
  }
}

/* Whole-page desktop zoom; viewport units and breakpoints use the same effective size. */
@media screen and (min-width: 801px) {
  html {
    --page-zoom: 1.25;
    zoom: var(--page-zoom);
  }
}
