/* Neon Now — Night Tokyo layout system */
:root {
  --bg: #07040f;
  --bg-elevated: #12081c;
  --surface: #1a0f28;
  --line: rgba(255, 45, 149, 0.28);
  --line-cyan: rgba(61, 231, 255, 0.22);
  --text: #f4e9ff;
  --muted: #9a8fb0;
  --accent: #ff2d95;
  --accent-2: #3de7ff;
  --accent-dim: #c4186e;
  --warm: #ffb347;
  --valid: #5dffb0;
  --buy: #ff5a7a;
  --buy-fill: rgba(255, 90, 122, 0.14);
  --glow: 0 0 20px rgba(255, 45, 149, 0.45);
  --glow-cyan: 0 0 16px rgba(61, 231, 255, 0.4);
  --radius: 10px;
  --radius-sm: 8px;
  --rail-w: 176px;
  --ctrl-h: 36px;
  --font-display: "Orbitron", sans-serif;
  --font-ui: "Exo 2", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body.app-page {
  color: var(--text);
  font-family: var(--font-ui);
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(255, 45, 149, 0.22), transparent 58%),
    radial-gradient(820px 480px at 92% 0%, rgba(61, 231, 255, 0.16), transparent 55%),
    radial-gradient(700px 360px at 50% 110%, rgba(255, 179, 71, 0.08), transparent 60%),
    linear-gradient(180deg, #0d0718 0%, var(--bg) 42%, #05030a 100%);
}

body.app-page::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(244, 233, 255, 0.02) 1px, transparent 1px),
    radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.55) 100%);
  background-size: 100% 4px, auto;
  opacity: 0.5;
  z-index: 0;
}

.nn-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ——— Neon Alley: tight rail + workspace ——— */
.nn-shell-alley {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
}

.nn-rail {
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 12px 18px;
  border-right: 1px solid rgba(255, 45, 149, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 45, 149, 0.1), transparent 38%),
    linear-gradient(90deg, rgba(12, 6, 22, 0.98), rgba(10, 5, 18, 0.92));
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.nn-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--accent);
  padding: 2px;
  flex: 0 0 auto;
  animation: nn-sign-breathe 4.8s ease-in-out infinite;
}

.nn-brand img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: var(--glow), var(--glow-cyan);
  flex: 0 0 auto;
}

.nn-brand-text {
  display: grid;
  gap: 1px;
  line-height: 1.1;
  min-width: 0;
}

.nn-brand-text strong {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: var(--glow), 0 0 28px rgba(61, 231, 255, 0.25);
}

