/* Network sites — structural captcha layout (themed via captcha-theme.css) */
.hobc-captcha {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  width: 100%;
  box-sizing: border-box;
}

.hobc-captcha-shell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-content: space-between;
}

.hobc-captcha-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.hobc-captcha-label {
  display: block;
  font-weight: 700;
  color: var(--captcha-label, var(--accent));
  margin-bottom: 0.25rem;
  font-size: 0.92rem;
  font-family: Tahoma, Verdana, sans-serif;
}

.hobc-captcha-prompt {
  margin: 0 0 0.35rem;
  color: var(--captcha-text, var(--text));
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
  font-family: Tahoma, Verdana, sans-serif;
}

.hobc-captcha-help {
  margin: 0;
  color: var(--captcha-muted, var(--muted));
  font-size: 0.82rem;
  line-height: 1.35;
  font-family: Tahoma, Verdana, sans-serif;
}

.hobc-captcha-visual {
  flex: 0 0 auto;
}

.hobc-captcha-frame {
  position: relative;
  width: 192px;
  height: 192px;
  border: 1px solid var(--captcha-frame-border, var(--border));
  border-radius: var(--captcha-radius, 0.55rem);
  overflow: hidden;
  background: var(--captcha-frame-bg, var(--input-bg));
  line-height: 0;
  box-shadow: var(--captcha-frame-shadow, none);
}

.hobc-captcha-frame img {
  display: block;
  width: 192px;
  height: 192px;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.hobc-captcha-grid {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 0;
}

.hobc-captcha-cell {
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin: 0;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  outline: none;
}

.hobc-captcha-cell:hover {
  background: var(--captcha-cell-hover-bg, color-mix(in srgb, var(--accent) 16%, transparent));
  border-color: var(--captcha-cell-hover-border, color-mix(in srgb, var(--accent) 38%, var(--border)));
}

.hobc-captcha-cell:focus-visible {
  border-color: var(--captcha-cell-focus-border, var(--accent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}

.hobc-captcha-cell.is-selected {
  background: var(--captcha-cell-selected-bg, color-mix(in srgb, var(--accent) 28%, transparent));
  border-color: var(--captcha-cell-selected-border, var(--accent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}

.hobc-captcha-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.hobc-captcha-actions .network-btn,
.hobc-captcha-actions button[data-captcha-refresh] {
  padding: 0.42rem 0.75rem;
  font-size: 0.82rem;
  font-family: Tahoma, Verdana, sans-serif;
}

.hobc-captcha-selected {
  color: var(--captcha-muted, var(--muted));
  font-size: 0.82rem;
  font-family: Tahoma, Verdana, sans-serif;
}

.hobc-captcha-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 36rem) {
  .hobc-captcha-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .hobc-captcha-visual {
    display: flex;
    justify-content: center;
  }
}
