#demo-sandbox-panel {
  align-items: center;
  background: #effaf5;
  border: 1px solid #b7e5d1;
  border-radius: 12px;
  color: #174c39;
  display: flex;
  flex-wrap: wrap;
  font-size: .88rem;
  gap: .75rem;
  justify-content: space-between;
  margin: 1rem 0 1.25rem;
  padding: .75rem 1rem;
}

#demo-sandbox-panel div,
.demo-sandbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

#demo-sandbox-panel button,
.demo-sandbox-primary,
.demo-sandbox-secondary {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  justify-content: center;
  padding: .55rem .8rem;
  text-decoration: none;
}

#demo-sandbox-panel button[data-create],
.demo-sandbox-primary {
  background: #156947;
  color: #fff;
}

#demo-sandbox-panel button[data-report] {
  background: #e5f1ec;
  color: #174c39;
}

#demo-sandbox-panel button[data-reset],
.demo-sandbox-secondary {
  background: #fff;
  border: 1px solid #c8dbd2;
  color: #365d4c;
}

.demo-sandbox-modal[aria-hidden="true"] { display: none; }

.demo-sandbox-modal { inset: 0; position: fixed; z-index: 10050; }

.demo-sandbox-backdrop {
  background: rgba(9, 25, 18, .55);
  inset: 0;
  position: absolute;
}

.demo-sandbox-dialog {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
  left: 50%;
  max-width: 480px;
  padding: 1.5rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 2rem);
}

.demo-sandbox-dialog h2 { color: #143728; font-size: 1.3rem; margin: .15rem 2rem .5rem 0; }
.demo-sandbox-dialog p { color: #587064; line-height: 1.5; margin: 0 0 1rem; }

.demo-sandbox-kicker {
  color: #156947 !important;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.demo-sandbox-close { background: transparent; border: 0; color: #6c8176; cursor: pointer; font-size: 1.5rem; position: absolute; right: 1rem; top: .7rem; }
.demo-sandbox-form { display: grid; gap: .85rem; }
.demo-sandbox-field { display: grid; gap: .35rem; font-size: .86rem; font-weight: 600; }
.demo-sandbox-field input { border: 1px solid #c8dbd2; border-radius: 8px; font: inherit; padding: .65rem .7rem; }
.demo-sandbox-actions { justify-content: flex-end; margin-top: .5rem; }
.demo-sandbox-report { color: #3f584b; line-height: 1.55; margin: 0; max-height: 40vh; overflow: auto; padding-left: 1.1rem; }

.demo-sandbox-toast {
  background: #143728;
  border-radius: 10px;
  bottom: 1.25rem;
  color: #fff;
  max-width: min(420px, calc(100vw - 2rem));
  opacity: 0;
  padding: .8rem 1rem;
  pointer-events: none;
  position: fixed;
  right: 1rem;
  transform: translateY(12px);
  transition: .2s ease;
  z-index: 10060;
}

.demo-sandbox-toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 640px) {
  #demo-sandbox-panel { align-items: stretch; }
  #demo-sandbox-panel div { width: 100%; }
  #demo-sandbox-panel button { flex: 1; }
  .demo-sandbox-dialog { max-height: calc(100vh - 2rem); overflow: auto; }
}
