:root {
  --ink: #17151f;
  --muted: #655f70;
  --paper: #fffdf8;
  --cream: #fff6e8;
  --line: rgba(23, 21, 31, 0.14);
  --orange: #ff6b35;
  --purple: #7559ef;
  --green: #167653;
  --green-bg: #e9faf3;
  --amber: #8a4b08;
  --amber-bg: #fff6df;
  --red: #a51d2d;
  --red-bg: #fff0f2;
  --gray: #5f5b66;
  --gray-bg: #f1eff3;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 3%, rgba(255, 216, 94, 0.2), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(117, 89, 239, 0.1), transparent 26rem),
    var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 15px;
  border-radius: 9px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.9);
}

.site-header__inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid rgba(60, 120, 240, 0.55);
  outline-offset: 4px;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
  padding: 9px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ink);
}

.brand__mark::after {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.brand__mark i { position: relative; z-index: 1; border-radius: 4px; background: white; }
.brand__mark i:nth-child(1) { height: 10px; }
.brand__mark i:nth-child(2) { height: 19px; }
.brand__mark i:nth-child(3) { height: 14px; }
.brand__name { font-size: 1.35rem; font-weight: 900; letter-spacing: -0.05em; }
.site-header__label { color: var(--muted); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.page-shell { padding-block: clamp(52px, 7vw, 88px); }
.page-heading { max-width: 720px; margin-bottom: 36px; }
.eyebrow,
.section-label,
.service-card__role { margin: 0; color: #bc4318; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.page-heading h1 { margin: 10px 0 14px; font-size: clamp(2.8rem, 7vw, 5rem); letter-spacing: -0.065em; line-height: 0.98; }
.page-heading > p:last-child { margin: 0; color: var(--muted); font-size: 1.04rem; }

.overall {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  border: 1px solid currentColor;
  border-radius: 22px;
}

.state-mark { display: block; width: 12px; height: 12px; flex: 0 0 auto; border: 3px solid currentColor; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 14%, transparent); }
.overall__copy h2 { margin: 0 0 3px; font-size: clamp(1.25rem, 3vw, 1.65rem); letter-spacing: -0.03em; }
.overall__copy p { margin: 0; color: var(--ink); opacity: 0.76; }
.overall__time { display: grid; justify-items: end; gap: 3px; color: var(--ink); font-size: 0.78rem; }
.overall__time span { font-weight: 800; }

.state-operational { color: var(--green); background: var(--green-bg); }
.state-degraded { color: var(--amber); background: var(--amber-bg); }
.state-outage { color: var(--red); background: var(--red-bg); }
.state-unknown { color: var(--gray); background: var(--gray-bg); }

.version-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 20px 0 54px;
  padding: 19px 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
}

.version-summary h2 { margin: 4px 0 0; font-size: 1rem; letter-spacing: -0.015em; }
.sync-badge,
.status-badge { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 7px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 0.72rem; font-weight: 850; white-space: nowrap; }
.sync-synchronized { color: var(--green); background: var(--green-bg); }
.sync-mixed { color: var(--red); background: var(--red-bg); }
.sync-incomplete { color: var(--amber); background: var(--amber-bg); }
.sync-unknown { color: var(--gray); background: var(--gray-bg); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 20px; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(1.9rem, 5vw, 2.7rem); letter-spacing: -0.055em; }
.section-heading > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 0.88rem; text-align: right; }
.service-list { display: grid; gap: 22px; }

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: white;
  box-shadow: 0 24px 55px -46px rgba(38, 29, 67, 0.65);
  color: var(--ink);
}

.service-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 25px 26px 21px; }
.service-card__header h3 { margin: 3px 0 4px; font-size: 1.35rem; letter-spacing: -0.035em; }
.service-card__header p:last-child { margin: 0; color: var(--muted); font-size: 0.78rem; }
.service-card .status-badge { color: inherit; background: inherit; }
.service-card.state-operational .status-badge { color: var(--green); background: var(--green-bg); }
.service-card.state-degraded .status-badge { color: var(--amber); background: var(--amber-bg); }
.service-card.state-outage .status-badge { color: var(--red); background: var(--red-bg); }
.service-card.state-unknown .status-badge { color: var(--gray); background: var(--gray-bg); }
.status-badge .state-mark { width: 8px; height: 8px; border-width: 2px; box-shadow: none; }

.service-card__version { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-inline: 26px; padding: 13px 15px; border: 1px solid #e5e0ea; border-radius: 12px; background: #faf8fc; }
.service-card__version span { color: var(--muted); font-size: 0.75rem; font-weight: 800; }
.service-card__version strong { min-width: 0; overflow-wrap: anywhere; font-size: 0.82rem; text-align: right; }

.metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 20px 26px 25px; border: 1px solid var(--line); border-radius: 14px; }
.metrics > div { min-width: 0; padding: 14px; border-right: 1px solid var(--line); }
.metrics > div:last-child { border-right: 0; }
.metrics dt { color: var(--muted); font-size: 0.67rem; font-weight: 800; }
.metrics dd { margin: 6px 0 0; overflow-wrap: anywhere; font-size: 0.94rem; font-weight: 900; }

.history { padding: 24px 26px 27px; border-top: 1px solid var(--line); background: #fffcf6; }
.history__header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.history__header h4 { margin: 3px 0 0; font-size: 1.1rem; }
.history__header > p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.history__days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.history-day { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 9px 10px; border: 1px solid currentColor; border-radius: 10px; }
.history-day time { color: var(--ink); font-size: 0.72rem; font-weight: 850; }
.history-day span { grid-column: 1; font-size: 0.68rem; font-weight: 750; }
.history-day small { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--ink); font-size: 0.65rem; }

.site-footer { border-top: 1px solid var(--line); background: #fffaf0; }
.site-footer__inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 0.75rem; }

@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metrics > div:nth-child(3) { border-right: 0; }
  .metrics > div:nth-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .history__days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 32px, 1120px); }
  .site-header__inner { min-height: 64px; }
  .brand__mark { width: 34px; height: 34px; padding: 8px; }
  .site-header__label { font-size: 0.68rem; }
  .page-shell { padding-block: 44px 60px; }
  .overall { grid-template-columns: auto minmax(0, 1fr); padding: 20px; }
  .overall__time { grid-column: 2; justify-items: start; }
  .version-summary,
  .section-heading,
  .history__header { align-items: flex-start; flex-direction: column; }
  .section-heading > p { text-align: left; }
  .service-card__header { flex-direction: column; padding: 22px 20px 18px; }
  .service-card__version { align-items: flex-start; flex-direction: column; margin-inline: 20px; }
  .service-card__version strong { text-align: left; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 20px 22px; }
  .metrics > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .metrics > div:nth-child(2n) { border-right: 0; }
  .metrics > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .metrics > div:nth-child(3) { border-right: 1px solid var(--line); }
  .history { padding: 22px 20px 24px; }
  .history__days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 18px; }
}

@media (max-width: 380px) {
  .history__days { grid-template-columns: 1fr; }
}

@media (forced-colors: active) {
  .state-mark { forced-color-adjust: none; }
  .overall,
  .service-card,
  .history-day,
  .status-badge,
  .sync-badge { border-width: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
