.status {
  width: min(100% - 24px, 860px);
  margin: 0 auto;
  padding-top: clamp(120px, 16vw, 170px);
  display: grid;
  gap: var(--gap);
}

.status [data-state] { --state: var(--muted-2); }
.status [data-state="up"] { --state: #2ecc71; }
.status [data-state="warn"] { --state: #ffb020; }
.status [data-state="down"], .status [data-state="error"] { --state: #ff5c5c; }

.status__head { display: grid; justify-items: center; gap: 14px; padding-bottom: clamp(18px, 3vw, 34px); text-align: center; }
.status__title { font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 1.2rem + 6vw, 5.4rem); line-height: 1; letter-spacing: -0.045em; }

.status__dot { width: 12px; height: 12px; flex-shrink: 0; border-radius: 50%; background: var(--state); box-shadow: 0 0 0 4px color-mix(in srgb, var(--state) 22%, transparent); }

.status__summary { display: flex; align-items: center; gap: 18px; padding: clamp(22px, 3.2vw, 36px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .05), 0 0 0 1px color-mix(in srgb, var(--state) 30%, var(--line)); transition: box-shadow .4s; }
.status__summary .status__dot { width: 18px; height: 18px; }
.status__summary[data-state="up"] .status__dot,
.status__summary[data-state="loading"] .status__dot { animation: status-pulse 2.4s ease-in-out infinite; }
.status__summary-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 1rem + 1.3vw, 1.85rem); line-height: 1.15; letter-spacing: -0.02em; }
.status__updated { margin-top: 4px; font-size: .92rem; }

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--state) 24%, transparent); }
  50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--state) 6%, transparent); }
}

.status__list { display: grid; gap: var(--gap); }
.status__card { display: grid; gap: 18px; padding: clamp(22px, 3vw, 34px); }
.status__card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; }
.status__name { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.status__type { margin-top: 2px; color: var(--muted); font-size: .88rem; }

.status__badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--state) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--state) 35%, transparent); color: var(--state); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.status__badge .status__dot { width: 8px; height: 8px; box-shadow: none; }

.status__bars { display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 2px; height: 38px; }
.status__bar { border-radius: 3px; background: var(--bar, rgb(255 255 255 / .1)); transition: transform .2s var(--ease), opacity .2s; }
.status__bar:hover { transform: scaleY(1.14); opacity: .85; }
.status__bar--green { --bar: #2ecc71; }
.status__bar--yellow { --bar: #ffd23f; }
.status__bar--orange { --bar: #ff9f1c; }
.status__bar--red { --bar: #ff5c5c; }
.status__scale { display: flex; justify-content: space-between; margin-top: -8px; color: var(--muted-2); font-size: .78rem; }

.status__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.status__stats dt { color: var(--muted); font-size: .85rem; }
.status__stats dd { margin-top: 2px; font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; }

.skeleton { display: block; border-radius: 12px; background: linear-gradient(100deg, rgb(255 255 255 / .04) 20%, rgb(255 255 255 / .1) 40%, rgb(255 255 255 / .04) 60%); background-size: 200% 100%; animation: status-shimmer 1.6s linear infinite; }
.skeleton--line { width: 42%; height: 26px; }
.skeleton--bars { height: 38px; }
@keyframes status-shimmer { to { background-position: -200% 0; } }

.status__note { margin-top: 10px; text-align: center; font-size: .9rem; }
.status__note a { color: var(--capri-300); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.status__note a:hover { color: #fff; }

@media (max-width: 600px) {
  .status__bars { gap: 1px; height: 32px; }
  .status__stats dd { font-size: 1.25rem; }
  .status__summary { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .status__summary .status__dot, .skeleton { animation: none; }
  .status__bar { transition: none; }
}
