/* Atlas Online: existing checker styling with fail-closed download visibility.
 * Keep this stylesheet in the document head, before the site renders.
 */
html:not([data-atlas-download-ready]) [data-atlas-download],
[data-atlas-download][hidden] {
  display: none !important;
}
atlas-wallet-checker { display: block; min-width: 0; }
.download-dialog .aw-checker {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(212, 171, 71, .23);
  text-align: left;
}
.download-dialog .aw-heading {
  margin: 0 0 9px;
  color: var(--gold-light, #fada80);
  font-family: var(--title, Georgia, serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
}
.download-dialog .aw-description {
  margin: 0 0 19px;
  color: #c5ceda;
  font-size: 13px;
  line-height: 1.65;
}
.aw-form { margin: 0; }
.aw-label { display: block; margin: 0 0 8px; color: #e7ecf2; font-size: 12px; font-weight: 500; }
.aw-row { display: flex; align-items: stretch; gap: 10px; min-width: 0; }
.aw-input {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  border: 1px solid #516070;
  border-radius: 3px;
  background: #0b1522;
  color: #f1f4fa;
  font: 400 14px/1.4 Inter, Arial, sans-serif;
  padding: 13px 12px;
  appearance: none;
  transition: border-color .15s ease;
}
.aw-input::placeholder { color: #92a2b7; opacity: 1; }
.aw-input:hover { border-color: #8c99a9; }
.aw-input:focus-visible { border-color: var(--gold-light, #fada80); outline: 2px solid var(--gold-light, #fada80); outline-offset: 3px; }
.aw-input[aria-invalid="true"] { border-color: #efa7a2; }
.aw-submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin: 0;
  padding: 11px 15px;
  border: 1px solid #a0874a;
  border-radius: 3px;
  background: #1a2633;
  color: var(--gold-light, #fada80);
  font: 500 12px/1.4 Inter, Arial, sans-serif;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.aw-submit svg { width: 17px; height: 17px; }
.aw-submit:hover:not(:disabled) { background: #263340; border-color: var(--gold-light, #fada80); }
.aw-submit:disabled { cursor: wait; opacity: .75; }
.aw-submit.is-checking svg { animation: aw-spin 1s linear infinite; }
.download-dialog .aw-note { margin: 12px 0 0; color: #aebaca; font-size: 11px; line-height: 1.65; }
.aw-result {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 16px;
  padding: 15px 14px;
  border: 1px solid #697588;
  border-radius: 3px;
  background: #142131;
  color: #d9e2ef;
  overflow-wrap: anywhere;
}
.aw-result[hidden] { display: none !important; }
.aw-result-icon { display: block; flex: 0 0 21px; height: 21px; margin-top: 1px; }
.aw-result-icon svg { width: 21px; height: 21px; }
.aw-result-title { display: block; color: inherit; font: 500 13px/1.55 Inter, Arial, sans-serif; }
.download-dialog .aw-result-message { margin: 4px 0 0; color: #d3dce8; font-size: 12px; line-height: 1.65; }
.aw-result[data-state="eligible"] { border-color: #4e967e; background: #102a29; color: #a1e6c8; }
.aw-result[data-state="not_eligible"] { border-color: #9c8459; background: #29271f; color: #f2d79c; }
.aw-result[data-state="invalid"] { border-color: #ae7778; background: #2d202b; color: #ffc1be; }
.aw-result[data-state="unavailable"] { border-color: #71839a; color: #d3e1f5; }
@keyframes aw-spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
  .aw-row { flex-direction: column; gap: 10px; }
  .aw-input { flex-basis: auto; font-size: 16px; }
  .aw-submit { width: 100%; font-size: 13px; }
  .download-dialog .aw-heading { font-size: 18px; }
  .download-dialog .aw-checker { margin-top: 24px; padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .aw-submit.is-checking svg { animation: none; }
  .aw-input, .aw-submit { transition: none; }
}
/* Keep the enlarged download popup usable on shorter laptop screens. */
.dialog-copy.standalone.download-dialog { padding-top: 40px; padding-bottom: 40px; }
.download-dialog h2 { font-size: clamp(30px, 3.3vw, 44px); }
.download-dialog .dialog-emblem { width: 38px; height: 38px; margin-bottom: 17px; }
@media (max-width: 680px) {
  .dialog-copy.standalone.download-dialog { padding: 48px 25px 30px; }
}
