/* checksum — tool-specific components (loaded after the global /styles.css) */

.ck-drop {
  border: 2px dashed var(--border, #2a3344);
  border-radius: 12px;
  padding: 2.2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.ck-drop:hover, .ck-drop:focus-visible, .ck-drop.is-over {
  border-color: var(--accent, #6ea8fe);
  background: color-mix(in srgb, var(--accent, #6ea8fe) 6%, transparent);
  outline: none;
}
.ck-drop.is-busy { opacity: .6; pointer-events: none; }
.ck-drop p { margin: .25rem 0; }
.ck-drop-icon { font-size: 2rem; line-height: 1; margin-bottom: .35rem; }

.ck-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--border, #2a3344);
}
.ck-row:last-child { border-bottom: 0; }

.ck-alg {
  flex: 0 0 5.2rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.ck-hash {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
  line-height: 1.45;
  word-break: break-all;
  padding: .2rem .45rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.ck-hash:hover, .ck-hash:focus-visible {
  background: color-mix(in srgb, var(--accent, #6ea8fe) 10%, transparent);
  outline: none;
}
.ck-hash.is-copied::after {
  content: "Copied";
  position: absolute;
  top: -0.35rem;
  right: .25rem;
  font-family: inherit;
  font-size: .7rem;
  font-weight: 700;
  padding: .1rem .45rem;
  border-radius: 999px;
  background: rgba(46, 204, 113, .15);
  color: #2ecc71;
}

/* Verification match badge */
#r-match.ck-match-good { color: #2ecc71; }
#r-match.ck-match-bad { color: #e74c3c; }

@media (max-width: 560px) {
  .ck-row { flex-wrap: wrap; gap: .25rem .85rem; }
  .ck-alg { flex-basis: 100%; }
}
