.pcore-ios-install[hidden] { display: none !important; }
.pcore-ios-splash, .pcore-ios-navigation { display: none; }
html.pcore-ios-launching .pcore-ios-splash {
  position: fixed;
  z-index: 2147483646;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: #f7f9fd;
  color: #1d2633;
  font: 600 17px/1.4 system-ui, sans-serif;
}
.pcore-ios-splash img { width: 128px; height: 128px; border-radius: 22px; }
.pcore-ios-splash-spinner {
  width: 26px;
  height: 26px;
  margin-top: 8px;
  border: 3px solid #cbd8f4;
  border-top-color: #2458e8;
  border-radius: 50%;
  animation: pcore-ios-spin .8s linear infinite;
}
html.pcore-ios-standalone.pcore-ios-navigating .pcore-ios-navigation {
  position: fixed;
  z-index: 2147483645;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  pointer-events: none;
  background: rgba(247, 249, 253, .96);
  color: #172033;
  font: 600 16px/1.4 system-ui, sans-serif;
}
.pcore-ios-navigation img { width: 68px; height: 68px; border-radius: 15px; }
.pcore-ios-navigation-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid #cbd8f4;
  border-top-color: #2458e8;
  border-radius: 50%;
  animation: pcore-ios-spin .8s linear infinite;
}
html[data-pcore-theme="dark"].pcore-ios-standalone.pcore-ios-navigating .pcore-ios-navigation,
html[data-tutor-theme="dark"].pcore-ios-standalone.pcore-ios-navigating .pcore-ios-navigation { background: rgba(21, 28, 39, .96); color: #f8fafc; }
html[data-pcore-theme="dark"].pcore-ios-launching .pcore-ios-splash,
html[data-tutor-theme="dark"].pcore-ios-launching .pcore-ios-splash { background: #1d2633; color: #fff; }
@keyframes pcore-ios-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .pcore-ios-splash-spinner, .pcore-ios-navigation-spinner { animation: none; }
}
.pcore-ios-browser #tutor-pn-permission { display: none !important; }
.pcore-ios-install {
  position: fixed;
  z-index: 99999;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid #cad5e5;
  border-radius: 8px;
  background: #fff;
  color: #1d2633;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
  font: 14px/1.4 system-ui, sans-serif;
}
.pcore-ios-install img { flex: none; border-radius: 8px; }
.pcore-ios-install-copy { display: grid; min-width: 0; gap: 2px; }
.pcore-ios-install-copy strong { font-size: 14px; }
.pcore-ios-install-copy span { color: #4a5870; }
.pcore-ios-install button {
  align-self: flex-start;
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
html[data-pcore-theme="dark"] .pcore-ios-install,
html[data-tutor-theme="dark"] .pcore-ios-install {
  border-color: #445268;
  background: #202b3a;
  color: #f8fafc;
}
html[data-pcore-theme="dark"] .pcore-ios-install-copy span,
html[data-tutor-theme="dark"] .pcore-ios-install-copy span { color: #c6d2e3; }
.pcore-ios-guide[hidden], .pcore-ios-guide [hidden] { display: none !important; }
html.pcore-ios-guide-open { overflow: hidden; }
.pcore-ios-guide {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font: 16px/1.5 system-ui, sans-serif;
}
.pcore-ios-guide-backdrop { position: absolute; inset: 0; background: rgba(10, 18, 32, .7); }
.pcore-ios-guide-panel {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 28px;
  border: 1px solid #cad5e5;
  border-radius: 8px;
  background: #fff;
  color: #1d2633;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .25);
}
.pcore-ios-guide-panel img { display: block; width: 56px; height: 56px; margin-bottom: 16px; }
.pcore-ios-guide-panel h2 { margin: 0 32px 8px 0; color: inherit; font: 700 24px/1.2 system-ui, sans-serif; }
.pcore-ios-guide-panel p { margin: 0 0 18px; color: #4a5870; }
.pcore-ios-guide-panel ol { margin: 0 0 22px; padding-left: 24px; }
.pcore-ios-guide-panel li { padding: 0 0 10px 4px; }
.pcore-ios-guide-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.pcore-ios-guide-copy {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid #2860ef;
  border-radius: 6px;
  background: #2860ef;
  color: #fff;
  font: 600 14px/1.3 system-ui, sans-serif;
  cursor: pointer;
}
.pcore-ios-guide :is(button,a):focus-visible { outline: 3px solid #f2aa21; outline-offset: 3px; }
html[data-pcore-theme="dark"] .pcore-ios-guide-panel,
html[data-tutor-theme="dark"] .pcore-ios-guide-panel { border-color: #445268; background: #202b3a; color: #f8fafc; }
html[data-pcore-theme="dark"] .pcore-ios-guide-panel p,
html[data-tutor-theme="dark"] .pcore-ios-guide-panel p { color: #c6d2e3; }
@media (max-width: 600px) {
  .pcore-ios-guide { align-items: flex-end; padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .pcore-ios-guide-panel { padding: 24px 20px; max-height: calc(100dvh - 24px - env(safe-area-inset-bottom, 0px)); }
}
