/* Registration consent only: existing pale green, white surface and indigo. */
#app .registration-consent__agreement {
  display: flex;
  align-items: flex-start;
  gap: 3px;
  margin: 0 -4px;
  color: #374151;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
#app .registration-consent__checkbox-area {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  min-height: 44px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#app .registration-consent__checkbox {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #4f46e5;
  cursor: pointer;
}
#app .registration-consent__agreement-copy {
  flex: 1;
  min-width: 0;
  padding: 9px 0 0;
  font-size: 16px;
  line-height: 1.75;
}
#app .registration-consent__document-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: #4f46e5;
  font: inherit;
  font-weight: 650;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#app .registration-consent__overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(17,24,39,.38);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  overscroll-behavior: none;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
#app .registration-consent__sheet {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  height: 90vh;
  height: 90dvh;
  max-height: 92vh;
  max-height: 92dvh;
  overflow: hidden;
  border: 1px solid rgba(205,222,219,.78);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: #fffefa;
  color: #111827;
  box-shadow: 0 -12px 48px rgba(17,24,39,.16);
  animation: registration-consent-rise .22s cubic-bezier(.2,.7,.3,1);
  outline: none;
}
#app .registration-consent__handle {
  flex: none;
  align-self: center;
  width: 38px;
  height: 5px;
  margin-top: 10px;
  border-radius: 8px;
  background: rgba(205,222,219,.9);
}
#app .registration-consent__header {
  display: flex;
  align-items: flex-start;
  flex: none;
  gap: 10px;
  padding: 17px 16px 17px 22px;
  border-bottom: 1px solid rgba(205,222,219,.65);
}
#app .registration-consent__header h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 4px 0 0;
  font-family: inherit;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0;
}
#app .registration-consent__close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #eef2ff;
  color: #4f46e5;
  cursor: pointer;
}
#app .registration-consent__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 20px 23px 24px;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
#app .registration-consent__body h3 {
  margin: 24px 0 9px;
  font-family: inherit;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
}
#app .registration-consent__body p { margin: 0 0 12px; }
#app .registration-consent__body p:last-child { margin-bottom: 0; }
#app .registration-consent__footer {
  flex: none;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom,0px));
  border-top: 1px solid rgba(205,222,219,.65);
  background: #fffefa;
}
#app .registration-consent__return {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 14px;
  background: #4f46e5;
  color: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 650;
  cursor: pointer;
}
#app .registration-consent__checkbox:focus-visible,
#app .registration-consent__document-link:focus-visible,
#app .registration-consent__close:focus-visible,
#app .registration-consent__body:focus-visible,
#app .registration-consent__return:focus-visible {
  outline: 3px solid #4f46e5;
  outline-offset: 3px;
}
#app .registration-consent__document-link:disabled,
#app .registration-consent__checkbox:disabled { opacity: .55; cursor: default; }
@keyframes registration-consent-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (max-width: 350px) {
  #app .registration-consent__header { padding-left: 18px; }
  #app .registration-consent__header h2 { font-size: 18px; }
  #app .registration-consent__body { padding-left: 18px; padding-right: 18px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { #app .registration-consent__sheet { animation: none; } }
