/* NEXT LEVEL DEMO — storefront + owner dashboard.
   Additive only: uses the existing nlf.css tokens, overrides nothing. */

.nlf-search{display:grid;gap:.75rem;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));
  align-items:end;margin:1.25rem 0;padding:1.1rem;background:var(--nlf-panel);
  border:1px solid var(--nlf-line);border-radius:12px}
.nlf-field{display:flex;flex-direction:column;gap:.35rem;min-width:0}
.nlf-field--grow{grid-column:span 2;min-width:0}
.nlf-field--btn{justify-content:flex-end}
.nlf-field__l{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:var(--nlf-muted)}
.nlf-input{width:100%;min-height:48px;padding:0 .75rem;background:#0C0E12;color:var(--nlf-white);
  border:1px solid var(--nlf-border);border-radius:8px;font:inherit;font-size:.95rem}
textarea.nlf-input{padding:.6rem .75rem;min-height:5rem;resize:vertical}
.nlf-range{width:100%;min-height:44px;accent-color:var(--nlf-red-btn)}
.nlf-count{font-weight:800;font-size:1.05rem;margin:.25rem 0 1rem}
.nlf-chips{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;margin-bottom:1rem}
.nlf-chips__sep{color:var(--nlf-steel)}
.nlf-chip{min-height:44px;padding:0 .95rem;border-radius:999px;background:#0C0E12;
  color:var(--nlf-white);border:1px solid var(--nlf-border);font:600 .8125rem/1 inherit;
  cursor:pointer;display:inline-flex;align-items:center}
.nlf-chip:hover{border-color:var(--nlf-red-text)}
.nlf-chip[aria-pressed="true"]{background:var(--nlf-red-btn);border-color:var(--nlf-red-btn);color:#fff}
.nlf-chip--rm{border-style:dashed}
.nlf-active{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;margin-bottom:1rem}
.nlf-active__l{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:var(--nlf-muted)}
.nlf-storegrid{display:grid;gap:1.25rem;grid-template-columns:1fr}
@media(min-width:900px){.nlf-storegrid{grid-template-columns:16rem 1fr}}
.nlf-rail{background:var(--nlf-panel);border:1px solid var(--nlf-line);border-radius:12px;padding:1rem;
  /* The rail is a grid item and was stretching to the full 3123px height of the
     18-card results column, leaving a tall empty bordered box. Size it to its
     content and pin it while the results scroll. */
  align-self:start;position:sticky;top:1rem;max-height:calc(100vh - 2rem);overflow-y:auto}
.nlf-rail__in{display:grid;gap:.85rem}
.nlf-drawerbtn{display:inline-flex;margin-bottom:.75rem}
@media(min-width:900px){.nlf-drawerbtn{display:none}.nlf-rail{display:block}}
@media(max-width:899px){.nlf-rail{display:none}.nlf-rail--open{display:block}}
.nlf-cards{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(16rem,1fr))}
.nlf-card{background:var(--nlf-panel);border:1px solid var(--nlf-line);border-radius:12px;
  overflow:hidden;display:flex;flex-direction:column}
.nlf-card__media img{width:100%;aspect-ratio:3/2;object-fit:cover;display:block}
.nlf-card__body{padding:.9rem;display:flex;flex-direction:column;gap:.4rem;flex:1}
.nlf-card__t{font-size:1rem;margin:0}
.nlf-card__m{font-size:.8125rem;color:var(--nlf-muted);margin:0}
.nlf-card__p{font-weight:800;font-size:1.15rem;margin:.2rem 0 .5rem}
.nlf-card__pn{font-weight:400;font-size:.75rem;color:var(--nlf-muted)}
.nlf-card .nlf-btn{margin-top:auto}
.nlf-tag{display:inline-block;font:800 .6875rem/1 inherit;letter-spacing:.1em;
  background:var(--nlf-red-btn);color:#fff;padding:.3rem .5rem;border-radius:4px;align-self:flex-start}
.nlf-results{min-width:0}
.nlf-detail__media img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:10px;display:block}
.nlf-detail__act{margin-top:1rem;display:flex;gap:.6rem;flex-wrap:wrap}
#nlf-dialog{border:1px solid var(--nlf-line);border-radius:14px;background:var(--nlf-ink);
  color:var(--nlf-white);padding:0;width:min(46rem,calc(100vw - 2rem));max-height:88vh;overflow:hidden}
#nlf-dialog::backdrop{background:rgba(9,10,12,.72)}
.nlf-dlg__hd{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;
  padding:1rem 1.2rem;border-bottom:1px solid var(--nlf-line);position:sticky;top:0;background:var(--nlf-ink)}
.nlf-dlg__bd{padding:1.2rem;overflow-y:auto;max-height:calc(88vh - 5rem)}
.nlf-x{min-width:44px;min-height:44px;border-radius:8px;border:1px solid var(--nlf-border);
  background:transparent;color:var(--nlf-white);cursor:pointer;font-size:1.2rem}
.nlf-kpis{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));margin:1rem 0}
.nlf-kpi{background:var(--nlf-panel);border:1px solid var(--nlf-line);border-radius:12px;padding:1.1rem}
.nlf-kpi__n{font-size:2rem;font-weight:800;line-height:1}
.nlf-kpi__l{font-size:.8125rem;color:var(--nlf-muted);margin:.4rem 0 .6rem}
.nlf-panel{background:var(--nlf-panel);border:1px solid var(--nlf-line);border-radius:12px;
  padding:1.2rem;margin-top:1.25rem}
