.vk-demo-dialog-layer {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  overflow: auto;
  place-items: center;
  padding: 24px;
  background: transparent;
  backdrop-filter: none;
}

.vk-demo-dialog-layer[hidden],
.vk-demo-dialog-layer [hidden] {
  display: none;
}

body.vk-demo-dialog-open {
  overflow: hidden;
}

.vk-macos-alert,
.vk-license-window {
  color: #242426;
  border: 1px solid rgba(29, 29, 31, 0.2);
  background: #fafafa;
  box-shadow: 0 18px 48px rgba(18, 20, 24, 0.2), inset 0 1px 0 #fff;
  backdrop-filter: none;
}

.vk-macos-alert {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  width: min(400px, calc(100vw - 32px));
  padding: 22px 20px;
  border-radius: 24px;
  animation: vk-dialog-in 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.vk-dialog-app-icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  filter: drop-shadow(0 5px 8px rgba(29, 29, 31, 0.16));
}

.vk-alert-copy {
  align-self: center;
  padding: 0 0 12px 12px;
}

.vk-alert-copy h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 730;
  letter-spacing: -0.025em;
}

.vk-alert-copy p {
  max-width: 480px;
  margin: 0;
  color: rgba(29, 29, 31, 0.78);
  font-size: 14px;
  line-height: 1.35;
}

.vk-macos-alert form {
  grid-column: 1 / -1;
  margin-top: 12px;
}

.vk-macos-alert input {
  width: 100%;
  height: 34px;
  padding: 5px 9px;
  color: #1d1d1f;
  border: 1px solid rgba(29, 29, 31, 0.2);
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 2px rgba(29, 29, 31, 0.05);
  font: inherit;
  font-size: 14px;
}

.vk-macos-alert input:focus {
  border-color: #0a84ff;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.25), inset 0 1px 2px rgba(29, 29, 31, 0.04);
}

.vk-macos-alert input[aria-invalid="true"] {
  border-color: #ff3b30;
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.14);
}

.vk-field-error {
  min-height: 16px;
  margin: 4px 4px 2px;
  color: #c5221f;
  font-size: 11px;
}

.vk-alert-actions {
  display: grid;
  width: min(300px, 78%);
  gap: 7px;
  margin: 6px auto 0;
}

