:root {
  --nl-bg: var(--paper);
  --nl-surface: var(--white);
  --nl-surface-soft: #e8f2ea;
  --nl-ink: var(--ink);
  --nl-muted: var(--muted);
  --nl-line: var(--line);
  --nl-accent: var(--green);
  --nl-accent-strong: var(--green-deep);
  --nl-accent-soft: #dff4e2;
  --nl-practice: #096a78;
  --nl-practice-soft: #e0f6f5;
  --nl-plus: var(--ink-2);
  --nl-plus-soft: #e6eef6;
  --nl-radius: var(--radius);
  --nl-shadow: var(--shadow);
  --nl-max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--nl-bg);
}
#inhalt a { color: var(--nl-accent-strong); text-underline-offset: 3px; }
#inhalt a:hover { color: #147d39; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid rgba(29,202,200,.42); outline-offset: 3px; }

.nl-shell { width: min(calc(100% - 40px), var(--nl-max)); margin: 0 auto; }
.nl-site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(245,244,238,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(23,49,43,.08);
}
.nl-nav { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.nl-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--nl-ink); font-weight: 760; letter-spacing: -.02em; }
.nl-brand-mark { width: 34px; height: 34px; border: 2px solid var(--nl-accent); border-radius: 50% 50% 48% 52%; position: relative; }
.nl-brand-mark::before { content: ""; position: absolute; width: 2px; height: 19px; background: var(--nl-accent); left: 15px; top: 7px; transform: rotate(18deg); }
.nl-brand-mark::after { content: ""; position: absolute; width: 10px; height: 6px; border: 2px solid var(--nl-accent); border-left: 0; border-bottom: 0; border-radius: 100% 0; left: 15px; top: 7px; transform: rotate(-14deg); }
.nl-nav-links { margin-left: auto; display: flex; align-items: center; gap: 19px; font-size: .94rem; }
.nl-nav-links a { color: var(--nl-ink); text-decoration: none; }
.nl-nav-links a[aria-current="page"] { color: var(--nl-accent-strong); font-weight: 700; }
.nl-menu-button { display: none; margin-left: auto; border: 1px solid var(--nl-line); background: var(--nl-surface); border-radius: 10px; padding: 8px 12px; color: var(--nl-ink); }

#main-menu a[aria-current="page"] { color: var(--green-deep); }

.nl-breadcrumbs { padding-top: 28px; font-size: .9rem; color: var(--nl-muted); }
.nl-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; }
.nl-breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 7px; opacity: .55; }
.nl-breadcrumbs a { color: inherit; }

