:root {
  --background: #ffffff;
  --text: #12161d;
  --muted: #657080;
  --border: #dce2e8;
  --soft: #f5f7f8;
  --green: #0aa75b;
  --green-dark: #087f48;
  --amber: #e5a215;
  --red: #d4493f;
  --unknown: #8a95a3;
  --focus: #155eef;
  --shell: 1180px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--text);
}

body {
  margin: 0;
  min-width: 300px;
  background: var(--background);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 25%, transparent);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--text);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.language-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}

.saravar-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.saravar-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.summary {
  padding: 42px 0 34px;
  text-align: center;
}

.status-symbol {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--unknown);
  color: #ffffff;
}

.status-symbol svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.status-operational {
  background: var(--green);
  color: var(--green);
}

.status-symbol.status-operational,
.small-status.status-operational {
  color: #ffffff;
}

.status-degraded {
  background: var(--amber);
  color: var(--amber);
}

.status-partial_outage,
.status-major_outage {
  background: var(--red);
  color: var(--red);
}

.status-unknown {
  background: var(--unknown);
  color: var(--unknown);
}

.status-symbol.status-degraded,
.status-symbol.status-partial_outage,
.status-symbol.status-major_outage,
.status-symbol.status-unknown {
  color: #ffffff;
}

.summary h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 760;
}

.updated {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.component-section,
.metric-section,
.incident-section {
  border-top: 1px solid var(--border);
}

.table-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 14px 12px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.component-row {
  width: 100%;
  min-height: 66px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  border: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: start;
}

.component-row:hover {
  background: var(--soft);
}

.component-name,
.component-status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 680;
}

.component-status {
  color: var(--unknown);
  font-size: 14px;
}

.small-status {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.disclosure {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 160ms ease;
}

.component-row[aria-expanded="true"] .disclosure {
  transform: rotate(180deg);
}

.component-detail {
  padding: 14px 36px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.component-detail p {
  margin: 0;
}

.metric-section {
  padding: 30px 12px;
}

.metric-title-row,
.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.metric-value {
  margin: 5px 0 0;
  color: var(--green-dark);
  font-size: 34px;
  font-weight: 740;
  letter-spacing: -0.035em;
}

.objective,
.response-average,
.retention-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.objective strong,
.response-average strong {
  margin-inline-start: 6px;
  color: var(--green-dark);
  font-size: 17px;
}

.availability-bars {
  height: 38px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(30, minmax(4px, 1fr));
  gap: 8px;
  align-items: stretch;
}

.availability-bar {
  min-width: 4px;
  border-radius: 2px;
  background: var(--border);
}

.availability-bar.operational {
  background: var(--green);
}

.availability-bar.degraded {
  background: var(--amber);
}

.availability-bar.outage {
  background: var(--red);
}

.axis-labels {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.axis-labels > :last-child {
  text-align: end;
}

.legend {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-operational {
  background: var(--green);
}

.legend-degraded {
  background: var(--amber);
}

.legend-outage {
  background: var(--red);
}

.legend-no-data {
  background: var(--border);
}

.response-section {
  padding-bottom: 24px;
}

.response-average {
  text-align: end;
}

.chart-wrap {
  height: 146px;
  margin-top: 22px;
}

.response-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.response-chart line {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
}

.response-chart polyline {
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.chart-labels {
  grid-template-columns: 1fr 1fr;
}

.incident-section {
  padding: 28px 12px 12px;
}

.incident-list {
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

.incident-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}

.incident-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.incident-icon.degraded,
.incident-icon.investigating,
.incident-icon.identified,
.incident-icon.monitoring {
  background: var(--amber);
}

.incident-icon.partial,
.incident-icon.major {
  background: var(--red);
}

.incident-copy {
  min-width: 0;
}

.incident-title {
  margin: 0;
  font-weight: 680;
}

.incident-message {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.incident-time {
  color: var(--muted);
  font-size: 12px;
  text-align: end;
}

.site-footer {
  margin-top: 36px;
  padding: 28px 0 34px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.site-footer p {
  margin: 3px 0;
}

.noscript {
  margin: 0;
  padding: 16px;
  background: #fff4d6;
  text-align: center;
}

[dir="rtl"] .saravar-link svg {
  transform: scaleX(-1);
}

@media (max-width: 680px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .header-inner {
    min-height: 66px;
  }

  .brand {
    font-size: 19px;
  }

  .header-actions {
    gap: 16px;
  }

  .saravar-link span {
    display: none;
  }

  .summary {
    padding: 46px 0 38px;
  }

  .status-symbol {
    width: 78px;
    height: 78px;
  }

  .summary h1 {
    font-size: 34px;
  }

  .table-heading {
    display: none;
  }

  .component-row {
    min-height: 82px;
    padding: 0 4px;
    border-top: 0;
  }

  .component-name {
    gap: 12px;
  }

  .component-status {
    align-items: flex-end;
    flex-direction: column-reverse;
    gap: 4px;
  }

  .component-detail {
    padding: 14px 28px;
  }

  .metric-section,
  .incident-section {
    padding-inline: 4px;
  }

  .metric-title-row {
    align-items: flex-start;
  }

  .objective {
    max-width: 128px;
    text-align: end;
  }

  .availability-bars {
    gap: 4px;
    height: 74px;
  }

  .axis-labels > :nth-child(2) {
    display: none;
  }

  .axis-labels {
    grid-template-columns: 1fr 1fr;
  }

  .legend {
    justify-content: flex-start;
    gap: 12px;
  }

  .chart-wrap {
    height: 128px;
  }

  .incident-row {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 11px 0;
  }

  .incident-time {
    grid-column: 2;
    text-align: start;
  }

  .site-footer {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .disclosure {
    transition: none;
  }
}
