.offline-bar,
.pwa-update,
.pwa-install {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(420px, calc(100% - 28px));
  box-sizing: border-box;
  background: #111;
  color: #fff;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK SC", "Noto Sans CJK KR", sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: center;
}
.offline-bar {
  top: calc(8px + env(safe-area-inset-top));
  padding: 8px 12px;
}
.offline-bar[hidden],
.pwa-update[hidden],
.pwa-install[hidden],
.pwa-ios[hidden],
.pwa-ios [hidden] { display: none; }
.pwa-update,
.pwa-install {
  bottom: calc(12px + var(--tab-h, 58px) + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 14px;
}
.pwa-update button,
.pwa-install button {
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
}
.pwa-ios {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: end center;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  background: rgba(17, 17, 17, 0.28);
}
.pwa-ios form {
  width: min(360px, 100%);
  background: #fff;
  color: #111;
  padding: 22px 20px 16px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK SC", "Noto Sans CJK KR", sans-serif;
  font-weight: 300;
}
.pwa-ios h2 { margin: 0 0 8px; font-size: 16px; font-weight: 400; letter-spacing: 0.08em; }
.pwa-ios p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: #3c3c3c; }
.pwa-guide-steps { display: grid; gap: 9px; margin: 14px 0 18px; }
.pwa-guide-step { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 11px; text-align: left; }
.pwa-guide-step strong,
.pwa-guide-step small { display: block; }
.pwa-guide-step strong { font-size: 13px; font-weight: 500; line-height: 1.45; }
.pwa-guide-step small { margin-top: 2px; color: #777; font-size: 11px; line-height: 1.35; }
.pwa-guide-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #d7d7d7;
  border-radius: 9px;
  color: #1769d2;
  font-size: 14px;
  font-weight: 500;
}
.pwa-ios button {
  width: 100%;
  height: 44px;
  border: 0;
  background: #111;
  color: #fff;
  font: inherit;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.pwa-ios .pwa-copy-link { margin: 14px 0 8px; background: #1769d2; }
.pwa-copy-fallback {
  width: 100%;
  min-height: 64px;
  margin: 0 0 10px;
  padding: 9px;
  resize: none;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.resend {
  border: 0;
  background: none;
  padding: 0;
  color: #8a3a32;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}
