html.license-pending .app,
html.license-blocked .app {
  visibility: hidden;
}

.license-screen {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
  background:
    radial-gradient(circle at 15% 15%, rgba(13, 217, 196, .12), transparent 32rem),
    #f4f6f8;
  color: #14213d;
  font-family: 'DM Sans', Arial, sans-serif;
}

html.license-pending .license-screen,
html.license-blocked .license-screen {
  display: flex;
}

.license-card {
  width: min(100%, 520px);
  padding: 44px 40px 38px;
  border: 1px solid rgba(20, 33, 61, .08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 33, 61, .12);
  text-align: center;
}

.license-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 24px;
  place-items: center;
  border-radius: 18px;
  background: rgba(13, 217, 196, .14);
  color: #087c71;
}

.license-mark svg { width: 28px; height: 28px; }
.license-title { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.license-message { margin: 14px auto 0; max-width: 390px; color: #647087; font-size: 15px; line-height: 1.65; }
.license-support { margin: 22px 0 0; color: #8a94a6; font-size: 12px; }

.license-retry {
  display: none;
  margin: 24px auto 0;
  padding: 11px 18px;
  border: 0;
  border-radius: 10px;
  background: #14213d;
  color: #fff;
  font: 700 13px 'DM Sans', Arial, sans-serif;
  cursor: pointer;
}

html.license-blocked .license-retry { display: inline-flex; }
.license-retry:disabled { opacity: .55; cursor: wait; }

.license-loader {
  width: 28px;
  height: 28px;
  margin: 24px auto 0;
  border: 3px solid #dfe5eb;
  border-top-color: #0bbfae;
  border-radius: 50%;
  animation: license-spin .8s linear infinite;
}

html.license-blocked .license-loader { display: none; }

.license-admin-badge {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 19000;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 13px;
  border: 1px solid rgba(20, 33, 61, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 28px rgba(20, 33, 61, .14);
  color: #14213d;
  font: 700 11px 'DM Sans', Arial, sans-serif;
}

html.license-admin .license-admin-badge { display: flex; }
.license-admin-badge button { border: 0; border-radius: 8px; padding: 7px 9px; background: #eef1f4; color: #586275; font: inherit; cursor: pointer; }

@keyframes license-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .license-screen { padding: 16px; }
  .license-card { padding: 36px 24px 30px; border-radius: 20px; }
  .license-title { font-size: 23px; }
  .license-admin-badge { right: 10px; bottom: 10px; }
}