.nn-brand-text small {
  color: var(--accent-2);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

.nn-rail-nav {
  display: grid;
  gap: 2px;
  flex: 1;
  align-content: start;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nn-rail-link {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
  min-width: 0;
}

.nn-rail-link > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nn-rail-link i {
  color: var(--accent-2);
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.85;
  flex: 0 0 auto;
}

.nn-rail-link:hover {
  color: var(--text);
  background: rgba(255, 45, 149, 0.08);
}

.nn-rail-link.is-active {
  color: var(--text);
  border-left-color: var(--accent);
  background: rgba(255, 45, 149, 0.14);
  box-shadow: inset 0 0 20px rgba(255, 45, 149, 0.08);
}

.nn-rail-link.is-active i {
  color: var(--accent);
  opacity: 1;
}

.nn-rail-foot {
  margin-top: auto;
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 45, 149, 0.16);
}

.nn-rail-lane {
  display: block;
  color: var(--warm);
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.nn-rail-desk {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nn-rail-desk a {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.nn-rail-desk a:hover {
  color: var(--accent-2);
}

.nn-topbar {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  min-height: 52px;
  min-width: 0;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(61, 231, 255, 0.14);
  background: rgba(10, 5, 18, 0.72);
  backdrop-filter: blur(12px);
}

.nn-topbar-left {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.nn-role {
  color: var(--warm);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  flex: 0 0 auto;
}

.nn-topbar-desks {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.nn-topbar-desk {
  color: var(--accent-2);
  border: 1px solid rgba(61, 231, 255, 0.35);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.nn-topbar-desk:hover {
  color: var(--text);
  border-color: var(--accent);
}

.nn-topbar-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.nn-workspace {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  max-width: 100%;
  padding: 14px 18px 40px;
  overflow-x: auto;
}

.nn-stage {
  width: min(1240px, 100%);
  min-width: 0;
  max-width: 100%;
  margin: 0 auto;
}

.nn-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(18, 8, 28, 0.88);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
}

.nn-chip i {
  color: var(--accent);
}

.nn-chip-warm {
  border-color: rgba(255, 179, 71, 0.35);
  color: var(--warm);
}

.nn-chip-warm i {
  color: var(--warm);
}

.nn-profile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: min(220px, 42vw);
  flex: 0 1 auto;
  padding: 2px 4px 2px 2px;
  text-decoration: none;
  color: inherit;
  border: 0;
  background: transparent;
  transition: opacity 140ms ease;
}

.nn-profile:hover {
  opacity: 0.9;
}

.nn-profile-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(255, 45, 149, 0.35), rgba(61, 231, 255, 0.2));
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  box-shadow: 0 0 18px rgba(255, 45, 149, 0.25);
}

.nn-profile-meta {
  display: grid;
  gap: 1px;
  line-height: 1.15;
  min-width: 0;
}

.nn-profile-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14ch;
}

.nn-profile-balance {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.03em;
  text-shadow: 0 0 14px rgba(61, 231, 255, 0.4);
}

.nn-chip-cyan {
  border-color: rgba(61, 231, 255, 0.35);
  color: var(--accent-2);
}

a.nn-chip {
  text-decoration: none;
  cursor: pointer;
}

a.nn-chip:hover {
  border-color: rgba(255, 45, 149, 0.45);
  box-shadow: 0 0 12px rgba(255, 45, 149, 0.2);
}

.nn-dock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a0612;
  font-size: 0.68rem;
  font-weight: 800;
}

.nn-pending-badge {
  display: none;
}

.nn-desk-pending-head {
  border-left: 3px solid var(--accent);
  background: rgba(255, 45, 149, 0.08);
}

.nn-desk-pending-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nn-pending-badge[data-pending-on] {
  display: inline-flex;
  background: #ff2d95;
  color: #1a0612;
  box-shadow:
    0 0 8px rgba(255, 45, 149, 0.95),
    0 0 18px rgba(255, 45, 149, 0.7),
    0 0 4px rgba(61, 231, 255, 0.55);
  animation: nn-pending-pulse 1.35s ease-in-out infinite;
}

@keyframes nn-pending-pulse {
  0%,
  100% {
    box-shadow:
      0 0 6px rgba(255, 45, 149, 0.85),
      0 0 14px rgba(255, 45, 149, 0.45);
  }
  50% {
    box-shadow:
      0 0 12px rgba(255, 45, 149, 1),
      0 0 26px rgba(255, 45, 149, 0.75),
      0 0 10px rgba(61, 231, 255, 0.55);
  }
}

.nn-queue-shouts {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.nn-queue-shout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 45, 149, 0.18);
  text-decoration: none;
  color: var(--text);
  background: rgba(18, 8, 28, 0.55);
}

.nn-queue-shouts .nn-queue-shout {
  margin-top: 0;
}

.nn-queue-shout:not(:has([data-pending-on])) {
  display: none;
}

.nn-queue-shout:has([data-pending-on]) {
  border-color: rgba(255, 45, 149, 0.65);
  background: rgba(255, 45, 149, 0.14);
  box-shadow: 0 0 20px rgba(255, 45, 149, 0.28), 0 0 8px rgba(61, 231, 255, 0.22);
}

.nn-queue-shout .nn-field-label {
  margin: 0;
  color: var(--accent-2);
  text-shadow: 0 0 10px rgba(61, 231, 255, 0.35);
}

.nn-queue-shout .nn-pending-badge[data-pending-on] {
  min-width: 32px;
  height: 32px;
  font-size: 1.05rem;
}

.nn-price-danger {
  color: var(--buy);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ——— Shared hero ——— */
.nn-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 45, 149, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 45, 149, 0.14), transparent 48%),
    linear-gradient(320deg, rgba(61, 231, 255, 0.08), transparent 42%),
    rgba(18, 8, 28, 0.88);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.nn-kicker {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nn-hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-shadow: var(--glow), 0 0 30px rgba(61, 231, 255, 0.22);
}

.nn-hero-lead {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 42ch;
}

.nn-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(61, 231, 255, 0.28);
  background: rgba(7, 4, 15, 0.55);
  color: var(--accent-2);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.nn-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--valid);
  box-shadow: 0 0 10px rgba(93, 255, 176, 0.7);
}

.nn-hero-compact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  margin: 0 0 12px;
  border: 0;
  background: none;
  box-shadow: none;
}

.nn-hero-compact .nn-hero-copy {
  display: none;
}

.nn-hero-compact .nn-hero-meta {
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
  font-size: 0.78rem;
}

/* ——— Buttons / fields ——— */
.nn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 0;
  height: var(--ctrl-h);
  min-height: var(--ctrl-h);
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow 140ms ease, transform 140ms ease, background 140ms ease, color 140ms ease;
}

