/* ============================================================
   Courses BD Newsroom Admin — Editorial Design System
   Typography: Fraunces (display) + IBM Plex Sans (UI) + JetBrains Mono
   Palette: Ink #0B0D10 · Paper #F6F2EA · Accent #C2410C
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #0B0D10;
  --ink-2: #1A1D23;
  --ink-3: #2A2E36;
  --paper: #F6F2EA;
  --paper-2: #EFEAE0;
  --paper-3: #E5DFD3;
  --accent: #C2410C;
  --accent-soft: rgba(194,65,12,.12);
  --accent-ring: rgba(194,65,12,.35);
  --emerald: #10B981;
  --amber: #F59E0B;
  --rose: #E11D48;
  --muted: #6B6560;
  --muted-2: #8A847C;
  --border: rgba(11,13,16,.10);
  --border-strong: rgba(11,13,16,.16);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-hover: 0 8px 24px rgba(11,13,16,.08);
  --font-display: 'Fraunces', Georgia, serif;
  --font-ui: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --sidebar-w: 248px;
  --topbar-h: 64px;
  --ease: cubic-bezier(.22,1,.36,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
}

/* Dark mode */
.dark {
  --ink: #F3EFE7;
  --ink-2: #D9D4CA;
  --ink-3: #B8B2A6;
  --paper: #0B0D10;
  --paper-2: #111418;
  --paper-3: #1A1E24;
  --border: rgba(243,239,231,.08);
  --border-strong: rgba(243,239,231,.14);
  --muted: #9A948A;
  --muted-2: #7A746A;
  --shadow-hover: 0 8px 24px rgba(0,0,0,.35);
  --accent-soft: rgba(194,65,12,.18);
}
.dark .nr-sidebar { background: #05070A; }
.dark .nr-card, .dark .nr-topbar, .dark .nr-content { background: var(--paper-2); }
.dark .nr-sidebar-item.active { background: rgba(243,239,231,.06); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.nr-body {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
/* Paper grain */
body.nr-body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.dark body.nr-body::before, body.nr-body.dark::before { opacity: .04; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }

/* Shell */
.nr-shell { display: flex; min-height: 100vh; }
.nr-sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--ink);
  color: rgba(246,242,234,.72); display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 40;
  transition: width .2s var(--ease);
}
.nr-sidebar.collapsed { width: 72px; }
.nr-sidebar.collapsed .nr-wordmark-text,
.nr-sidebar.collapsed .nr-eyebrow,
.nr-sidebar.collapsed .nr-nav-label,
.nr-sidebar.collapsed .nr-group-label,
.nr-sidebar.collapsed .nr-side-foot span { display: none; }
.nr-sidebar.collapsed .nr-sidebar-item { justify-content: center; padding: 10px; }
.nr-sidebar.collapsed .nr-logo { justify-content: center; padding: 18px 12px; }

.nr-logo {
  padding: 20px 18px 16px; border-bottom: 1px solid rgba(246,242,234,.08);
  display: flex; align-items: center; gap: 10px;
}
.nr-wordmark { display: flex; flex-direction: column; min-width: 0; }
.nr-wordmark-text {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 20px; color: #F6F2EA; letter-spacing: -.02em; line-height: 1.1;
}
.nr-eyebrow {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-top: 3px;
}

.nr-nav { flex: 1; overflow-y: auto; padding: 12px 10px 20px; }
.nr-nav::-webkit-scrollbar { width: 4px; }
.nr-nav::-webkit-scrollbar-thumb { background: rgba(246,242,234,.12); border-radius: 4px; }

.nr-group { margin-bottom: 18px; }
.nr-group-label {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(246,242,234,.35);
  padding: 0 10px 8px;
}
.nr-sidebar-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border-radius: 0 8px 8px 0; margin-bottom: 1px; font-size: 13px; font-weight: 500;
  color: rgba(246,242,234,.68); position: relative; transition: color .15s, background .15s;
  border-left: 3px solid transparent;
}
.nr-sidebar-item:hover { color: #F6F2EA; background: rgba(246,242,234,.04); }
.nr-sidebar-item.active {
  color: #F6F2EA; background: rgba(246,242,234,.07);
  border-left-color: var(--accent); font-weight: 600;
}
.nr-sidebar-item .ico { width: 18px; text-align: center; flex-shrink: 0; opacity: .85; font-size: 14px; }
.nr-sidebar-item .nr-nav-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nr-sidebar-item.accent-item { color: var(--accent); }
.nr-sidebar-item.accent-item:hover { background: var(--accent-soft); }

.nr-side-foot {
  padding: 12px 14px; border-top: 1px solid rgba(246,242,234,.08);
  display: flex; flex-direction: column; gap: 8px;
}
.nr-version {
  font-family: var(--font-mono); font-size: 10px; color: rgba(246,242,234,.35);
  background: rgba(246,242,234,.05); padding: 4px 8px; border-radius: 999px; width: fit-content;
}
.nr-side-foot a {
  font-size: 12px; font-weight: 500; color: rgba(246,242,234,.55);
  display: flex; align-items: center; gap: 6px; transition: color .15s;
}
.nr-side-foot a:hover { color: #F6F2EA; }
.nr-side-foot a.logout:hover { color: #FCA5A5; }

/* Main */
.nr-main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; transition: margin .2s var(--ease); }
.nr-sidebar.collapsed ~ .nr-main { margin-left: 72px; }

.nr-topbar {
  height: var(--topbar-h); background: var(--paper); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px;
  position: sticky; top: 0; z-index: 30;
}
.nr-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.nr-breadcrumb a:hover { color: var(--ink); }
.nr-breadcrumb .sep { opacity: .4; }
.nr-breadcrumb .current { color: var(--ink); font-weight: 600; }
.nr-topbar-right { display: flex; align-items: center; gap: 10px; }
.nr-cmdk {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px;
  background: var(--paper-2); border: 1px solid var(--border); border-radius: 999px;
  font-size: 12px; color: var(--muted); cursor: pointer; min-width: 160px;
  transition: border-color .15s;
}
.nr-cmdk:hover { border-color: var(--border-strong); }
.nr-cmdk kbd {
  font-family: var(--font-mono); font-size: 10px; background: var(--paper-3);
  padding: 2px 6px; border-radius: 4px; margin-left: auto;
}
.nr-icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
  background: transparent; display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; color: var(--ink); transition: background .15s;
}
.nr-icon-btn:hover { background: var(--paper-2); }
.nr-icon-btn .dot {
  position: absolute; top: 7px; right: 7px; width: 7px; height: 7px;
  background: var(--rose); border-radius: 50%; border: 1.5px solid var(--paper);
}
.nr-user-chip {
  display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px;
  border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 600;
  cursor: pointer; background: transparent;
}
.nr-user-chip img, .nr-user-chip .avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}

