.nq-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #142e45bd;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(12px, 4vh, 40px) 20px;
  color: #2e4a51;
  font:
    15px/1.5 system-ui,
    sans-serif;
}
.nq-overlay[hidden] {
  display: none;
}
.nq-overlay * {
  box-sizing: border-box;
}
.nq-panel {
  width: min(940px, 100%);
  margin: auto;
  border: 2px solid #284b60;
  border-radius: 14px;
  background: #faf6e8;
  box-shadow:
    0 7px 0 #18394b,
    0 25px 90px #142e4555;
  overflow: hidden;
}
.nq-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px 23px;
  border-bottom: 1px solid #dad7bf;
  background: #f2efdc;
}
.nq-eyebrow {
  font: 700 10px/1.6 monospace;
  letter-spacing: 2px;
  color: #786e4a;
}
.nq-heading h2 {
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.7px;
  margin: 8px 0;
  color: #294b59;
}
.nq-heading p {
  font-size: 13px;
  margin: 0;
  color: #66766e;
}
.nq-icon-button {
  font: 24px/1 system-ui;
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  background: transparent;
  color: #536b69;
  border: 1px solid #bcc9bb;
  border-radius: 50%;
  cursor: pointer;
}
.nq-editor {
  position: relative;
  width: min(320px, 100%);
  padding: 24px;
  border: 0;
  border-radius: 20px;
  background: #fbf7e9;
  box-shadow: 0 18px 45px #152e4266;
}
.nq-accessible-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.nq-editor-close { position: absolute; right: 10px; top: 8px; display: grid; place-items: center; width: 32px; height: 32px; background: transparent; border: 0; color: #708575; padding: 0; font: 22px/1 system-ui; cursor: pointer; }
.nq-editor .nq-avatar-circle { width: 98px; height: 98px; margin: 0 auto 20px; overflow: hidden; border: 0; border-radius: 50%; background: #e4ebd5; box-shadow: none; }
.nq-avatar-circle img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.nq-editor-name { margin-bottom: 18px; }
.nq-editor-name label { display: block; margin: 0 0 5px; font-size: 12px; color: #647767; }
.nq-editor-name input { display: block; width: 100%; min-width: 0; min-height: 41px; border: 0; border-bottom: 1px solid #aebfa9; border-radius: 0; padding: 8px 1px; background: transparent; font: 15px/1.5 system-ui; color: #2e5864; }
.nq-editor-name input::placeholder { color: #8c9a86; }
.nq-editor-row { display: grid; grid-template-columns: 51px minmax(0,1fr); gap: 8px; align-items: center; min-width: 0; margin: 0 0 13px; padding: 0; border: 0; }
.nq-editor-row > span { font-size: 12px; color: #647767; }
.nq-swatches { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 3px; }
.nq-swatch { position: relative; width: 25px; height: 25px; flex: none; border: 3px solid #fbf7e9; outline: 1px solid #c5ceb8; border-radius: 50%; background: var(--swatch); cursor: pointer; padding: 0; }
.nq-swatch::before { content: ''; position: absolute; inset: -7px; border-radius: 50%; }
.nq-swatch[aria-pressed=true] { outline: 2px solid #347887; box-shadow: 0 0 0 4px #dfebe0; }
.nq-swatch[aria-pressed=true]::after { content: ''; position: absolute; bottom: -4px; right: -4px; width: 8px; height: 8px; background: #347887; border: 2px solid #fbf7e9; border-radius: 50%; }
.nq-swatch:disabled { opacity: .35; cursor: default; }
.nq-avatar-cycle { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 38px; color: #355e66; }
.nq-avatar-cycle button { position: relative; width: 30px; height: 30px; flex: none; border: 1px solid #cbd6be; border-radius: 50%; background: transparent; color: #587967; font: 18px/1 system-ui; padding: 0; cursor: pointer; }
.nq-avatar-cycle button::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; }
.nq-avatar-cycle output { min-width: 0; font-size: 13px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nq-editor-play { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px; margin-top: 18px; padding: 10px 15px; border: 1px solid #426e59; border-radius: 24px; background: #426e59; color: #fff8df; font: 650 13px/1.4 system-ui; cursor: pointer; }
.nq-editor-skip { display:block;width:100%;min-height:40px;margin:6px 0 0;padding:8px;border:0;background:transparent;color:#647767;font:13px/1.4 system-ui;cursor:pointer;text-decoration:underline;text-underline-offset:3px; }
.nq-editor-skip:hover { color:#2e5864; }
.nq-editor .nq-status { margin: 12px 0 0; }
.nq-editor .nq-status:empty { margin: 0; }
@media(max-width:360px) {
  .nq-overlay { padding-left:12px; padding-right:12px; }
  .nq-editor { padding:20px; }
}

.nq-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid #8aabac;
  border-radius: 5px;
  background: #eef1e5;
  color: #325964;
  font: 700 12px/1.5 system-ui;
  cursor: pointer;
  text-decoration: none;
}
.nq-button.primary {
  background: #285d6d;
  border-color: #214d5e;
  color: #fff8df;
  box-shadow: 0 3px 0 #183d4c;
}
.nq-button:hover {
  filter: brightness(1.08);
}
.nq-button:disabled {
  opacity: 0.5;
  cursor: default;
  filter: none;
}
.nq-overlay :focus-visible,
.nq-hall-invite :focus-visible {
  outline: 3px solid #b76b3e;
  outline-offset: 4px;
}
.nq-status {
  font-size: 12px;
  color: #82602e;
  min-height: 20px;
  margin: 0 32px 16px;
}
.nq-status:empty {
  margin: 0;
  min-height: 0;
}
.nq-compose {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  padding: 28px 32px;
  align-items: center;
}
.nq-compose > img {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(-2deg);
  box-shadow: 0 8px 20px #4a533422;
  border: 1px solid #d4c9a6;
  border-radius: 6px;
}
.nq-compose-copy h3 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin: 8px 0 12px;
}
.nq-compose-copy p {
  font-size: 12px;
  line-height: 1.7;
  color: #657369;
  margin: 0 0 12px;
}
.nq-inline-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}
.nq-text-button {
  font: 600 11px/1.6 system-ui;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #9dac9b;
  color: #3c6872;
  padding: 2px 0;
  cursor: pointer;
}
.nq-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 10px;
  line-height: 1.6;
  color: #6f7869;
  margin: 0 0 13px;
}
.nq-consent input {
  margin-top: 3px;
  flex: none;
  accent-color: #285d6d;
}
.nq-withdraw {
  margin-top: 14px;
  color: #97604c;
}
.nq-wall-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #dad7bf;
  margin: 0 32px;
  padding: 21px 0 16px;
}
.nq-wall-heading h3 {
  font-size: 16px;
  margin: 0;
}
.nq-wall-heading span {
  font: 11px monospace;
  color: #7a8171;
}
.nq-postcard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 32px 24px;
}
.nq-postcard {
  border: 1px solid #d9d7bc;
  border-radius: 5px;
  overflow: hidden;
  background: #fffdf3;
}
.nq-postcard a {
  display: block;
}
.nq-postcard img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  background: #e2e8cf;
}
.nq-postcard > div {
  padding: 12px 14px;
}
.nq-postcard h4 {
  font-size: 14px;
  margin: 0;
  color: #355762;
  overflow-wrap: anywhere;
}
.nq-postcard p {
  font-size: 11px;
  margin: 4px 0;
  color: #73806d;
  overflow-wrap: anywhere;
}
.nq-postcard time {
  font: 9px monospace;
  color: #97977f;
}
.nq-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 30px 20px;
  border: 1px dashed #c3c9b4;
  border-radius: 8px;
  background: #f2f1df;
  color: #71816e;
}
.nq-empty > span {
  font-size: 40px;
  color: #9b9e75;
}
.nq-empty h4 {
  font-size: 16px;
  margin: 10px 0;
  color: #466665;
}
.nq-empty p {
  font-size: 12px;
  margin: 0 0 14px;
}
.nq-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 32px 24px;
}
.nq-pagination > span {
  font: 11px monospace;
  color: #6d7d70;
}
.nq-hall-invite {
  margin: 24px 0 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #b9c9b1;
  background: #eaf0dc;
  border-radius: 8px;
  text-align: left;
}
.nq-hall-invite > span {
  font-size: 32px;
  color: #648779;
}
.nq-hall-invite h3 {
  font-size: 14px;
  margin: 0 0 5px;
  color: #315762;
}
.nq-hall-invite p {
  font-size: 11px;
  margin: 0;
  color: #6d7c66;
}
.nq-hall-invite .nq-button {
  flex: none;
  margin-left: auto;
}
.nq-trainer-shortcut {
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.nq-preview-empty {
  text-align: center;
  padding: 50px 20px;
  color: #71816e;
}
@media (max-width: 680px) {
  .nq-overlay {
    padding: 12px 10px;
  }
  .nq-heading {
    padding: 20px;
  }
  .nq-compose {
    grid-template-columns: 1fr;
    padding: 24px 22px;
    gap: 25px;
  }
  .nq-compose > img {
    max-width: 450px;
    margin: auto;
  }
  .nq-compose-copy h3 {
    font-size: 21px;
  }
  .nq-postcard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 20px 20px;
  }
  .nq-wall-heading {
    margin: 0 20px;
  }
  .nq-pagination {
    padding: 0 20px 20px;
  }
  .nq-status {
    margin: 0 20px 16px;
  }
  .nq-hall-invite {
    flex-wrap: wrap;
    padding: 15px;
  }
  .nq-hall-invite > div {
    flex: 1;
    min-width: 150px;
  }
  .nq-hall-invite .nq-button {
    width: 100%;
    margin: 5px 0 0;
  }
  .nq-postcard > div {
    padding: 10px;
  }
  .nq-postcard h4 {
    font-size: 12px;
  }
  .nq-pagination .nq-button {
    padding: 9px 12px;
    font-size: 11px;
  }
}
#hudTrainerName {
  display: inline-block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}
#titleOptions [hidden] {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .nq-compose > img {
    transform: none;
  }
}
