/* —— Chai IA Bot (left floating messenger) —— */
#nsChai {
  --font: "Outfit", system-ui, sans-serif;
  --text: #eef1f5;
  --green: #5eea8a;
  --muted: #8b95a7;
  --orange2: #ffb347;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 240;
  font-family: var(--font);
  color: var(--text);
}
.ns-chai-fab {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(94, 234, 138, 0.35);
  background: linear-gradient(145deg, rgba(18, 24, 33, 0.95), rgba(7, 9, 13, 0.98));
  color: var(--green);
  box-shadow: 0 12px 36px rgba(0,0,0,.45), 0 0 0 1px rgba(240,138,36,.12);
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ns-chai-fab:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(240, 138, 36, 0.55);
  box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 24px rgba(94,234,138,.18);
}
.ns-chai-fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(94, 234, 138, 0.35);
  animation: nsChaiPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes nsChaiPulse {
  0% { transform: scale(0.92); opacity: .7; }
  100% { transform: scale(1.25); opacity: 0; }
}
#nsChai.is-open .ns-chai-fab-pulse { display: none; }

.ns-chai-panel {
  position: absolute;
  left: 0;
  bottom: 72px;
  width: min(360px, calc(100vw - 1.5rem));
  height: min(540px, calc(100vh - 6.5rem));
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(14, 18, 26, 0.96), rgba(8, 10, 14, 0.98));
  border: 1px solid rgba(94, 234, 138, 0.22);
  box-shadow: var(--shadow), 0 0 0 1px rgba(240,138,36,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.ns-chai-panel[hidden] { display: none !important; }

.ns-chai-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .65rem;
  padding: .75rem .85rem;
  background: linear-gradient(90deg, rgba(94,234,138,.12), rgba(240,138,36,.1));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ns-chai-head-left {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  flex: 1 1 auto;
}
.ns-chai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: rgba(94,234,138,.12);
  border: 1px solid rgba(94,234,138,.28);
  flex-shrink: 0;
}
.ns-chai-head-left strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.15;
}
.ns-chai-head-left small {
  color: var(--muted);
  font-size: .72rem;
}
.ns-chai-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .4rem;
  max-width: 68%;
  flex: 0 1 auto;
}
.ns-chai-agent {
  border: 1px solid rgba(240,138,36,.4);
  background: rgba(240,138,36,.14);
  color: #ffd9a8;
  font: inherit;
  font-size: .68rem;
  font-weight: 650;
  line-height: 1.2;
  min-height: 30px;
  padding: .4rem .6rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.ns-chai-agent:hover { background: rgba(240,138,36,.24); }
.ns-chai-x {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.ns-chai-x:hover { color: var(--text); background: rgba(255,255,255,.05); }

.ns-chai-msgs {
  flex: 1;
  overflow-y: auto;
  padding: .85rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(94,234,138,.06), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(240,138,36,.05), transparent 45%);
}
.ns-chai-row {
  display: flex;
  margin: .1rem 0;
}
.ns-chai-user { justify-content: flex-end; }
.ns-chai-bot { justify-content: flex-start; }
.ns-chai-bub {
  max-width: 90%;
  padding: .7rem .85rem;
  border-radius: 14px;
  font-size: .88rem;
  line-height: 1.5;
  word-break: break-word;
}
.ns-chai-content {
  min-width: 0;
}
.ns-chai-content p {
  margin: 0;
}
.ns-chai-content p + p {
  margin-top: .55rem;
}
.ns-chai-content ul,
.ns-chai-content ol {
  margin: .4rem 0 .15rem 1.2rem;
  padding: 0;
}
.ns-chai-content li {
  padding-left: .15rem;
}
.ns-chai-content li + li {
  margin-top: .25rem;
}
.ns-chai-bot .ns-chai-bub {
  background: rgba(18, 24, 33, 0.95);
  border: 1px solid rgba(94,234,138,.18);
  border-bottom-left-radius: 5px;
  color: var(--text);
}
.ns-chai-user .ns-chai-bub {
  background: linear-gradient(135deg, rgba(94,234,138,.28), rgba(46,204,113,.18));
  border: 1px solid rgba(94,234,138,.35);
  border-bottom-right-radius: 5px;
  color: #eefcf3;
}
.ns-chai-bub p { margin: 0; }
.ns-chai-bub p + p { margin-top: .35rem; }
.ns-chai-bub a {
  color: var(--orange2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ns-chai-img {
  display: block;
  max-width: 100%;
  max-height: 160px;
  border-radius: 10px;
  margin-bottom: .4rem;
  object-fit: cover;
}

.ns-chai-typing .ns-chai-bub {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: .7rem .9rem;
}
.ns-chai-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  opacity: .5;
  animation: nsChaiDots 1s infinite ease-in-out;
}
.ns-chai-typing span:nth-child(2) { animation-delay: .15s; }
.ns-chai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes nsChaiDots {
  0%, 80%, 100% { transform: translateY(0); opacity: .35; }
  40% { transform: translateY(-3px); opacity: 1; }
}

.ns-chai-chips[hidden],
#nsChai.is-pawn .ns-chai-chips,
.ns-chai-panel.is-pawn .ns-chai-chips {
  display: none !important;
}
.ns-chai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding: .15rem .75rem .55rem;
}
.ns-chai-chips button {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font: inherit;
  font-size: .72rem;
  font-weight: 600;
  padding: .28rem .55rem;
  border-radius: 999px;
  cursor: pointer;
}
.ns-chai-chips button:hover {
  color: var(--text);
  border-color: rgba(94,234,138,.35);
  background: rgba(94,234,138,.08);
}

.ns-chai-handoff {
  padding: .65rem .85rem;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(240,138,36,.06);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.ns-chai-handoff[hidden] { display: none !important; }
.ns-chai-handoff p {
  margin: 0;
  font-size: .78rem;
  color: var(--muted);
}
.ns-chai-handoff input,
.ns-chai-handoff textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(0,0,0,.25);
  color: var(--text);
  font: inherit;
  font-size: .85rem;
  padding: .45rem .6rem;
  resize: vertical;
}
.ns-chai-handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}
.ns-chai-ghost {
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .78rem;
  padding: .4rem .65rem;
  border-radius: 999px;
  cursor: pointer;
}
.ns-chai-link {
  font-size: .75rem;
  color: var(--orange2);
  margin-left: auto;
}