.nn-btn-sm {
  min-height: var(--ctrl-h);
  height: var(--ctrl-h);
  padding: 0 12px;
  font-size: 0.8rem;
}

.nn-btn:disabled {
  opacity: 0.78;
  cursor: not-allowed;
  box-shadow: none;
}

.nn-btn-ghost:disabled {
  opacity: 0.88;
  color: var(--muted);
  border-color: rgba(61, 231, 255, 0.38);
  background: rgba(18, 8, 28, 0.55);
}

.nn-btn-primary {
  color: #1a0612;
  background: linear-gradient(135deg, #ff6bb8, var(--accent));
  box-shadow: var(--glow);
}

.nn-btn-ghost {
  color: var(--accent-2);
  border-color: rgba(61, 231, 255, 0.3);
  background: rgba(18, 8, 28, 0.7);
}

.nn-btn-ghost:hover {
  border-color: var(--accent-2);
  box-shadow: var(--glow-cyan);
}

.nn-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.nn-field-label {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nn-field select,
.nn-field input:not([type="file"]):not([type="radio"]):not([type="checkbox"]),
.nn-auth-captcha input {
  appearance: none;
  width: 100%;
  height: var(--ctrl-h);
  min-height: var(--ctrl-h);
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-cyan);
  background: rgba(7, 4, 15, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.2;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.nn-field select {
  padding-right: 28px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 15px,
    calc(100% - 8px) 15px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.nn-field select:focus,
.nn-field input:not([type="file"]):not([type="radio"]):not([type="checkbox"]):focus,
.nn-auth-captcha input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(61, 231, 255, 0.35), var(--glow-cyan);
}

.nn-field select option {
  background: var(--bg-elevated);
  color: var(--text);
}

.nn-field-bin {
  max-width: none;
  width: 7.5rem;
}

.nn-field-bin input {
  font-family: var(--font-mono);
}

.nn-secret-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.nn-secret-field input {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* ——— Shop: horizontal filter bar + ticket table ——— */
.nn-shop {
  display: grid;
  gap: 12px;
}

.nn-filter-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(61, 231, 255, 0.22);
  background:
    linear-gradient(90deg, rgba(61, 231, 255, 0.06), transparent 40%),
    rgba(18, 8, 28, 0.92);
  min-width: 0;
}

.nn-filter-rail.nn-filter-bar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.nn-filter-rail .nn-filter-bar-label {
  display: none;
}

.nn-filter-bar-label {
  align-self: end;
  padding-right: 4px;
}

.nn-filter-bar-label strong {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}

.nn-shop .nn-filter-bar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.nn-filter-fold {
  display: grid;
  gap: 12px 14px;
  min-width: 0;
}

.nn-filter-fold > summary {
  list-style: none;
  cursor: pointer;
}

.nn-filter-fold > summary::-webkit-details-marker,
.nn-filter-fold > summary::marker {
  display: none;
  content: none;
}

.nn-shop .nn-filter-rail-actions {
  align-self: start;
  padding-top: 4px;
}

.nn-filter-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 0.75fr) minmax(0, 1.25fr) 7.5rem;
  gap: 10px;
  min-width: 0;
}

.nn-filter-fields-shop {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

.nn-filter-ranges {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: end;
}

.nn-range-pair {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.nn-range-pair .nn-field-label,
.nn-limit-toggles .nn-field-label {
  margin: 0;
}

.nn-range-pair input {
  width: 100%;
  min-width: 0;
  height: var(--ctrl-h);
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(8, 4, 16, 0.88);
  color: var(--text);
  font: inherit;
}

.nn-limit-toggles {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nn-limit-toggles .nn-btn.is-active,
.nn-filter-rail-actions .nn-btn.is-active {
  border-color: var(--accent);
  color: #fff;
  background: rgba(255, 45, 149, 0.22);
}

.nn-filter-fields-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nn-filter-rail-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nn-filter-rail-actions .nn-btn {
  width: auto;
  min-height: var(--ctrl-h);
  height: var(--ctrl-h);
}

.nn-info-filters {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.nn-info-filters > .nn-field-label {
  margin-right: 4px;
}

.nn-info-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 45, 149, 0.22);
  background: rgba(12, 6, 22, 0.72);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}

.nn-info-toggle input {
  width: 12px;
  height: 12px;
  accent-color: var(--accent-2);
  cursor: pointer;
}

.nn-info-toggle:has(input:checked) {
  border-color: rgba(61, 231, 255, 0.45);
  color: var(--accent-2);
  background: rgba(61, 231, 255, 0.1);
}

.nn-ticket-info {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  padding-top: 2px;
}

.nn-info-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(61, 231, 255, 0.28);
  background: rgba(61, 231, 255, 0.08);
  color: var(--accent-2);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nn-info-chip.is-empty {
  border-color: rgba(255, 45, 149, 0.16);
  background: transparent;
  color: var(--muted);
}

.nn-kiosk-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.nn-ticket-deck {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 45, 149, 0.26);
  background: rgba(12, 6, 22, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.nn-ticket-deck-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 45, 149, 0.16);
  background: linear-gradient(90deg, rgba(255, 45, 149, 0.1), transparent 55%);
}

.nn-autoboost {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 45, 149, 0.16);
}

.nn-autoboost strong {
  align-self: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.nn-autoboost .nn-field {
  min-width: 110px;
  margin: 0;
}

.nn-autoboost .nn-field-label {
  display: block;
}

.nn-ticket-deck-head h2 {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  color: var(--text);
}

.nn-ticket-deck-head h2 span {
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.nn-ticket-deck-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.nn-ticket-cols,
.nn-ticket {
  display: grid;
  grid-template-columns: 64px minmax(72px, 0.8fr) 78px 52px 52px minmax(88px, 1fr) 48px 56px minmax(90px, 0.8fr) 56px minmax(108px, auto);
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}

.nn-ticket-cols,
.nn-tickets > .nn-ticket:not(.nn-ticket-cart) {
  min-width: 1080px;
}

.nn-ticket-cols {
  min-height: 30px;
  border-bottom: 1px solid rgba(61, 231, 255, 0.12);
  background: rgba(61, 231, 255, 0.03);
  color: var(--accent-2);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nn-tickets {
  display: grid;
  gap: 0;
}

.nn-ticket {
  min-height: 48px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 45, 149, 0.1);
  transition: background 140ms ease;
}

.nn-ticket:last-child {
  border-bottom: 0;
}

.nn-ticket:hover {
  background: rgba(255, 45, 149, 0.07);
}

.nn-ticket-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nn-ticket-check input {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
  cursor: pointer;
}

.nn-ticket-type {
  display: grid;
  gap: 2px;
  justify-items: start;
}

.nn-ticket-type small {
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}

.nn-ticket .nn-bank,
.nn-ticket .nn-country,
.nn-ticket .nn-base {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nn-exp,
.nn-seller,
.nn-valid,
.nn-zip {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.nn-ticket-cart {
  grid-template-columns: 36px minmax(0, 1fr) 64px 72px 40px;
  min-width: 0;
}

.nn-ticket-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.nn-ticket-main .nn-bin {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nn-ticket-main .nn-bank,
.nn-ticket-main .nn-country {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nn-ticket-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.nn-ticket-actions .nn-btn-sm {
  min-height: 30px;
  height: 30px;
  padding: 0 10px;
}

.nn-board {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 45, 149, 0.26);
  background: rgba(12, 6, 22, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  min-width: 0;
}

.nn-board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 45, 149, 0.16);
  background: linear-gradient(90deg, rgba(255, 45, 149, 0.1), transparent 55%);
}

.nn-ticket-deck > .nn-board-head {
  border-bottom: 0;
}

.nn-board-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--text);
}

.nn-board-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.nn-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
}

.nn-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}

.nn-table th,
.nn-table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 45, 149, 0.12);
  vertical-align: middle;
  overflow: visible;
  white-space: nowrap;
}

