.app-launch-dialog {
  width: min(1180px, calc(100vw - 64px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 30px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 100px rgb(17 18 23 / 24%);
  overflow: auto;
  overscroll-behavior: contain;
}
.app-launch-dialog::backdrop { background: rgb(17 18 23 / 55%); backdrop-filter: blur(7px); }
html:has(.app-launch-dialog[open]) { overflow: hidden; }
.app-launch-layout { display: grid; grid-template-columns: 1.18fr 1fr; }
.app-launch-media { position: relative; min-width: 0; background: #201e2d; overflow: hidden; border-radius: 29px 0 0 29px; align-self: stretch; }
.app-launch-media video { display: block; width: 100%; height: 100%; min-height: 100%; aspect-ratio: 1; object-fit: contain; }
.app-launch-playback { position: absolute; inset-inline-start: 20px; bottom: 20px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / 50%); border-radius: 50%; background: rgb(17 18 23 / 72%); color: white; cursor: pointer; }
.app-launch-playback svg { width: 18px; height: 18px; }
.app-launch-close { position: absolute; inset-inline-end: 16px; top: 16px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.app-launch-close:hover { background: var(--soft); }
.app-launch-close svg { width: 18px; height: 18px; }
.app-launch-content { min-width: 0; padding: 34px 40px 26px; display: flex; flex-direction: column; justify-content: center; }
.app-launch-status { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; color: var(--pink-dark); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.app-launch-status::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--pink); }
.app-launch-dialog h2 { max-width: none; margin: 0 0 18px; font-family: var(--font-heading); font-weight: 900; font-size: clamp(2rem, 3.1vw, 2.5rem); line-height: 1.1; letter-spacing: -0.045em; text-wrap: balance; }
.app-launch-dialog h2 span { display: block; font-family: inherit; }
.app-launch-accent { color: var(--pink-dark); }
.app-launch-body { margin: 0 0 24px; color: var(--muted); font-size: 0.97rem; line-height: 1.65; }
.app-launch-methods { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.app-launch-methods legend { margin-bottom: 10px; padding: 0; color: var(--ink); font-weight: 650; font-size: 0.84rem; }
.app-launch-options { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; background: #f6f4f6; border-radius: 12px; }
.app-launch-option { position: relative; cursor: pointer; }
.app-launch-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.app-launch-option span { display: flex; align-items: center; justify-content: center; padding: 11px 8px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); font-size: 0.85rem; font-weight: 650; }
.app-launch-option input:checked + span { color: var(--pink-dark); border-color: #eed4e1; background: white; box-shadow: 0 2px 5px rgb(17 18 23 / 3%); }
.app-launch-option input:focus-visible + span { outline: 3px solid var(--pink-dark); outline-offset: 1px; }
.app-launch-field { display: block; margin: 0 0 7px; font-weight: 650; font-size: 0.82rem; }
.app-launch-input { display: block; width: 100%; height: 52px; padding: 0 15px; border: 1px solid #cfc9d1; border-radius: 10px; color: var(--ink); background: var(--paper); font-size: 1rem; }
.app-launch-input:focus { outline: 2px solid var(--pink-dark); outline-offset: 2px; border-color: var(--pink-dark); }
.app-launch-hint { margin: 7px 0 0; color: var(--muted); font-size: 0.76rem; line-height: 1.5; }
.app-launch-consent { display: flex; align-items: flex-start; gap: 9px; margin-block: 17px; cursor: pointer; color: var(--muted); font-size: 0.77rem; line-height: 1.5; }
.app-launch-consent input { width: 17px; height: 17px; flex: 0 0 17px; margin: 2px 0 0; accent-color: var(--pink-dark); }
.app-launch-submit { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 52px; border: 0; border-radius: 11px; background: var(--pink-dark); color: white; font-size: 0.96rem; font-weight: 750; cursor: pointer; }
.app-launch-submit:hover { background: #a30855; }
.app-launch-submit:disabled { opacity: 0.65; cursor: wait; }
.app-launch-submit svg { width: 19px; height: 19px; flex: 0 0 19px; }
.app-launch-fineprint { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 12px 0 0; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }
.app-launch-fineprint a { text-decoration: underline; text-underline-offset: 3px; }
.app-launch-later { display: block; margin: 18px auto 0; padding: 6px; border: 0; background: transparent; color: var(--muted); font-size: 0.78rem; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.app-launch-error { color: #a01338; font-size: 0.84rem; line-height: 1.5; margin: 0 0 14px; }
.app-launch-success-mark { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: #e2f4f2; color: #087575; margin-bottom: 26px; }
.app-launch-success-mark svg { width: 28px; height: 28px; }
.app-launch-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.app-launch-dialog [hidden] { display: none !important; }
.app-launch-reopen { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 25; display: flex; align-items: center; gap: 10px; padding: 13px 18px; border: 1px solid #edd4e1; border-radius: 50px; background: var(--paper); color: var(--pink-dark); box-shadow: 0 5px 22px rgb(17 18 23 / 9%); font-size: 0.84rem; font-weight: 700; cursor: pointer; }
.app-launch-reopen svg { width: 18px; height: 18px; }
.app-launch-reopen[hidden] { display: none; }
:dir(rtl) .app-launch-media { border-radius: 0 29px 29px 0; }
:dir(rtl) .app-launch-submit svg { transform: rotate(180deg); }
@media (max-width: 850px) {
  .app-launch-dialog { width: min(650px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border-radius: 25px; }
  .app-launch-layout { grid-template-columns: 1fr; min-height: 0; }
  .app-launch-media, :dir(rtl) .app-launch-media { border-radius: 24px 24px 0 0; }
  .app-launch-media video { height: auto; min-height: 0; width: 100%; aspect-ratio: 1; }
  .app-launch-content { padding: 30px 28px 25px; }
  .app-launch-dialog h2 { font-size: clamp(2rem, 6.5vw, 2.6rem); }
  .app-launch-close { position: sticky; float: right; margin-inline-start: -40px; margin-bottom: -40px; top: 12px; inset-inline-end: 12px; transform: translateX(-12px); }
  :dir(rtl) .app-launch-close { float: left; transform: translateX(12px); }
  .app-launch-status { margin-bottom: 15px; }
  .app-launch-body { margin-bottom: 20px; }
  .app-launch-playback { inset-inline-start: 16px; bottom: 16px; }
}
@media (max-width: 380px) {
  .app-launch-content { padding-inline: 22px; }
  .app-launch-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .app-launch-option span { font-size: 0.8rem; }
}
