/*
  Modal 10 — Signature Release Dialog — standalone HTML/CSS/JS.
  No build step, no framework, no external dependency: copy index.html,
  this file, and script.js into any project as-is.
*/

:root {
  --release-ink: oklch(0.155 0 0);
  --release-fg: oklch(0.18 0 0);
  --release-muted: oklch(0.5 0 0);
  --release-line: oklch(0.92 0 0);
  --release-soft: oklch(0.97 0 0);
  --release-danger: oklch(0.55 0.2 27);
  --release-accent: #39ff14;
}

.modal10 {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
}

.modal10[hidden],
.modal10 [hidden] {
  display: none !important;
}

.modal10 *,
.modal10 *::before,
.modal10 *::after {
  box-sizing: border-box;
}

.modal10 p,
.modal10 h2,
.modal10 ul,
.modal10 ol {
  margin: 0;
}

.modal10 ul,
.modal10 ol {
  padding: 0;
  list-style: none;
}

.modal10 svg {
  display: block;
}

/* Near-black with the faintest green light at its centre — the one place in
   the set where the backdrop carries the brand. */
.modal10__backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(57, 255, 20, 0.07), rgba(57, 255, 20, 0) 70%),
    oklch(0.11 0 0 / 0.74);
  backdrop-filter: blur(3px);
  animation: modal10-fade-in 260ms ease-out both;
}

.modal10[data-state="closing"] .modal10__backdrop {
  animation: modal10-fade-out 180ms ease-in both;
}

.modal10__positioner {
  position: relative;
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal10__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 52rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background-color: #ffffff;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.8);
  animation: modal10-rise 340ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modal10[data-state="closing"] .modal10__panel {
  animation: modal10-sink 180ms ease-in both;
}

.modal10__release {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--release-ink);
  padding: 1.5rem;
  color: #ffffff;
}

.modal10__release-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.modal10__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  line-height: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.modal10__eyebrow span {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 2px;
  background-color: var(--release-accent);
}

.modal10__environment {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.modal10__environment span {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.4);
}

.modal10[data-live] .modal10__environment span {
  background-color: var(--release-accent);
}

.modal10__version {
  margin-top: 1.25rem !important;
  font-size: 1.875rem;
  line-height: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.modal10__name {
  margin-top: 0.125rem !important;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
}

.modal10__changes {
  display: none;
  margin-top: 1.75rem !important;
}

.modal10__changes li {
  display: flex;
  gap: 0.625rem;
  font-size: 13px;
  line-height: 1.25rem;
  color: rgba(255, 255, 255, 0.75);
}

.modal10__changes li + li {
  margin-top: 0.625rem;
}

.modal10__changes li::before {
  content: "";
  width: 0.625rem;
  height: 1px;
  flex-shrink: 0;
  margin-top: 0.5rem;
  background-color: rgba(255, 255, 255, 0.35);
}

.modal10__prepared {
  margin-top: 1rem !important;
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgba(255, 255, 255, 0.45);
}

.modal10__body {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.modal10__title {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--release-fg);
}

.modal10__description {
  margin-top: 0.25rem !important;
  font-size: 0.875rem;
  line-height: 1.5rem;
  color: var(--release-muted);
}

.modal10__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
}

.modal10__status {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--release-muted);
}

.modal10__status[data-failed] {
  color: var(--release-danger);
}

.modal10__count {
  flex-shrink: 0;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--release-fg);
}

.modal10__checks {
  margin-top: 0.5rem !important;
  border-top: 1px solid var(--release-line);
  border-bottom: 1px solid var(--release-line);
}

.modal10__check {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--release-line);
  padding: 0.5rem 0;
}

.modal10__check:last-child {
  border-bottom: 0;
}

.modal10__icon {
  display: flex;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.modal10__icon > span,
.modal10__icon > svg {
  display: none;
}

.modal10__waiting {
  width: 0.875rem;
  height: 0.875rem;
  border: 1px solid oklch(0.82 0 0);
  border-radius: 9999px;
}

.modal10__spinner {
  width: 1rem;
  height: 1rem;
  color: var(--release-fg);
  animation: modal10-spin 800ms linear infinite;
}

.modal10__passed,
.modal10__failed {
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  animation: modal10-pop 260ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.modal10__passed {
  background-color: var(--release-accent);
  color: var(--release-ink);
}

.modal10__passed svg {
  width: 0.75rem;
  height: 0.75rem;
}

.modal10__failed {
  background-color: var(--release-danger);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.modal10__check[data-state="waiting"] .modal10__waiting,
.modal10__check[data-state="running"] .modal10__spinner {
  display: block;
}

.modal10__check[data-state="passed"] .modal10__passed,
.modal10__check[data-state="failed"] .modal10__failed {
  display: flex;
}

.modal10__check-text {
  min-width: 0;
  flex: 1;
}

.modal10__label {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--release-fg);
}

.modal10__check[data-state="waiting"] .modal10__label {
  font-weight: 400;
  color: var(--release-muted);
}

.modal10__detail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--release-muted);
}

.modal10__check[data-state="failed"] .modal10__detail {
  color: var(--release-danger);
}

.modal10__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
}

