:root { --nl-sidebar: #1f2937; }
body { background: #f4f6f8; }
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar { width: 220px; flex: 0 0 220px; background: var(--nl-sidebar); color: #fff; padding: 1rem .75rem; }
.app-sidebar .brand { font-weight: 600; padding: .25rem .75rem 1rem; }
.app-sidebar a, .app-sidebar button.nav-btn { display: block; width: 100%; text-align: left; color: #d1d5db; text-decoration: none;
  padding: .5rem .75rem; border-radius: .375rem; background: none; border: 0; }
.app-sidebar a:hover, .app-sidebar button.nav-btn:hover { background: #374151; color: #fff; }
.app-sidebar a.active { background: #2563eb; color: #fff; }
.app-main { flex: 1; min-width: 0; padding: 1.5rem; }
.stat-card .value { font-size: 1.6rem; font-weight: 600; }
.stat-card .label { color: #6b7280; font-size: .875rem; }
th.sortable { cursor: pointer; white-space: nowrap; }
th.sortable::after { content: ' ↕'; color: #9ca3af; font-size: .75em; }
th.sort-asc::after { content: ' ▲'; color: inherit; }
th.sort-desc::after { content: ' ▼'; color: inherit; }
.table-wrap { background: #fff; border-radius: .5rem; padding: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.setup-steps { padding-left: 1.25rem; }
.setup-steps > li { margin-bottom: .75rem; }
.setup-steps > li:last-child { margin-bottom: 0; }
.setup-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; background: #f4f6f8; padding: .75rem; border-radius: .375rem; overflow-x: auto; }
#nl-loading { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: #2563eb; z-index: 2000; display: none; animation: nl-pulse 1s infinite; }
@keyframes nl-pulse { 50% { opacity: .35; } }
#nl-toasts { position: fixed; top: 1rem; right: 1rem; z-index: 2100; width: min(380px, calc(100vw - 2rem)); }
.nl-hud { position: fixed; inset: 0; z-index: 3000; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; }
.nl-hud[hidden] { display: none !important; }
.nl-hud-card { background: #fff; border-radius: .75rem; padding: 1.25rem 1.5rem; min-width: 220px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.nl-hud-spinner { width: 2rem; height: 2rem; margin: 0 auto .75rem; border: 3px solid #dbe3ee; border-top-color: #2563eb; border-radius: 50%; animation: nl-spin .8s linear infinite; }
@keyframes nl-spin { to { transform: rotate(360deg); } }
.editor { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.preview-frame { width: 100%; height: 560px; border: 1px solid #dee2e6; background: #fff; border-radius: .375rem; }
.public-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.public-card { width: 100%; max-width: 440px; }
.hp-field { position: absolute; left: -10000px; }
@media (max-width: 767.98px) {
  .app-shell { flex-direction: column; }
  .app-sidebar { width: 100%; flex: none; display: flex; flex-wrap: wrap; gap: .25rem; padding: .5rem; }
  .app-sidebar .brand { width: 100%; padding-bottom: .25rem; }
  .app-sidebar a, .app-sidebar button.nav-btn { width: auto; padding: .35rem .6rem; font-size: .875rem; }
  .app-main { padding: 1rem; }
}
