  body.np-page {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--np-bg, #f5f6f8);
    color: var(--np-ink, #1f2933);
    line-height: 1.5;
  }
  .np-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2.5rem;
  }
  .np-eyebrow {
    margin: 0 0 0.5rem;
    color: var(--np-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .np-wrap h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    line-height: 1.25;
  }
  .np-lede {
    margin: 0 0 1.5rem;
    color: var(--np-muted);
  }

  .np-theme {
    --np-ink: #1f2933;
    --np-muted: #6b7280;
    --np-line: #e5e7eb;
    --np-bg: #f5f6f8;
    --np-card: #ffffff;
    --np-accent: #76bd4c;
    --np-accent-dark: #5a9638;
    --np-error: #b91c1c;
    --np-console-bg: #0b0e12;
    --np-console-fg: #d7e0ea;
    --np-console-dim: #8b97a8;
    --np-console-accent: #76bd4c;
    --np-console-warn: #e8b84a;
    color: var(--np-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
  }
  .np-theme *, .np-theme *::before, .np-theme *::after { box-sizing: border-box; }
  .np-theme [hidden] { display: none !important; }

  .np-card {
    background: var(--np-card);
    border: 1px solid var(--np-line);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
  }
  .np-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
  }
  .np-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
  }
  .np-input {
    flex: 1 1 240px;
    min-width: 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--np-line);
    border-radius: 8px;
    font: inherit;
  }
  .np-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    border: none;
    background: var(--np-accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
  }
  .np-btn:hover { background: var(--np-accent-dark); }
  .np-btn:disabled { opacity: 0.6; cursor: not-allowed; }
  .np-btn-ghost {
    background: transparent;
    color: var(--np-ink);
    border: 1px solid var(--np-line);
  }
  .np-btn-ghost:hover { background: var(--np-bg); }
  .np-hint, .np-disclaimer, .np-stats, .np-truncated, .np-empty {
    color: var(--np-muted);
    font-size: 0.92rem;
  }
  .np-hint { margin: 0.75rem 0 0; }
  .np-error {
    margin: 0.75rem 0 0;
    color: var(--np-error);
    font-weight: 500;
  }
  .np-console-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
  }
  .np-console-head h2 {
    margin: 0;
    font-size: 1.05rem;
  }
  .np-console-toggle {
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
  }
  .np-stats { margin: 0 0 0.65rem; }
  .np-console-shell {
    overflow: hidden;
    max-height: min(56vh, 460px);
    opacity: 1;
    margin-bottom: 0;
    transition:
      max-height 520ms ease,
      opacity 360ms ease,
      margin 360ms ease;
  }
  .np-console-shell.is-minimized {
    max-height: 72px;
    opacity: 0.72;
    margin-bottom: 0.85rem;
  }
  .np-console {
    background: var(--np-console-bg);
    color: var(--np-console-fg);
    border-radius: 10px;
    padding: 0.85rem 0.9rem;
    min-height: 220px;
    max-height: min(52vh, 420px);
    overflow: hidden;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.45;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: min-height 520ms ease, max-height 520ms ease, padding 360ms ease;
  }
  .np-console-shell.is-minimized .np-console {
    min-height: 56px;
    max-height: 56px;
    padding: 0.55rem 0.75rem;
  }
  .np-console-scroll {
    max-height: min(52vh, 420px);
    overflow-y: auto;
    padding-right: 0.25rem;
    transition: max-height 520ms ease;
  }
  .np-console-shell.is-minimized .np-console-scroll {
    max-height: 40px;
    overflow: hidden;
  }
  .np-line {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 0.55rem;
    margin: 0 0 0.55rem;
    opacity: 0;
    transform: translateY(6px);
    animation: np-line-in 280ms ease-out forwards;
  }
  .np-line.is-meta { grid-template-columns: 1fr; color: var(--np-console-dim); }
  .np-line.is-instant {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .np-prompt {
    color: var(--np-console-accent);
    user-select: none;
  }
  .np-host {
    color: #f4f6f8;
    font-weight: 600;
    word-break: break-word;
  }
  .np-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    align-items: center;
    color: var(--np-console-dim);
  }
  .np-hits {
    color: var(--np-console-warn);
  }
  .np-badge {
    display: inline-block;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(232, 184, 74, 0.45);
    color: var(--np-console-warn);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .np-sample {
    color: var(--np-console-dim);
    word-break: break-word;
  }
  .np-cursor::after {
    content: "";
    display: inline-block;
    width: 0.55em;
    height: 1em;
    margin-left: 0.15em;
    vertical-align: -0.12em;
    background: var(--np-console-accent);
    animation: np-blink 1s steps(1) infinite;
  }
  .np-table-panel {
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 420ms ease, transform 420ms ease;
  }
  .np-table-panel.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .np-subpanel {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--np-line);
  }
  .np-table-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin: 0 0 0.55rem;
  }
  .np-table-head h3 {
    margin: 0;
    font-size: 1rem;
  }
  .np-table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }
  .np-copy-btn {
    font-size: 0.88rem;
    padding: 0.45rem 0.75rem;
  }
  .np-copy-feedback {
    margin: 0 0 0.55rem;
    color: var(--np-accent-dark);
    font-size: 0.88rem;
    font-weight: 500;
  }
  .np-table-wrap { overflow-x: auto; margin: 0.35rem 0 0.5rem; }
  .np-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
  }
  .np-table th,
  .np-table td {
    text-align: left;
    padding: 0.5rem 0.4rem;
    border-bottom: 1px solid var(--np-line);
    vertical-align: top;
  }
  .np-table th { color: var(--np-muted); font-weight: 600; }
  .np-table td:nth-child(2) { white-space: nowrap; }
  .np-table tbody tr {
    transition: background-color 160ms ease;
  }
  .np-table tbody tr:hover {
    background: color-mix(in srgb, var(--np-accent) 8%, transparent);
  }
  .np-table .np-sample-cell {
    color: var(--np-muted);
    word-break: break-word;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.82rem;
  }
  .np-empty { margin: 0.75rem 0 0; }
  .np-truncated { margin: 0.65rem 0 0; }
  .np-disclaimer { margin: 0.85rem 0 0; }
  .np-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
  }
  .np-link { color: var(--np-accent-dark); }
  @keyframes np-line-in {
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes np-blink {
    50% { opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .np-line {
      opacity: 1;
      transform: none;
      animation: none;
    }
    .np-cursor::after { animation: none; }
    .np-console-shell,
    .np-console,
    .np-console-scroll,
    .np-table-panel {
      transition: none;
    }
    .np-table-panel {
      opacity: 1;
      transform: none;
    }
    .np-table tbody tr {
      transition: none;
    }
  }
