.oaz-captcha-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: min(92vw, 470px);
  height: max-content;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 22px;
  overflow: auto;
  border: 1px solid #535a73;
  border-radius: 20px;
  background: #171923;
  color: #fff;
  text-align: left;
  box-shadow: 0 24px 80px #000b;
}
.oaz-captcha-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.oaz-captcha-notice { margin: 0 0 7px; color: #ffb9bd; font-size: 13px; font-weight: 600; }
.oaz-captcha-dialog h2 { margin: 0 0 7px; font-size: 27px; font-weight: 700; }
.oaz-captcha-exit { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border: 1px solid #5b6174; border-radius: 9px; color: #fff; text-decoration: none; font: 26px/1 Arial, sans-serif; }
.oaz-captcha-exit:hover { background: #353948; }
.oaz-captcha-dialog .oaz-captcha-hint { margin: 0 0 16px; color: #bfc4d4; font-size: 14px; }
.oaz-captcha-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.oaz-captcha-tile {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border: 3px solid transparent;
  border-radius: 8px;
  background: #303443;
  cursor: pointer;
}
.oaz-captcha-tile img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.oaz-captcha-tile[aria-pressed="true"] { border-color: #4681ff; }
.oaz-captcha-tile[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #4681ff;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.oaz-captcha-error { min-height: 21px; margin: 10px 0 0; color: #ff9c9c; font-size: 13px; }
.oaz-captcha-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.oaz-captcha-actions a { color: #aab8ff; font-size: 14px; text-decoration: underline; }
.oaz-captcha-actions button {
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: #4681ff;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.oaz-captcha-actions button:disabled { opacity: .5; cursor: not-allowed; }
#cabinet-toast { position: fixed; z-index: 10001; left: 50%; bottom: 22px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 14px 20px; border: 1px solid #596177; border-radius: 14px; background: #1c2030; box-shadow: 0 14px 45px #0009; color: #fff; font: 600 15px/1.4 Arial, sans-serif; text-align: center; }
#cabinet-toast[hidden] { display: none; }
@media (max-width: 600px) {
  .oaz-captcha-dialog { padding: 16px; }
}
