:root {
  color-scheme: light;
  --paper: #f5f5f0;
  --ink: #172d42;
  --muted: #576c79;
  --line: #e2e6e3;
  --green: #27816e;
  --red: #b74f42;
  --amber: #f4d68c;
  --white: #fff;
  --mono: Consolas,"Liberation Mono",monospace;
  --sans: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 6px;
}

.page-shell {
  width: min(1120px,calc(100% - 96px));
  margin: 0 auto;
}

.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dce1dd;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 30px;
  height: 31px;
  display: flex;
  gap: 4px;
  align-items: flex-end;
}

.brand-mark span {
  width: 7px;
  background: var(--ink);
  border-radius: 1px;
}

.brand-mark span:nth-child(1) {
  height: 17px;
}

.brand-mark span:nth-child(2) {
  height: 30px;
}

.brand-mark span:nth-child(3) {
  height: 23px;
}

.brand-name {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1px;
}

.brand-divider {
  font-weight: 300;
  color: #a6b0b5;
  margin: 0 10px;
}

.brand-product {
  font-weight: 450;
  letter-spacing: -.8px;
}

.site-address {
  font-family: var(--mono);
  font-size: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #6f7f87;
}

.address-dot {
  height: 6px;
  width: 6px;
  background: var(--ink);
  border-radius: 50%;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 26px 0 18px;
}

h1 {
  font-size: clamp(25px,3vw,34px);
  font-weight: 550;
  letter-spacing: -1.2px;
  margin: 0;
  line-height: 1.24;
}

.refresh-info {
  font-family: var(--mono);
  font-size: 11px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  white-space: nowrap;
  padding-bottom: 3px;
}

.refresh-info strong {
  font-weight: 400;
  color: var(--ink);
  display: inline-block;
  min-width: 32px;
  text-align: right;
}

.refresh-icon {
  font-size: 19px;
  line-height: 1;
}

.incident {
  position: relative;
  background: var(--amber);
  padding: 22px 26px;
  border-radius: 4px;
  overflow: hidden;
}

.incident-label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-size: 10px;
  font-weight: 750;
}

.incident-label>span {
  border: 1.5px solid currentColor;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0;
}

.incident h2 {
  font-size: clamp(30px,4.1vw,46px);
  font-weight: 550;
  letter-spacing: -1.7px;
  line-height: 1.16;
  max-width: 920px;
  margin: 13px 0 0;
}

.status-section {
  margin-top: 24px;
  padding-bottom: 16px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

.section-heading h2 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.25px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.latest-check {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.small-dot {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #adb6b5;
}

.small-dot.connected {
  background: var(--green);
}

.small-dot.error {
  background: var(--red);
}

.services-panel {
  background: var(--white);
  border: 1px solid #dde4df;
  border-radius: 5px;
  overflow: hidden;
}

.table-head,.service-row {
  display: grid;
  grid-template-columns: 1.45fr 1.05fr 1.8fr .65fr .85fr;
  gap: 20px;
  align-items: center;
}

.table-head {
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .85px;
  color: #556976;
  font-weight: 600;
}

.table-head span:nth-last-child(-n+2) {
  text-align: right;
}

.service-row {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  min-height: 76px;
}

.service-identity {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.service-icon {
  height: 35px;
  width: 35px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid #e2e7e4;
  border-radius: 8px;
  color: #74887e;
  background: #f7f9f6;
  font-family: var(--mono);
  font-size: 12px;
  position: relative;
}

.service-icon svg {
  width: 18px;
  height: 18px;
}

.service-name {
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  display: block;
  width: fit-content;
}

.service-name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-domain {
  font-size: 10px;
  font-family: var(--mono);
  color: #556976;
  display: block;
  margin-top: 5px;
  white-space: nowrap;
}

.state-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 550;
  white-space: nowrap;
}

.state-label::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a1adae;
}

.service-row[data-state="good"] .state-label {
  color: var(--green);
}

.service-row[data-state="good"] .state-label::before {
  background: var(--green);
}

.service-row[data-state="bad"] .state-label {
  color: var(--red);
}

.service-row[data-state="bad"] .state-label::before {
  background: var(--red);
}

.service-row[data-state="stale"] .state-label {
  color: #9b762c;
}

.service-row[data-state="stale"] .state-label::before {
  background: #b28c3b;
}

.http-code {
  font-size: 11px;
  font-family: var(--mono);
  color: #556976;
  margin-top: 6px;
  min-height: 11px;
}

.history-bars {
  height: 24px;
  display: flex;
  gap: 2px;
  align-items: stretch;
  width: 100%;
}

.history-bar {
  min-width: 0;
  flex: 1;
  background: #e8eeea;
  border-radius: 1px;
  position: relative;
}

.history-bar.good {
  background: #4c9b83;
}

.history-bar.bad {
  background: #ca7363;
}

.history-bar:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.history-caption {
  font-size: 11px;
  color: #556976;
  font-family: var(--mono);
  margin-top: 6px;
  height: 11px;
}

.service-metric {
  text-align: right;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: -.55px;
}

.metric-unit {
  font-size: 11px;
  letter-spacing: 0;
  color: #556976;
  margin-left: 3px;
}

.metric-label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0;
  color: #556976;
  margin-top: 6px;
}