.nn-table th {
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(61, 231, 255, 0.04);
}

.nn-table td.nn-country {
  color: inherit;
  font-size: inherit;
}

.nn-table .nn-num {
  text-align: left;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

.nn-table .nn-cell-name {
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nn-table tbody tr {
  transition: background 140ms ease;
}

.nn-table tbody tr:hover {
  background: rgba(255, 45, 149, 0.07);
}

.nn-table tbody tr:last-child td {
  border-bottom: 0;
}

.nn-table-purchases {
  min-width: 1080px;
}

.nn-table .nn-mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.nn-table-actions {
  white-space: nowrap;
}

.nn-table th.nn-table-actions,
.nn-table td.nn-table-actions {
  display: table-cell;
  width: 1%;
  overflow: visible;
  white-space: nowrap;
}

.nn-table td.nn-table-actions .nn-btn {
  display: inline-flex;
  margin-right: 6px;
  vertical-align: middle;
}

.nn-table .nn-btn,
.nn-table .nn-btn-sm {
  height: 28px;
  min-height: 28px;
  padding: 0 8px;
  font-size: 0.72rem;
}

.nn-table .nn-btn,
.nn-table .nn-btn-primary,
.nn-table .nn-btn-ghost:hover {
  box-shadow: none;
}

.nn-desk-id {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid rgba(61, 231, 255, 0.28);
  background: rgba(61, 231, 255, 0.08);
  color: var(--accent-2);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
}

.nn-desk-id:hover {
  border-color: var(--accent-2);
  color: #fff;
}

.nn-purchase-row {
  cursor: pointer;
}

.nn-col-check {
  width: 44px;
}

.nn-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.nn-type {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.nn-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 18px;
  padding: 0 6px;
  border-radius: 3px;
  background: #1a1f3a;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nn-brand-visa {
  background: linear-gradient(90deg, #1a1f71, #2a3caa);
}

.nn-brand-mastercard,
.nn-brand-mc {
  background: linear-gradient(90deg, #eb001b, #f79e1b);
}

.nn-brand-amex,
.nn-brand-american-express {
  background: #0077a6;
}

.nn-brand-discover {
  background: #ff6000;
}

.nn-type small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.nn-bank,
.nn-country {
  color: var(--muted);
  font-size: 0.92rem;
}

.nn-bin,
.nn-mono {
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(61, 231, 255, 0.35);
}

.nn-price {
  color: var(--valid);
  font-family: var(--font-mono);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(93, 255, 176, 0.35);
}

.nn-col-buy {
  width: 96px;
  text-align: right;
}

.nn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 52px;
  height: 30px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--buy);
  background: var(--buy-fill);
  color: var(--buy);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease, color 140ms ease;
}

.nn-buy:hover,
.nn-buy.is-pulse {
  color: #fff;
  background: rgba(255, 90, 122, 0.28);
  box-shadow: 0 0 16px rgba(255, 90, 122, 0.4);
}

.nn-buy.is-pulse {
  transform: scale(0.97);
}

/* ——— Shared panels (wallet / referral / stubs) ——— */
.nn-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.nn-panel-grid.nn-panel-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nn-panel-span {
  grid-column: 1 / -1;
}

.nn-panel,
.nn-empty-panel {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 45, 149, 0.24);
  background:
    linear-gradient(160deg, rgba(255, 45, 149, 0.08), transparent 50%),
    rgba(18, 8, 28, 0.9);
  padding: 20px;
}

.nn-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.nn-panel > .nn-auth-form {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nn-panel > .nn-auth-form > .nn-btn {
  margin-top: auto;
}

.nn-form-status:empty {
  display: none;
}

.nn-panel-accent {
  border-color: rgba(61, 231, 255, 0.28);
  background:
    linear-gradient(160deg, rgba(61, 231, 255, 0.1), transparent 50%),
    rgba(18, 8, 28, 0.9);
}

.nn-panel h2,
.nn-empty-panel strong {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.nn-panel-value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-variant-numeric: tabular-nums;
  color: var(--accent-2);
  text-shadow: var(--glow-cyan);
}

.nn-panel-note,
.nn-empty-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.nn-empty-panel {
  margin: 16px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.nn-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
  min-width: 0;
}

.nn-stat-row > div {
  min-width: 0;
}

.nn-stat-row strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nn-empty,
.nn-page-meta {
  color: var(--muted);
}

.nn-empty {
  text-align: center;
  padding: 36px 16px !important;
}

.nn-missing {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius);
}

.nn-missing h2,
.nn-missing h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  color: var(--accent);
}

