.gems-table {
  border-collapse: collapse;
  width: 100%;
  margin: .75rem 0 1.25rem;
  font-size: .95rem;
}
.gems-table th,
.gems-table td {
  border-bottom: 1px solid #ddd;
  padding: .4rem .6rem;
  vertical-align: middle;
}
.gems-table th {
  background: #f8f8f8;
  text-align: left;
}
.gems-table tr:hover {
  background: #fafafa;
}
.gems-count {
  text-align: center;
  font-weight: 600;
  min-width: 3rem;
}
.gems-action-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
}

.gems-generate-btn {
  padding: 10px 15px;
  background-color: #007cba;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
  border-radius: 5px;
  text-align: center;
  margin-top: 10px;
}

.gems-output {
  width: 100%;
}

.gems-field {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.gems-field input {
  flex: 1;
  padding: .35rem .4rem;
  font-size: .85rem;
}
.gems-btn {
  padding: 10px 15px;
  background-color: #007cba;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
  border-radius: 5px;
  text-align: center;
  margin-top: 10px;
}

.gems-total td {
  border-top: 2px solid #ccc;
  font-weight: bold;
  background: #f9f9f9;
}
.gems-total-count {
  text-align: center;
}

/* Toast (bottom-right) */
.gems-toast {
  position: absolute;
  z-index: 99999;
  padding: 10px 15px;
  border-radius: 5px;
  background: #111;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  font-size: 14px;
  line-height: 1.3;
}
.gems-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.gems-toast--ok { background: #111; }
.gems-toast--error { background: #933; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gems-toast { transition: none; }
}