.vk-dialog-button {
  min-height: 38px;
  color: #202023;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.09);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.vk-dialog-button:hover,
.vk-dialog-button:focus-visible {
  outline: none;
  background: rgba(29, 29, 31, 0.15);
}

.vk-dialog-button.is-primary {
  color: #fff;
  background: #0a84ff;
}

.vk-dialog-button.is-primary:hover,
.vk-dialog-button.is-primary:focus-visible {
  background: #0878e9;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.22);
}

.vk-license-window {
  width: min(420px, calc(100vw - 32px));
  overflow: hidden;
  border-radius: 16px;
  font-size: 13px;
  animation: vk-window-in 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.vk-window-titlebar {
  position: relative;
  display: flex;
  height: 32px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(255, 255, 255, 0.54);
}

.vk-window-titlebar strong {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  font-size: 12px;
  font-weight: 690;
}

.vk-traffic-light {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 50%;
  background: #d6d6d8;
}

button.vk-traffic-light {
  background: #ff5f57;
  cursor: pointer;
}

button.vk-traffic-light:hover,
button.vk-traffic-light:focus-visible {
  outline: 2px solid rgba(10, 132, 255, 0.45);
  outline-offset: 2px;
}

.vk-license-content {
  padding: 18px 22px 20px;
}

.vk-license-product {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.vk-license-product img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  filter: drop-shadow(0 5px 8px rgba(29, 29, 31, 0.14));
}

.vk-license-product h2 {
  margin: 0 0 1px;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.vk-license-product p {
  margin: 0 0 6px;
  color: rgba(29, 29, 31, 0.52);
  font-size: 13px;
}

.vk-license-product a,
.vk-support-row a {
  color: #06c;
  font-size: 13px;
  font-weight: 570;
  text-decoration: none;
}

.vk-license-product a:hover,
.vk-support-row a:hover {
  text-decoration: underline;
}

.vk-window-divider {
  height: 1px;
  margin: 14px 0 10px;
  background: rgba(29, 29, 31, 0.12);
}

.vk-window-label {
  margin: 0 0 8px;
  color: rgba(29, 29, 31, 0.52);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.vk-license-card {
  display: grid;
  min-height: 108px;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid rgba(29, 29, 31, 0.48);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
}

.vk-license-card svg {
  width: 18px;
  color: rgba(29, 29, 31, 0.52);
}

.vk-license-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.vk-license-card p {
  margin: 0;
  color: rgba(29, 29, 31, 0.52);
  font-size: 12px;
  line-height: 1.35;
}

.vk-license-card + .vk-window-label {
  margin-top: 10px;
}

.vk-support-row,
.vk-license-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.vk-support-row {
  min-height: 30px;
}

.vk-support-row button,
.vk-license-footer button {
  min-height: 28px;
  padding: 4px 10px;
  color: #202023;
  border: 0;
  border-radius: 9px;
  background: rgba(29, 29, 31, 0.08);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.vk-support-row button:hover,
.vk-support-row button:focus-visible {
  outline: none;
  background: rgba(29, 29, 31, 0.14);
}

.vk-support-status {
  min-height: 16px;
  margin: 3px 0 -2px;
  color: rgba(29, 29, 31, 0.58);
  font-size: 10px;
}

.vk-license-footer {
  color: rgba(29, 29, 31, 0.52);
  font-size: 11px;
}

.vk-license-footer button:disabled {
  color: rgba(29, 29, 31, 0.48);
  cursor: default;
  opacity: 0.74;
}

.vk-output-name-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0 14px;
  padding: 14px 16px;
  border: 1px solid rgba(10, 132, 255, 0.16);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(235, 246, 255, 0.78), rgba(255, 255, 255, 0.72));
}

.vk-output-name-feature p {
  margin: 0;
  color: rgba(29, 29, 31, 0.68);
  font-size: 14px;
  line-height: 1.45;
}

.vk-output-name-feature button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 13px;
  color: #0671d8;
  border: 1px solid rgba(10, 132, 255, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 13px;
  font-weight: 670;
  cursor: pointer;
}

.vk-output-name-feature button:hover,
.vk-output-name-feature button:focus-visible {
  color: #fff;
  outline: none;
  background: #0a84ff;
  box-shadow: 0 7px 18px rgba(10, 132, 255, 0.18);
}

@keyframes vk-dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes vk-window-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

html[dir="rtl"] .vk-window-titlebar,
html[dir="rtl"] .vk-alert-copy,
html[dir="rtl"] .vk-license-content {
  text-align: right;
}

@media (max-width: 640px) {
  .vk-demo-dialog-layer {
    align-items: end;
    padding: 10px;
  }

  .vk-macos-alert,
  .vk-license-window {
    max-height: calc(100dvh - 20px);
    overflow: auto;
  }

  .vk-macos-alert {
    width: min(400px, calc(100vw - 20px));
    padding-inline: 18px;
  }

  .vk-alert-actions {
    width: 100%;
  }

  .vk-license-window {
    width: min(420px, calc(100vw - 20px));
    border-radius: 16px;
  }

  .vk-license-content {
    padding-inline: 18px;
  }

  .vk-license-product {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
  }

  .vk-license-card {
    min-height: 0;
    padding: 18px;
  }

  .vk-output-name-feature {
    align-items: stretch;
    flex-direction: column;
  }

  .vk-output-name-feature button {
    width: 100%;
  }
}

@media (max-width: 340px) {
  .vk-support-row,
  .vk-license-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .vk-support-row button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vk-macos-alert,
  .vk-license-window {
    animation: none;
  }
}