.nn-missing p {
  margin: 0;
  color: var(--muted);
}

.nn-auth {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  padding: 32px 16px;
  width: 100%;
  max-width: 100%;
}

.nn-auth-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--accent);
  text-decoration: none;
  max-width: min(420px, 100%);
  animation: nn-sign-breathe 4.8s ease-in-out infinite;
}

.nn-auth-brand img {
  border-radius: 14px;
  box-shadow: var(--glow), var(--glow-cyan);
  flex: 0 0 auto;
}

.nn-auth-brand .nn-brand-text strong {
  font-size: 0.92rem;
  letter-spacing: 0.12em;
}

.nn-auth-slot {
  width: min(420px, 100%);
  min-width: 0;
}

.nn-auth-card {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 45, 149, 0.28);
  background:
    linear-gradient(155deg, rgba(255, 45, 149, 0.12), transparent 46%),
    linear-gradient(320deg, rgba(61, 231, 255, 0.08), transparent 40%),
    rgba(18, 8, 28, 0.94);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  padding: 22px;
}

.nn-auth-card-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.55rem);
  letter-spacing: 0.08em;
  color: var(--accent);
  text-shadow: var(--glow);
  word-break: break-word;
}

.nn-auth-card-head p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.nn-auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.nn-auth-captcha {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(61, 231, 255, 0.28);
  color: var(--muted);
  font-size: 0.86rem;
  min-width: 0;
}