.modal10__retry,
.modal10__cancel,
.modal10__publish,
.modal10__close {
  border: 0;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition:
    background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal10__retry {
  height: 2rem;
  flex-shrink: 0;
  border: 1px solid var(--release-line);
  border-radius: 0.375rem;
  padding: 0 0.625rem;
  background-color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  color: var(--release-fg);
}

.modal10__retry:hover {
  background-color: var(--release-soft);
}

.modal10__error {
  margin-top: 0.75rem !important;
  font-size: 13px;
  line-height: 1.25rem;
  color: var(--release-danger);
}

.modal10__actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.modal10__cancel {
  height: 2.5rem;
  border-radius: 0.5rem;
  padding: 0 1rem;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--release-muted);
}

.modal10__cancel:hover {
  background-color: var(--release-soft);
  color: var(--release-fg);
}

.modal10__cancel[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
}

.modal10__publish {
  display: flex;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding: 0 1.25rem;
  background-color: var(--release-soft);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--release-muted);
  cursor: not-allowed;
}

.modal10__publish[data-ready] {
  background-color: var(--release-accent);
  color: var(--release-ink);
  cursor: pointer;
}

.modal10__publish[data-ready]:hover {
  background-color: #5bff3d;
}

.modal10__publish[data-busy] {
  cursor: progress;
}

.modal10__publish svg {
  width: 1rem;
  height: 1rem;
  animation: modal10-spin 800ms linear infinite;
}

.modal10__close {
  height: 2.5rem;
  border-radius: 0.5rem;
  padding: 0 1.25rem;
  background-color: var(--release-fg);
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}

.modal10__close:hover {
  background-color: oklch(0.3 0 0);
}

.modal10__retry:focus-visible,
.modal10__cancel:focus-visible,
.modal10__publish:focus-visible,
.modal10__close:focus-visible {
  outline: 2px solid var(--release-fg);
  outline-offset: 2px;
}

.modal10__edge {
  pointer-events: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* The signature: a neon line drawn around the edge of the dialog, one
   stretch for every check that passes, closing the loop when it goes live. */
.modal10__trace {
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  transition: stroke-dashoffset 700ms cubic-bezier(0.65, 0, 0.35, 1);
}

.modal10[data-live] .modal10__trace {
  filter: drop-shadow(0 0 6px rgba(57, 255, 20, 0.65));
}

@keyframes modal10-fade-in {
  from {
    opacity: 0;
  }
}

@keyframes modal10-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes modal10-rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes modal10-sink {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
}

@keyframes modal10-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes modal10-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 40rem) {
  .modal10__panel {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .modal10__release,
  .modal10__body {
    padding: 1.75rem;
  }
  .modal10__version {
    margin-top: 2rem !important;
    font-size: 2.25rem;
    line-height: 2.75rem;
  }
  .modal10__changes {
    display: block;
  }
  .modal10__prepared {
    margin-top: auto !important;
    padding-top: 2rem;
  }
  .modal10__actions {
    flex-direction: row;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal10__panel,
  .modal10[data-state="closing"] .modal10__panel {
    animation-name: modal10-fade-in;
    animation-duration: 120ms;
  }
  .modal10[data-state="closing"] .modal10__panel {
    animation-name: modal10-fade-out;
  }
  .modal10__trace {
    transition: none;
  }
  .modal10__passed,
  .modal10__failed {
    animation: none;
  }
  .modal10__spinner,
  .modal10__publish svg {
    animation-duration: 2400ms;
  }
}

/*
  Page layout — the canvas this resource is presented on. Adjust or drop it
  when placing the resource inside your own layout.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.5;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(to bottom, #fafafa, #f4f4f5);
}
p {
  margin: 0;
}
.modal10-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem;
}
.modal10-layout__app {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 60rem;
  height: 48rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 18px 44px -20px rgba(0, 0, 0, 0.18);
  transform: translateZ(0);
}
@media (min-width: 25rem) {
  .modal10-layout__app {
    height: 46rem;
  }
}
.modal10-layout__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid oklch(0.97 0 0);
  padding: 0.875rem 1.5rem;
}
.modal10-layout__heading {
  min-width: 0;
}
.modal10-layout__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: oklch(0.205 0 0);
}
.modal10-layout__meta {
  font-size: 0.75rem;
  line-height: 1rem;
  color: oklch(0.556 0 0);
}
.modal10-layout__publish {
  display: flex;
  height: 2.25rem;
  align-items: center;
  border: 0;
  border-radius: 0.5rem;
  background: oklch(0.205 0 0);
  padding: 0 0.875rem;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  outline: none;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal10-layout__publish:hover {
  background: oklch(0.371 0 0);
}
.modal10-layout__publish:focus-visible {
  outline: 2px solid oklch(0.205 0 0);
  outline-offset: 2px;
}
.modal10-layout__list {
  margin: 0;
  padding: 0 1.5rem;
  list-style: none;
}
.modal10-layout__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: oklch(0.371 0 0);
}
.modal10-layout__list li + li {
  border-top: 1px solid oklch(0.97 0 0);
}
.modal10-layout__list span {
  width: 6rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: oklch(0.97 0 0);
}
@media (min-width: 40rem) {
  .modal10-layout__app {
    height: 34rem;
  }
}