.ns-chai-emoji {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: .15rem;
  padding: .45rem .55rem;
  max-height: 130px;
  overflow-y: auto;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.28);
}
.ns-chai-emoji[hidden] { display: none !important; }
.ns-chai-emoji button {
  border: 0;
  background: transparent;
  font-size: 1.15rem;
  line-height: 1.4;
  cursor: pointer;
  border-radius: 8px;
  padding: .15rem;
}
.ns-chai-emoji button:hover { background: rgba(255,255,255,.08); }

.ns-chai-preview {
  position: relative;
  padding: .4rem .75rem 0;
}
.ns-chai-preview[hidden] { display: none !important; }
.ns-chai-preview img {
  display: block;
  max-height: 72px;
  border-radius: 10px;
  border: 1px solid rgba(94,234,138,.25);
}
.ns-chai-preview button {
  position: absolute;
  top: .2rem;
  left: calc(.75rem + 56px);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.7);
  color: #fff;
  cursor: pointer;
  font-size: .9rem;
  line-height: 1;
}

.ns-chai-input {
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .55rem .6rem .7rem;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(10, 12, 18, 0.85);
}
.ns-chai-input input[type="text"] {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font: inherit;
  font-size: .88rem;
  padding: .55rem .85rem;
  outline: none;
}
.ns-chai-input input[type="text"]:focus {
  border-color: rgba(94,234,138,.4);
  box-shadow: 0 0 0 2px rgba(94,234,138,.12);
}
.ns-chai-ico {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.05rem;
  cursor: pointer;
  flex-shrink: 0;
}
.ns-chai-ico:hover { color: var(--green); background: rgba(94,234,138,.08); }
.ns-chai-send {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #5eea8a 0%, #2ecc71 55%, #f08a24 160%);
  color: #07110a;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(94,234,138,.28);
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  padding: 0 .55rem;
}
.ns-chai-handoff .ns-chai-send {
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: .45rem .85rem;
}
.ns-chai-send:hover { filter: brightness(1.06); }