.nr-content { padding: 28px; max-width: 1440px; width: 100%; margin: 0 auto; flex: 1; }

/* Typography */
.nr-h1 { font-family: var(--font-display); font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -.02em; }
.nr-h2 { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 600; }
.nr-h3 { font-size: 16px; line-height: 22px; font-weight: 600; }
.nr-meta { font-family: var(--font-mono); font-size: 11px; line-height: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nr-muted { color: var(--muted); }

/* Cards */
.nr-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.nr-card:hover.elev { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.nr-card-pad { padding: 18px; }
.nr-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.nr-card-head h3 { font-size: 13px; font-weight: 600; }

/* Buttons */
.nr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: 10px; font-size: 13px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all .15s var(--ease);
  white-space: nowrap;
}
.nr-btn:active { transform: translateY(1px); }
.nr-btn-primary { background: var(--accent); color: #fff; }
.nr-btn-primary:hover { background: #A3380A; }
.nr-btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.nr-btn-ghost:hover { background: var(--paper-2); }
.nr-btn-danger { background: transparent; border-color: rgba(225,29,72,.3); color: var(--rose); }
.nr-btn-danger:hover { background: rgba(225,29,72,.08); }
.nr-btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.nr-btn-icon { width: 32px; height: 32px; padding: 0; border-radius: 8px; }

/* Forms */
.nr-field { margin-bottom: 14px; }
.nr-label {
  display: block; font-size: 11px; font-weight: 600; color: var(--muted);
  margin-bottom: 6px; letter-spacing: .02em;
}
.nr-input, .nr-select, .nr-textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: var(--paper); color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.nr-input:focus, .nr-select:focus, .nr-textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring);
}
.nr-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.nr-input-lg {
  font-family: var(--font-display); font-size: 36px; line-height: 1.15; font-weight: 600;
  border: none; padding: 0; background: transparent; letter-spacing: -.02em;
  box-shadow: none !important;
}
.nr-input-lg:focus { box-shadow: none !important; }
.nr-input-lg::placeholder { color: var(--muted-2); opacity: .5; }
.nr-input-mono { font-family: var(--font-mono); font-size: 12px; }
.nr-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.nr-field.invalid .nr-input { border-color: var(--rose); }
.nr-field.valid .nr-input { border-color: var(--emerald); }
.nr-err { font-size: 11px; color: var(--rose); margin-top: 4px; }

/* Chips / pills / badges */
.nr-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px;
  border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--paper-2);
  border: 1px solid var(--border); color: var(--ink);
}
.nr-chip-accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.nr-chip-emerald { background: rgba(16,185,129,.12); border-color: transparent; color: #059669; }
.nr-chip-amber { background: rgba(245,158,11,.14); border-color: transparent; color: #B45309; }
.nr-chip-rose { background: rgba(225,29,72,.1); border-color: transparent; color: var(--rose); }
.nr-toggle-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px;
  border-radius: 999px; font-size: 11px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border-strong); background: transparent; color: var(--muted);
  transition: all .15s var(--spring); user-select: none;
}
.nr-toggle-pill input { display: none; }
.nr-toggle-pill.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); }