.nlf-tablewrap{overflow-x:auto;margin-top:1rem}
.nlf-table{width:100%;border-collapse:collapse;font-size:.9rem;min-width:44rem}
.nlf-table th,.nlf-table td{text-align:left;padding:.7rem;border-bottom:1px solid var(--nlf-line);vertical-align:top}
.nlf-table th{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--nlf-muted)}
.nlf-rowacts{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.5rem}
.nlf-schip{display:inline-block;font:700 .72rem/1 inherit;padding:.3rem .5rem;border-radius:999px;
  border:1px solid currentColor;text-transform:uppercase;letter-spacing:.06em}
.nlf-chip--live{color:#6FE39B}.nlf-chip--draft{color:#E8B84B}.nlf-chip--retired{color:var(--nlf-muted)}
.nlf-app{display:grid;grid-template-columns:1fr;gap:1.25rem}
@media(min-width:900px){.nlf-app{grid-template-columns:15rem 1fr}}
.nlf-side{background:var(--nlf-panel);border:1px solid var(--nlf-line);border-radius:12px;padding:.75rem}
.nlf-side ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.nlf-side a{display:flex;align-items:center;min-height:46px;padding:0 .85rem;border-radius:8px;
  color:var(--nlf-white);text-decoration:none;font-size:.9rem;font-weight:600}
.nlf-side a:hover{background:rgba(255,255,255,.08)}
.nlf-side a[aria-current="page"]{background:var(--nlf-red-btn);color:#fff}
.nlf-form{display:grid;gap:.85rem;max-width:44rem;margin-top:1rem}
.nlf-uploader{border:2px dashed var(--nlf-border);border-radius:12px;padding:1rem}
.nlf-modebar{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;margin:1rem 0}
.nlf-modebar__l{font:800 .72rem/1 inherit;letter-spacing:.12em;text-transform:uppercase;color:var(--nlf-muted)}
@media(prefers-reduced-motion:reduce){*{transition-duration:.001ms!important;animation-duration:.001ms!important}}

/* ---------- local review workflows (packages / contact) ---------- */
/* The shipped rule was: .nlf-chip__in{position:absolute;width:1px;height:1px;
   overflow:hidden;clip-path:inset(50%)} with no coordinates, so all 26 radios
   stacked at the same absolute origin — focus moved to one spot regardless of
   which chip was active. Keeping them in flow at 1px preserves the visual
   design while giving every input its own position. */
.nlf-chip__in{position:static !important;width:1px;height:1px;opacity:0;
  margin:0;padding:0;border:0;overflow:hidden;clip-path:inset(50%)}
.nlf-chip__in:focus-visible + .nlf-chip{outline:3px solid var(--nlf-white);outline-offset:2px}
.nlf-chip__in:checked + .nlf-chip{background:var(--nlf-red-btn);border-color:var(--nlf-red-btn);color:#fff}
.nlf-errsum{border:1px solid var(--nlf-red-text);background:rgba(227,27,54,.08);
  border-radius:10px;padding:.9rem 1.1rem;margin-bottom:1.25rem}
.nlf-errsum p{margin:0 0 .5rem;font-weight:700}
.nlf-errsum ul{margin:0;padding-left:1.1rem}
.nlf-errsum a{color:var(--nlf-red-text)}
.nlf-errsum:focus-visible{outline:3px solid var(--nlf-white);outline-offset:2px}
.nlf-fielderr{color:var(--nlf-red-text);font-size:.875rem;font-weight:700;margin:.4rem 0 0}
fieldset.nlf-invalid{outline:1px solid var(--nlf-red-text);outline-offset:6px}
.nlf-summary{margin-top:1.5rem;background:var(--nlf-panel);border:1px solid var(--nlf-line);
  border-radius:12px;padding:1.2rem}
.nlf-summary:focus-visible{outline:3px solid var(--nlf-white);outline-offset:2px}
.nlf-summary .nlf-srows{margin-top:.75rem}
.nlf-medialist{list-style:none;margin:.75rem 0 0;padding:0;display:grid;gap:.6rem}
.nlf-mediaitem{display:flex;gap:.75rem;align-items:flex-start;padding:.6rem;border:1px solid var(--nlf-line);border-radius:10px;background:rgba(255,255,255,.02)}
.nlf-mediathumb{width:96px;height:64px;object-fit:cover;border-radius:6px;flex:0 0 auto;background:#111}
.nlf-mediathumb--none{display:flex;align-items:center;justify-content:center;font-size:.7rem;letter-spacing:.08em;color:var(--nlf-dim);border:1px dashed var(--nlf-line)}
.nlf-mediabody{flex:1 1 auto;min-width:0}
.nlf-mediaName{margin:0 0 .35rem;font-size:.85rem;color:var(--nlf-dim)}
.nlf-uploader input[type=file]{padding:.55rem}
.nlf-fielderr{margin:.5rem 0 0;padding:.6rem .75rem;border:1px solid #b3261e;border-radius:8px;background:rgba(179,38,30,.12);color:#ffd9d6;font-size:.9rem}
@media (max-width:640px){.nlf-mediaitem{flex-direction:column}.nlf-mediathumb{width:100%;height:140px}}

/* Pointer targets measured below 44px on every viewport and both densities:
   footer links at 110x18, 87x18 and 184x18, and the in-page telephone link at
   134x23. Padding gives each a 44px box without moving the baseline or
   changing the footer's layout. */
.nlf-ft a, .nlf-ft__name a, footer a, a[href^="tel:"], a[href^="mailto:"] {
  display: inline-block;
  padding: 0.7rem 0.35rem;
  min-height: 44px;
  line-height: 1.55;
}

/* The consultation workflow's goal checkboxes measured 159-223 x 18 CSS px at
   every viewport — the pointer target is the label, and an 18px-tall label is
   an 18px-tall target. The row becomes the target instead. */
.nlf-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
}
.nlf-check label {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
  flex: 1 1 auto;
  cursor: pointer;
}
.nlf-check input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 auto; }
