html[data-working] .g-map {
  cursor: grab;
}
html[data-working] .g-world {
  cursor: grab;
}
html[data-working] .g-map.is-drag,
html[data-working] .is-drag .g-world {
  cursor: grabbing;
}
/* Caption, not a title card. All source credits remain behind an explicit expansion. */
html[data-working] .tt-frame .tt-veil {
  background: linear-gradient(
    0deg,
    rgba(5, 5, 9, 0.59),
    rgba(5, 5, 9, 0.18) 8%,
    transparent 16%
  );
  pointer-events: none;
}
html[data-working] .tt-frame .tt-cap {
  inset: auto 12px 12px;
  max-width: calc(100% - 24px);
  font:
    400 13px/1.3 system-ui,
    sans-serif;
  color: #fff;
  letter-spacing: normal;
  text-shadow:
    0 1px 4px #14101c,
    0 0 2px #09080b;
}
html[data-working] .tt-byline {
  font-size: 13px;
  font-weight: 720;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin: 0 0 2px;
}
html[data-working] .tt-cap .tt-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font:
    500 13px/1.35 system-ui,
    sans-serif;
  letter-spacing: normal;
  max-width: 100%;
  margin: 0;
  color: #fff;
}
html[data-working] .tt-tags {
  line-height: 1;
  white-space: nowrap;
  display: block;
  overflow: hidden;
  margin-top: 2px;
}
html[data-working] .tt-tags a,
html[data-working] .tt-cap .tt-audio {
  display: none;
}
html[data-working] .tt-more {
  color: white;
  font:
    600 12px/1.2 system-ui,
    sans-serif;
  padding: 4px 5px 2px 0;
  min-height: 22px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
html[data-working] .tt-expanded .tt-cap {
  background: #101018df;
  border-radius: 6px;
  padding: 8px;
  max-height: 38%;
  overflow: auto;
  pointer-events: auto;
}
html[data-working] .tt-expanded .tt-title {
  -webkit-line-clamp: unset;
}
html[data-working] .tt-expanded .tt-tags {
  white-space: normal;
  line-height: 1.4;
}
html[data-working] .tt-expanded .tt-tags a {
  display: inline;
}
html[data-working] .tt-expanded .tt-audio {
  display: flex;
}
html[data-working] .tt-cap .tt-credit:not([hidden]) {
  font-size: 12px;
  line-height: 1.35;
}
.tt-create {
  font-size: 14px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  border: 1px solid #aca1c554;
  color: inherit;
  border-radius: 8px;
  padding: 6px 9px;
}
.tt-top .tt-mast {
  order: -1;
}
#nbWelcome {
  color: #f4eef9;
  background: #181523;
  border: 1px solid #675874;
  border-radius: 18px;
  width: min(475px, calc(100vw - 30px));
  max-height: 90dvh;
  padding: 0;
  box-shadow: 0 22px 90px #0009;
}
#nbWelcome::backdrop {
  background: #080711ba;
}
.nb-welcome-sky {
  height: 58px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(ellipse at 19% 110%, #55426e, transparent 60%), #161222;
  border-bottom: 1px solid #ffffff19;
}
.nb-welcome-sky i {
  border: 1px solid #b7a7d474;
  border-radius: 50%;
  position: absolute;
  width: 75%;
  height: 56px;
  left: 11%;
  top: 12px;
  transform: rotate(-11deg);
}
.nb-welcome-sky i:nth-child(2),
.nb-welcome-sky i:nth-child(3) {
  width: 14px;
  height: 14px;
  top: 25px;
  left: 64%;
  background: linear-gradient(135deg, #dac3f8, #514869);
  border: 0;
}
.nb-welcome-sky i:nth-child(3) {
  width: 9px;
  height: 9px;
  top: 42px;
  left: 20%;
  background: #dbad91;
}
.nb-welcome-copy {
  padding: clamp(17px, 4vw, 28px);
}
.nb-welcome-copy h2 {
  font-size: 24px;
  line-height: 1.1;
  margin: 9px 0;
}
.nb-welcome-copy ol {
  padding-left: 22px;
}
.nb-welcome-copy li {
  padding: 4px 0;
  line-height: 1.45;
}
.nb-welcome-copy p,
.nb-welcome-copy li {
  font-size: 14px;
  color: #d9d1e1;
}
.nb-welcome-copy button {
  margin-right: 6px;
}
.identity-panel h2 {
  margin: 5px 0 18px;
}
.nb-id-card,
.plus-row,
.plus-row > a,
.nb-id-card > span {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nb-id-card > span {
  align-items: start;
  flex-direction: column;
  gap: 3px;
}
.nb-id-card > img,
.plus-row img,
#msgrAvatar,
.nb-face-choice img {
  object-fit: cover;
  border-radius: 50%;
  background: #38313e;
}
.nb-id-card > img {
  width: 56px;
  height: 56px;
}
.nb-id-card small {
  font-size: 14px;
}
.nb-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.identity-panel fieldset {
  border: 0;
  margin: 15px 0;
  padding: 0;
}
.identity-panel legend,
.nb-fields label {
  font-size: 13px;
  color: #d1c6d7;
}
.nb-fields input {
  width: 100%;
  margin-top: 5px;
}
.nb-swatches,
.nb-faces {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.nb-swatches label {
  position: relative;
  cursor: pointer;
}
.nb-swatches input,
.nb-file-label input,
.msg-photo input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.nb-swatches i {
  display: block;
  border-radius: 50%;
  background: var(--swatch);
  width: 25px;
  height: 25px;
  border: 3px solid #221d2b;
}
.nb-swatches input:checked + i,
.nb-swatches input:focus-visible + i,
.nb-face-choice[aria-pressed="true"] {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
.identity-panel form p,
.nb-face-shelf p {
  font-size: 13px;
}
.nb-face-shelf {
  margin-top: 20px;
  border-top: 1px solid #ffffff20;
  padding-top: 14px;
}
.nb-faces {
  margin: 10px 0;
}
.nb-face-choice {
  border: 0;
  padding: 0;
  background: none;
  border-radius: 50%;
}
.nb-face-choice img {
  display: block;
  width: 45px;
  height: 45px;
}
.nb-faces > div {
  position: relative;
}
.nb-face-drop {
  position: absolute;
  top: -5px;
  right: -4px;
  background: #26202e;
  color: #fff;
  border: 1px solid #776e83;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  line-height: 1;
}
.nb-file-label,
.msg-photo {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.identity-panel output {
  display: inline-block;
  color: #dacbe4;
  margin: 6px 10px;
  font-size: 13px;
}
.plus-row {
  justify-content: space-between;
  flex-wrap: wrap;
  border-top: 1px solid #ffffff18;
  padding: 9px 1px;
}
.plus-row img {
  width: 38px;
  height: 38px;
}
.plus-row a span,
.plus-notice span {
  overflow-wrap: anywhere;
}
.plus-row a span {
  display: grid;
  gap: 2px;
}
.plus-row small,
.plus-notice small {
  font-size: 12px;
}
.plus-row button + button {
  margin-left: 5px;
}
#circleRows h3 {
  font-size: 15px;
  margin: 16px 0 5px;
}
.plus-notice {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #ffffff1c;
}
.plus-notice small {
  color: #b8acbf;
}
#msgrAvatar {
  width: 36px;
  height: 36px;
  flex: none;
}
#msgrPeer {
  flex: 1;
  overflow-wrap: anywhere;
}
.msgr-main > .msgr-head {
  justify-content: flex-start;
  gap: 10px;
}
.msg-photo:not([hidden]) {
  display: grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 38px;
  border: 1px solid #ffffff38;
  color: #e4d6ef;
  border-radius: 8px;
  margin: 0;
}
.msg-photo:focus-within,
.nb-file-label:focus-within {
  outline: 2px solid #ccb9ea;
}
.chat-photo {
  display: block;
  max-width: min(260px, 100%);
  max-height: 230px;
  object-fit: contain;
  border-radius: 7px;
  margin-top: 4px;
}
.msgr-in input#msgrText {
  min-width: 0;
}
.nano-info {
  padding: 12px;
  border: 1px solid #71627988;
  border-radius: 8px;
  margin: 10px 0;
}
.nano-info summary {
  cursor: pointer;
  font-weight: 650;
}
.nano-info p {
  font-size: 13px;
  color: #c6bccc;
}
.plus-short-file {
  display: grid;
  gap: 5px;
  margin: 8px 0 12px;
}
@media (max-width: 700px) {
  html[data-working] .tt-frame .tt-cap {
    inset: auto 63px max(12px, env(safe-area-inset-bottom)) 12px;
    max-width: none;
  }
  .tt-create span {
    display: none;
  }
  .tt-create {
    font-size: 20px;
    line-height: 1;
  }
  .nb-fields {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .identity-panel form p {
    max-width: 38ch;
  }
  .plus-notice {
    flex-direction: column;
    gap: 3px;
  }
  .plus-row {
    gap: 6px;
  }
  .msgr-in #msgrSend {
    padding-inline: 8px;
  }
}
@media (min-width: 701px) {
  html[data-working] .tt-top {
    grid-template-columns: 1fr auto 1fr auto;
  }
  .tt-mast {
    grid-column: 1;
    grid-row: 1;
  }
  .tt-tabs {
    grid-column: 2;
    grid-row: 1;
  }
  .tt-skip {
    grid-column: 3;
    grid-row: 1;
  }
  .tt-create {
    grid-column: 4;
    grid-row: 1;
  }
}
@media (max-width: 700px) {
  html[data-working] .tt-create {
    position: absolute;
    left: 12px;
    top: max(10px, env(safe-area-inset-top));
    width: 32px;
    height: 32px;
    justify-content: center;
  }
}
/* The confirmation surface is in the top layer even inside the messenger. */
.nb-safety-modal {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 28px));
  max-height: 86dvh;
  overflow: auto;
  color: #f0eafa;
  background: #1b1928;
  border: 1px solid #504763;
  border-radius: 18px;
  padding: 23px;
  box-shadow: 0 20px 90px #0009;
}
.nb-safety-modal::backdrop {
  background: #090814bb;
}
.nb-safety-modal h2 {
  font-size: 1.45rem;
  margin: 7px 0 16px;
}
.nb-safety-modal footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 16px;
}
.nb-safety-modal output,
.nb-security output {
  display: block;
  color: #d8c7ef;
  font-size: 0.88rem;
}
.nb-safety-modal label {
  display: grid;
  gap: 5px;
  margin: 12px 0;
}
.nb-safety-modal input {
  box-sizing: border-box;
  width: 100%;
}
.nb-photo-preview {
  max-height: 38dvh;
  width: 100%;
  object-fit: contain;
  background: #111017;
  border-radius: 11px;
  margin: 9px 0;
}
.nb-preview-caption,
.nb-recipient {
  overflow-wrap: anywhere;
}
.nb-recipient {
  display: grid;
  gap: 3px;
}
.nb-recipient span,
.nb-security small {
  color: #bcb2c9;
}
.nb-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
}
.nb-switch input {
  width: auto;
  flex: none;
}
.nb-security h3 {
  margin: 16px 0 6px;
}
.nb-security hr {
  border: 0;
  border-top: 1px solid #484052;
  margin: 18px 0;
}
.nb-blocked-list > div {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-block: 5px;
}
.msgr-head #msgrPeer {
  min-width: 0;
  overflow-wrap: anywhere;
}
.msgr-head #msgrBlock {
  margin-inline-start: auto;
  flex: none;
  font-size: 0.72rem;
  padding: 6px 9px;
}
.nb-retract {
  display: block;
  margin: 6px 0 3px auto;
}
.nb-safety-modal [hidden],
#nbForgot[hidden],
#msgrBlock[hidden] {
  display: none !important;
}
.nb-studio {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #454054;
  border-radius: 15px;
  background: #1a1822;
  color: #ede9f5;
  min-width: 0;
}
.nb-studio-head h3 {
  margin: 4px 0;
}
.nb-studio-head p,
.nb-studio small {
  color: #c5bdce;
}
.nb-composer {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.nb-phone {
  position: relative;
  aspect-ratio: 9/16;
  max-width: 224px;
  width: 100%;
  justify-self: center;
  overflow: hidden;
  border: 3px solid #595461;
  border-radius: 18px;
  background: #0d0c11;
  isolation: isolate;
}
.nb-phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nb-empty-screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: #c6becf;
  padding: 8px;
  pointer-events: none;
  font-size: 0.8rem;
}
.nb-phone-caption {
  pointer-events: none;
  position: absolute;
  bottom: 40px;
  inset-inline: 0;
  padding: 18px 9px 5px;
  background: linear-gradient(transparent, #000b);
  color: white;
  line-height: 1.25;
  text-shadow: 0 1px 3px #000;
  font-size: 0.78rem;
}
.nb-phone-caption b {
  display: block;
  margin-bottom: 2px;
}
.nb-phone-caption span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.nb-cover-tools {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.nb-cover-tools > label {
  margin: 0;
}
.nb-cover-tools input {
  width: 100%;
  margin: 4px 0;
}
.nb-cover-sample {
  max-width: 100%;
  max-height: 110px;
  border-radius: 8px;
  object-fit: contain;
}
.nb-studio [hidden] {
  display: none !important;
}
.nb-draft-foot {
  margin-top: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.nb-studio output {
  display: block;
  margin-top: 8px;
}
.nb-studio .btn {
  white-space: normal;
}
.plus-short-file output,
.nb-file output {
  overflow-wrap: anywhere;
}
.nb-reset-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}
.msgr-in #msgrText:disabled {
  opacity: 0.7;
}

/* Keep account navigation, badge help, follow and opening the thread as distinct targets. */
.nb-idline {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
  vertical-align: middle;
}
.nb-idline > :first-child,
.nb-person-link,
.nb-peer-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.nb-person-link,
.nb-peer-name,
.msgr-peer-name {
  color: inherit;
  text-decoration: none;
}
.nb-person-link:hover,
.nb-peer-name:hover,
.msgr-peer-name:hover,
.plus-person a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.plus-person,
.nb-rail-user > a {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}
.plus-person small {
  display: block;
}
.plus-row > .plus-person {
  flex: 1 1 auto;
}
.nb-rail-user > a {
  flex: 0 1 auto;
}
.gl-by {
  width: max-content;
}
html[data-working] .tt-owner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 48px;
  height: auto;
  margin: 0;
}
html[data-working] .tt-owner .tt-avatar-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #302535;
  box-shadow: 0 2px 7px #09051280;
}
html[data-working] .tt-avatar-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html[data-working] .tt-owner .tt-follow {
  width: 38px;
  height: 32px;
  position: relative;
  inset: auto;
  transform: none;
  margin: 0;
  isolation: isolate;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #211526;
  box-shadow: none;
}
html[data-working] .tt-owner .tt-follow::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 21px;
  height: 21px;
  border: 1.5px solid #35283d;
  border-radius: 50%;
  background: #e3c6fb;
  box-shadow: 0 1px 3px #140d1c66;
}
html[data-working] .tt-follow[aria-pressed="true"]::before {
  background: #bedeca;
}
html[data-working] .tt-owner :is(a, button):focus-visible,
.tt-creditline a:focus-visible,
.nb-person-link:focus-visible,
.nb-open-chat:focus-visible {
  outline: 2px solid #e4d0ff;
  outline-offset: 2px;
}
.tt-creditline {
  width: max-content;
  max-width: 100%;
  color: white;
  font-weight: 740;
}
.tt-creditline a {
  color: inherit;
}
html[data-working] .tt-cap .tt-creditline .nb-person-link {
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
html[data-working] .tt-creditline .fo-pin {
  pointer-events: auto;
}
.nb-peer-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 5px;
  border-bottom: 1px solid #a790ba29;
}
.nb-peer-row.on {
  background: #b39ac316;
  border-radius: 9px;
}
.nb-peer-avatar,
#msgrAvatarLink:not([hidden]) {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 44px;
  flex: none;
}
.nb-peer-avatar img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.nb-peer-copy {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 1px;
}
.nb-peer-name {
  max-width: 100%;
  font-weight: 680;
  color: #f6eef8;
}
.nb-peer-copy .nb-idline {
  color: #d2bedf;
  font-size: 12px;
}
.nb-last {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 3px 0;
  text-align: left;
  background: none;
  border: 0;
  color: #c4b9ce;
  font-size: 12px;
}
.nb-open-chat {
  display: inline-grid;
  position: relative;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid #9584aa55;
  border-radius: 12px;
  background: #292333;
  color: #e3d3ed;
}
.nb-open-chat:hover,
.nb-last:hover {
  color: white;
}
.nb-open-chat i {
  position: absolute;
  right: -1px;
  top: -2px;
  padding: 0 4px;
  border-radius: 12px;
  background: #e0c2ef;
  color: #27172d;
  font: 700 10px/16px system-ui;
}
.msgr-peer-name {
  display: block;
  color: #f9f4fb;
  font-size: 14px;
  line-height: 1.25;
}
#msgrPeer .nb-idline {
  font-size: 12px;
}
.msgr-side,
.msgr-main,
#msgrThread {
  min-height: 0;
}
#msgrPhotoHint {
  margin: 0;
  padding: 0 12px 8px;
  font: 400 12px/1.4 system-ui;
  color: #c3b9cd;
}
.msg-photo:not([hidden]) {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #302737;
  color: #f3e2ff;
}
.msg-photo .i {
  width: 21px;
  height: 21px;
}
.msg-photo:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}
.msg-photo input:disabled {
  cursor: not-allowed;
}
#msgr .msgr-in {
  align-items: center;
}
#msgr .msgr-in #msgrText {
  flex: 1;
  width: 0;
}
#msgrAvatarLink[hidden],
#msgrPhotoHint[hidden],
.msg-photo[hidden] {
  display: none !important;
}
.ns-recipients {
  margin: 0;
  min-width: 0;
  max-height: 36dvh;
  overflow-y: auto;
  padding: 6px 10px;
  border: 1px solid #58495f;
  border-radius: 10px;
}
.ns-recipients legend {
  padding: 0 5px;
}
.ns-recipient {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ns-recipient label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  cursor: pointer;
}
.ns-recipient input {
  flex: none;
  width: 16px;
  accent-color: #cdb2ec;
}
@media (pointer: coarse) {
  html[data-working] .tt-owner .tt-follow {
    width: 44px;
    height: 44px;
  }
  html[data-working] .tt-owner .tt-avatar-link {
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 700px) {
  .msgr-main > .msgr-head {
    gap: 5px;
    padding: 8px;
  }
  .msgr-head #msgrPeer {
    flex: 1;
  }
  .msgr-head #msgrBlock {
    max-width: none;
    line-height: 1.2;
    white-space: nowrap;
  }
  #msgr .msgr-in {
    padding: 8px;
    gap: 6px;
  }
}
@media (max-height: 630px) {
  html[data-working] .tt-rail {
    gap: 4px;
  }
  html[data-working] .tt-owner .tt-avatar-link {
    width: 32px;
    height: 32px;
  }
  html[data-working] .tt-owner .tt-follow {
    height: 24px;
  }
}
.gl-queue .gl-queue-by {
  padding-inline-start: 96px;
  color: #c6b7ce;
  font-size: 12px;
}
.gl-queue .gl-queue-by a {
  display: inline;
  padding: 0;
  border: 0;
}
.ns-card-author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 4px 0;
  font-size: 12px;
}
.ns-share-dialog .ns-recipient label {
  display: inline-flex;
  margin: 0;
}