/* Segmented control */
.nr-seg {
  display: inline-flex; background: var(--paper-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 3px; gap: 2px;
}
.nr-seg button {
  padding: 6px 12px; border: none; background: transparent; border-radius: 8px;
  font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .15s;
}
.nr-seg button.active { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.06); }

/* Table */
.nr-table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.nr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nr-table thead { background: var(--paper-2); }
.nr-table th {
  padding: 10px 14px; text-align: left; font-family: var(--font-mono); font-size: 10px;
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.nr-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.nr-table tbody tr { transition: background .12s; position: relative; }
.nr-table tbody tr:hover { background: var(--paper-2); }
.nr-table tbody tr:hover::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent);
  animation: barIn .15s var(--ease);
}
@keyframes barIn { from { width: 0; } to { width: 2px; } }
.nr-table tbody tr:last-child td { border-bottom: none; }
.nr-table .mono { font-family: var(--font-mono); font-size: 12px; }
.nr-table .right { text-align: right; }

/* SEO ring */
.nr-ring { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.nr-ring svg { transform: rotate(-90deg); }
.nr-ring .score {
  position: absolute; font-family: var(--font-mono); font-weight: 600; font-size: 11px;
}
.nr-ring-lg .score { font-size: 22px; }

/* Stats */
.nr-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.nr-stat {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; transition: transform .15s, box-shadow .15s;
}
.nr-stat:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.nr-stat .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.nr-stat .val { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.nr-stat .delta { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* Page header */
.nr-page-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 24px;
}
.nr-page-head .count {
  font-family: var(--font-mono); font-size: 12px; background: var(--paper-2);
  border: 1px solid var(--border); padding: 2px 8px; border-radius: 999px; margin-left: 8px;
  vertical-align: middle; color: var(--muted);
}

/* Two-column editor */
.nr-editor-grid {
  display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start;
}
.nr-editor-main { min-width: 0; }
.nr-editor-side { position: sticky; top: calc(var(--topbar-h) + 16px); display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - var(--topbar-h) - 32px); overflow-y: auto; }
.nr-editor-side::-webkit-scrollbar { width: 3px; }
.nr-editor-side::-webkit-scrollbar-thumb { background: var(--paper-3); border-radius: 3px; }

.nr-slug-row {
  display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px;
  color: var(--muted); margin: 8px 0 16px; padding: 8px 0; border-bottom: 1px dashed var(--border);
}
.nr-slug-row input { flex: 1; border: none; background: transparent; font-family: inherit; font-size: inherit; color: var(--ink); outline: none; }
.nr-slug-row .lock { cursor: pointer; opacity: .5; transition: opacity .15s; }
.nr-slug-row .lock.locked { opacity: 1; color: var(--accent); }

/* Drop zone */
.nr-drop {
  border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 28px;
  text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
  background: var(--paper-2);
}
.nr-drop:hover, .nr-drop.dragover { border-color: var(--accent); background: var(--accent-soft); }
.nr-drop .ico { font-size: 28px; margin-bottom: 8px; opacity: .5; }
.nr-drop p { font-size: 13px; color: var(--muted); }
.nr-drop .sub { font-size: 11px; margin-top: 4px; }

/* SEO checks */
.nr-check { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; font-size: 12px; }
.nr-check .glyph { width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.nr-check.pass .glyph { background: rgba(16,185,129,.15); color: #059669; }
.nr-check.warn .glyph { background: rgba(245,158,11,.15); color: #B45309; }
.nr-check.fail .glyph { background: rgba(225,29,72,.12); color: var(--rose); }
.nr-check .txt { color: var(--ink); line-height: 1.4; }
.nr-check .msg { color: var(--muted); font-size: 11px; margin-top: 1px; }

/* SERP preview */
.nr-serp { padding: 14px; }
.nr-serp .url { font-size: 12px; color: #202124; display: flex; align-items: center; gap: 4px; }
.nr-serp .url .dot { color: #70757a; }
.nr-serp .title { font-size: 18px; color: #1a0dab; line-height: 1.3; margin: 4px 0 2px; font-family: Arial, sans-serif; cursor: pointer; }
.nr-serp .title:hover { text-decoration: underline; }
.nr-serp .desc { font-size: 13px; color: #4d5156; line-height: 1.5; font-family: Arial, sans-serif; }
.nr-char-bar { height: 3px; background: var(--paper-3); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.nr-char-bar .fill { height: 100%; border-radius: 2px; transition: width .2s, background .2s; }

/* Social preview */
.nr-social-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.nr-social-card .img { height: 140px; background: var(--paper-3); }
.nr-social-card .img img { width: 100%; height: 100%; object-fit: cover; }
.nr-social-card .body { padding: 10px 12px; }
.nr-social-card .domain { font-size: 10px; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }
.nr-social-card .st { font-size: 13px; font-weight: 600; margin: 2px 0; line-height: 1.3; }
.nr-social-card .sd { font-size: 11px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Autosave */
.nr-autosave { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.nr-autosave .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--emerald);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* Toasts */
.nr-toasts { position: fixed; top: 16px; right: 16px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.nr-toast {
  background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  animation: toastIn .25s var(--ease); max-width: 320px; display: flex; align-items: center; gap: 10px;
}
.nr-toast.success { border-left: 3px solid var(--emerald); }
.nr-toast.error { border-left: 3px solid var(--rose); }
.nr-toast .close { margin-left: auto; cursor: pointer; opacity: .5; }
@keyframes toastIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Modal */
.nr-modal-overlay {
  position: fixed; inset: 0; background: rgba(11,13,16,.45); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .15s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.nr-modal {
  background: var(--paper); border-radius: 16px; width: 100%; max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,.2); animation: modalIn .2s var(--ease);
}
@keyframes modalIn { from { transform: translateY(12px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.nr-modal-head { padding: 18px 20px 0; }
.nr-modal-body { padding: 12px 20px 18px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.nr-modal-foot { padding: 0 20px 18px; display: flex; justify-content: flex-end; gap: 8px; }

/* Empty state */
.nr-empty { text-align: center; padding: 56px 24px; }
.nr-empty .illu { font-size: 48px; margin-bottom: 12px; opacity: .4; }
.nr-empty h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.nr-empty p { color: var(--muted); font-size: 13px; margin-bottom: 18px; }

/* Skeleton */
.nr-skel {
  background: linear-gradient(90deg, var(--paper-2) 25%, var(--paper-3) 50%, var(--paper-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* Filters */
.nr-filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px;
  padding: 12px 14px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
}
.nr-filters .nr-input, .nr-filters .nr-select { width: auto; min-width: 140px; }

/* Bulk bar */
.nr-bulk {
  display: none; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--ink); color: var(--paper); border-radius: var(--radius); margin-bottom: 12px;
  font-size: 13px; font-weight: 500; animation: toastIn .2s var(--ease);
}
.nr-bulk.show { display: flex; }
.nr-bulk .nr-btn { color: var(--paper); border-color: rgba(246,242,234,.2); }
.nr-bulk .nr-btn:hover { background: rgba(246,242,234,.1); }

/* Pagination */
.nr-pager {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; font-size: 12px; color: var(--muted);
}
.nr-pager .pages { display: flex; gap: 4px; align-items: center; }
.nr-pager button {
  min-width: 32px; height: 32px; border: 1px solid var(--border); background: transparent;
  border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ink);
}
.nr-pager button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nr-pager button:disabled { opacity: .35; cursor: not-allowed; }

/* Command palette */
.nr-cmdk-modal {
  position: fixed; inset: 0; z-index: 300; background: rgba(11,13,16,.4);
  display: none; align-items: flex-start; justify-content: center; padding-top: 15vh;
}
.nr-cmdk-modal.open { display: flex; }
.nr-cmdk-box {
  background: var(--paper); border-radius: 14px; width: 100%; max-width: 520px;
  box-shadow: 0 24px 64px rgba(0,0,0,.25); overflow: hidden; border: 1px solid var(--border);
}
.nr-cmdk-box input {
  width: 100%; padding: 16px 18px; border: none; border-bottom: 1px solid var(--border);
  font-size: 15px; outline: none; background: transparent; color: var(--ink);
}
.nr-cmdk-results { max-height: 320px; overflow-y: auto; padding: 6px; }
.nr-cmdk-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
  cursor: pointer; font-size: 13px;
}
.nr-cmdk-item:hover, .nr-cmdk-item.active { background: var(--paper-2); }
.nr-cmdk-item .k { font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-left: auto; }

/* Login */
.nr-login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--ink); padding: 20px; position: relative;
}
.nr-login-wrap::before {
  content: ''; position: absolute; inset: 0; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.nr-login-box {
  background: var(--paper); border-radius: 18px; padding: 40px; width: 100%; max-width: 400px;
  position: relative; z-index: 1; box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
.nr-login-box .wm {
  font-family: var(--font-display); font-style: italic; font-size: 28px; font-weight: 600;
  text-align: center; margin-bottom: 4px;
}
.nr-login-box .wm em { color: var(--accent); font-style: italic; }
.nr-login-box .sub {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  text-align: center; color: var(--muted); margin-bottom: 28px;
}

/* Progress / bars */
.nr-bar { height: 6px; background: var(--paper-3); border-radius: 3px; overflow: hidden; }
.nr-bar .fill { height: 100%; border-radius: 3px; background: var(--accent); transition: width .4s var(--ease); }

/* Data strip */
.nr-datastrip {
  display: flex; flex-wrap: wrap; gap: 12px 18px; padding: 10px 0; font-size: 11px;
  font-family: var(--font-mono); color: var(--muted); border-top: 1px solid var(--border);
  margin-top: 10px;
}
.nr-datastrip strong { color: var(--ink); font-weight: 600; }
.nr-datastrip .good { color: #059669; }
.nr-datastrip .warn { color: #B45309; }
.nr-datastrip .bad { color: var(--rose); }

/* Thumb */
.nr-thumb {
  width: 44px; height: 32px; border-radius: 6px; object-fit: cover; background: var(--paper-3);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1100px) {
  .nr-editor-grid { grid-template-columns: 1fr; }
  .nr-editor-side { position: static; max-height: none; }
  .nr-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nr-sidebar { transform: translateX(-100%); }
  .nr-sidebar.mobile-open { transform: none; }
  .nr-main { margin-left: 0 !important; }
  .nr-content { padding: 16px; }
  .nr-topbar { padding: 0 14px; }
  .nr-cmdk { display: none; }
  .nr-h1 { font-size: 24px; }
  .nr-stats { grid-template-columns: 1fr 1fr; }
  .nr-input-lg { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Print */
@media print {
  .nr-sidebar, .nr-topbar, .nr-editor-side, .nr-toasts { display: none !important; }
  .nr-main { margin: 0 !important; }
  .nr-content { max-width: none; padding: 0; }
  body { background: #fff; }
}
