.ios-service-status-dot {
  --ios-service-dot: #3ef07a;
  width: 6px;
  height: 6px;
  margin-left: auto;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--ios-service-dot);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--ios-service-dot) 13%, transparent),
    0 0 7px color-mix(in srgb, var(--ios-service-dot) 34%, transparent);
  animation: ios-service-dot-glow 1.6s ease-in-out infinite alternate;
}

.ios-service-status-dot[data-status="maintenance"] {
  --ios-service-dot: #f3a63a;
}

.ios-service-status-dot[data-status="offline"] {
  --ios-service-dot: #ff5f5f;
}

.sidebar--collapsed .ios-service-status-dot {
  position: absolute;
  top: 9px;
  right: 8px;
  margin: 0;
}

@keyframes ios-service-dot-glow {
  from {
    box-shadow:
      0 0 0 2px color-mix(in srgb, var(--ios-service-dot) 10%, transparent),
      0 0 4px color-mix(in srgb, var(--ios-service-dot) 22%, transparent);
  }
  to {
    box-shadow:
      0 0 0 5px color-mix(in srgb, var(--ios-service-dot) 14%, transparent),
      0 0 9px color-mix(in srgb, var(--ios-service-dot) 38%, transparent);
  }
}

body[data-service-unavailable="true"] .blank-surface:not(.blank-surface--feed),
body[data-service-unavailable="true"] .blank-surface--feed {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: auto;
  background:
    radial-gradient(circle at top right, rgb(63 159 212 / 8%), transparent 28rem),
    linear-gradient(180deg, #0d1015, #0c1118);
}

body[data-service-unavailable="true"] .blank-panels {
  width: 100%;
  min-height: 100%;
  height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

body[data-service-unavailable="true"] .blank-panels > :not(.ios-feature-status) {
  display: none !important;
}

.ios-feature-status {
  --ios-feature-status-tone: #ff5f5f;
  box-sizing: border-box;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 20px 16px 28px;
  display: grid;
  gap: 18px;
  color: var(--text, #d4d4d8);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ios-feature-status[data-status="maintenance"] {
  --ios-feature-status-tone: #f3a63a;
}

.ios-feature-status__card {
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--border, #1e2028) 92%, transparent);
  background: linear-gradient(145deg, rgb(25 28 36 / 94%), rgb(14 17 23 / 96%));
  box-shadow: 0 18px 34px rgb(0 0 0 / 20%), inset 0 1px rgb(255 255 255 / 3%);
}

.ios-feature-status__card--primary {
  padding: 24px;
  border-radius: 28px;
}

.ios-feature-status__identity {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.ios-feature-status__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ios-feature-status-tone);
  background: color-mix(in srgb, var(--ios-feature-status-tone) 16%, transparent);
}

.ios-feature-status__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ios-feature-status__title,
.ios-feature-status__availability,
.ios-feature-status__meaning-title,
.ios-feature-status__message,
.ios-feature-status__meaning-body {
  margin: 0;
}

.ios-feature-status__title {
  color: var(--text-strong, #f4f4f5);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.ios-feature-status__pill {
  min-height: 30px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--ios-feature-status-tone) 32%, transparent);
  border-radius: 999px;
  color: var(--ios-feature-status-tone);
  background: color-mix(in srgb, var(--ios-feature-status-tone) 14%, transparent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.ios-feature-status__availability {
  margin-top: 18px;
  color: var(--text-strong, #f4f4f5);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.ios-feature-status__message {
  margin-top: 10px;
  color: var(--text, #d4d4d8);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.ios-feature-status__card--meaning {
  padding: 20px;
  border-radius: 24px;
}

.ios-feature-status__meaning-title {
  color: var(--text-strong, #f4f4f5);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.ios-feature-status__meaning-body {
  margin-top: 10px;
  color: var(--text, #d4d4d8);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

@media (min-width: 761px) {
  .ios-feature-status {
    padding-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ios-service-status-dot {
    animation: none;
  }
}
