.akb-date-decoder {
  margin: 20px 0 28px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, .06);
  color: #1f2937;
}

.akb-date-decoder__title {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  color: #111827;
}

.akb-date-decoder__form {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, .8fr) auto;
  gap: 10px;
  align-items: end;
}

.akb-date-decoder__field {
  min-width: 0;
}

.akb-date-decoder__label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.akb-date-decoder select,
.akb-date-decoder input {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  border: 1.5px solid #d1d5db;
  border-radius: 9px;
  padding: 0 12px;
  background: #fff;
  color: #111827;
  font: inherit;
}

.akb-date-decoder select:focus,
.akb-date-decoder input:focus {
  outline: none;
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, .12);
}

.akb-date-decoder button,
.akb-date-decoder__button {
  height: 42px;
  border: 0;
  border-radius: 9px;
  padding: 0 18px;
  background: #c62828;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s, transform .16s;
}

.akb-date-decoder button:hover,
.akb-date-decoder__button:hover {
  background: #a91f1f;
  transform: translateY(-1px);
}

.akb-date-decoder__hint {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #6b7280;
}

.akb-date-decoder__result,
.akb-date-decoder #result {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #d1fae5;
  background: #f0fdf4;
  color: #065f46;
  line-height: 1.65;
}

.akb-date-decoder__result.is-error,
.akb-date-decoder #result.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.akb-date-decoder__result-title {
  margin: 0 0 6px;
  font-weight: 800;
}

.akb-date-decoder__result-list {
  display: grid;
  gap: 3px;
  margin: 0;
}

.akb-date-decoder__result-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
}

.akb-date-decoder__result-row dt {
  color: currentColor;
  opacity: .72;
  font-weight: 700;
}

.akb-date-decoder__result-row dd {
  margin: 0;
}

.akb-date-decoder__choices {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.akb-date-decoder .akb-date-decoder__choice {
  width: 100%;
  height: auto;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font-weight: 700;
  text-align: left;
  white-space: normal;
}

.akb-date-decoder .akb-date-decoder__choice:hover {
  background: rgba(153, 27, 27, .06);
  transform: none;
}

.akb-date-decoder--legacy h3 {
  margin-top: 0;
}

@media (max-width: 760px) {
  .akb-date-decoder {
    padding: 16px;
  }

  .akb-date-decoder__form {
    grid-template-columns: 1fr;
  }

  .akb-date-decoder button,
  .akb-date-decoder__button {
    width: 100%;
  }

  .akb-date-decoder__result-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
