
.page-banner:has([data-captcha-banner], [data-captcha-resuming]) {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 3;
  padding-block: 4px;
  background: var(--bg);
}
.captcha-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 8px;
  border: 1px solid var(--red);
  border-inline-start: 4px solid var(--red);
  background: var(--panel);
}
.captcha-banner strong {
  flex: 1 1 12rem;
  color: var(--gold);
}
.captcha-banner .chip {
  flex: none;
}
.captcha-banner [data-captcha-stamp] {
  font: inherit;
}
.captcha-banner .button, .captcha-panel .button {
  min-height: 44px;
  min-width: 44px;
}
.captcha-panel {
  min-width: 0;
  scroll-margin-top: calc(10rem + env(safe-area-inset-top, 0px));
  padding: clamp(8px, 2vw, 16px);
}
.captcha-workers {
  display: flex;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px;
}
.captcha-workers > button {
  flex: none;
}
.captcha-screen {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #12151b;
  touch-action: none;
  cursor: crosshair;
}
.captcha-screen:focus, .captcha-panel:has(.captcha-ime:focus) .captcha-screen {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.captcha-screen[aria-disabled="true"] {
  cursor: wait;
}
.captcha-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}
.captcha-code label {
  grid-column: 1 / -1;
}
.captcha-code input {
  min-width: 0;
  min-height: 44px;
  font-size: 16px;
}
.captcha-keys, .captcha-actions, .captcha-view-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.captcha-ime {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  min-width: 0;
  min-height: 0;
  pointer-events: none;
  overflow: hidden;
}
@media (max-width: 560px) {
  .captcha-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .captcha-banner [data-captcha-sound] {
    justify-self: start;
  }
  .captcha-actions > *, .captcha-actions form > button {
    width: 100%;
  }
}
