.support-diagnostics-trigger {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  background: transparent;
  color: #eeece5;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  cursor: pointer;
}

.support-diagnostics-trigger:hover,
.support-diagnostics-trigger:focus-visible {
  border-color: #b7c78f;
  color: #c8d69e;
  outline: none;
}

.support-diagnostics-trigger svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.support-diagnostics-progress-trigger {
  margin-top: 14px;
  border-color: rgba(183, 199, 143, 0.42);
  color: #b7c78f;
}

.access-progress:not(.is-error) .support-diagnostics-progress-trigger {
  display: none;
}

.support-diagnostics-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: min(820px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(183, 199, 143, 0.42);
  border-radius: 4px;
  background: #10100e;
  color: #f3f1ea;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
  z-index: 12000;
}

.support-diagnostics-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(3px);
}

.support-diagnostics-card {
  position: relative;
  padding: 28px;
}

.support-diagnostics-card > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 0 56px 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.support-diagnostics-card > header > div { min-width: 0; pointer-events: none; }

.support-diagnostics-card > header img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.9;
}

.support-diagnostics-card > header p {
  margin: 0 0 4px;
  color: #b7c78f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.support-diagnostics-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
  font-weight: 560;
  letter-spacing: 0;
}

.support-diagnostics-close {
  position: absolute;
  z-index: 10;
  top: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #f3f1ea;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.support-diagnostics-intro {
  margin: 22px 0 16px;
  color: #aaa79d;
  font-size: 14px;
  line-height: 1.55;
}

.support-diagnostics-card pre {
  width: 100%;
  min-height: 280px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #090908;
  color: #e8e5dc;
  font: 500 12px/1.72 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.support-diagnostics-status {
  min-height: 20px;
  margin: 12px 0;
  color: #b7c78f;
  font-size: 12px;
}

.support-diagnostics-status.is-error { color: #de947f; }

.support-diagnostics-card > footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-diagnostics-card > footer button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #f3f1ea;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  cursor: pointer;
}

.support-diagnostics-card > footer button:hover,
.support-diagnostics-card > footer button:focus-visible {
  border-color: #b7c78f;
  color: #c8d69e;
  outline: none;
}

.support-diagnostics-card > footer .support-diagnostics-done {
  margin-left: auto;
  border-color: #e7e4da;
  background: #e7e4da;
  color: #11110f;
}

.support-diagnostics-copy-field {
  position: fixed;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 700px) {
  .support-diagnostics-header-trigger {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }
  .support-diagnostics-header-trigger span { display: none; }
}

@media (max-width: 520px) {
  .support-diagnostics-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }
  .support-diagnostics-card { padding: 20px; }
  .support-diagnostics-card > header {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding-right: 48px;
  }
  .support-diagnostics-card > header img { width: 32px; height: 32px; }
  .support-diagnostics-card h2 { font-size: 20px; overflow-wrap: anywhere; }
  .support-diagnostics-close { display: none; }
  .support-diagnostics-card pre { min-height: 250px; padding: 14px; font-size: 11px; }
  .support-diagnostics-card > footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .support-diagnostics-card > footer button { width: 100%; padding-inline: 8px; }
  .support-diagnostics-card > footer .support-diagnostics-done { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .support-diagnostics-dialog::backdrop { backdrop-filter: none; }
}
