.sg-guard {
  box-sizing: border-box;
  margin: 18px 0 21px;
  padding: 16px;
  border: 1px solid #cbdde0;
  border-radius: 14px;
  background: linear-gradient(140deg, #f3fafb, #f7f8fc);
  color: #21333f;
  font-family: inherit;
}
.sg-guard *, .sg-guard *::before, .sg-guard *::after { box-sizing: border-box; }
.sg-guard__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.sg-guard__heading > span { color: #1595a0; font-size: 19px; }
.sg-guard__help {
  margin: 0 0 12px;
  color: #4a6571;
  line-height: 1.4;
  font-size: 13px;
}
.sg-guard__board {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}
.sg-guard__source {
  display: flex;
  flex: 0 0 68px;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border-radius: 10px;
  border: 1px solid #9bc9d0;
  background: #ddf1f2;
  color: #138b96;
  cursor: grab;
  touch-action: auto;
}
.sg-guard__source:active { cursor: grabbing; }
.sg-guard__choices {
  display: grid;
  flex: 1;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.sg-guard__target {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 72px;
  padding: 3px;
  border: 1px dashed #b9c5cc;
  border-radius: 10px;
  background: #fff;
  color: #a4b1b9;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s ease, background .15s ease;
}
.sg-guard__target:hover,
.sg-guard__target--hover {
  border-color: #1595a0;
  background: #e8f5f6;
}
.sg-guard__target:focus-visible,
.sg-guard__source:focus-visible,
.sg-guard__refresh:focus-visible {
  outline: 3px solid #008d99;
  outline-offset: 3px;
}
.sg-guard__svg {
  width: 39px;
  height: 39px;
  fill: currentColor;
  pointer-events: none;
}
.sg-guard__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
}
.sg-guard__footer [data-sg-message] { flex: 1; color: #435e69; }
.sg-guard__refresh {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: #087b87;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
}
.sg-guard--error .sg-guard__footer [data-sg-message] { color: #ab3937; }
.sg-guard--done { border-color: #8dcbb8; background: #f2faf6; }
.sg-guard--done .sg-guard__source {
  background: #d8f2e8;
  border-color: #95cdbb;
  color: #147e59;
}
.sg-guard__check { font-size: 38px; font-weight: bold; }
@media (max-width: 600px) {
  .sg-guard { padding: 12px; }
  .sg-guard__board { gap: 6px; }
  .sg-guard__source { flex-basis: 54px; min-height: 56px; }
  .sg-guard__target { min-height: 56px; border-radius: 8px; }
  .sg-guard__choices { gap: 4px; }
  .sg-guard__svg { width: 29px; height: 29px; }
  .sg-guard__footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-guard__target { transition: none; }
}
