/* NexURLs Core 0.5.0 - discussions */
.nexu-talk { margin-top: 34px; text-align: left; }
.nxt-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.nexu .nxt-title { font-size: 22px; margin: 0; display: flex; align-items: center; gap: 8px; }
.nxt-count { background: #121212; color: #fff; font-size: 13px; border-radius: 999px; padding: 2px 9px; font-family: "Space Grotesk", sans-serif; }
.nxt-tools { display: flex; gap: 8px; align-items: center; }
.nxt-sort { display: inline-flex; background: #fff; border: 1.5px solid #E3DCCF; border-radius: 999px; padding: 3px; }
.nxt-sort button { border: 0; background: transparent; border-radius: 999px; padding: 5px 13px; font-weight: 700; font-size: 13px; color: #6B665E; cursor: pointer; }
.nxt-sort button.is-on { background: #121212; color: #fff; }
.nxt-follow { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #121212; background: transparent; color: #121212; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; cursor: pointer; }
.nxt-follow b { background: #F4F0E8; border-radius: 999px; padding: 0 7px; font-size: 12px; }
.nxt-follow.is-on { background: #FF5A1F; border-color: #FF5A1F; }
.nxt-follow.is-on b { background: rgba(255,255,255,.55); }

/* Composer */
.nxt-form { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1.5px solid #E3DCCF; border-radius: 18px; padding: 14px; margin-bottom: 18px; transition: border-color .15s; }
.nxt-form:focus-within { border-color: #121212; }
.nxt-form--reply { margin: 10px 0 4px; padding: 10px; border-radius: 14px; }
.nxt-form-body { flex: 1; min-width: 0; }
.nxt-form textarea { width: 100%; border: 0; resize: vertical; font: inherit; font-size: 16px; line-height: 1.5; background: transparent; color: #121212; outline: none; padding: 4px 2px; min-height: 48px; box-shadow: none; }
.nxt-form-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.nxt-kinds { display: flex; gap: 6px; margin-right: auto; flex-wrap: wrap; }
.nxt-kind { border: 1.5px solid #E3DCCF; background: #fff; border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 700; color: #6B665E; cursor: pointer; }
.nxt-kind.is-on { border-color: #121212; color: #121212; background: #F4F0E8; }
.nxt-form-msg { font-size: 13px; color: #B3261E; font-weight: 600; margin-right: auto; }
.nxt-kinds + .nxt-form-msg { margin-right: 0; }
.nxt-send { background: #FF5A1F; color: #121212; border: 0; border-radius: 999px; padding: 8px 18px; font-weight: 700; cursor: pointer; font-size: 14px; }
.nxt-send[disabled] { opacity: .6; cursor: wait; }
.nxt-cancel { border: 0; background: transparent; color: #6B665E; font-weight: 700; cursor: pointer; font-size: 14px; }
.nxt-gate { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border: 1.5px dashed #E3DCCF; border-radius: 18px; padding: 14px 16px; margin-bottom: 18px; color: #3A3732; font-weight: 600; }
.nxt-form--reply + .nxt-gate, .nxt-slot .nxt-gate { margin: 10px 0 0; }

/* Avatars */
.nxt-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: 0 0 38px; background: #E3DCCF; display: block; }
.nxt-av--none { background: #E3DCCF; }
.nxt-av--me { width: 36px; height: 36px; flex-basis: 36px; }

/* Threads */
.nxt-list { display: grid; gap: 12px; }
.nxt-thread--top { background: #fff; border: 1.5px solid #E3DCCF; border-radius: 18px; padding: 14px 16px; }
.nxt-c { display: flex; gap: 11px; align-items: flex-start; border-radius: 12px; transition: background-color .6s; }
.nxt-c.is-lit { background: #FFE8DD; }
.nxt-c.is-pending { opacity: .75; }
.nxt-main { flex: 1; min-width: 0; }
.nxt-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; line-height: 1.3; }
.nexu .nxt-name { font-weight: 700; color: #121212; text-decoration: none; font-size: 15px; }
.nexu .nxt-name:hover { color: #E2470F; }
.nexu .nxt-handle { color: #8A8478; font-size: 13px; font-weight: 500; }
.nxt-op { background: #121212; color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.nxt-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: 2px 8px; background: #F4F0E8; color: #6B665E; }
.nxt-tag--question { background: #FFE8DD; color: #B8370B; }
.nxt-tag--tip { background: #E6F2EA; color: #1E7A3A; }
.nxt-to { font-size: 12px; color: #6B665E; }
.nxt-text { margin: 4px 0 0; color: #1E1C19; font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; }
.nxt-text p { margin: 0 0 6px; }
.nxt-text a { color: #E2470F; font-weight: 600; text-decoration: none; }
.nxt-text a:hover { text-decoration: underline; }
.nxt-at { color: #E2470F; font-weight: 700; }
.nxt-gone, .nxt-wait { margin: 4px 0 0; font-size: 14px; color: #6B665E; font-style: italic; }
.nxt-acts { display: flex; align-items: center; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.nxt-acts button, .nexu .nxt-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: #6B665E; font-weight: 700; font-size: 13px; padding: 5px 8px; border-radius: 999px; cursor: pointer; text-decoration: none; }
.nxt-acts button:hover:not([disabled]), .nexu .nxt-link:hover { background: #F4F0E8; color: #121212; }
.nxt-up { border: 1.5px solid #E3DCCF !important; }
.nxt-up.is-on { color: #E2470F !important; border-color: #FF5A1F !important; background: #FFF4EE !important; }
.nxt-up[disabled] { opacity: .55; cursor: default; }
.nxt-del:hover { color: #B3261E !important; }
.nexu .nxt-link { font-weight: 500; }

.nxt-replies { margin: 8px 0 0 18px; padding-left: 16px; border-left: 2px solid #EDE7DC; display: grid; gap: 10px; }
.nxt-replies .nxt-av { width: 30px; height: 30px; flex-basis: 30px; }
.nxt-more { justify-self: start; border: 0; background: transparent; color: #E2470F; font-weight: 700; font-size: 13px; cursor: pointer; padding: 4px 0; }

.nxt-empty { background: #fff; border: 1.5px dashed #E3DCCF; border-radius: 18px; padding: 26px 18px; text-align: center; color: #6B665E; display: grid; gap: 4px; }
.nxt-empty strong { color: #121212; font-family: "Space Grotesk", sans-serif; font-size: 17px; }
.nxt-closed { color: #6B665E; }

@media (max-width: 600px) {
  .nxt-thread--top { padding: 12px; border-radius: 16px; }
  .nxt-replies { margin-left: 4px; padding-left: 10px; }
  .nxt-form { padding: 12px; }
  .nxt-av--me { display: none; }
  .nxt-av { width: 32px; height: 32px; flex-basis: 32px; }
  .nxt-replies .nxt-av { width: 26px; height: 26px; flex-basis: 26px; }
}
