.ns {
  color: var(--ink);
  background: var(--bg);
}
.ns-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--jade-dark);
}
.ns-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  pointer-events: none;
}
.ns-hero-inner {
  position: relative;
  padding: 56px 0 48px;
}
.ns-eyebrow,
.ns-kicker {
  margin: 0 0 10px;
  color: #e3cb76;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ns-hero h1 {
  margin: 0;
  max-width: 16em;
  color: #fff;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.ns-lead,
.ns-audience {
  max-width: 42rem;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.65;
}
.ns-audience {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
}
.ns-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.ns-hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
}
.ns-hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.ns-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.ns-stats li {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
.ns-stats strong,
.ns-stats span {
  display: block;
}
.ns-stats strong {
  font-size: 15px;
}
.ns-stats span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.45;
}
.ns-body {
  padding: 22px 0 72px;
}
.ns-offers,
.ns-rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.ns-rules-grid {
  grid-template-columns: 1fr 1fr;
}
.ns-offers article,
.ns-rule {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.ns-offers strong,
.ns-rule h3 {
  display: block;
  margin: 0;
  font-size: 16px;
}
.ns-offers span,
.ns-rule p {
  display: block;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}
.ns-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}
.ns-panel,
.ns-result,
.ns-steps,
.ns-rules,
.ns-example,
.ns-sources {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.ns-panel,
.ns-result {
  padding: 22px;
}
.ns-panel-head h2,
.ns-steps h2,
.ns-example h2,
.ns-sources h2,
.ns-hold h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.ns-panel-head p,
.ns-example-note {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.ns-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.ns-field {
  display: grid;
  gap: 6px;
}
.ns-field label,
.ns-investor legend {
  font-size: 13px;
  font-weight: 600;
}
.ns-field input,
.ns-field select,
.ns-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}
.ns-field textarea {
  min-height: 112px;
  resize: vertical;
}
.ns-field input:focus,
.ns-field select:focus,
.ns-field textarea:focus {
  outline: 2px solid var(--jade-light);
  outline-offset: 1px;
  border-color: var(--jade-light);
}
.ns-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ns-investor {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.ns-investor legend {
  padding: 0 6px;
}
.ns-investor label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 36px;
}
.ns-preview,
.ns-hold {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface);
}
.ns-preview-empty,
.ns-hold p,
.ns-tip p,
.ns-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.ns-preview-dl,
.ns-hold-dl {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
}
.ns-preview-dl div,
.ns-hold-dl div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
}
.ns-preview-dl dt,
.ns-hold-dl dt {
  color: var(--muted);
  font-size: 12px;
}
.ns-preview-dl dd,
.ns-hold-dl dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ns-msg {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f1df;
  color: var(--ink);
  line-height: 1.5;
}
.ns-submit {
  min-height: 46px;
  border: 0;
  cursor: pointer;
}
.ns-submit:disabled {
  cursor: progress;
  opacity: 0.7;
}
.ns-result {
  align-self: start;
}
.ns-risk,
.ns-block {
  margin-top: 14px;
}
.ns-risk {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--jade);
  border-radius: 10px;
  background: var(--surface);
}
.ns-risk[data-risk="similar"],
.ns-risk[data-risk="exact"],
.ns-risk[data-risk="shared"],
.ns-risk[data-risk="prohibited"] {
  border-left-color: var(--gold);
}
.ns-risk strong,
.ns-result h3 {
  display: block;
  margin: 0;
  font-size: 16px;
}
.ns-risk p,
.ns-structure,
.ns-disclaimer,
.ns-result-empty {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.65;
}
.ns-structure {
  color: var(--ink);
  font-weight: 600;
}
.ns-result ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.ns-result li + li {
  margin-top: 8px;
}
.ns-note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.ns-lo {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}
.ns-lo-label {
  display: inline-block;
  margin-right: 8px;
  color: var(--jade-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.ns-disclaimer,
.ns-quota {
  margin-top: 16px;
  font-size: 13px;
}
.ns-draft,
.ns-draft-sub {
  margin: 0;
  font-weight: 600;
  line-height: 1.5;
}
.ns-draft {
  color: var(--ink);
  font-size: 18px;
}
.ns-draft-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.ns-names {
  display: grid;
  gap: 10px;
}
.ns-name {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(198, 161, 58, 0.08), transparent 42%),
    var(--surface);
}
.ns-names {
  counter-reset: ns-rec;
}
.ns-name-style {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  color: var(--jade-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.ns-name-style::before {
  content: counter(ns-rec, decimal-leading-zero);
  counter-increment: ns-rec;
  color: #8a6d22;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}
.ns-result[data-phase="run"] {
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0) 20%, rgba(227, 203, 118, 0.22) 48%, rgba(255, 255, 255, 0) 76%),
    #fff;
  background-size: 220% 100%;
  animation: ns-panel-sheen 2.2s ease-in-out infinite;
}
.ns-result[data-phase="run"] .ns-panel-head::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #168486, #C6A13A, transparent);
  background-size: 200% 100%;
  animation: ns-stage-sheen 1.6s linear infinite;
}
.ns-pending {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.ns-skel {
  height: 74px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f4f8f7 0%, #fff 45%, rgba(227, 203, 118, 0.35) 50%, #fff 55%, #f4f8f7 100%);
  background-size: 220% 100%;
  animation: ns-skel 1.5s ease-in-out infinite;
}
.ns-skel:nth-child(2) { animation-delay: 0.12s; }
.ns-skel:nth-child(3) { animation-delay: 0.24s; }
.ns-skel:nth-child(4) { animation-delay: 0.36s; }
.ns-result[data-phase="done"] .ns-risk,
.ns-result[data-phase="done"] .ns-block,
.ns-result[data-phase="done"] .ns-names,
.ns-result[data-phase="done"] .ns-disclaimer,
.ns-result[data-phase="done"] .ns-quota {
  animation: ns-rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.ns-result[data-phase="done"] .ns-name {
  animation: ns-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--ns-i, 0) * 90ms + 80ms);
}
@keyframes ns-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes ns-panel-sheen {
  from { background-position: 120% 0; }
  to { background-position: -20% 0; }
}
@keyframes ns-skel {
  from { background-position: 120% 0; }
  to { background-position: -20% 0; }
}
.ns-quota {
  color: var(--jade-dark);
  font-weight: 600;
}
.ns-toast {
  position: fixed;
  top: 88px;
  right: 22px;
  z-index: 40;
  display: flex;
  gap: 14px;
  align-items: center;
  width: min(360px, calc(100vw - 28px));
  padding: 14px 16px;
  border: 1px solid rgba(198, 161, 58, 0.55);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(6, 71, 71, 0.16);
  backdrop-filter: blur(12px);
}
.ns-toast[hidden] {
  display: none;
}
.ns-toast[data-phase="run"] {
  animation: ns-toast-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ns-toast[data-phase="done"] {
  animation: ns-toast-out 0.45s ease forwards;
}
.ns-toast-mark {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
}
.ns-toast-mark i {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    conic-gradient(from 30deg, transparent 0 64%, #C6A13A 76%, transparent 88% 100%),
    radial-gradient(circle at 50% 50%, transparent 58%, #168486 59% 70%, transparent 71%);
  animation: ns-toast-spin 1.5s linear infinite;
}
.ns-toast-mark::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #075B5B;
  box-shadow: 0 0 0 5px rgba(22, 132, 134, 0.14);
}
.ns-toast-copy {
  flex: 1;
  min-width: 0;
}
.ns-toast-kicker,
.ns-toast-label {
  margin: 0;
}
.ns-toast-kicker {
  color: #075B5B;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.ns-toast-label {
  margin-top: 3px;
  color: var(--ink);
  font-weight: 600;
}
.ns-toast .ns-stages {
  display: flex;
  gap: 5px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.ns-toast .ns-stages li {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(7, 91, 91, 0.14);
}
.ns-toast .ns-stages li span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.ns-toast .ns-stages li[data-state="done"] {
  background: #168486;
}
.ns-toast .ns-stages li[data-state="run"] {
  background: linear-gradient(90deg, #075B5B, #e3cb76, #075B5B);
  background-size: 220% 100%;
  animation: ns-stage-sheen 1.6s ease-in-out infinite;
}
@keyframes ns-toast-spin {
  to { transform: rotate(360deg); }
}
@keyframes ns-toast-in {
  from { opacity: 0; transform: translate3d(16px, -8px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes ns-toast-out {
  to { opacity: 0; transform: translate3d(10px, -6px, 0); }
}
@keyframes ns-stage-sheen {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}
.ns-steps,
.ns-rules,
.ns-example,
.ns-sources,
.ns-close {
  margin-top: 20px;
  padding: 22px;
}
.ns-rules-grid {
  margin-top: 16px;
}
.ns-rule {
  background: var(--surface);
}
.ns-steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.ns-steps li {
  padding: 16px;
  border-radius: 10px;
  background: var(--surface);
}
.ns-steps span {
  color: var(--jade-light);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
.ns-steps h3,
.ns-example h2 {
  margin: 8px 0;
  font-size: 18px;
}
.ns-example-card {
  margin-top: 16px;
  padding: 18px;
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: var(--surface);
}
.ns-example-lo {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}
.ns-example-zh,
.ns-example-en {
  margin: 4px 0 0;
  color: var(--muted);
}
.ns-example-card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.ns-example-card li + li {
  margin-top: 8px;
}
.ns-example-card span {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff;
  color: var(--jade-dark);
  font-family: var(--font-mono);
  font-size: 12px;
}
.ns-sources ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 10px 0 18px;
  padding: 0;
  list-style: none;
}
.ns-sources a {
  font-weight: 600;
}
.ns-close {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: var(--jade-dark);
  color: #fff;
}
.ns-close h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}
.ns-close p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}
.ns-close .btn {
  flex: none;
}

@media (max-width: 960px) {
  .ns-layout,
  .ns-offers,
  .ns-rules-grid,
  .ns-steps ol,
  .ns-stats {
    grid-template-columns: 1fr;
  }
  .ns-close {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 640px) {
  .ns-hero-inner {
    padding: 36px 0 32px;
  }
  .ns-panel,
  .ns-result,
  .ns-steps,
  .ns-rules,
  .ns-example,
  .ns-sources,
  .ns-close {
    padding: 16px;
  }
  .ns-split,
  .ns-preview-dl div {
    grid-template-columns: 1fr;
  }
  .ns-submit,
  .ns-actions .btn,
  .ns-close .btn {
    width: 100%;
  }
  .ns-toast {
    top: 72px;
    right: 14px;
    left: 14px;
    width: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ns-result {
    scroll-margin-top: 0;
  }
  .ns-toast,
  .ns-toast-mark i,
  .ns-toast .ns-stages li[data-state="run"],
  .ns-result[data-phase="run"],
  .ns-result[data-phase="run"] .ns-panel-head::after,
  .ns-skel,
  .ns-result[data-phase="done"] .ns-risk,
  .ns-result[data-phase="done"] .ns-block,
  .ns-result[data-phase="done"] .ns-names,
  .ns-result[data-phase="done"] .ns-name,
  .ns-result[data-phase="done"] .ns-disclaimer,
  .ns-result[data-phase="done"] .ns-quota {
    animation: none;
  }
}