@media (max-width: 720px) {
  #nsChai {
    left: .65rem;
    bottom: .75rem;
  }
  .ns-chai-panel {
    width: min(100vw - 1.1rem, 360px);
    height: min(72vh, 520px);
    bottom: 66px;
  }
  .ns-chai-head-actions {
    max-width: 70%;
  }
  .ns-chai-agent {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ns-chai-fab {
    width: 52px;
    height: 52px;
  }
}

/* === Chai Pawn + Releases (ns3) === */
#nsChai.is-pawn .ns-chai-panel,
.ns-chai-panel.is-pawn {
  width: min(640px, calc(100vw - 1.2rem));
  height: min(580px, calc(100vh - 5.5rem));
}
.ns-chai-body {
  display: flex;
  flex: 1;
  min-height: 0;
}
.ns-chai-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.ns-chai-pawn {
  border: 1px solid rgba(94,234,138,.4);
  background: rgba(94,234,138,.1);
  color: #b8ffd0;
  font: inherit;
  font-size: .68rem;
  font-weight: 700;
  padding: .35rem .55rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.ns-chai-pawn.is-on,
.ns-chai-pawn[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(94,234,138,.35), rgba(240,138,36,.25));
  border-color: rgba(240,138,36,.55);
  color: #fff;
}
.ns-chai-side {
  width: 204px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.22);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ns-chai-side[hidden] { display: none !important; }
