@import "./ui.css";
:root {
  --ink: var(--t1);
  --muted: var(--t-muted);
  --acc-dark: var(--acc-hover);
  --surface: var(--glass-2);
  --green-bar: #9bd3b0;
  --amber-bar: #eeaf58;
  --gray-bar: #dadee5;
  --radius: var(--r-card);
  --red-bar: #db7b74;
  --blue-bar: #9ac2e8;
  --violet-bar: #b1a8ef;
  --shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(20, 30, 45, 0.04),
    0 22px 44px -28px rgba(20, 30, 45, 0.22);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font:
    15px/1.5 "Inter Tight",
    system-ui,
    sans-serif;
  background:
    radial-gradient(ellipse 66% 42% at 0 0, #dceef5 0%, transparent 86%),
    radial-gradient(ellipse 50% 34% at 100% 0, #f9e3d7 0%, transparent 90%),
    radial-gradient(ellipse 78% 44% at 12% 95%, #e5e1f7 0%, transparent 92%),
    linear-gradient(#f2f5f6, #f2f3f6);
  min-height: 100vh;
}
.symbols {
  position: absolute;
}
.wrap {
  width: min(1040px, calc(100% - 52px));
  margin-inline: auto;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.timeline:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 4px;
}
.skip {
  position: absolute;
  inset-inline-start: 18px;
  inset-block-start: 12px;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  background: white;
  padding: 8px 14px;
  border-radius: 14px;
}
.skip:focus {
  opacity: 1;
  pointer-events: auto;
}
.icon {
  width: 19px;
  height: 19px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.44);
}
.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.logo {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -0.055em;
  line-height: 1;
}
.header nav {
  display: flex;
  gap: 22px;
  margin-inline-start: auto;
  font-size: 14px;
  font-weight: 550;
  color: #41464e;
}
.header nav a:hover {
  color: var(--acc-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.preview-label {
  line-height: 1;
  border: 1px solid #dcd6f6;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--acc-dark);
  font-size: 12px;
  font-weight: 650;
  background: #f6f5fe;
  white-space: nowrap;
}
main {
  padding-block: 30px 0;
}
.hero {
  --hero-glow-edge: 100%;
  --hero-shade-angle: 118deg;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background:
    radial-gradient(
      ellipse 57% 132% at var(--hero-glow-edge) 16%,
      rgba(198, 194, 246, 0.73),
      transparent 95%
    ),
    linear-gradient(
      var(--hero-shade-angle),
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0.69)
    );
  border: 1px solid white;
  border-radius: 30px;
  box-shadow: var(--shadow);
  min-height: 234px;
  padding: 29px 35px;
  animation: arrive 0.48s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-copy {
  z-index: 1;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  font-weight: 650;
  gap: 7px;
  color: var(--acc-dark);
}
.hero-label .icon {
  width: 16px;
  height: 16px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: clamp(34px, 4.7vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.05em;
  font-weight: 680;
}
.hero-copy p {
  font-size: 16px;
  color: #50545c;
}
.hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 620;
  background: var(--success-bg);
  color: var(--success);
}
.badge strong {
  font-weight: inherit;
}

.badge span,
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex: none;
}
.badge.degraded {
  background: var(--warning-bg);
  color: var(--warning);
}
.badge.degraded span {
  background: var(--warning);
}
.updated {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #50545c;
  font-size: 13px;
}
.updated .icon {
  width: 14px;
  height: 14px;
}
.pulse-art {
  position: absolute;
  z-index: 0;
  inset-inline-end: 49px;
  top: 50%;
  translate: 0 -50%;
  width: 251px;
  height: 200px;
  display: grid;
  place-items: center;
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(80, 70, 228, 0.2);
}
.orbit-one {
  width: 146px;
  height: 146px;
}
.orbit-two {
  width: 202px;
  height: 202px;
  border-style: dashed;
}
.halo {
  position: absolute;
  width: 106px;
  height: 106px;
  border: 1px solid rgba(80, 70, 228, 0.25);
  border-radius: 50%;
  animation: pulse 3.6s ease-out infinite;
}
.signal {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  color: var(--acc);
  border: 1px solid rgba(255, 255, 255, 0.96);
  background: linear-gradient(145deg, white, #e9e5fc);
  box-shadow:
    0 16px 36px rgba(80, 70, 228, 0.18),
    inset 0 1px 0 white;
}
.signal .icon {
  width: 47px;
  height: 47px;
  stroke-width: 1.4;
}
.orbiter {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #786dec;
  box-shadow: 0 0 0 4px #eeebfc;
}
.orbiter-one {
  top: 31px;
  left: 101px;
}
.orbiter-two {
  bottom: 46px;
  right: 60px;
  background: #62a97e;
  box-shadow: 0 0 0 4px #eaf4ed;
}
body:is([data-mode="degraded"], [data-mode="downtime"]) .hero {
  background:
    radial-gradient(ellipse 52% 100% at 100% 14%, #f8dfbb 0%, transparent 100%),
    linear-gradient(118deg, #fff, #fbf3ea);
}
body:is([data-mode="degraded"], [data-mode="downtime"]) .signal {
  color: var(--warning);
  background: linear-gradient(145deg, white, #fff2df);
}
body:is([data-mode="degraded"], [data-mode="downtime"]) .orbiter-two {
  background: #bf7b27;
  box-shadow: 0 0 0 4px #fbefd9;
}
section[id] {
  scroll-margin-top: 16px;
  margin-top: 24px;
  animation: arrive 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
#incidents {
  animation-delay: 80ms;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.033em;
  font-weight: 650;
  line-height: 1.13;
}
.section-heading p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}
.ranges {
  padding: 3px;
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid white;
  background: rgba(255, 255, 255, 0.69);
}
.ranges button {
  border: 0;
  background: none;
  color: #545761;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  min-height: 32px;
}
.ranges button[aria-pressed="true"] {
  background: #ded9f9;
  color: var(--acc-dark);
}
.service-panel {
  border: 1px solid white;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: visible;
}
.table-head,
.service-row {
  display: grid;
  grid-template-columns: minmax(165px, 1fr) minmax(100px, 1.62fr) 126px;
  gap: 20px;
  align-items: center;
  padding-inline: 19px;
}
.table-head {
  min-height: 38px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.table-head > :last-child,
.row-state {
  justify-self: end;
}
#service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-row {
  min-height: 56px;
  border-top: 1px solid #e7e8ec;
}
.service-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 640;
  min-width: 0;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eeebfc;
  color: var(--acc-dark);
  flex: none;
}
.service-icon .icon {
  width: 16px;
  height: 16px;
}
.service-row:nth-child(2) .service-icon,
.service-row:nth-child(5) .service-icon {
  background: #e8f1fb;
  color: #0b5cad;
}
.service-row:nth-child(4) .service-icon {
  background: #fff2e0;
  color: #8a4b00;
}
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: 3px;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  border-radius: 4px;
  cursor: crosshair;
}
.bar {
  height: 24px;
  min-width: 0;
  border-radius: 3px;
  background: var(--green-bar);
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.bar.pointed {
  outline: 2px solid #4239b8;
  outline-offset: 1px;
  transform: scaleY(1.08);
}
.chart-tip {
  position: absolute;
  display: none;
  inset-block-end: calc(100% + 4px);
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  padding: 6px 9px;
  white-space: nowrap;
  border-radius: 8px;
  color: #fff;
  background: #28233d;
  box-shadow: 0 7px 18px #23194f26;
  text-align: center;
  font-size: 12px;
  pointer-events: none;
}
.timeline.inspected .chart-tip {
  display: block;
}
.chart-tip time {
  display: block;
  color: #dbd5f1;
}
.chart-footer {
  display: grid;
  grid-template-columns: 1fr minmax(100px, 1.62fr) 126px;
  gap: 20px;
  align-items: center;
  border-top: 1px solid #e7e8ec;
  padding: 8px 19px;
  min-height: 42px;
}
.legend {
  display: flex;
  gap: 7px 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #545761;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.dot.healthy {
  background: var(--green-bar);
  border-radius: 2px;
}
.dot.delayed {
  background: var(--amber-bar);
  border-radius: 2px;
}
.dot.no-data {
  background: var(--gray-bar);
  border-radius: 2px;
}
.dates {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #545761;
  font:
    11px/1.3 "Roboto Mono",
    monospace;
  white-space: nowrap;
}
.dates span {
  flex: 1;
  height: 1px;
  background: #e0e3e9;
}
.docs-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--acc-dark);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.docs-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.docs-link .icon {
  height: 14px;
  width: 14px;
}
.incident-list {
  display: grid;
  gap: 8px;
}
.incident {
  border-radius: 18px;
  border: 1px solid white;
  background: rgba(255, 255, 255, 0.73);
  box-shadow: var(--shadow);
}
.incident summary {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto 18px;
  gap: 10px;
  align-items: center;
  padding: 10px 15px;
  cursor: pointer;
  list-style: none;
  border-radius: 18px;
}
.incident summary::-webkit-details-marker {
  display: none;
}
.incident summary:hover {
  background: #ffffff9e;
}
.incident .service-icon {
  color: var(--success);
  background: var(--success-bg);
}
.incident.active .service-icon {
  color: var(--warning);
  background: var(--warning-bg);
}
.incident-name {
  font-weight: 630;
}
.incident small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 1px;
}
.incident summary > .icon {
  color: #64636f;
  width: 17px;
  height: 17px;
  transition: transform 0.15s;
}
.incident[open] summary > .icon {
  transform: rotate(180deg);
}
.incident-body {
  margin: 0 15px 12px 57px;
  border-left: 1px solid #e5def9;
  padding-left: 12px;
  color: #4c4c55;
  font-size: 13px;
}
.incident-body p {
  margin-bottom: 8px;
}
.incident-body strong {
  display: inline-block;
  color: var(--ink);
  margin-right: 6px;
}
.incident[open] .incident-body {
  animation: arrive 0.24s ease-out both;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
  padding: 14px 0 19px;
  border-top: 1px solid #fff;
  color: #565a63;
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%,
  18% {
    opacity: 0.63;
    transform: scale(0.9);
  }
  74%,
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@media (max-width: 880px) {
  .pulse-art {
    inset-inline-end: 12px;
    scale: 0.82;
  }
}
@media (max-width: 650px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .header-inner {
    gap: 12px;
    min-height: 58px;
  }
  .header nav {
    display: none;
  }
  .preview-label {
    margin-inline-start: auto;
  }
  main {
    padding-block-start: 16px;
  }
  .hero {
    min-height: 0;
    padding: 20px;
    border-radius: 24px;
  }
  .hero-copy {
    max-width: 340px;
  }
  .hero h1 {
    font-size: 35px;
    max-width: 278px;
  }
  .hero-copy p {
    font-size: 14px;
    max-width: 245px;
  }
  .hero-meta {
    gap: 6px 10px;
    margin-top: 13px;
  }
  .updated {
    font-size: 12px;
  }
  .pulse-art {
    top: 66px;
    inset-inline-end: -78px;
    scale: 0.5;
    opacity: 0.48;
    pointer-events: none;
  }
  .table-head {
    display: none;
  }
  .section-heading {
    align-items: center;
  }
  h2 {
    font-size: 21px;
  }
  .section-heading p {
    font-size: 13px;
  }
  .service-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 9px 12px;
    gap: 4px 7px;
  }
  .service-row:first-child {
    border-top: 0;
  }
  .service-name {
    font-size: 14px;
    gap: 7px;
  }
  .service-icon {
    width: 29px;
    height: 29px;
    border-radius: 9px;
  }
  .timeline {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 2px;
    min-height: 24px;
  }
  .bar {
    height: 18px;
  }
  .row-state {
    grid-column: 2;
    grid-row: 1;
  }
  .badge {
    font-size: 11px;
  }
  .chart-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding-inline: 12px;
  }
  .dates {
    grid-row: 1;
  }
  .legend {
    justify-content: center;
  }
  .incident summary {
    padding-inline: 11px;
    grid-template-columns: 29px minmax(0, 1fr) auto 13px;
    gap: 7px;
  }
  .incident-name {
    font-size: 14px;
  }
  .incident-body {
    margin-left: 48px;
  }
}
@media (max-width: 370px) {
  .pulse-art {
    opacity: 0.28;
  }
  .footer {
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

[hidden] {
  display: none !important;
}
.timeline.short {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.bar.downtime,
.dot.down {
  background: var(--red-bar);
}
.bar.maintenance,
.dot.planned {
  background: var(--blue-bar);
}
.bar.recovered,
.dot.recovered {
  background: var(--violet-bar);
}
.bar.unknown {
  background: var(--gray-bar);
}
.badge.downtime {
  color: var(--danger);
  background: var(--danger-bg);
}
.badge.downtime span {
  background: var(--danger);
}
.badge.maintenance {
  color: var(--info);
  background: var(--info-bg);
}
.badge.maintenance span {
  background: var(--info);
}
.badge.unknown {
  color: var(--t2);
  background: #eceef2;
}
.badge.unknown span {
  background: #757b87;
}
body[data-mode="unknown"] .halo {
  animation: none;
  opacity: 0.3;
}
body[data-mode="unknown"] .orbiter-two {
  background: #9398a6;
  box-shadow: 0 0 0 4px #edebf4;
}
.refresh {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid white;
  border-radius: 50%;
  color: var(--acc-dark);
  background: var(--glass-2);
}
.refresh .icon {
  width: 16px;
  height: 16px;
}
.refresh[aria-busy="true"] {
  color: var(--muted);
}
.empty {
  padding: 15px 18px;
  background: var(--glass-2);
  color: var(--muted);
  border: 1px solid white;
  border-radius: var(--r-note);
}
.bar.degraded {
  background: var(--amber-bar);
}
.incident-body time {
  display: inline-block;
  margin-inline-end: 7px;
  color: var(--ink);
  font-weight: 650;
}
.incident-body span {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.incident-name {
  overflow-wrap: anywhere;
}
body[data-state="unknown"] .halo {
  animation: none;
  opacity: 0.25;
}

.language {
  color: var(--acc-dark);
  font-weight: 650;
  font-size: 13px;
}
.language[lang="ar"] {
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  font-size: 14px;
}

html[dir="rtl"] body {
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
}
html[dir="rtl"] .header-inner .logo {
  order: 1;
  margin-right: auto;
}
html[dir="rtl"] .header-inner :is(nav, .language, .preview-label) {
  margin-inline-start: 0;
}
html[dir="rtl"] .hero {
  --hero-glow-edge: 0%;
  --hero-shade-angle: 242deg;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2 {
  letter-spacing: normal;
}
.incident-body {
  margin-inline: 57px 15px;
  padding-inline-start: 12px;
  border-left: none;
  border-inline-start: 1px solid #e5def9;
}

@media (max-width: 650px) {
  .language {
    margin-inline-start: auto;
  }
}
