.phase-panic {
  position: relative;
  height: 100%;
  min-height: 100dvh;
  background: #000;
  color: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  overflow: hidden;
}

html.os-mac .phase-panic--mac-only {
  background: #ebebeb;
}

.panic-mac-phone-line--scan {
  margin-top: 20px;
  text-align: center;
}

.panic-mac-phone-line {
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.6;
  color: #a1a1a6;
}

.panic-phone-big {
  display: block;
  margin-top: 12px;
  font-size: clamp(26px, 4vw, 36px);
  color: #2997ff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.panic-menu {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  font-size: 13px;
  background: rgba(30, 30, 30, 0.92);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.panic-menu__clock {
  margin-left: auto;
}

.phase-panic--win .panic-content,
html.os-win .panic-content {
  padding: 48px 10vw 120px;
  padding-top: max(48px, calc(env(safe-area-inset-top) + 32px));
}

.panic-icon {
  font-size: 56px;
  color: #ff453a;
  margin-bottom: 16px;
}

.panic-content h1 {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 600;
  max-width: 640px;
  line-height: 1.5;
}

.panic-progress-line {
  margin-top: 20px;
  font-size: 15px;
}

.panic-meta {
  margin-top: 24px;
  font-size: 13px;
  color: #a1a1a6;
  line-height: 1.6;
}

.mac-support-corner {
  position: absolute;
  right: max(56px, calc(env(safe-area-inset-right) + 48px));
  bottom: max(28px, env(safe-area-inset-bottom, 20px));
  text-align: right;
  z-index: 20;
  max-width: min(420px, calc(100vw - 96px));
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.corner-urgent {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: #ff453a;
  animation: urgent-pulse 1.2s ease-in-out infinite;
}

.corner-expert {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #ff9f0a;
}

.corner-callhere {
  margin: 0 0 4px;
  font-size: 12px;
  color: #a1a1a6;
}

.corner-brand {
  color: #f5f5f7;
  font-weight: 700;
}

#corner-phone {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #2997ff;
  white-space: nowrap;
}

@keyframes urgent-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

html.os-win .mac-support-corner {
  display: none;
}

.win-panic-extra {
  margin-top: 16px;
  font-size: 13px;
}

html.os-mac .win-panic-extra {
  display: none;
}

html.panic--win .phase-panic {
  font-family: 'Segoe UI', Consolas, sans-serif;
}

html.panic--win .panic-content h1 {
  font-family: 'Segoe UI', sans-serif;
}

html.panic--win .panic-icon {
  color: #0078d4;
}