.ns-chai-side-h {
  padding: .45rem .5rem;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-transform: uppercase;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
}
.ns-chai-side-h span { min-width: 0; }
.ns-chai-hist-sel,
.ns-chai-side-tools .ns-chai-hist-del {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font: inherit;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  padding: .2rem .4rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.ns-chai-hist-sel:hover,
.ns-chai-side-tools .ns-chai-hist-del:hover { color: var(--text); }
.ns-chai-side-tools {
  padding: .35rem .5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: flex-end;
}
.ns-chai-side-tools[hidden] { display: none !important; }
.ns-chai-hist-pick { display: flex; align-items: flex-start; padding-top: .1rem; }
.ns-chai-hist-pick input { width: auto; margin: 0; accent-color: #5eea8a; cursor: pointer; }
.ns-chai-hist-acts { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.ns-chai-hist-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  padding: .28rem .5rem;
  border-radius: 999px;
  background: rgba(255,107,122,.14);
  border: 1px solid rgba(255,107,122,.35);
  color: #ffc4cb;
  cursor: pointer;
}
.ns-chai-hist-del:hover { filter: brightness(1.08); }
.ns-chai-side-list {
  flex: 1;
  overflow-y: auto;
  padding: .45rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.ns-chai-side-empty {
  margin: .4rem;
  font-size: .72rem;
  color: var(--muted);
}
.ns-chai-hist-row {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .4rem .45rem;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.ns-chai-hist-meta strong {
  display: block;
  font-size: .72rem;
  word-break: break-all;
}
.ns-chai-hist-meta small {
  color: var(--muted);
  font-size: .65rem;
}
.ns-chai-hist-dl,
.ns-chai-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  padding: .28rem .5rem;
  border-radius: 999px;
  background: rgba(94,234,138,.16);
  border: 1px solid rgba(94,234,138,.35);
  color: #c8ffe0;
  text-decoration: none;
}
.ns-chai-dl { margin-top: .45rem; }
.ns-chai-hist-dl:hover,
.ns-chai-dl:hover { filter: brightness(1.08); }
.ns-chai-sma-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 3.4rem;
  height: 36px;
  padding: 0 .85rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 220, 140, .75);
  background: linear-gradient(180deg, #fff1c4 0%, #ffd36a 38%, #f08a24 100%);
  color: #2a1604 !important;
  font-size: .78rem !important;
  font-weight: 800;
  letter-spacing: .12em;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
  box-shadow:
    0 0 0 1px rgba(255, 230, 160, .35),
    0 6px 18px rgba(240, 138, 36, .42),
    inset 0 1px 0 rgba(255,255,255,.65);
  cursor: pointer;
  animation: nsChaiSmaShine 2.2s ease-in-out infinite;
}
.ns-chai-sma-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.ns-chai-sma-btn.is-on {
  border-color: rgba(160, 255, 190, .7);
  background: linear-gradient(180deg, #e8ffd4 0%, #8ef0a8 42%, #2ecc71 100%);
  color: #063214 !important;
  box-shadow:
    0 0 0 1px rgba(180, 255, 200, .35),
    0 6px 18px rgba(46, 204, 113, .35),
    inset 0 1px 0 rgba(255,255,255,.6);
}
@keyframes nsChaiSmaShine {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,230,160,.35), 0 6px 18px rgba(240,138,36,.38), inset 0 1px 0 rgba(255,255,255,.65); }
  50% { box-shadow: 0 0 0 1px rgba(255,240,190,.55), 0 8px 24px rgba(255,200,80,.55), inset 0 1px 0 rgba(255,255,255,.8); }
}
.ns-chai-sma-box {
  position: relative;
  margin: .35rem .7rem .15rem;
  padding: .75rem .85rem .85rem;
  border-radius: 14px;
  border: 1px solid rgba(240,138,36,.4);
  background:
    radial-gradient(circle at 12% 0%, rgba(255,210,120,.16), transparent 50%),
    linear-gradient(165deg, rgba(22,18,12,.96), rgba(10,12,16,.96));
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}
.ns-chai-sma-box[hidden] { display: none !important; }
.ns-chai-sma-box strong {
  display: block;
  font-size: .9rem;
  font-weight: 800;
  color: #ffe7c2;
  padding-right: 1.6rem;
}
.ns-chai-sma-box p {
  margin: .35rem 0 .7rem;
  font-size: .78rem;
  color: var(--muted, #b8c0cc);
  line-height: 1.4;
}
.ns-chai-sma-box-x {
  position: absolute;
  top: .4rem;
  right: .45rem;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c8c8c8;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.ns-chai-sma-box-x:hover { color: #fff; background: rgba(255,255,255,.06); }
.ns-chai-sma-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  border: 1px dashed rgba(240,138,36,.55);
  border-radius: 10px;
  background: rgba(240,138,36,.1);
  color: #ffe0b0;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}
.ns-chai-sma-pick:hover {
  background: rgba(240,138,36,.2);
  border-style: solid;
}
.ns-chai-reset {
  border: 1px solid rgba(255,120,90,.4);
  background: rgba(255,90,70,.12);
  color: #ffc4b8;
  font: inherit;
  font-size: .65rem;
  font-weight: 700;
  padding: .35rem .55rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.ns-chai-reset:hover { background: rgba(255,90,70,.22); }
#nsChai.is-pawn .ns-chai-code { display: none !important; }
.ns-chai-dl {
  cursor: pointer;
  font: inherit;
}
.ns-chai-sma-chip {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .75rem 0;
  font-size: .78rem;
  color: #ffd9a8;
}
.ns-chai-sma-chip[hidden] { display: none !important; }
.ns-chai-sma-chip span {
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(240,138,36,.14);
  border: 1px solid rgba(240,138,36,.35);
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ns-chai-sma-chip button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.55);
  color: #fff;
  cursor: pointer;
}
.ns-chai-code {
  margin: .55rem 0;
  padding: .6rem .7rem;
  border-radius: 10px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(94,234,138,.18);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow: auto;
  color: #d7ffe8;
}
.ns-chai-auth {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .5rem;
  align-items: center;
}
.ns-chai-auth .ns-chai-send {
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: .4rem .75rem;
  text-decoration: none;
  color: #07110a;
}
.ns-chai-auth .ns-chai-ghost {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
@media (max-width: 720px) {
  #nsChai.is-pawn .ns-chai-panel,
  .ns-chai-panel.is-pawn {
    width: min(100vw - 1.1rem, 420px);
    height: min(78vh, 560px);
  }
  .ns-chai-side { width: 132px; }
  .ns-chai-pawn { max-width: 5.5rem; overflow: hidden; text-overflow: ellipsis; }
}
.ns-chai-tokens {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-width: 7.6rem;
  padding: .2rem .55rem .2rem .28rem;
  border-radius: 999px;
  border: 1px solid rgba(94,234,138,.45);
  background:
    radial-gradient(circle at 18% 40%, rgba(94,234,138,.22), transparent 55%),
    linear-gradient(135deg, rgba(18,40,28,.92), rgba(12,24,20,.88));
  color: #d8ffe8;
  box-shadow: 0 0 0 1px rgba(94,234,138,.08), 0 6px 18px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06);
  white-space: nowrap;
  animation: nsChaiTokenPulse 2.8s ease-in-out infinite;
}
.ns-chai-tokens[hidden] { display: none !important; }
.ns-chai-token-ring {
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 4px rgba(94,234,138,.45));
}
.ns-chai-token-ring-bg { stroke: rgba(255,255,255,.12); }
.ns-chai-token-ring-fg {
  stroke: #5eea8a;
  stroke-linecap: round;
  transition: stroke-dashoffset .45s ease, stroke .25s ease;
}
.ns-chai-token-meta { display: flex; flex-direction: column; line-height: 1.05; }
.ns-chai-token-meta strong {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #b8ffd0;
}
.ns-chai-token-meta small {
  font-size: .58rem;
  font-weight: 650;
  opacity: .88;
  color: rgba(220,255,235,.9);
}
.ns-chai-tokens.is-full .ns-chai-token-ring-fg { stroke: #5eea8a; }
.ns-chai-tokens.is-mid {
  border-color: rgba(240,138,36,.55);
  background:
    radial-gradient(circle at 18% 40%, rgba(240,138,36,.22), transparent 55%),
    linear-gradient(135deg, rgba(40,28,12,.92), rgba(24,16,8,.88));
}
.ns-chai-tokens.is-mid .ns-chai-token-ring-fg { stroke: #f08a24; }
.ns-chai-tokens.is-low {
  border-color: rgba(255,90,90,.55);
  background:
    radial-gradient(circle at 18% 40%, rgba(255,80,80,.2), transparent 55%),
    linear-gradient(135deg, rgba(40,12,12,.92), rgba(20,8,8,.88));
}
.ns-chai-tokens.is-low .ns-chai-token-ring-fg { stroke: #ff6b6b; }
@keyframes nsChaiTokenPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(94,234,138,.08), 0 6px 18px rgba(0,0,0,.28); }
  50% { box-shadow: 0 0 0 1px rgba(94,234,138,.2), 0 8px 22px rgba(94,234,138,.18); }
}
.ns-chai-progress {
  margin: .15rem .75rem .35rem;
  padding: .45rem .55rem .55rem;
  border-radius: 12px;
  border: 1px solid rgba(94,234,138,.2);
  background: rgba(0,0,0,.28);
}
.ns-chai-progress[hidden] { display: none !important; }
.ns-chai-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  font-size: .72rem;
  color: #c8ffe0;
  margin-bottom: .35rem;
}
.ns-chai-progress-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.ns-chai-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #5eea8a, #f08a24);
  transition: width .4s ease;
}
.ns-chai-progress-bar.is-fail { background: #ff6b6b; }
#nsChai.is-busy .ns-chai-send { opacity: .55; }
.ns-release-body p { margin: 0 0 .45rem; }
.ns-release-body ul { margin: .2rem 0 .55rem; padding-left: 1.15rem; }
.ns-release-body li { margin: .15rem 0; }
.ns-release-body h3,
.ns-release-body h4 {
  margin: .55rem 0 .3rem;
  color: var(--text);
  font-size: .95rem;
}
.ns-releases.is-compact .ns-release-card { padding: .85rem .95rem; }
.ns-releases.is-compact .ns-release-title { font-size: .98rem; }
.ns-releases-page { padding-top: .5rem; }

/* SMA gold shine — high specificity so the input bar cannot flatten it */
#nsChai .ns-chai-input .ns-chai-sma-btn {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 3.35rem;
  height: 36px !important;
  padding: 0 .9rem !important;
  border-radius: 999px !important;
  border: 1px solid #ffe7a0 !important;
  background:
    linear-gradient(180deg, #fff8d8 0%, #ffe17a 22%, #f0b429 55%, #d67a12 100%) !important;
  color: #3a2208 !important;
  font: 800 .8rem/1 var(--font, inherit) !important;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
  box-shadow:
    0 0 0 1px rgba(255, 230, 150, .45),
    0 0 16px rgba(255, 196, 64, .55),
    0 5px 12px rgba(200, 110, 10, .4),
    inset 0 1px 0 rgba(255,255,255,.8),
    inset 0 -2px 3px rgba(140, 70, 0, .28);
  cursor: pointer;
  z-index: 1;
}
#nsChai .ns-chai-input .ns-chai-sma-btn::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -40%;
  width: 42%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.15) 35%, rgba(255,255,255,.85) 50%, rgba(255,255,255,.15) 65%, transparent 100%);
  transform: translateX(-120%) skewX(-18deg);
  animation: nsChaiSmaSweep 2.1s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
#nsChai .ns-chai-input .ns-chai-sma-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 240, 180, .65),
    0 0 22px rgba(255, 210, 80, .7),
    0 6px 14px rgba(200, 110, 10, .45),
    inset 0 1px 0 rgba(255,255,255,.9);
}
#nsChai .ns-chai-input .ns-chai-sma-btn.is-on,
#nsChai .ns-chai-input .ns-chai-sma-btn[aria-expanded="true"] {
  background:
    linear-gradient(180deg, #fff6c8 0%, #ffd45c 25%, #f0a020 58%, #c86a0c 100%) !important;
  color: #3a2208 !important;
}
@keyframes nsChaiSmaSweep {
  0% { transform: translateX(-140%) skewX(-18deg); opacity: 0; }
  12% { opacity: 1; }
  55% { transform: translateX(280%) skewX(-18deg); opacity: 1; }
  56%, 100% { transform: translateX(280%) skewX(-18deg); opacity: 0; }
}