.nl-hero { padding: 72px 0 58px; color: var(--white); background: linear-gradient(135deg,#041326 0%,#082b50 58%,#07505a 100%); }
.nl-kicker { color: var(--green-deep); font-weight: 800; font-size: .83rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 11px; }
.nl-hero .nl-kicker { color: var(--cyan); }
.nl-hero h1 { margin: 0; font-size: clamp(2.3rem, 5.6vw, 5rem); line-height: .98; letter-spacing: -.055em; max-width: 930px; overflow-wrap: anywhere; }
.nl-hero .nl-lead { max-width: 790px; margin: 24px 0 0; color: #c7d8e1; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.nl-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.nl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 999px; padding: 10px 18px; border: 1px solid var(--nl-accent); text-decoration: none; font-weight: 700; }
.nl-btn-primary { border: 0; color: #06162b !important; background: linear-gradient(110deg,var(--green),var(--cyan)); }
.nl-btn-primary:hover { color: #06162b !important; }
.nl-btn-secondary { color: #fff !important; border-color: rgba(255,255,255,.45); background: transparent; }

.nl-section { padding: 44px 0; }
.nl-section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 22px; }
.nl-section-head h2, .nl-content h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.035em; line-height: 1.08; }
.nl-section-head p { max-width: 650px; color: var(--nl-muted); margin: 7px 0 0; }
.nl-grid { display: grid; gap: 18px; }
.nl-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.nl-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.nl-card { background: var(--nl-surface); border: 1px solid var(--nl-line); border-radius: var(--nl-radius); padding: 26px; box-shadow: 0 10px 32px rgba(4,29,54,.06); }
.nl-card h3 { margin: 4px 0 7px; font-size: 1.22rem; letter-spacing: -.02em; }
.nl-card p { color: var(--nl-muted); margin: 0; }
.nl-card-disabled { opacity: .68; box-shadow: none; }
.nl-card-link { text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
.nl-card-link:hover { transform: translateY(-2px); box-shadow: var(--nl-shadow); color: inherit; }

.nl-badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 5px 10px; font-size: .78rem; font-weight: 760; letter-spacing: .01em; }
.nl-badge-general { background: var(--nl-accent-soft); color: var(--nl-accent-strong); }
.nl-badge-practice { background: var(--nl-practice-soft); color: var(--nl-practice); }
.nl-badge-plus { background: var(--nl-plus-soft); color: var(--nl-plus); }
.nl-badge-open { background: #f2f1ed; color: #686b68; }
.nl-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .75; }

.nl-filterbar { display: grid; grid-template-columns: minmax(220px,2fr) 1fr 1fr auto; gap: 12px; align-items: end; background: var(--nl-surface); border: 1px solid var(--nl-line); border-radius: var(--nl-radius); padding: 18px; margin: 0 0 22px; }
.nl-field label { display: block; font-size: .78rem; font-weight: 750; margin-bottom: 6px; color: var(--nl-muted); }
.nl-field input, .nl-field select { width: 100%; min-height: 44px; border: 1px solid var(--nl-line); background: #fff; color: var(--nl-ink); border-radius: 10px; padding: 9px 11px; }
.nl-check { display: flex; align-items: center; gap: 8px; min-height: 44px; white-space: nowrap; }
.nl-check input { width: 18px; height: 18px; accent-color: var(--nl-accent); }
.nl-result-count { color: var(--nl-muted); font-size: .9rem; margin: 0 0 12px; }
.nl-variety-card { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; }
.nl-variety-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.nl-variety-card[hidden] { display: none; }

.nl-detail-hero { padding: 48px 0 40px; background: var(--white); border-bottom: 1px solid var(--nl-line); }
.nl-detail-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,.7fr); gap: 28px; align-items: start; }
.nl-detail-title h1 { font-size: clamp(2.4rem, 5.8vw, 4.8rem); line-height: .98; letter-spacing: -.055em; margin: 10px 0 13px; }
.nl-botanical { color: var(--nl-muted); font-style: italic; font-size: 1.08rem; }
.nl-hero-facts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.nl-practice-panel { background: var(--nl-practice-soft); border: 1px solid rgba(9,106,120,.2); border-radius: var(--nl-radius); padding: 22px; box-shadow: 0 16px 42px rgba(4,29,54,.1); }
.nl-practice-panel .nl-kicker { color: var(--nl-practice); }
.nl-practice-panel h2 { margin: 3px 0 9px; font-size: 1.45rem; letter-spacing: -.025em; }
.nl-practice-panel p { color: #315e67; }
.nl-chip-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; list-style: none; }
.nl-chip { border: 1px solid rgba(111,91,46,.2); background: rgba(255,255,255,.55); border-radius: 999px; padding: 5px 9px; font-size: .82rem; }

.nl-data-separation { margin: 8px 0 30px; padding: 18px 20px; border-left: 4px solid var(--nl-accent); background: var(--nl-surface-soft); border-radius: 0 14px 14px 0; }
.nl-data-separation strong { display: block; margin-bottom: 4px; }

.nl-content-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 38px; align-items: start; }
.nl-content { min-width: 0; }
.nl-section-block { padding: 30px 0; border-top: 1px solid var(--nl-line); }
.nl-section-block:first-child { border-top: 0; }
.nl-section-intro { color: var(--nl-muted); max-width: 720px; }
.nl-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 28px; margin: 18px 0 0; }
.nl-fact { padding: 13px 0; border-bottom: 1px solid var(--nl-line); }
.nl-fact dt { font-size: .8rem; color: var(--nl-muted); font-weight: 730; margin-bottom: 3px; }
.nl-fact dd { margin: 0; font-weight: 580; }
.nl-variety-profile .nl-detail-title h1,
.nl-variety-profile .nl-fact dd,
.nl-variety-profile .nl-source-list a { overflow-wrap: anywhere; }
.nl-variety-profile .nl-breadcrumbs a { display: inline; }
.nl-empty { color: var(--nl-muted); font-style: italic; }
.nl-side-nav { position: sticky; top: 95px; background: var(--nl-surface); border: 1px solid var(--nl-line); border-radius: 14px; padding: 16px; }
.nl-side-nav strong { display: block; margin-bottom: 9px; }
.nl-side-nav a { display: block; padding: 7px 8px; border-radius: 8px; text-decoration: none; color: var(--nl-muted); font-size: .9rem; }
.nl-side-nav a:hover { background: var(--nl-surface-soft); color: var(--nl-accent-strong); }
.nl-systems { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 17px; }
.nl-system { background: var(--nl-surface); border: 1px solid var(--nl-line); border-radius: 12px; padding: 13px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.nl-system small { color: var(--nl-muted); }
.nl-observation { border: 1px solid rgba(9,106,120,.2); background: var(--nl-practice-soft); border-radius: 14px; padding: 18px; margin-top: 15px; }
.nl-observation strong { display: block; margin-bottom: 5px; }
.nl-open-data { background: #f0efeb; border: 1px dashed #c7c9c6; border-radius: 14px; padding: 17px; color: #616663; margin-top: 15px; }
.nl-blog-link { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; border: 1px solid rgba(9,106,120,.2); background: var(--nl-practice-soft); border-radius: 16px; padding: 20px; text-decoration: none; color: inherit; }
.nl-blog-link:hover { color: inherit; box-shadow: var(--nl-shadow); }
.nl-blog-link > div:first-child { display: grid; gap: 6px; min-width: 0; }
.nl-blog-link strong { display: block; font-size: 1.1rem; line-height: 1.4; overflow-wrap: anywhere; }
.nl-blog-link span { display: block; color: #315e67; font-size: .8rem; font-weight: 720; letter-spacing: .035em; line-height: 1.35; }
.nl-plus-preview { border: 1px solid #cdd4e6; background: var(--nl-plus-soft); border-radius: 16px; padding: 20px; }
.nl-plus-preview h3 { margin: 5px 0 7px; }
.nl-plus-preview p { color: #56617e; }

.nl-footer { margin-top: 55px; border-top: 1px solid var(--nl-line); padding: 36px 0 48px; color: var(--nl-muted); font-size: .9rem; }
.nl-footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.nl-footer a { color: var(--nl-muted); }

@media (max-width: 900px) {
  .nl-grid-3 { grid-template-columns: 1fr 1fr; }
  .nl-detail-layout, .nl-content-layout { grid-template-columns: 1fr; }
  .nl-side-nav { display: none; }
  .nl-filterbar { grid-template-columns: 1fr 1fr; }
  .nl-field-search { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nl-shell { width: min(calc(100% - 28px), var(--nl-max)); }
  .nl-nav { min-height: 64px; }
  .nl-menu-button { display: inline-flex; }
  .nl-nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--nl-bg); border-bottom: 1px solid var(--nl-line); padding: 13px 16px 18px; flex-direction: column; align-items: stretch; gap: 4px; }
  .nl-nav-links.is-open { display: flex; }
  .nl-nav-links a { padding: 9px 6px; }
  .nl-hero { padding: 48px 0 38px; }
  .nl-hero h1 { font-size: clamp(2.35rem, 12vw, 3.7rem); }
  .nl-section { padding: 32px 0; }
  .nl-section-head { align-items: start; flex-direction: column; }
  .nl-grid-2, .nl-grid-3, .nl-facts, .nl-systems { grid-template-columns: 1fr; }
  .nl-filterbar { grid-template-columns: 1fr; }
  .nl-field-search { grid-column: auto; }
  .nl-variety-card { grid-template-columns: 1fr; }
  .nl-detail-title h1 { font-size: clamp(2.4rem, 13vw, 3.8rem); }
  .nl-practice-panel { margin-top: 5px; }
  .nl-blog-link { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Phase 2: frozen Sorten-Template V1 additions */
.nl-culture-panel { background: var(--nl-accent-soft); border: 1px solid #cedfd7; border-radius: var(--nl-radius); padding: 22px; }
.nl-culture-panel .nl-kicker { color: var(--nl-accent-strong); }
.nl-culture-panel h2 { margin: 3px 0 9px; font-size: 1.45rem; letter-spacing: -.025em; }
.nl-culture-panel p { color: var(--nl-muted); }

.nl-source-tag { display: inline-flex; margin-left: 7px; padding: 2px 6px; border-radius: 999px; background: var(--nl-accent-soft); color: var(--nl-accent-strong); font-size: .66rem; font-weight: 760; vertical-align: middle; }
.nl-data-separation a { color: var(--nl-accent-strong); font-weight: 700; }
.nl-inline-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.nl-phase-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.nl-phase-list li { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--nl-surface); border: 1px solid var(--nl-line); border-radius: 12px; }
.nl-phase-list li span { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--nl-accent-soft); color: var(--nl-accent-strong); font-size: .75rem; font-weight: 800; flex: 0 0 auto; }

.nl-test-status-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.nl-test-status { border-radius: 12px; padding: 13px 14px; border: 1px solid var(--nl-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--nl-surface); }
.nl-test-status strong { display: block; }
.nl-test-status small { display: block; color: var(--nl-muted); margin-top: 3px; }
.nl-test-status > span { display: inline-flex; border-radius: 999px; padding: 4px 8px; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.nl-status-tested > span { color: var(--nl-practice); background: var(--nl-practice-soft); }
.nl-status-running > span { color: #725c12; background: #fff3bf; }
.nl-status-planned > span { color: var(--nl-plus); background: var(--nl-plus-soft); }
.nl-status-not-tested { opacity: .62; }
.nl-status-not-tested > span { color: var(--nl-muted); background: #f2f1ed; }
.nl-practice-panel .nl-test-status-grid { grid-template-columns: 1fr; margin-top: 15px; }
.nl-practice-panel .nl-test-status { background: rgba(255,255,255,.52); border-color: rgba(111,91,46,.16); }

.nl-test-link { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; margin-top: 15px; }

.nl-planner-preview { border: 1px solid #cdd4e6; background: var(--nl-plus-soft); border-radius: 16px; padding: 22px; }
.nl-planner-preview h3 { margin: 6px 0 8px; font-size: 1.35rem; }
.nl-planner-preview p { color: #56617e; margin: 0; }

.nl-media-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.nl-media-card { margin: 0; background: var(--nl-surface); border: 1px solid var(--nl-line); border-radius: 14px; overflow: hidden; }
.nl-media-card img, .nl-media-card video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--nl-surface-soft); }
.nl-media-card figcaption { padding: 10px 12px; color: var(--nl-muted); font-size: .86rem; }

.nl-lexikon-sections .nl-card { min-height: 190px; }

@media (max-width: 720px) {
  .nl-phase-list, .nl-test-status-grid, .nl-media-grid { grid-template-columns: 1fr; }
  .nl-test-status { align-items: flex-start; }
  .nl-lexikon-sections .nl-card { min-height: auto; }
}

/* Phase 2 additions: Template V1 remains visually unchanged; these classes only support inheritance/status/media modules. */
.nl-fact-origin { display: block; margin-top: 4px; color: var(--nl-muted); font-size: .72rem; font-weight: 650; }
.nl-badge-running { background: #e6efe7; color: #315e3f; }
.nl-badge-planned { background: var(--nl-plus-soft); color: var(--nl-plus); }
.nl-culture-panel { background: var(--nl-surface-soft); border-color: var(--nl-line); box-shadow: none; }
.nl-culture-panel .nl-kicker { color: var(--nl-accent-strong); }
.nl-culture-panel p { color: var(--nl-muted); }
.nl-phase-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.nl-phase { display: flex; align-items: center; gap: 12px; background: var(--nl-surface); border: 1px solid var(--nl-line); border-radius: 12px; padding: 13px 15px; font-weight: 650; }
.nl-phase span { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--nl-accent-soft); color: var(--nl-accent-strong); font-size: .76rem; }
.nl-badge-cloud { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.nl-clean-list { margin: 17px 0 0; padding-left: 20px; }
.nl-clean-list li { margin: 7px 0; }
.nl-media-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.nl-media-card { margin: 0; background: var(--nl-surface); border: 1px solid var(--nl-line); border-radius: 14px; overflow: hidden; }
.nl-media-card img, .nl-media-card video { display: block; width: 100%; height: auto; background: var(--nl-surface-soft); }
.nl-media-card figcaption { padding: 10px 12px; color: var(--nl-muted); font-size: .82rem; }
.nl-section-block .nl-blog-link + .nl-blog-link { margin-top: 10px; }
.nl-suitability-grid { display: grid; gap: 9px; margin-top: 18px; }
.nl-suitability-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; min-width: 0; padding: 13px 15px; border: 1px solid var(--nl-line); border-radius: 12px; background: var(--nl-surface-soft); }
.nl-suitability-row strong { display: block; }
.nl-suitability-row small { display: block; margin-top: 3px; color: var(--nl-muted); line-height: 1.45; overflow-wrap: anywhere; }
.nl-suitability-class { color: var(--nl-accent-strong); font-size: .82rem; font-weight: 800; text-align: right; }
.nl-model-note { margin: 12px 0 0; color: var(--nl-muted); font-size: .82rem; line-height: 1.5; }

@media (max-width: 720px) {
  .nl-phase-list, .nl-media-grid { grid-template-columns: 1fr; }
  .nl-suitability-row { grid-template-columns: 1fr; gap: 6px; }
  .nl-suitability-class { text-align: left; }
}

/* Phase 3: nutrients, fertilizer catalog and neutral culture matching */
.nl-symbol { color: var(--nl-accent-strong); font-size: .72em; font-weight: 800; }
.nl-catalog-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: start; min-width: 0; }
.nl-catalog-card[hidden], .nl-match-card[hidden] { display: none; }
.nl-filterbar-compact { grid-template-columns: minmax(220px,2fr) minmax(200px,1fr); }
.nl-filterbar-products { grid-template-columns: minmax(240px,2fr) repeat(4,minmax(140px,1fr)); }
.nl-source-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.nl-source-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; border-bottom: 1px solid var(--nl-line); padding: 0 0 10px; }
.nl-source-list span, .nl-source-date { color: var(--nl-muted); font-size: .82rem; }
.nl-role-warning { border: 1px solid #dccf9e; background: #fff8dc; border-radius: 14px; padding: 17px 18px; margin: 4px 0 22px; color: #5e5122; }
.nl-role-warning strong { display: block; margin-bottom: 4px; }
.nl-table-wrap { width: 100%; overflow-x: auto; margin-top: 17px; border: 1px solid var(--nl-line); border-radius: 14px; background: var(--nl-surface); }
.nl-data-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.nl-data-table th, .nl-data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--nl-line); vertical-align: top; }
.nl-data-table thead th { color: var(--nl-muted); font-size: .78rem; background: var(--nl-surface-soft); }
.nl-data-table tbody tr:last-child th, .nl-data-table tbody tr:last-child td { border-bottom: 0; }
.nl-phase-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.nl-phase-detail { min-width: 0; border: 1px solid var(--nl-line); background: var(--nl-surface); border-radius: 14px; padding: 18px; }
.nl-phase-detail > span { color: var(--nl-accent-strong); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.nl-phase-detail h3 { margin: 5px 0 7px; font-size: 1.1rem; }
.nl-phase-detail p { margin: 0 0 10px; color: var(--nl-muted); }
.nl-phase-detail small { display: block; color: var(--nl-muted); overflow-wrap: anywhere; }
.nl-match-controls { grid-template-columns: repeat(2,minmax(180px,1fr)); margin-top: 20px; }
.nl-match-groups { display: grid; gap: 24px; margin-top: 20px; }
.nl-match-groups > section > h3 { font-size: 1.3rem; margin: 0 0 5px; }
.nl-match-groups > section > p { color: var(--nl-muted); margin: 0 0 12px; }
.nl-match-card h3 { margin-top: 8px; }
.nl-card-declaration { display: block; margin-top: 10px; color: var(--nl-muted); line-height: 1.45; }
.nl-dose-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.nl-dose-list li { border: 1px solid var(--nl-line); background: var(--nl-surface); border-radius: 12px; padding: 14px 16px; }
.nl-dose-list small { display: block; margin-top: 5px; color: var(--nl-muted); }
.nl-data-table td small { display: block; margin-top: 4px; color: var(--nl-muted); line-height: 1.35; }
.nl-data-table a { color: var(--nl-accent-strong); font-weight: 720; }
.nl-match-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.nl-match-steps li { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 12px; border: 1px solid var(--nl-line); background: var(--nl-surface); border-radius: 14px; padding: 16px; }
.nl-match-steps li > span { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--nl-accent-soft); color: var(--nl-accent-strong); font-weight: 800; }
.nl-match-steps strong { display: block; margin: 2px 0 4px; }
.nl-match-steps p { margin: 0; color: var(--nl-muted); }
.nl-match-selection { border: 1px solid var(--nl-line); background: var(--nl-surface-soft); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.nl-match-selection p { margin: 5px 0 0; color: var(--nl-muted); }
.nl-match-result { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; min-width: 0; }
.nl-match-result h3 { margin-top: 8px; }
.nl-match-reasons { margin: 12px 0 0; padding-left: 18px; color: var(--nl-muted); font-size: .86rem; }
.nl-match-reasons li { margin: 4px 0; }
.nl-match-more { border: 1px solid var(--nl-line); background: var(--nl-surface-soft); border-radius: 14px; padding: 0 18px 18px; }
.nl-match-more summary { cursor: pointer; font-size: 1.15rem; font-weight: 760; padding: 17px 0; }
.nl-match-more > p { color: var(--nl-muted); margin: -5px 0 14px; }
.nl-match-more:not([open]) { padding-bottom: 0; }
.nl-demand-panel { margin: 28px 0 24px; padding: 22px; border: 1px solid rgba(9,106,120,.2); border-radius: var(--nl-radius); background: var(--nl-practice-soft); }
.nl-demand-panel h2 { margin: 4px 0 10px; font-size: clamp(1.45rem, 3vw, 2rem); }
.nl-demand-panel > p { max-width: 760px; color: #315e67; }
.nl-demand-controls { grid-template-columns: repeat(4,minmax(150px,1fr)); margin: 20px 0 14px; background: rgba(255,255,255,.65); }
.nl-demand-output { padding: 16px 18px; border-left: 4px solid var(--nl-practice); border-radius: 0 12px 12px 0; background: rgba(255,255,255,.7); }
.nl-demand-output strong { display: block; overflow-wrap: anywhere; }
.nl-demand-output p { margin: 5px 0 0; color: #315e67; }

@media (max-width: 1050px) {
  .nl-filterbar-products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nl-filterbar-products .nl-field-search { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nl-catalog-card, .nl-filterbar-compact, .nl-filterbar-products, .nl-phase-details, .nl-match-controls, .nl-match-steps, .nl-match-result, .nl-demand-controls { grid-template-columns: 1fr; }
  .nl-filterbar-products .nl-field-search { grid-column: auto; }
  .nl-source-list li { display: block; }
  .nl-source-list span { display: block; margin-top: 4px; }
  .nl-data-table { min-width: 520px; }
  .nl-demand-panel { padding: 18px; }
}

/* Next phase: canonical sharing and browser-local stable-ID collections */
.nl-entity-tools { margin-top: 24px; margin-bottom: 20px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px 28px; align-items: center; padding: 22px 24px; border: 1px solid var(--nl-line); border-radius: var(--nl-radius); background: var(--nl-surface); box-shadow: 0 10px 32px rgba(4,29,54,.055); }
.nl-entity-tools h2 { margin: 0 0 7px; font-size: clamp(1.35rem,2.8vw,1.9rem); letter-spacing: -.03em; }
.nl-entity-tools p { margin: 0; color: var(--nl-muted); }
.nl-entity-tool-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.nl-entity-tool-actions button, .nl-share-actions button, .nl-share-actions a, .nl-new-collection button, .nl-collection-card-head > button { min-height: 44px; border: 1px solid var(--nl-line); border-radius: 999px; padding: 9px 14px; background: var(--nl-surface-soft); color: var(--nl-ink); font: inherit; font-weight: 760; text-decoration: none; cursor: pointer; }
.nl-entity-tool-actions button:first-child { border-color: transparent; background: linear-gradient(110deg,var(--green),var(--cyan)); color: #06162b; }
.nl-entity-tool-status { grid-column: 1/-1; min-height: 1.4em; font-size: .85rem; font-weight: 700; color: var(--nl-accent-strong) !important; }
.nl-collection-dialog { width: min(680px,calc(100% - 28px)); max-height: calc(100vh - 28px); overflow: auto; border: 0; border-radius: 20px; padding: 24px; color: var(--nl-ink); background: var(--nl-surface); box-shadow: var(--nl-shadow); }
.nl-collection-dialog::backdrop { background: rgba(3,17,35,.62); backdrop-filter: blur(3px); }
.nl-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.nl-dialog-head h2 { margin: 0; font-size: clamp(1.45rem,3vw,2rem); }
.nl-dialog-copy { color: var(--nl-muted); }
.nl-dialog-close { width: 42px; height: 42px; flex: none; border: 1px solid var(--nl-line); border-radius: 50%; background: var(--nl-surface); color: var(--nl-ink); font-size: 1.45rem; cursor: pointer; }
.nl-share-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 18px; }
.nl-share-actions button, .nl-share-actions a { display: inline-flex; align-items: center; justify-content: center; }
.nl-dialog-status { min-height: 1.5em; margin: 12px 0 0; color: var(--nl-accent-strong); font-weight: 700; }
.nl-new-collection { margin: 20px 0; padding: 16px; border-radius: 14px; background: var(--nl-surface-soft); }
.nl-new-collection label { display: block; margin-bottom: 6px; color: var(--nl-muted); font-size: .82rem; font-weight: 760; }
.nl-new-collection > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.nl-new-collection input { min-height: 44px; min-width: 0; border: 1px solid var(--nl-line); border-radius: 10px; padding: 9px 11px; }
.nl-collection-card { margin-top: 12px; padding: 15px; border: 1px solid var(--nl-line); border-radius: 14px; }
.nl-collection-card.is-active { border-color: var(--nl-accent-strong); }
.nl-collection-card-head { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: start; }
.nl-collection-select { border: 0 !important; border-radius: 8px !important; padding: 4px !important; background: transparent !important; text-align: left; }
.nl-collection-select strong, .nl-collection-select span { display: block; }
.nl-collection-select span, .nl-availability-note { color: var(--nl-muted); font-size: .8rem; }
.nl-collection-card ul, .nl-shared-list { list-style: none; margin: 13px 0 0; padding: 0; display: grid; gap: 7px; }
.nl-collection-card li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; border-top: 1px solid var(--nl-line); padding-top: 7px; }
.nl-collection-card li a { min-width: 0; overflow-wrap: anywhere; }
.nl-collection-card li button { border: 0; background: transparent; color: var(--nl-muted); text-decoration: underline; cursor: pointer; }
.nl-collection-empty { display: block !important; color: var(--nl-muted); }
.nl-shared-list a { display: flex; justify-content: space-between; gap: 16px; border: 1px solid var(--nl-line); border-radius: 11px; padding: 11px 13px; text-decoration: none; }
.nl-shared-list span { color: var(--nl-muted); font-size: .76rem; overflow-wrap: anywhere; }

@media (max-width: 720px) {
  .nl-entity-tools { grid-template-columns: 1fr; padding: 18px; }
  .nl-entity-tool-actions { justify-content: stretch; }
  .nl-entity-tool-actions button { flex: 1 1 120px; }
  .nl-share-actions, .nl-new-collection > div { grid-template-columns: 1fr; }
  .nl-collection-dialog { padding: 19px; }
  .nl-collection-card-head { grid-template-columns: 1fr; }
  .nl-shared-list a { align-items: flex-start; flex-direction: column; gap: 3px; }
}
