/* Pages: account launch areas and welcome / confirmation dialogs.
   UI order: foundation -> header -> content -> forms -> dialogs -> footer.
   Shared property dependencies and responsive override positions preserve the cascade. */
/* 05 Forms, plans and account controls */
.launch-tool:focus-visible {
  outline: 3px solid white;
  outline-offset: 5px;
}

/* 06 Dialogs and reading controls */
dialog:has(.message-card) {
  width: min(760px,calc(100% - 24px));
  max-height: 90dvh;
  padding: 0;
  border: 2px solid #69afff;
  border-radius: 16px;
  background: #ffffff;
  color: #18343f;
}

dialog::backdrop {
  background: rgb(0 0 0 / .65);
}

.message-card {
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 85dvh;
  box-sizing: border-box;
}

.message-card h2 {
  padding-right: 50px;
  margin: 0;
}

/* 05 Forms, plans and account controls */
.launch-area {
  text-align: center;
  padding: 32px 12px;
}

/* 06 Dialogs and reading controls */
.message-close {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 24px;
  min-width: 44px;
  min-height: 44px;
}

.message-copy {
  overflow: auto;
  white-space: pre-wrap;
  min-height: 0;
  max-height: 55dvh;
  line-height: 1.65;
}

/* 05 Forms, plans and account controls */
.launch-tool {
  position: relative;
  display: inline-block;
  font-size: clamp(24px,5vw,36px);
  font-weight: 800;
  padding: 24px 42px;
  color: white!important;
  background: linear-gradient(225deg,#1689eb,#064bba);
  border: 2px solid #bfe6ff;
  border-radius: 18px;
  box-shadow: inset -3px 3px 12px #ffffff88,0 7px 24px #087de655;
  transition: box-shadow .25s,background .25s;
}

.launch-tool::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 12px;
  border-top: 2px solid white;
  border-right: 2px solid #ffffffbb;
  pointer-events: none;
}

.launch-tool:hover,.launch-tool:focus-visible {
  box-shadow: inset -5px 5px 22px #ffffffbb,0 8px 30px #139fff99;
}

/* 06 Dialogs and reading controls */
.message-card>.scroll-region-shell {
  min-height: 0;
  overflow: hidden;
}

/* 08 Responsive and display overrides */
@media(prefers-reduced-motion:reduce) {
  /* 05 Forms, plans and account controls */
  .launch-tool {
    transition: none;
  }

}

@media(forced-colors:active) {
  /* 05 Forms, plans and account controls */
  .launch-tool {
    border: 3px solid ButtonText;
  }

  /* 06 Dialogs and reading controls */
  .message-card {
    color: CanvasText;
    background: Canvas;
  }

}

/* 05 Forms, plans and account controls */
/* Locked launch controls remain readable without implying they are available. */
.launch-tool:disabled {
  background: #e8ede2!important;
  color: #18343f!important;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
  font-size: clamp(20px,4vw,28px);
}