#nsChai:not(.is-pawn) .ns-chai-sma-btn,
#nsChai:not(.is-pawn) .ns-chai-sma-box,
#nsChai:not(.is-pawn) .ns-chai-sma-chip,
#nsChai .ns-chai-input .ns-chai-sma-btn[hidden],
#nsChai .ns-chai-sma-box[hidden],
#nsChai .ns-chai-sma-chip[hidden] {
  display: none !important;
}

#nsChai .ns-chai-content a.ns-chai-go {
  display: inline-flex;
  align-items: center;
  margin: .25rem .25rem 0 0;
  padding: .28rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(94,234,138,.45);
  background: rgba(94,234,138,.16);
  color: #c8ffe0 !important;
  font-weight: 700;
  font-size: .78rem;
  text-decoration: none !important;
  pointer-events: auto !important;
  cursor: pointer;
}
#nsChai .ns-chai-content a.ns-chai-go:hover {
  background: rgba(94,234,138,.28);
}
/* Home updates slider */
#actualizaciones .ns-upd-box{position:relative;max-width:680px;margin:1.1rem 0 0;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(0,0,0,.18));box-shadow:0 16px 40px rgba(0,0,0,.28);overflow:hidden}
#actualizaciones .ns-upd-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none}
#actualizaciones .ns-upd-track::-webkit-scrollbar{display:none}
#actualizaciones .ns-upd-card{min-width:100%;scroll-snap-align:start;padding:1.25rem 1.35rem 1.1rem;box-sizing:border-box}
#actualizaciones .ns-upd-meta{display:flex;align-items:center;gap:.7rem;margin-bottom:.55rem}
#actualizaciones .ns-upd-ver{display:inline-flex;align-items:center;padding:.18rem .55rem;border-radius:999px;background:linear-gradient(90deg,#f3c14b,#d4a017);color:#1a1406;font:700 .75rem/1.2 ui-sans-serif,system-ui;letter-spacing:.02em}
#actualizaciones .ns-upd-card time{color:rgba(255,255,255,.55);font-size:.82rem}
#actualizaciones .ns-upd-card h3{margin:0 0 .55rem;font-size:1.15rem}
#actualizaciones .ns-upd-body{color:rgba(255,255,255,.82);font-size:.95rem;line-height:1.45}
#actualizaciones .ns-upd-body ul{margin:.35rem 0 0;padding-left:1.1rem}
#actualizaciones .ns-upd-body li{margin:.22rem 0}
#actualizaciones .ns-upd-nav{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.55rem .8rem .75rem;border-top:1px solid rgba(255,255,255,.06)}
#actualizaciones .ns-upd-arrow{width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:1.3rem;line-height:1;cursor:pointer}
#actualizaciones .ns-upd-arrow:hover{background:rgba(243,193,75,.22)}
#actualizaciones .ns-upd-dots{display:flex;gap:.4rem}
#actualizaciones .ns-upd-dot{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.25);cursor:pointer}
#actualizaciones .ns-upd-dot.is-on{background:#f3c14b;width:18px;border-radius:999px}