.nn-auth-captcha:has(.nn-chip) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.nn-captcha-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nn-wallet-networks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nn-wallet-networks .nn-btn.is-active {
  border-color: rgba(255, 45, 149, 0.55);
  color: var(--text);
  background: rgba(255, 45, 149, 0.12);
}

.nn-auth-submit {
  width: 100%;
}

.nn-auth-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.nn-auth-meta a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 700;
}

.nn-auth-meta a:hover {
  text-decoration: underline;
}

.nn-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes nn-sign-breathe {
  0%,
  100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .nn-brand,
  .nn-auth-brand {
    animation: none;
  }
}

@media (max-width: 1180px) {
  .nn-filter-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .nn-filter-fields,
  .nn-filter-fields-4,
  .nn-filter-fields-shop {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nn-filter-ranges {
    grid-template-columns: 1fr;
  }

  .nn-filter-rail-actions {
    justify-content: flex-start;
  }

  .nn-field-bin {
    width: auto;
  }

  .nn-ticket-cols,
  .nn-tickets > .nn-ticket:not(.nn-ticket-cart) {
    grid-template-columns: 64px minmax(72px, 0.8fr) 76px 52px 52px minmax(80px, 1fr) 48px 56px minmax(90px, 0.8fr) 56px minmax(108px, auto);
  }
}

@media (max-width: 960px) {
  .nn-shell-alley {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
  }

  .nn-rail,
  .nn-topbar,
  .nn-workspace {
    grid-column: 1;
    grid-row: auto;
  }

  .nn-rail {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 45, 149, 0.22);
    overflow: visible;
  }

  .nn-brand {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

  .nn-rail-nav {
    order: 2;
    display: flex;
    flex-wrap: wrap;
    flex: 1 1 100%;
    gap: 4px 6px;
    overflow: visible;
    padding-bottom: 0;
  }

  .nn-rail-sep {
    flex: 0 0 auto;
    margin: 0 4px;
    align-self: center;
    white-space: nowrap;
  }

  .nn-rail-link {
    grid-template-columns: auto auto auto;
    flex: 0 0 auto;
    min-height: 32px;
    padding: 5px 8px;
    font-size: 0.78rem;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .nn-rail-link > span {
    max-width: none;
    overflow: visible;
    text-overflow: unset;
  }

  .nn-rail-link.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }

  .nn-rail-foot {
    order: 3;
    width: 100%;
    margin-top: 0;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 45, 149, 0.16);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
  }

  .nn-rail-lane {
    letter-spacing: 0.08em;
    font-size: 0.62rem;
  }

  .nn-filter-fields,
  .nn-filter-fields-4,
  .nn-filter-fields-shop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nn-field-bin {
    max-width: none;
    width: auto;
  }

  .nn-ticket-cols {
    display: none;
  }

  .nn-tickets > .nn-ticket:not(.nn-ticket-cart) {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "type actions actions"
      "bin bin price"
      "base base exp"
      "seller seller valid"
      "bank bank bank"
      "zip country country"
      "info info info";
    gap: 4px 8px;
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nn-tickets > .nn-ticket:not(.nn-ticket-cart) > .nn-ticket-type { grid-area: type; }
  .nn-tickets > .nn-ticket:not(.nn-ticket-cart) > .nn-base { grid-area: base; }
  .nn-tickets > .nn-ticket:not(.nn-ticket-cart) > .nn-bank { grid-area: bank; }
  .nn-tickets > .nn-ticket:not(.nn-ticket-cart) > .nn-bin { grid-area: bin; }
  .nn-tickets > .nn-ticket:not(.nn-ticket-cart) > .nn-exp { grid-area: exp; }
  .nn-tickets > .nn-ticket:not(.nn-ticket-cart) > .nn-seller { grid-area: seller; }
  .nn-tickets > .nn-ticket:not(.nn-ticket-cart) > .nn-valid { grid-area: valid; }
  .nn-tickets > .nn-ticket:not(.nn-ticket-cart) > .nn-zip { grid-area: zip; }
  .nn-tickets > .nn-ticket:not(.nn-ticket-cart) > .nn-country { grid-area: country; }
  .nn-tickets > .nn-ticket:not(.nn-ticket-cart) > .nn-ticket-info { grid-area: info; grid-column: auto; }
  .nn-tickets > .nn-ticket:not(.nn-ticket-cart) > .nn-price { grid-area: price; justify-self: end; }
  .nn-tickets > .nn-ticket:not(.nn-ticket-cart) > .nn-ticket-actions { grid-area: actions; justify-self: end; }

  .nn-ticket-cart {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    grid-template-areas: none;
    gap: 8px 10px;
    min-width: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nn-ticket-cart > * {
    grid-area: auto;
  }
}

@media (max-width: 900px) {
  .nn-panel-grid.nn-panel-grid-3 {
    grid-template-columns: 1fr;
  }
}

.nn-rail-sep {
  display: block;
  margin: 10px 8px 4px;
  color: var(--warm);
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

.nn-tool-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
  gap: 12px;
  align-items: start;
}

.nn-upload-layout {
  grid-template-columns: 1fr;
}

.nn-sep-field {
  border: none;
  margin: 0 0 10px;
  padding: 0;
}

.nn-sep-picks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.nn-sep-pick {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.nn-sep-pick input {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.nn-sep-pick span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--ctrl-h);
  padding: 0 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(61, 231, 255, 0.28);
  background: rgba(7, 4, 15, 0.72);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.nn-sep-pick span code {
  color: var(--accent-2);
  font-family: var(--font-mono);
}

.nn-sep-pick:has(input:checked) span {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(61, 231, 255, 0.35), var(--glow-cyan);
}

.nn-upload-row {
  padding: 10px;
  border: 1px solid rgba(255, 45, 149, 0.28);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(18, 8, 28, 0.62);
}

.nn-lane-mark {
  display: inline-block;
  min-width: 1.7rem;
  margin-right: 6px;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.nn-file-pick {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: var(--ctrl-h);
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-cyan);
  background: rgba(7, 4, 15, 0.72);
}

.nn-file-pick input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.nn-file-pick-btn {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 45, 149, 0.55);
  background: rgba(255, 45, 149, 0.16);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nn-file-pick-name {
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nn-file-pick-name.is-empty {
  color: var(--muted);
}

.nn-format-map {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.4rem, 1fr));
  gap: 6px;
  margin: 0;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(61, 231, 255, 0.55);
  background: rgba(7, 4, 15, 0.82);
  box-shadow: 0 0 0 1px rgba(61, 231, 255, 0.18), var(--glow-cyan);
}

.nn-format-map:empty {
  display: none;
}

.nn-format-lane {
  appearance: none;
  position: relative;
  display: grid;
  gap: 2px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 6px 22px 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 45, 149, 0.42);
  background: rgba(255, 45, 149, 0.1);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.nn-format-lane:hover,
.nn-format-lane:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 45, 149, 0.55), var(--glow-cyan);
  outline: none;
}

