/* Page container */
.nx-page { max-width: 1280px; margin: 0 auto; padding: 18px 22px 44px; }

/* Hudl-inspired athletic intro band — zero pills, crisp horizontal bar + 3-col spec strip */
.nx-intro {
  background: linear-gradient(90deg, #131b26 0%, #10161e 65%, #191618 100%);
  border: 1px solid var(--nx-border);
  border-left: 3px solid var(--nx-accent);
  border-radius: var(--nx-radius);
  margin-bottom: 20px; overflow: hidden;
}
.nx-intro-top {
  padding: 16px 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.nx-intro-copy { flex: 1 1 420px; max-width: 680px; }
.nx-kicker {
  margin: 0 0 4px;
  font: 700 12px/1.2 var(--nx-display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--nx-accent-text);
}
.nx-intro h1 {
  margin: 0 0 5px;
  font: 700 26px/1.15 var(--nx-display); letter-spacing: .02em; text-transform: uppercase; color: #fff;
}
.nx-intro-desc { margin: 0 0 5px; font-size: 14px; color: #cbd5e1; }
.nx-intro-note { margin: 0; font-size: 14px; color: var(--nx-muted); }
.nx-inline-cta {
  display: inline; padding: 0; border: 0; background: transparent; cursor: pointer;
  color: var(--nx-accent-text); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.nx-inline-cta:hover { text-decoration: underline; }
.nx-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nx-spec-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--nx-border); background: rgba(0, 0, 0, .2);
}
.nx-spec-item {
  padding: 10px 18px; border-right: 1px solid var(--nx-border);
  display: flex; flex-direction: column; gap: 2px;
}
.nx-spec-item:last-child { border-right: 0; }
.nx-spec-item strong {
  font: 700 12px/1.2 var(--nx-display); letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
.nx-spec-item span { font-size: 13px; color: var(--nx-muted); line-height: 1.35; }

/* Playbook header & filters */
.nx-board-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--nx-border);
}
.nx-board-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nx-board-title {
  margin: 0; font: 700 28px/1.1 var(--nx-display); letter-spacing: .02em; color: #fff;
}
.nx-count-badge {
  font: 700 12px/1.2 var(--nx-display); font-variant-numeric: tabular-nums;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
  background: var(--nx-surface-alt); border: 1px solid var(--nx-border-strong); color: var(--nx-muted);
}
.nx-fixed-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font: 700 12px/1.2 var(--nx-display); letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
  background: rgba(59, 158, 255, .14); color: #7cc0ff; border: 1px solid rgba(59, 158, 255, .36);
}
.nx-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.nx-filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 14px;
}
.nx-search-wrap { position: relative; flex: 1 1 240px; max-width: 340px; }
.nx-search-wrap input { padding-left: 34px; }
.nx-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #64748b; pointer-events: none; }
.nx-chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nx-chip {
  padding: 5px 11px; border-radius: var(--nx-radius-sm);
  border: 1px solid var(--nx-border-strong); background: var(--nx-surface);
  color: var(--nx-muted); font-size: 13px; font-weight: 600; cursor: pointer;
}
.nx-chip:hover { border-color: #4f6480; color: #fff; background: var(--nx-surface-alt); }
.nx-chip.active { background: var(--nx-accent); border-color: var(--nx-accent); color: #fff; font-weight: 700; }
.nx-board-note { margin: 0 0 12px; font-size: 14px; color: var(--nx-muted); }

/* Plays grid & sharp dark tactical cards */
.nx-play-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px;
}
.nx-play-card {
  position: relative; background: var(--nx-surface); border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius); overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .12s;
}
.nx-play-card:hover { border-color: #455973; }
.nx-play-card.selected { border-color: var(--nx-accent); box-shadow: inset 0 0 0 1px var(--nx-accent); }
.nx-play-card.dragging { opacity: .4; }
.nx-play-card.drop-target { outline: 2px dashed var(--nx-accent); outline-offset: 2px; }
.nx-card-stage { position: relative; padding: 8px 8px 0; background: #10161e; }
.nx-card-diagram {
  display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer;
  border-radius: 4px; overflow: hidden;
}
.nx-card-diagram .field-svg { width: 100%; height: auto; display: block; }
.nx-call-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  min-width: 32px; padding: 2px 7px; border-radius: 3px; text-align: center;
  background: rgba(10, 14, 19, .92); color: #fff;
  border: 1px solid rgba(255, 255, 255, .18); border-left: 3px solid var(--nx-accent);
  font: 700 13px/1.3 var(--nx-display); font-variant-numeric: tabular-nums; pointer-events: none;
}
.nx-card-check {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 22px; height: 22px; accent-color: var(--nx-accent); cursor: pointer;
}
.nx-card-body {
  padding: 10px 12px 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-top: 1px solid var(--nx-border); background: var(--nx-surface);
}
.nx-card-meta { min-width: 0; }
.nx-card-title { margin: 0 0 2px; font-size: 15px; font-weight: 700; line-height: 1.3; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-card-sub { margin: 0; font-size: 13px; color: var(--nx-muted); }
.nx-card-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.nx-drag-grip { color: #5b6e87; cursor: grab; padding: 5px; display: inline-flex; align-items: center; }
.nx-drag-grip:hover { color: var(--nx-ink); }
.nx-drag-grip:active { cursor: grabbing; }

/* Bulk select bar */
.nx-bulk-bar {
  position: fixed; left: 50%; bottom: 20px; z-index: 55; transform: translateX(-50%);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: var(--nx-radius);
  background: #17202c; color: #fff; border: 1px solid var(--nx-border-strong);
  box-shadow: var(--nx-shadow-pop); max-width: calc(100vw - 24px);
}
.nx-bulk-bar strong { font: 700 13px/1 var(--nx-display); letter-spacing: .05em; text-transform: uppercase; padding: 0 6px; white-space: nowrap; color: var(--nx-accent-text); }

/* Subtle in-app workspace limit / upgrade bar */
.nx-app-nudge {
  margin-top: 26px; padding: 13px 16px; border-radius: var(--nx-radius);
  background: var(--nx-surface); border: 1px solid var(--nx-border);
  border-left: 3px solid var(--nx-accent);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.nx-app-nudge-copy { display: flex; flex-direction: column; gap: 2px; max-width: 720px; }
.nx-app-nudge-copy strong { font-size: 14px; color: #fff; }
.nx-app-nudge-copy span { font-size: 13px; color: var(--nx-muted); }
.nx-app-nudge-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Official homepage showcase sections (Sideline Delivery, Pricing, Footer) */
.nx-home-section { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--nx-border); }
.nx-section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-bottom: 16px;
}
.nx-section-head h2 {
  margin: 0; font: 700 26px/1.12 var(--nx-display); letter-spacing: .02em; color: #fff;
}
.nx-deliver-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nx-deliver-card {
  background: var(--nx-surface); border: 1px solid var(--nx-border); border-radius: var(--nx-radius);
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
}
.nx-deliver-num {
  font: 700 13px/1 var(--nx-display); letter-spacing: .1em; color: var(--nx-accent-text);
  font-variant-numeric: tabular-nums;
}
.nx-deliver-card h3 { margin: 0; font-size: 16px; color: #fff; line-height: 1.3; }
.nx-deliver-card p { margin: 0; font-size: 14px; color: var(--nx-muted); line-height: 1.5; flex: 1; }
.nx-link-btn {
  align-self: flex-start; margin-top: 4px; padding: 0; border: 0; background: transparent;
  color: #6ab5ff; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.nx-link-btn:hover { color: #99ceff; text-decoration: underline; }

.nx-pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nx-plan-card {
  background: var(--nx-surface); border: 1px solid var(--nx-border); border-radius: var(--nx-radius);
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
}
.nx-plan-card.featured { border-color: var(--nx-border-strong); border-top: 3px solid var(--nx-accent); }
.nx-plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--nx-border); }
.nx-plan-tier {
  font: 700 14px/1 var(--nx-display); letter-spacing: .1em; text-transform: uppercase; color: var(--nx-muted);
}
.nx-plan-tier.accent { color: var(--nx-accent-text); }
.nx-plan-price { display: flex; align-items: baseline; gap: 7px; }
.nx-plan-price strong { font: 700 30px/1 var(--nx-display); color: #fff; font-variant-numeric: tabular-nums; }
.nx-plan-price span { font-size: 13px; color: var(--nx-muted); font-weight: 600; }
.nx-plan-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: #cbd5e1; flex: 1; }
.nx-plan-list strong { color: #fff; }
.nx-plan-foot { margin-top: 6px; display: flex; flex-direction: column; gap: 7px; }
.nx-plan-note { margin: 0; font-size: 13px; color: var(--nx-muted); text-align: center; }

.nx-site-footer {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--nx-border);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.nx-footer-brand { display: flex; flex-direction: column; gap: 3px; max-width: 560px; }
.nx-footer-brand strong { font: 700 14px/1 var(--nx-display); letter-spacing: .09em; color: #fff; }
.nx-footer-brand span { font-size: 13px; color: var(--nx-muted); }
.nx-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 13px; }
.nx-footer-links a, .nx-footer-btn {
  padding: 0; border: 0; background: transparent; color: var(--nx-muted); text-decoration: none; cursor: pointer; font-size: 13px;
}
.nx-footer-links a:hover, .nx-footer-btn:hover { color: #fff; text-decoration: underline; }

/* Guides footer strip */
.nx-guides { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--nx-border); }
.nx-guides h2 { margin: 0 0 12px; font: 700 15px/1.2 var(--nx-display); letter-spacing: .08em; text-transform: uppercase; color: var(--nx-muted); }
.nx-guides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.nx-guides-grid a {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px;
  background: var(--nx-surface); border: 1px solid var(--nx-border); border-radius: var(--nx-radius-sm);
  text-decoration: none; color: var(--nx-ink);
}
.nx-guides-grid a:hover { border-color: var(--nx-accent); background: var(--nx-surface-alt); }
.nx-guides-grid strong { font-size: 14px; color: #fff; }
.nx-guides-grid span { font-size: 13px; color: var(--nx-muted); line-height: 1.4; }
.nx-empty-box {
  background: var(--nx-surface); border: 1px solid var(--nx-border); border-radius: var(--nx-radius);
  padding: 28px 20px; text-align: center;
}
.nx-empty-box p { margin: 0 0 14px; font-size: 15px; color: var(--nx-muted); }
.nx-add-card-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* Editor Studio — PlayDiagram dark tactical workbench */
.nx-editor {
  display: grid; grid-template-columns: 196px minmax(0, 1fr) 316px;
  min-height: calc(100dvh - var(--nx-bar-h));
  background: #0b0f14;
}
.nx-rail {
  background: #10161f; border-right: 1px solid var(--nx-border);
  display: flex; flex-direction: column; max-height: calc(100dvh - var(--nx-bar-h));
  position: sticky; top: var(--nx-bar-h);
}
.nx-rail-head { padding: 9px 10px; border-bottom: 1px solid var(--nx-border); display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.nx-rail-list { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.nx-rail-item {
  width: 100%; text-align: left; padding: 5px; border-radius: var(--nx-radius-sm);
  border: 1px solid transparent; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; color: var(--nx-muted);
}
.nx-rail-item:hover { background: var(--nx-surface-alt); border-color: var(--nx-border); color: #fff; }
.nx-rail-item.active { background: var(--nx-surface-alt); border-color: var(--nx-accent); color: #fff; }
.nx-rail-thumb { position: relative; border-radius: 3px; overflow: hidden; }
.nx-rail-thumb .field-svg { width: 100%; height: auto; display: block; }
.nx-rail-num {
  position: absolute; top: 3px; left: 3px; padding: 1px 5px; border-radius: 2px;
  background: rgba(10, 14, 19, .92); color: #fff; border-left: 2px solid var(--nx-accent);
  font: 700 11px/1.2 var(--nx-display); font-variant-numeric: tabular-nums;
}
.nx-rail-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.nx-rail-foot { padding: 9px; border-top: 1px solid var(--nx-border); }

.nx-stage-col { padding: 12px 18px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.nx-stage-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.nx-stage-title-wrap { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; min-width: 0; }
.nx-stage-call {
  padding: 4px 9px; border-radius: 3px; background: var(--nx-accent); color: #fff;
  font: 700 14px/1.1 var(--nx-display); font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.nx-title-input {
  flex: 1; min-width: 140px; padding: 5px 8px; border: 1px solid transparent; border-radius: var(--nx-radius-sm);
  background: transparent; font: 700 20px/1.2 var(--nx-display); letter-spacing: .01em; color: #fff;
}
.nx-title-input:hover { background: var(--nx-surface); border-color: var(--nx-border); }
.nx-title-input:focus { background: #0c1118; border-color: var(--nx-accent); outline: none; }
.nx-stage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nx-pager { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--nx-muted); font-variant-numeric: tabular-nums; }

.nx-canvas-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--nx-surface); border: 1px solid var(--nx-border); border-radius: var(--nx-radius-sm); padding: 6px 8px;
}
.nx-canvas-bar-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nx-formation-select { width: auto; min-width: 165px; padding: 5px 9px; font-size: 13px; }
.nx-field-wrap {
  background: #143628; border: 1px solid #2b4a3d; border-radius: var(--nx-radius); padding: 5px;
}
.nx-field-wrap .field-svg { width: 100%; height: auto; display: block; touch-action: none; user-select: none; }
.nx-field-wrap.route-mode .field-svg { cursor: crosshair; }
.nx-field-wrap .player { cursor: grab; }
.nx-field-wrap .route-point { cursor: move; }
.nx-hint-line { margin: 0; font-size: 13px; color: var(--nx-muted); display: flex; align-items: center; gap: 8px; }
.nx-hint-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--nx-accent); flex-shrink: 0; }

/* 5-player strip under field */
.nx-player-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.nx-player-chip {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px;
  background: var(--nx-surface); border: 1px solid var(--nx-border); border-radius: var(--nx-radius-sm);
  cursor: pointer; text-align: left; min-width: 0; color: var(--nx-ink);
}
.nx-player-chip:hover { border-color: var(--nx-border-strong); background: var(--nx-surface-alt); }
.nx-player-chip.active { border-color: var(--nx-accent); background: #1d1e25; box-shadow: inset 0 0 0 1px var(--nx-accent); }
.nx-chip-dot {
  width: 28px; height: 28px; border-radius: 999px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #10241d; border: 1.5px solid rgba(0, 0, 0, .4);
}
.nx-chip-dot.qb { border-radius: 5px; }
.nx-chip-info { min-width: 0; display: flex; flex-direction: column; }
.nx-chip-info strong { font-size: 14px; line-height: 1.2; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-chip-info small { font-size: 12px; color: var(--nx-muted); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Editor right dock — PlayDiagram flat cards with colored section dots */
.nx-panel {
  background: #10161f; border-left: 1px solid var(--nx-border);
  display: flex; flex-direction: column; max-height: calc(100dvh - var(--nx-bar-h));
  position: sticky; top: var(--nx-bar-h);
}
.nx-panel-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 0 12px; border-bottom: 1px solid var(--nx-border); gap: 4px; background: #0d121a; }
.nx-panel-tab {
  border: 0; background: transparent; padding: 11px 8px;
  font: 700 12px/1 var(--nx-display); letter-spacing: .08em; text-transform: uppercase;
  color: var(--nx-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.nx-panel-tab:hover { color: #fff; }
.nx-panel-tab.active { color: #fff; border-bottom-color: var(--nx-accent); }
.nx-panel-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.nx-dock-card {
  background: var(--nx-surface); border: 1px solid var(--nx-border); border-radius: var(--nx-radius);
  padding: 12px; display: flex; flex-direction: column; gap: 10px;
}
.nx-dock-head {
  display: flex; align-items: center; gap: 7px;
  font: 700 12px/1 var(--nx-display); letter-spacing: .09em; text-transform: uppercase; color: #cbd5e1;
}
.nx-dot { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; }
.nx-dot.amber { background: var(--nx-amber); }
.nx-dot.orange { background: var(--nx-accent); }
.nx-dot.green { background: var(--nx-green); }
.nx-dot.blue { background: var(--nx-blue); }

.nx-selected-head { display: flex; align-items: center; gap: 10px; }
.nx-selected-swatch {
  width: 34px; height: 34px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: #10241d; border: 2px solid rgba(0, 0, 0, .4); flex-shrink: 0;
}
.nx-color-row { display: flex; align-items: center; gap: 7px; }
.nx-color-btn {
  width: 30px; height: 30px; border-radius: 4px; padding: 3px; border: 1px solid var(--nx-border-strong);
  background: #0c1118; cursor: pointer;
}
.nx-color-btn span { display: block; width: 100%; height: 100%; border-radius: 2px; }
.nx-color-btn.active { border-color: var(--nx-accent); box-shadow: 0 0 0 1px var(--nx-accent); }

/* Visual Quick Route grid — PlayDiagram 2-col dark buttons */
.nx-route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.nx-route-btn {
  display: flex; align-items: center; gap: 7px; padding: 6px 8px;
  border-radius: var(--nx-radius-sm); border: 1px solid var(--nx-border-strong);
  background: var(--nx-surface-alt); color: var(--nx-ink);
  font-size: 13px; font-weight: 600; cursor: pointer; text-align: left;
}
.nx-route-btn:hover { border-color: #536987; background: var(--nx-surface-hover); }
.nx-route-btn.active { background: var(--nx-accent); border-color: var(--nx-accent); color: #fff; font-weight: 700; }
.nx-route-glyph { width: 24px; height: 24px; border-radius: 3px; background: rgba(0, 0, 0, .28); padding: 2px; flex-shrink: 0; }
.nx-route-btn.active .nx-route-glyph { background: rgba(0, 0, 0, .22); }
.nx-inline-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nx-details-box { border: 1px solid var(--nx-border); border-radius: var(--nx-radius); padding: 10px 12px; background: var(--nx-surface); }
.nx-details-box summary { cursor: pointer; font: 700 12px/1.2 var(--nx-display); letter-spacing: .08em; text-transform: uppercase; color: #cbd5e1; }
.nx-details-box[open] summary { margin-bottom: 10px; }
.nx-divider { height: 1px; background: var(--nx-border); border: 0; margin: 2px 0; }

/* Play Library & Example Detail */
.nx-notice-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  padding: 10px 14px; border-radius: var(--nx-radius-sm);
  background: var(--nx-surface); border: 1px solid var(--nx-border);
  border-left: 3px solid var(--nx-amber);
  color: var(--nx-muted); font-size: 14px; margin-bottom: 14px;
}
.nx-notice-bar strong { color: #fff; font: 700 13px/1 var(--nx-display); letter-spacing: .06em; text-transform: uppercase; }
.nx-lib-filters {
  background: var(--nx-surface); border: 1px solid var(--nx-border); border-radius: var(--nx-radius);
  padding: 12px 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px;
}
.nx-lib-filter-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.nx-lib-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nx-lib-filter-label { font: 700 11px/1 var(--nx-display); color: var(--nx-muted); text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.nx-lib-card-body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; border-top: 1px solid var(--nx-border); }
.nx-lib-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.nx-lib-card-head h2 { margin: 0; font-size: 16px; line-height: 1.3; color: #fff; }
.nx-in-book-pill {
  font: 700 11px/1.2 var(--nx-display); letter-spacing: .05em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 3px;
  background: rgba(34, 197, 94, .16); color: #6ee7a0; border: 1px solid rgba(34, 197, 94, .4); white-space: nowrap;
}
.nx-tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.nx-tag {
  font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 3px;
  background: var(--nx-surface-alt); border: 1px solid var(--nx-border); color: var(--nx-muted);
}
.nx-lib-desc { margin: 0; font-size: 14px; color: var(--nx-muted); line-height: 1.45; }
.nx-lib-actions { margin-top: auto; padding-top: 4px; display: flex; gap: 7px; }
.nx-lib-actions .nx-btn { flex: 1; }
.nx-route-guide {
  margin-top: 22px; background: var(--nx-surface); border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius); padding: 13px 16px;
}
.nx-route-guide summary { cursor: pointer; font: 700 14px/1.2 var(--nx-display); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.nx-route-guide-body { margin-top: 12px; font-size: 14px; color: var(--nx-muted); }
.nx-route-guide-body dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 12px 0; }
.nx-route-guide-body dt { font-weight: 700; color: #fff; }
.nx-route-guide-body dd { margin: 2px 0 0; }

/* Example detail page */
.nx-detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-top: 14px; }
.nx-detail-card {
  background: var(--nx-surface); border: 1px solid var(--nx-border); border-radius: var(--nx-radius); padding: 15px;
}
.nx-detail-card h2 { margin: 0 0 12px; font: 700 15px/1.2 var(--nx-display); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.nx-assign-list { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.nx-assign-row { display: flex; gap: 10px; align-items: flex-start; padding-bottom: 10px; border-bottom: 1px solid var(--nx-border); }
.nx-assign-row:last-child { border-bottom: 0; padding-bottom: 0; }
.nx-assign-row dt { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 112px; font-size: 14px; color: #fff; }
.nx-assign-row dd { margin: 0; font-size: 14px; color: var(--nx-muted); line-height: 1.45; }
.nx-guidance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.nx-guidance-grid section { background: var(--nx-surface); border: 1px solid var(--nx-border); border-radius: var(--nx-radius); padding: 14px; }
.nx-guidance-grid h2 { margin: 0 0 6px; font: 700 14px/1.2 var(--nx-display); letter-spacing: .06em; text-transform: uppercase; color: var(--nx-accent-text); }
.nx-guidance-grid p { margin: 0; font-size: 14px; color: var(--nx-muted); line-height: 1.5; }

/* Print Pack — Dark proofing light-table framing crisp white paper */
.nx-print-layout {
  display: grid; grid-template-columns: 348px minmax(0, 1fr); gap: 18px; align-items: start;
}
.nx-print-panel {
  background: var(--nx-surface); border: 1px solid var(--nx-border); border-radius: var(--nx-radius);
  padding: 15px; display: flex; flex-direction: column; gap: 14px;
}
.nx-print-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nx-print-section-head h2, .nx-print-section-head h3 {
  margin: 0; font: 700 13px/1.2 var(--nx-display); letter-spacing: .08em; text-transform: uppercase; color: #cbd5e1;
}
.nx-print-play-list {
  display: flex; flex-direction: column; gap: 3px; max-height: 225px; overflow-y: auto;
  padding: 5px; border: 1px solid var(--nx-border); border-radius: var(--nx-radius-sm); background: #0c1118;
}
.nx-check-row {
  display: flex; align-items: center; gap: 9px; padding: 6px 7px; border-radius: 3px;
  font-size: 14px; cursor: pointer; color: var(--nx-ink);
}
.nx-check-row:hover { background: var(--nx-surface-alt); }
.nx-check-row input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--nx-accent); flex-shrink: 0; }
.nx-call-tag {
  min-width: 30px; padding: 2px 6px; border-radius: 3px; text-align: center;
  background: var(--nx-surface-alt); border: 1px solid var(--nx-border-strong); color: #fff;
  font: 700 12px/1.2 var(--nx-display); font-variant-numeric: tabular-nums;
}
.nx-dim-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.nx-dim-x { padding-bottom: 9px; color: var(--nx-muted); font-weight: 700; }
.nx-print-checklist {
  background: #101822; border: 1px solid var(--nx-border); border-left: 3px solid var(--nx-accent);
  border-radius: var(--nx-radius-sm); padding: 11px 12px; font-size: 14px; color: var(--nx-ink); line-height: 1.45;
}
.nx-print-checklist strong { display: block; margin-bottom: 4px; font: 700 13px/1.2 var(--nx-display); letter-spacing: .06em; text-transform: uppercase; color: var(--nx-accent-text); }
.nx-print-checklist p { margin: 0 0 6px; color: var(--nx-muted); }

.nx-preview-card {
  background: var(--nx-surface); border: 1px solid var(--nx-border); border-radius: var(--nx-radius);
  overflow: hidden; position: sticky; top: calc(var(--nx-bar-h) + 12px);
}
.nx-preview-bar {
  padding: 10px 14px; border-bottom: 1px solid var(--nx-border); background: #10161f;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.nx-preview-meta { display: flex; flex-direction: column; gap: 2px; }
.nx-preview-meta strong { font: 700 14px/1.2 var(--nx-display); letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.nx-preview-meta small { font-size: 13px; color: var(--nx-muted); }
.nx-preview-stage { background: #090d12; padding: 14px; min-height: 620px; display: flex; flex-direction: column; }
.nx-preview-stage iframe {
  width: 100%; height: 680px; border: 1px solid #243041; border-radius: 4px; background: #1a212b;
}
.nx-preview-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 36px 20px; color: var(--nx-muted);
}
.nx-preview-empty h3 { margin: 0 0 6px; font-size: 18px; color: #fff; }
.nx-preview-foot { padding: 9px 14px; border-top: 1px solid var(--nx-border); font-size: 13px; color: var(--nx-muted); background: #10161f; }

.nx-loading-note { padding: 24px; text-align: center; font-size: 15px; color: var(--nx-muted); }
.nx-mobile-only { display: none; }

/* Responsive breakpoints */
@media (max-width: 1120px) {
  .nx-editor { grid-template-columns: minmax(0, 1fr) 304px; }
  .nx-rail { display: none; }
  .nx-mobile-only { display: inline-flex; }
}
@media (max-width: 920px) {
  .nx-print-layout { grid-template-columns: 1fr; }
  .nx-preview-card { position: static; }
  .nx-detail-grid { grid-template-columns: 1fr; }
  .nx-guidance-grid, .nx-deliver-grid, .nx-pricing-grid, .nx-spec-strip { grid-template-columns: 1fr; }
  .nx-spec-item { border-right: 0; border-bottom: 1px solid var(--nx-border); }
  .nx-spec-item:last-child { border-bottom: 0; }
}
@media (max-width: 820px) {
  body { padding-bottom: calc(var(--nx-bottom-h) + env(safe-area-inset-bottom, 0px) + 12px); }
  .nx-bar { grid-template-columns: minmax(0, 1fr) auto; padding: 0 10px; gap: 6px; }
  .nx-bar-left { gap: 6px; }
  .nx-bar-right { gap: 5px; }
  .nx-tabs, .save-state, .nx-bar-sep, .nx-bar-link { display: none; }
  .nx-brand span { display: none; }
  .nx-book-trigger { max-width: 100%; padding: 5px 8px; font-size: 13.5px; }
  .nx-bar-theme { width: 32px; padding: 0; }
  .nx-bar-theme span { display: none; }
  .nx-bar-auth.is-signed-in { display: none; }
  .nx-bar-plan { padding: 0 9px; font-size: 12px; }
  .nx-bottom-nav { display: grid; }
  .nx-page { padding: 12px 12px 26px; }
  .nx-intro-top { padding: 13px 14px; }
  .nx-spec-item { padding: 9px 14px; }
  .nx-intro h1 { font-size: 21px; }
  .nx-board-title { font-size: 21px; }
  .nx-editor { grid-template-columns: 1fr; }
  .nx-stage-col { padding: 10px 10px 14px; gap: 9px; }
  .nx-stage-actions { gap: 5px; }
  .nx-stage-actions .nx-btn.small { padding: 6px 9px; font-size: 13px; gap: 5px; }
  .nx-stage-actions .nx-btn.icon-only { width: 32px; height: 32px; }
  .nx-title-input { font-size: 18px; }
  .nx-player-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .nx-player-chip { flex-direction: column; align-items: center; text-align: center; padding: 6px 4px; gap: 4px; }
  .nx-chip-info { align-items: center; }
  .nx-chip-info strong { font-size: 12px; }
  .nx-chip-info small { font-size: 11px; max-width: 62px; }
  .nx-panel { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--nx-border); }
  .nx-panel-body { padding: 12px 10px 24px; }
  .nx-preview-stage { min-height: 440px; padding: 10px; }
  .nx-preview-stage iframe { height: 480px; }
  .nx-toast { bottom: calc(var(--nx-bottom-h) + env(safe-area-inset-bottom, 0px) + 10px); }
  .nx-bulk-bar { bottom: calc(var(--nx-bottom-h) + env(safe-area-inset-bottom, 0px) + 8px); }
}