/* ns26 chai input */
#nsChai.notranslate,
#nsChai [translate="no"] { }
.ns-chai-input textarea {
  flex: 1;
  min-width: 0;
  min-height: 38px;
  max-height: 96px;
  resize: none;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font: inherit;
  font-size: .88rem;
  line-height: 1.35;
  padding: .55rem .85rem;
  outline: none;
}
.ns-chai-input textarea:focus {
  border-color: rgba(94,234,138,.45);
}
#nsChai.is-busy .ns-chai-input textarea { caret-color: #5eea8a; }

/* ns29 chai confirm */
.ns-chai-modal {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 8, 12, .58);
  backdrop-filter: blur(10px);
}
.ns-chai-modal[hidden] { display: none !important; }
.ns-chai-modal-card {
  width: min(100%, 320px);
  padding: 1.2rem 1.15rem 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 150, 170, .28);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 120, 140, .16), transparent 52%),
    linear-gradient(165deg, rgba(32, 16, 22, .98), rgba(10, 12, 16, .98));
  box-shadow: 0 22px 48px rgba(0,0,0,.5);
  text-align: center;
}
.ns-chai-modal-ico {
  width: 44px;
  height: 44px;
  margin: 0 auto .65rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: rgba(255, 90, 110, .14);
  border: 1px solid rgba(255, 120, 140, .3);
}
.ns-chai-modal-card strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffe8ec;
}
.ns-chai-modal-card p {
  margin: .45rem 0 1rem;
  font-size: .82rem;
  line-height: 1.4;
  color: rgba(255,255,255,.68);
}
.ns-chai-modal-acts {
  display: flex;
  gap: .5rem;
  justify-content: center;
}
.ns-chai-modal-acts .ns-chai-ghost {
  min-width: 7.2rem;
}
.ns-chai-modal-yes {
  min-width: 7.2rem;
  border: 0;
  border-radius: 999px;
  padding: .48rem .9rem;
  font: inherit;
  font-weight: 800;
  color: #2a0a10;
  cursor: pointer;
  background: linear-gradient(180deg, #ffd0d6 0%, #ff8a9a 42%, #e23d55 100%);
  box-shadow: 0 8px 18px rgba(226, 61, 85, .32);
}
.ns-chai-modal-yes:hover { filter: brightness(1.06); }