.panel-footer {
  padding: 10px 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: #fcfdfb;
  color: #556976;
  font-size: 11px;
  line-height: 1.6;
}

.panel-footer>span:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.legend-dot {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 9px;
}

.legend-dot:first-child {
  margin-left: 0;
}

.legend-dot.good {
  background: #4c9b83;
}

.legend-dot.bad {
  background: #ca7363;
}

.legend-dot.empty {
  background: #dfe7e1;
}

.history-direction {
  font-family: var(--mono);
  white-space: nowrap;
  display: flex;
  gap: 14px;
}

.method-note {
  color: #54665d;
  font-size: 12px;
  line-height: 1.5;
  margin: 12px 0 0;
}

.fetch-message {
  font-size: 11px;
  line-height: 1.5;
  color: #9b593d;
  background: #fbede0;
  border-radius: 3px;
  padding: 10px 12px;
  margin: 12px 0 0;
}

.service-loading .service-metric {
  color: #9caaa3;
}

@media(max-width:1000px) {
  .page-shell {
    width: calc(100% - 64px);
  }
  .table-head,.service-row {
    grid-template-columns: 1.4fr 1fr 1.3fr .6fr .7fr;
    gap: 14px;
  }
  .service-row,.table-head {
    padding-left: 20px;
    padding-right: 20px;
  }
  .service-icon {
    display: none;
  }
  .service-domain {
    font-size: 11px;
  }
  .history-bars {
    gap: 1.5px;
  }
  .table-head {
    font-size: 10px;
  }
  .incident h2 {
    max-width: 720px;
  }
  .history-direction {
    gap: 8px;
  }
}

@media(max-width:700px) {
  .page-shell {
    width: calc(100% - 36px);
    max-width: 520px;
  }
  .site-header {
    height: 63px;
  }
  .brand-name {
    font-size: 23px;
  }
  .brand-mark {
    transform: scale(.8);
    transform-origin: left center;
    width: 24px;
  }
  .brand {
    gap: 8px;
  }
  .brand-divider {
    margin: 0 7px;
  }
  .site-address {
    font-size: 10px;
    gap: 8px;
  }
  .page-heading {
    margin: 20px 0 17px;
    align-items: flex-start;
    display: block;
  }
  h1 {
    font-size: 30px;
    letter-spacing: -1.1px;
  }
  .refresh-info {
    margin-top: 9px;
    font-size: 11px;
  }
  .refresh-info strong {
    min-width: 29px;
  }
  .incident {
    padding: 20px 20px 19px;
  }
  .incident-label {
    font-size: 11px;
    letter-spacing: 1px;
  }
  .incident h2 {
    font-size: 32px;
    letter-spacing: -1.1px;
    line-height: 1.17;
    margin: 12px 0 0;
  }
  .status-section {
    margin-top: 21px;
  }
  .section-heading {
    margin-bottom: 12px;
    align-items: center;
  }
  .section-heading h2 {
    font-size: 14px;
    gap: 7px;
  }
  .latest-check {
    font-size: 11px;
    max-width: 150px;
    line-height: 1.5;
    text-align: right;
  }
  .small-dot {
    flex-shrink: 0;
  }
  .table-head {
    display: none;
  }
  .service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    padding: 15px 16px;
    min-height: 0;
    position: relative;
  }
  .service-identity {
    grid-column: 1;
    grid-row: 1;
    gap: 10px;
  }
  .service-icon {
    display: grid;
    width: 32px;
    height: 32px;
    border-radius: 7px;
  }
  .service-name {
    font-size: 14px;
  }
  .service-domain {
    font-size: 11px;
  }
  .service-state {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  .state-label {
    font-size: 10px;
    justify-content: flex-end;
  }
  .http-code {
    font-size: 11px;
  }
  .service-history {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .history-bars {
    height: 22px;
    gap: 2px;
  }
  .history-caption {
    margin-top: 6px;
    font-size: 11px;
  }
  .service-metric {
    grid-row: 2;
    text-align: left;
    font-size: 19px;
    border-top: 1px solid #edf0ed;
    padding-top: 8px;
    display: flex;
    align-items: baseline;
    gap: 0;
    position: relative;
  }
  .metric-label {
    margin-top: 0;
    font-size: 11px;
    margin-left: auto;
  }
  .metric-unit {
    font-size: 11px;
  }
  .panel-footer {
    padding: 12px 19px;
    display: block;
    font-size: 11px;
  }
  .history-direction {
    display: flex;
    margin-top: 6px;
  }
  .method-note {
    font-size: 11px;
    margin-top: 10px;
  }
}

@media(prefers-reduced-motion:no-preference) {
  .service-row {
    transition: background .2s;
  }
  .service-row:hover {
    background: #fdfefc;
  }
}
