.beta-banner.model-release-notice {
  flex: 0 0 auto;
  min-height: 34px;
  background: var(--ds-surface-muted, #f5eee9);
}

.model-release-notice .beta-banner-inner {
  min-height: 34px;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding-block: 4px;
}

.beta-banner.model-release-notice p {
  display: block;
  flex: 0 1 auto;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  color: var(--ds-ink, #171715);
}

.model-release-notice .beta-banner-badge {
  letter-spacing: 0;
}

.model-release-prices,
.model-release-details {
  flex: 0 0 auto;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ds-brand-hover, #ad543c);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.model-release-prices:hover,
.model-release-details:hover {
  color: var(--ds-ink, #171715);
  background: transparent;
  box-shadow: none;
  transform: none;
}

.model-release-prices:focus-visible,
.model-release-details:focus-visible {
  outline: 2px solid var(--ds-brand, #cc785c);
  outline-offset: 3px;
}

.jev-release-backdrop:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 23, 21, .56);
  backdrop-filter: blur(5px);
}

.jev-release-dialog {
  width: min(940px, 100%);
  max-height: min(860px, calc(100dvh - 48px));
  overflow: auto;
  border: 1px solid var(--ds-line-strong, #d9d2ca);
  border-radius: 16px;
  background: var(--ds-surface-canvas, #fffdfa);
  box-shadow: var(--ds-shadow-modal, 0 30px 90px rgba(30, 24, 20, .22));
  color: var(--ds-ink, #171715);
  scrollbar-width: thin;
}

.jev-release-dialog:focus {
  outline: none;
}

.jev-release-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 34px 38px 28px;
  border-bottom: 1px solid var(--ds-line, #e8e2dc);
}

.jev-release-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--ds-brand-hover, #ad543c);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .09em;
}

.jev-release-head h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--ds-font-sans, inherit);
  font-size: clamp(27px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.jev-release-head p {
  max-width: 670px;
  margin: 14px 0 0;
  color: var(--ds-muted, #69645e);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

.jev-release-close {
  width: 40px;
  height: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ds-line, #e8e2dc);
  border-radius: 10px;
  background: var(--ds-surface, #fff);
  box-shadow: none;
  color: var(--ds-muted, #69645e);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.jev-release-close:hover,
.jev-release-close:focus-visible {
  border-color: var(--ds-line-strong, #d9d2ca);
  background: var(--ds-surface-muted, #f5eee9);
  color: var(--ds-ink, #171715);
}

.jev-release-close:focus-visible,
.jev-release-dialog a:focus-visible {
  outline: 2px solid var(--ds-brand, #cc785c);
  outline-offset: 2px;
}

.jev-release-body {
  display: grid;
  gap: 26px;
  padding: 30px 38px 34px;
}

.jev-release-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.jev-flow-step {
  min-width: 0;
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--ds-line, #e8e2dc);
  border-radius: 12px;
  background: var(--ds-surface, #fff);
}

.jev-flow-step.is-result {
  border-color: color-mix(in srgb, var(--ds-brand, #cc785c) 38%, var(--ds-line, #e8e2dc));
  background: color-mix(in srgb, var(--ds-brand, #cc785c) 8%, var(--ds-surface, #fff));
}

.jev-flow-step small {
  color: var(--ds-brand-hover, #ad543c);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
}

.jev-flow-step strong {
  font-size: 14px;
}

.jev-flow-step span {
  min-width: 0;
  color: var(--ds-muted, #69645e);
  font-family: var(--ds-font-mono, ui-monospace, monospace);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.jev-flow-arrow {
  align-self: center;
  color: var(--ds-brand-hover, #ad543c);
  font-size: 18px;
}

.jev-release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jev-release-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
  border: 1px solid var(--ds-line, #e8e2dc);
  border-radius: 999px;
  background: var(--ds-surface-muted, #f5eee9);
  color: var(--ds-muted, #69645e);
  font-size: 11px;
}

.jev-release-meta b {
  color: var(--ds-ink, #171715);
  font-weight: 750;
}

.jev-release-scenarios {
  display: grid;
  gap: 16px;
}

.jev-release-section-head {
  display: grid;
  gap: 4px;
}

.jev-release-section-head > span {
  color: var(--ds-brand-hover, #ad543c);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.jev-release-section-head h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.jev-scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.jev-scenario-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 116px auto 1fr;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--ds-line, #e8e2dc);
  border-radius: 12px;
  background: var(--ds-surface, #fff);
}

.jev-scenario-card h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.jev-scenario-card p {
  margin: 0;
  color: var(--ds-muted, #69645e);
  font-size: 12px;
  line-height: 1.5;
}

.jev-scenario-visual {
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ds-brand, #cc785c) 18%, var(--ds-line, #e8e2dc));
  border-radius: 9px;
  background: var(--ds-surface-muted, #f5eee9);
}

.jev-scenario-visual.is-triage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 7px auto;
  align-content: center;
  gap: 8px 12px;
  padding: 14px;
}

.jev-scenario-visual.is-triage .jev-visual-label {
  color: var(--ds-muted, #69645e);
  font-family: var(--ds-font-mono, ui-monospace, monospace);
  font-size: 11px;
}

.jev-scenario-visual.is-triage b {
  color: var(--ds-brand-hover, #ad543c);
  font-size: 19px;
}

.jev-scenario-visual.is-triage > i {
  position: relative;
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ds-brand, #cc785c) 15%, transparent);
}

.jev-scenario-visual.is-triage > i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 94%;
  border-radius: inherit;
  background: var(--ds-brand, #cc785c);
}

.jev-visual-route {
  grid-column: 1 / -1;
  color: var(--ds-ink, #171715);
  font-family: var(--ds-font-mono, ui-monospace, monospace);
  font-size: 10px;
}

.jev-scenario-visual.is-routing,
.jev-scenario-visual.is-checks {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
}

.jev-scenario-visual.is-routing span,
.jev-scenario-visual.is-checks span {
  min-width: 0;
  min-height: 24px;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ds-muted, #69645e);
  font-size: 9px;
}

.jev-scenario-visual.is-routing span.is-selected {
  border-color: color-mix(in srgb, var(--ds-brand, #cc785c) 26%, var(--ds-line, #e8e2dc));
  background: var(--ds-surface, #fff);
  color: var(--ds-ink, #171715);
}

.jev-scenario-visual.is-routing i,
.jev-scenario-visual.is-checks i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ds-line-strong, #d9d2ca);
}

.jev-scenario-visual.is-routing .is-selected i,
.jev-scenario-visual.is-checks i {
  background: var(--ds-brand, #cc785c);
}

.jev-scenario-visual.is-routing b,
.jev-scenario-visual.is-checks b {
  color: var(--ds-ink, #171715);
  font-size: 9px;
}

.jev-release-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--ds-line, #e8e2dc);
}

.jev-release-footer p {
  max-width: 560px;
  margin: 0;
  color: var(--ds-muted, #69645e);
  font-size: 11px;
  line-height: 1.45;
}

.jev-release-footer > div {
  display: flex;
  gap: 8px;
}

.jev-release-footer a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .16s ease, border-color .16s ease, background-color .16s ease;
}

.jev-release-footer a:active {
  transform: translateY(1px) scale(.98);
}

.jev-release-secondary {
  border: 1px solid var(--ds-line-strong, #d9d2ca);
  background: var(--ds-surface, #fff);
  color: var(--ds-ink, #171715);
}

.jev-release-primary {
  border: 1px solid var(--ds-brand-hover, #ad543c);
  background: var(--ds-brand-hover, #ad543c);
  color: #fff;
}

.jev-release-secondary:hover {
  border-color: var(--ds-ink, #171715);
}

.jev-release-primary:hover {
  border-color: var(--ds-brand-active, #91432f);
  background: var(--ds-brand-active, #91432f);
  color: #fff;
}

body.jev-release-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .model-release-notice .beta-banner-inner {
    justify-content: center;
    gap: 2px 8px;
  }

  .model-release-notice .beta-banner-actions {
    margin-left: 0;
  }

  .beta-banner.model-release-notice p,
  .model-release-prices,
  .model-release-details {
    font-size: 11px;
  }

  .jev-release-backdrop:not([hidden]) {
    place-items: end center;
    padding: 0;
  }

  .jev-release-dialog {
    width: 100%;
    max-height: calc(100dvh - 12px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .jev-release-head {
    gap: 12px;
    padding: 24px 18px 20px;
  }

  .jev-release-head h2 {
    font-size: clamp(25px, 8vw, 34px);
  }

  .jev-release-head p {
    font-size: 13px;
  }

  .jev-release-body {
    gap: 22px;
    padding: 22px 18px 24px;
  }

  .jev-release-flow {
    grid-template-columns: 1fr;
  }

  .jev-flow-step {
    min-height: 76px;
    padding: 14px;
  }

  .jev-flow-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .jev-scenario-grid {
    grid-template-columns: 1fr;
  }

  .jev-scenario-card {
    grid-template-rows: 104px auto 1fr;
  }

  .jev-release-footer {
    grid-template-columns: 1fr;
  }

  .jev-release-footer > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .jev-release-footer a {
    min-width: 0;
    padding-inline: 12px;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .jev-release-footer > div {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jev-release-footer a {
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .jev-release-backdrop:not([hidden]) {
    background: rgba(23, 23, 21, .82);
    backdrop-filter: none;
  }
}