.nn-format-lane b {
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.nn-format-lane em {
  overflow: hidden;
  color: var(--text);
  font-style: normal;
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.nn-format-lane code {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nn-format-lane i {
  position: absolute;
  top: 4px;
  right: 6px;
  color: var(--accent-2);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.nn-format-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.2rem, 1fr));
  gap: 6px;
}

.nn-format-fields .nn-btn {
  width: 100%;
  justify-content: center;
  padding: 0 6px;
}

.nn-upload-progress {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(61, 231, 255, 0.45);
  background: rgba(7, 4, 15, 0.88);
  box-shadow: var(--glow-cyan);
}

.nn-upload-progress[hidden] {
  display: none;
}

.nn-upload-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
}

.nn-upload-progress-track {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.nn-upload-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      -45deg,
      #ff2d95 0 10px,
      #3de7ff 10px 20px
    );
  background-size: 28px 28px;
  animation: nn-upload-stripes 0.7s linear infinite;
  transition: width 180ms ease;
}

.nn-upload-progress.is-indeterminate .nn-upload-progress-bar {
  width: 42%;
}

@keyframes nn-upload-stripes {
  to {
    background-position: 28px 0;
  }
}

.nn-field textarea {
  appearance: none;
  width: 100%;
  min-height: 140px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-cyan);
  background: rgba(7, 4, 15, 0.72);
  color: var(--text);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  outline: none;
  resize: vertical;
}

.nn-field textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(61, 231, 255, 0.35), var(--glow-cyan);
}

.nn-form-status {
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.8rem;
}

.nn-form-status.is-error {
  color: var(--buy);
}

.nn-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(61, 231, 255, 0.28);
  background: rgba(12, 6, 22, 0.94);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nn-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nn-toast.is-success {
  border-color: rgba(93, 255, 176, 0.4);
  color: var(--valid);
}

.nn-toast.is-error {
  border-color: rgba(255, 90, 122, 0.45);
  color: #ffd0d8;
}

.nn-btn.is-on,
[data-format-field].is-on {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(255, 45, 149, 0.2);
}

