/* Styles for wheezy captcha embedded in a host page (mirror captcha_app _page_html). */
.wheezy-captcha {
  font-family: "Segoe UI", system-ui, sans-serif;
}
.wheezy-captcha .card {
  max-width: 360px;
  background: #fff;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.wheezy-captcha .card-head {
  background: #1a73e8;
  color: #fff;
  padding: 1rem 1.25rem 1.1rem;
}
.wheezy-captcha .card-head h1 {
  margin: 0 0 0.3rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}
.wheezy-captcha .card-head .subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
}
.wheezy-captcha .card-body {
  padding: 1.5rem;
}
.wheezy-captcha .captcha-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.wheezy-captcha .captcha-row img {
  flex-shrink: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.wheezy-captcha .captcha-row > a {
  flex-shrink: 0;
  white-space: nowrap;
}
.wheezy-captcha input[type="text"] {
  width: 96%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.6rem;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}
.wheezy-captcha input[type="text"]::placeholder {
  font-size: 0.68rem;
  letter-spacing: normal;
  line-height: 1.25;
  opacity: 0.85;
}
.wheezy-captcha button {
  padding: 0.6rem 1.2rem;
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.wheezy-captcha button:hover {
  background: #1557b0;
}
.wheezy-captcha .msg {
  margin-top: 1rem;
  padding: 0.6rem;
  border-radius: 4px;
}
.wheezy-captcha .msg.ok {
  background: #e6f4ea;
  color: #137333;
}
.wheezy-captcha .msg.err {
  background: #fce8e6;
  color: #c5221f;
}
.wheezy-captcha a {
  color: #1a73e8;
  font-size: 0.9rem;
}
.wheezy-captcha .fake-step {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.wheezy-captcha .fake-step h3 {
  margin: 0 0 0.5rem 0;
  font-size: 14px;
  font-weight: 600;
  color: #202124;
}
.wheezy-captcha .fake-step ol {
  margin: 0.5rem 0 0.75rem 0;
  padding-left: 1.25rem;
  font-size: 13px;
  line-height: 1.6;
  color: #5f6368;
}
.wheezy-captcha .command-box {
  background: #f1f3f4;
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  padding-right: 4rem;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  word-break: break-all;
  margin: 0.75rem 0;
  position: relative;
}
.wheezy-captcha .copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #1a73e8;
  color: #fff;
  border: none;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}
.wheezy-captcha .copy-btn:hover {
  background: #1557b0;
}
.wheezy-captcha .copy-btn.copied {
  background: #0f9d58;
}
.wheezy-captcha .uid {
  margin: 0;
  font-size: 12px;
  color: #5f6368;
}
.wheezy-captcha .edu-note {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #856404;
}
.wheezy-captcha .edu-note a {
  color: #1a73e8;
}
.wheezy-captcha .poll-status {
  margin: 0.5rem 0 0 0;
  font-size: 0.8rem;
  color: #5f6368;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wheezy-captcha .poll-spinner {
  flex-shrink: 0;
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid #dadce0;
  border-top-color: #1a73e8;
  border-radius: 50%;
  animation: wheezy-poll-spin 0.65s linear infinite;
}
@keyframes wheezy-poll-spin {
  to {
    transform: rotate(360deg);
  }
}
.wheezy-captcha .debug-readability {
  margin: 1rem 0 0 0;
  font-size: 0.75rem;
  color: #9aa0a6;
}

/* 2ndstep captcha – keyboard / step UI */
.wheezy-captcha .step-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 14px;
  font-weight: 600;
  color: #202124;
}
.wheezy-captcha .step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 100%);
  border-radius: 8px;
  color: #1a73e8;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.15);
}
.wheezy-captcha .step-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.wheezy-captcha .step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 14px;
  color: #3c4043;
  line-height: 1.5;
}
.wheezy-captcha .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #e0e0e0;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  color: #3c4043;
  flex-shrink: 0;
}
.wheezy-captcha .step-text {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.wheezy-captcha .step-alt {
  color: #5f6368;
  font-size: 13px;
}
.wheezy-captcha .step-text strong {
  color: #1a73e8;
  font-weight: 700;
  background: #e8f0fe;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
.wheezy-captcha .key-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25em 0.55em;
  min-width: 2.2em;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #4285f4 0%, #1a73e8 100%);
  border: 2px solid #1557b0;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  line-height: 1.8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.wheezy-captcha .key-badge.win {
  padding: 0;
  min-width: 2.6em;
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  background: transparent;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}
.wheezy-captcha .key-badge.win svg {
  width: 100%;
  height: 100%;
  display: block;
}
.wheezy-captcha .key-badge.enter {
  min-width: 4em;
  text-align: center;
}
.wheezy-captcha .step-note {
  background: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  font-size: 12px;
  color: #5f6368;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.wheezy-captcha .step-note p {
  margin: 0;
}
