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

img,
picture,
video,
canvas,
svg {
  display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1 {
  margin: var(--h1-margin-block) 0;
}

h2 {
  margin: var(--h2-margin-block) 0;
}

h3 {
  margin: var(--h3-margin-block) 0;
}

h4 {
  margin: var(--h4-margin-block) 0;
}

h5 {
  margin: var(--h5-margin-block) 0;
}

h6 {
  margin: var(--h6-margin-block) 0;
}

p,
blockquote,
pre,
dl,
figure {
  margin: var(--text-margin-block) 0;
}

ul,
ol {
  margin: var(--list-margin-block) 0;
    padding-left: var(--list-padding-inline);
}

.brand {
  display: flex;
}

.brand-link:hover {
  text-decoration: none;
}

.brand-mark {
  width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.brand img {
  width: 52px;
    height: 52px;
    display: block;
}

.brand-wordmark {
  display: flex;
    flex-direction: column;
    gap: 3px;
}

@media (max-width: 640px) {
  .brand-mark {
    width: 48px;
        height: 48px;
  }

  .brand img {
    width: 48px;
        height: 48px;
  }

  .brand-name {
    font-size: 1.14rem;
  }
}

.status-dot {
  display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.status-dot--ok {
  background: #2f8f4e;
}

.status-dot--bad {
  background: #c94b3b;
}

button {
  background: #173b3f;
    color: #f7f3ee;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.heatmap-scroll {
  overflow-x: auto;
    max-width: 100%;
}

.heatmap-table {
  border-collapse: separate;
    border-spacing: 2px;
    table-layout: fixed;
    width: 100%;
}

.heatmap-table th {
  width: 11rem;
    padding-right: var(--space-md);
    text-align: left;
    overflow-wrap: anywhere;
    white-space: normal;
}

.heatmap-cell {
  border-radius: 1px;
    height: 18px;
    min-width: 0;
    padding: 0;
}

.heatmap-cell--healthy {
  background: #2f9e44;
}

.heatmap-cell--warning {
  background: #f59f00;
}

.heatmap-cell--critical {
  background: #e03131;
}

.heatmap-cell--empty {
  background: #d9dee5;
}

.reliability-calendar {
  display: grid;
    gap: 0.25rem;
    grid-template-columns: repeat(30, 0.8rem);
    overflow-x: auto;
    width: max-content;
}

.calendar-day {
  border-radius: 0.15rem;
    height: 0.8rem;
    min-width: 0.8rem;
}

:root {
  --h1-margin-block: 0.67rem;
    --h2-margin-block: 0.83rem;
    --h3-margin-block: 1rem;
    --h4-margin-block: 1.33rem;
    --h5-margin-block: 1.67rem;
    --h6-margin-block: 2.33rem;
    --text-margin-block: 1rem;
    --list-margin-block: 1rem;
    --list-padding-inline: 40px;
    --space-2xs: 2px;
    --space-xs: 4px;
    --space-sm: 6px;
    --space-md: 8px;
    --space-lg: 12px;
    --space-xl: 16px;
    --space-2xl: 20px;
    --space-3xl: 24px;
    --surface-radius: 2px;
    --ui-bg: #f4f5f7;
    --ui-surface: #fff;
    --ui-surface-subtle: #f8f9fa;
    --ui-border: #d7dbe0;
    --ui-border-strong: #b8bec6;
    --ui-text: #202327;
    --ui-muted: #626a73;
    --ui-link: #175a92;
    --ui-focus: #146ebe;
}

body {
  margin: 0;
    background: var(--ui-bg);
    color: var(--ui-text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

button,
input,
select,
textarea {
  border-radius: var(--surface-radius);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ui-focus);
    outline-offset: 1px;
}

.brand-link {
  display: flex;
    align-items: center;
    text-decoration: none;
    gap: 7px;
    color: var(--ui-text);
}

.brand-mark,
.brand img {
  width: 24px;
    height: 24px;
}

.brand-name {
  line-height: 1;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0;
}

@media (max-width: 640px) {
  .heatmap-table th {
    width: 7rem;
  }
}