.nn-checker-results {
  margin: 8px 0;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(61, 231, 255, 0.2);
  background: rgba(7, 4, 15, 0.55);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  white-space: pre-wrap;
}

.nn-feed {
  display: grid;
  gap: 10px;
}

.nn-feed-actions {
  display: flex;
  justify-content: flex-end;
}

.nn-feed-item {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 45, 149, 0.2);
  background: rgba(18, 8, 28, 0.9);
}

.nn-feed-item time,
.nn-feed-item .nn-chip {
  display: inline-flex;
  margin-bottom: 8px;
}

.nn-feed-item time {
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.nn-feed-item h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.nn-feed-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.nn-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.nn-pager nav {
  display: inline-flex;
  gap: 8px;
}

.nn-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.nn-dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.nn-dl div {
  display: grid;
  gap: 4px;
}

.nn-dl dt {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nn-dl dd {
  margin: 0;
}

.nn-token {
  margin: 12px 0;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(61, 231, 255, 0.28);
  background: rgba(7, 4, 15, 0.65);
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-all;
}

.nn-support {
  display: grid;
  gap: 12px;
}

.nn-support-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nn-support-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.nn-support-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.nn-support-thread {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 45, 149, 0.24);
  background: rgba(12, 6, 22, 0.9);
  overflow: hidden;
}

.nn-support-stream {
  display: grid;
  gap: 10px;
  min-height: 220px;
  max-height: 420px;
  overflow: auto;
  padding: 14px;
}

.nn-support-message {
  width: min(85%, 520px);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(61, 231, 255, 0.18);
  background: rgba(18, 8, 28, 0.9);
}

.nn-support-message.is-user {
  justify-self: end;
  border-color: rgba(255, 45, 149, 0.28);
  background: rgba(255, 45, 149, 0.1);
}

.nn-support-message.is-support {
  justify-self: start;
}

.nn-support-message p {
  margin: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nn-support-message time {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.nn-support-composer {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(255, 45, 149, 0.16);
  background: rgba(10, 5, 18, 0.75);
}

@media (max-width: 960px) {
  .nn-tool-layout {
    grid-template-columns: 1fr;
  }

  .nn-rail-sep {
    margin: 0 4px;
  }
}

@media (max-width: 720px) {
  .nn-workspace {
    padding: 12px 10px 36px;
  }

  .nn-topbar {
    padding: 10px 12px;
  }

  .nn-brand-text {
    display: none;
  }

  .nn-profile-name {
    display: none;
  }

  .nn-profile {
    max-width: none;
  }

  .nn-panel-grid,
  .nn-panel-grid.nn-panel-grid-3 {
    grid-template-columns: 1fr;
  }

  .nn-stat-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nn-filter-fields,
  .nn-filter-fields-4 {
    grid-template-columns: 1fr;
  }

  .nn-hero {
    padding: 14px;
  }

  .nn-ticket-deck-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nn-auth {
    padding: 24px 12px;
    gap: 16px;
  }

  .nn-auth-card {
    padding: 18px 16px;
  }
}

.nn-user-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-2);
  font: inherit;
  font-family: var(--font-mono);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nn-user-link:hover {
  color: var(--accent);
}

.nn-modal[data-nn-user-modal] {
  z-index: 75;
}

.nn-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 14px 48px;
  overflow: auto;
  background: rgba(5, 2, 12, 0.78);
  backdrop-filter: blur(10px);
}

.nn-modal[hidden] {
  display: none !important;
}

.nn-modal-card {
  width: min(920px, 100%);
  margin: auto 0;
  padding: 18px 18px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 45, 149, 0.32);
  background:
    linear-gradient(160deg, rgba(255, 45, 149, 0.1), transparent 42%),
    rgba(12, 6, 22, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.nn-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.nn-modal-head h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

.nn-modal .nn-btn.is-active {
  border-color: var(--accent);
  color: #fff;
  background: rgba(255, 45, 149, 0.22);
}

.nn-modal-card-narrow {
  width: min(720px, 100%);
}

.nn-card-dump {
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(61, 231, 255, 0.22);
  background: rgba(6, 3, 14, 0.72);
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 220px;
  overflow: auto;
}

.nn-modal-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.nn-modal-facts .nn-panel {
  padding: 12px 14px;
}

.nn-modal-facts .nn-panel h2 {
  margin: 0;
  font-size: 0.68rem;
}

.nn-modal-facts .nn-panel-note {
  margin-top: 6px;
}

@media (max-width: 700px) {
  .nn-modal-facts {
    grid-template-columns: 1fr;
  }
}
