/* nlr-worksheet.css — WP4 of the NLR SYSTEM port. Implements setter SPEC §3.1-3.7, closer SPEC §3.3 (dossier card, own note)
 * and §4.2/§4.4 (shared worksheet chrome) for the three dossier sheets (PLAN D8).
 * The sheet (aside.sheet.nlr-workspace) is a full-screen workspace at >=1000px: the NLC 92px band (logo, SALES COMMAND CENTER /
 * NLR SYSTEM, "← Pipeline", the step tabs, the category picker), the hero (kicker, step title, segmented progress with knob),
 * glass cards, choice tiles, the red validation pill and the fixed bottom navigation. The step scene is the sheet's own background.
 * Values are the computed NLC values (glow.css:975-1137, 1241-1349, 1381-1455, 1513-1633, 2062-2073, 2303-2307), without blur (D4).
 * To go back to the 980px drawer (Q2), delete the single "@media (min-width: 1000px)" block marked [Q2] below.
 * Owned by WP4 only (PLAN D2). */

/* ---------- 0. workspace geometry and scene ---------- */
.sheet.nlr-workspace {
  --ws-gutter: clamp(16px, 4vw, 64px);
  --ws-max: 1080px;
  --ws-band: 92px;
  --ws-scene: url("assets/elephant-step-1.webp");
  color: #dbe3ec; font-family: Montserrat, Inter, sans-serif; border-left: 0;
  /* NLC #setterWorkspace / #closerApplication 4-layer veil + the step scene (setter §3.1, closer §4.1).
   * The sheet itself does not scroll (.sheet-body does), so the photo stays put with attachment:scroll. */
  background:
    linear-gradient(90deg, rgba(5,14,28,.45) 0%, rgba(5,14,28,.25) 22%, rgba(5,14,28,.2) 35%, rgba(5,14,28,.2) 65%, rgba(5,14,28,.25) 78%, rgba(5,14,28,.45) 100%),
    linear-gradient(180deg, rgba(5,14,28,.35) 0%, rgba(5,14,28,0) 18%, rgba(5,14,28,0) 75%, rgba(5,14,28,.5) 100%),
    linear-gradient(rgba(8,20,40,.5), rgba(8,20,40,.5)),
    var(--step-bg, var(--ws-scene)) center 35% / cover no-repeat,
    #061426;
  transition: background-image .35s ease;
}
/* NLC #closerForm spans the full width less the 4vw gutter (1324px at 1440, measured live); the setter worksheet stays 1080px */
.sheet.nlr-workspace[data-dept="closer"] { --ws-scene: url("assets/elephant-closer-step-1.webp"); --ws-max: 100%; }
.sheet.nlr-workspace[data-dept="aplicari"] { --ws-scene: url("assets/elephant-aplicari-step-1.webp"); --ws-max: 1320px; }
/* NLC workspaces have no HUD brackets; the top accent line stays. */
.sheet.nlr-workspace::after { display: none; }
.sheet.nlr-workspace::before { z-index: 31; }

/* [Q2] full-screen at >=1000px (PLAN D8). Below 1000px the sheet is already 100% wide (styles.css min(980px,100%)). */
@media (min-width: 1000px) {
  .sheet.nlr-workspace { left: 0; width: 100%; box-shadow: none; }
}

/* ---------- 1. the band: NLC .system-header + .step-strip in one 92px row (setter §3.2, closer §4.2) ---------- */
.nlr-workspace .sheet-head.nlr-band {
  position: relative; z-index: 30; flex: 0 0 auto; display: flex; align-items: center; gap: 18px;
  min-height: var(--ws-band); padding: 0 24px; margin: 0;
  background: linear-gradient(180deg, rgba(5,14,28,.88), rgba(5,14,28,.7));
  border-bottom: 1px solid rgba(212,175,55,.45); box-shadow: none; color: #fff;
}
.nlr-band-brand { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; min-width: 0; }
.nlr-workspace .nlr-band-logo { display: block; height: 80px; width: auto; max-width: 240px; margin: -8px -6px; object-fit: contain; object-position: left center;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.55)); }
.nlr-band-title { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 1px solid rgba(212,175,55,.55); }
.nlr-workspace .nlr-band-title small {
  display: block; width: fit-content; padding: 0; border-radius: 0; box-shadow: none; white-space: nowrap;
  font: 600 .62rem/1.2 Montserrat, Inter, sans-serif; letter-spacing: .3em;
  background: var(--nlr-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.55));
}
.nlr-band-title strong {
  display: block; white-space: nowrap; font: 700 1.6rem/1.1 Montserrat, Inter, sans-serif; letter-spacing: .02em;
  background: var(--nlr-silver); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)) drop-shadow(0 0 18px rgba(212,175,55,.18));
}
/* "← Pipeline" (#backToSetterPipeline / #closerBackToCases) */
.nlr-workspace .sheet-head #close.nlr-back {
  flex: 0 0 auto; height: 42px; min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(212,175,55,.45); background: rgba(6,17,33,.5); color: #f1d36a;
  font: 700 14.4px Inter, system-ui, sans-serif; letter-spacing: 0; box-shadow: none; white-space: nowrap;
}
.nlr-workspace .sheet-head #close.nlr-back:hover { border-color: rgba(212,175,55,.85); background: rgba(212,175,55,.12); color: #f3e3b0; box-shadow: 0 0 16px rgba(212,175,55,.3); }
.nlr-band-tabs { flex: 1 1 auto; min-width: 0; align-self: stretch; display: flex; }

/* category picker: NLC .lead-stage-picker (label + select glowing in the stage colour) */
.nlr-workspace .lead-stage-picker { flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px; margin: 0; width: 210px; color: inherit; }
.nlr-workspace .lead-stage-picker > span { font: 700 9.6px Montserrat, Inter, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #c9a54a; }
.nlr-workspace .sheet-head .lead-stage-picker select {
  width: 100%; min-height: 40px; padding: 0 34px 0 12px; border-radius: 12px; font: 700 13px Montserrat, Inter, sans-serif; color: #fff;
  background-color: rgba(6,17,33,.6); border: 1px solid color-mix(in srgb, var(--sheet-accent, #d4af37) 55%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--sheet-accent, #d4af37) 22%, transparent);
}
.nlr-workspace .sheet-head .lead-stage-picker select:focus { outline: 0; border-color: rgba(212,175,55,.75); box-shadow: 0 0 0 3px rgba(212,175,55,.15); }
.nlr-workspace .sheet-head .lead-stage-picker select:disabled { opacity: .6; }

/* ---------- 2. step tabs .step-item (glow.css:1094-1137, 1428-1455) ---------- */
.nlr-workspace .steps.nlr-steps { display: flex; gap: 18px; width: 100%; margin: 0; padding: 0; flex-wrap: nowrap; background: none; border: 0; }
.nlr-workspace .steps .step-item {
  position: relative; flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
  margin: 0; padding: 6px 4px 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: left; cursor: pointer;
  color: #d7deea; font-family: Montserrat, Inter, sans-serif; transition: opacity .2s ease;
}
.nlr-workspace .steps .step-item:hover, .nlr-workspace .steps .step-item.active { background: transparent; border: 0; box-shadow: none; }
.nlr-workspace .steps .step-item > span { display: block; font: 600 .72rem/1.2 Montserrat, Inter, sans-serif; letter-spacing: .28em; color: #6f7f95; }
.nlr-workspace .steps .step-item > strong {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: normal; overflow-wrap: normal;
  font: 800 .84rem/1.15 Montserrat, Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase;
  background: var(--nlr-silver); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  opacity: .72; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6));
}
.nlr-workspace .steps .step-item > small { display: none; max-width: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 700 .54rem Montserrat, Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #d4af37; text-shadow: 0 0 8px rgba(212,175,55,.45); }
.nlr-workspace .steps .step-item::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 12px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.1); }
.nlr-workspace .steps .step-item:hover > strong { opacity: .9; }
.nlr-workspace .steps .step-item.active > span { color: #f3e3b0; text-shadow: 0 0 8px rgba(241,211,106,.6); }
.nlr-workspace .steps .step-item.active > strong { opacity: 1; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)) drop-shadow(0 0 12px rgba(212,175,55,.35)); }
/* static glint (D4): the gradient only */
.nlr-workspace .steps .step-item.active::after { background: linear-gradient(90deg, #c9a54a, #f3e3b0 50%, #c9a54a); box-shadow: 0 0 10px rgba(241,211,106,.7), 0 0 2px #fff3c4; }
.nlr-workspace .steps .step-item.complete > span { color: #c9a54a; }
.nlr-workspace .steps .step-item.complete::after { background: linear-gradient(90deg, #8a6a1a, #c9a54a); }
.nlr-workspace .steps .step-item.locked { opacity: .45; }
.nlr-workspace .steps .step-item:focus-visible { outline: 2px solid #f1d36a; outline-offset: -2px; }
.nlr-workspace .steps .step-item b { display: none; }
@media (min-width: 1700px) { .nlr-workspace .steps .step-item > small { display: block; } }

/* ---------- 3. scrolling body ---------- */
.nlr-workspace .sheet-body { position: static; padding: 0 0 48px; overflow-x: hidden; scroll-padding-top: 16px; }
.nlr-workspace .sheet-body > * { width: min(var(--ws-max), calc(100% - 2 * var(--ws-gutter))); margin-left: auto; margin-right: auto; }
.nlr-workspace .sheet-body > .nlr-hero { width: auto; max-width: none; margin: 0; }
.nlr-workspace .sheet-body > #pf { margin-top: 0; }

/* ---------- 4. hero: title and segmented progress (setter §3.3, closer §4.2 title row) ---------- */
.nlr-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; padding: 34px var(--ws-gutter) 26px; background: none; }
.nlr-hero-title { min-width: 0; }
.nlr-hero-title p {
  margin: 0 0 6px; width: fit-content; font: 600 1.08rem/1.25 Montserrat, Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase;
  background: var(--nlr-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.55));
}
.nlr-hero-title h1 {
  margin: 0; font: 700 clamp(1.5rem, 2.2vw, 2.2rem)/1.1 Montserrat, Inter, sans-serif; letter-spacing: .02em; text-transform: uppercase;
  background: var(--nlr-silver); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)) drop-shadow(0 0 18px rgba(212,175,55,.18));
}
.nlr-progress { flex: 1 1 auto; max-width: 760px; min-width: 240px; padding-bottom: 6px; }
.nlr-progress > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.nlr-progress span { font: 600 .74rem Montserrat, Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #c9d3df; }
.nlr-progress strong { font: 700 1rem Montserrat, Inter, sans-serif; letter-spacing: .04em; color: #e6cd84; }
/* track with a dark separator every 1/N (glow.css:1392) and the glowing knob (glow.css:1411) */
.nlr-progress i {
  --n: 5; --p: 20%; position: relative; display: block; height: 6px; border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--n) - 1px), rgba(5,14,28,.9) calc(100% / var(--n) - 1px) calc(100% / var(--n))),
    rgba(255,255,255,.1);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.6), 0 0 0 1px rgba(212,175,55,.18);
}
.nlr-progress i b { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); border-radius: 999px;
  background: linear-gradient(90deg, #8a6a1a 0%, #c9a54a 40%, #e6cd84 80%, #f3e3b0 100%); box-shadow: 0 0 10px rgba(212,175,55,.35);
  transition: width .6s cubic-bezier(.2,.8,.2,1); }
.nlr-progress i::after { content: ""; position: absolute; top: 50%; left: var(--p); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #fff3c4; box-shadow: 0 0 8px 2px rgba(241,211,106,.8); pointer-events: none; transition: left .6s cubic-bezier(.2,.8,.2,1); }

/* ---------- 5. dossier card: Rents client data, NLC .closer-case-detail look (closer §3.1/§3.3) ---------- */
.nlr-workspace .nlr-dossier {
  position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap;
  margin-bottom: 22px; padding: 20px 24px; border-radius: 20px; color: #e6ecf3;
  border: 1px solid rgba(95,140,190,.4); border-top: 1px solid rgba(212,175,55,.6);
  background: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px) 0 0/100% 22px, radial-gradient(120% 35% at 50% 0%, rgba(35,87,138,.25), transparent 70%),
              linear-gradient(180deg, rgba(14,34,60,.86), rgba(6,17,33,.9));
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.06);
}
.nlr-workspace .sheet-body > .nlr-dossier:first-child { margin-top: 28px; }
.nlr-dossier-info { flex: 1 1 420px; min-width: 0; }
.nlr-dossier-info > small { display: block; margin: 0; font: 600 12.5px Montserrat, Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #c9a54a; }
.nlr-dossier-info h2 {
  margin: 6px 0 4px; font: 700 clamp(22px, 2.2vw, 30px)/1.15 Montserrat, Inter, sans-serif; letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere;
  background: var(--nlr-silver); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.55));
}
.nlr-dossier-info h2 .badge { vertical-align: middle; -webkit-text-fill-color: initial; }
.nlr-dossier-info > .badge { display: inline-flex; margin: 2px 0 6px; }
.nlr-dossier-info > p { margin: 0; font: 600 13px/1.5 Montserrat, Inter, sans-serif; color: #9fb0c4; overflow-wrap: anywhere; }
.nlr-dossier-info > p.motiv-lost { margin-top: 6px; color: #ffb4bd; }
/* own note = NLC .closer-own-note (green) */
.nlr-workspace .nlr-dossier .nota-cap {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 12px; max-width: 640px; margin-top: 14px;
  padding: 10px 14px; border: 1px solid rgba(37,211,102,.45); border-radius: 14px; background: rgba(37,211,102,.06);
}
.nlr-dossier .nota-cap > span { font: 800 11px Montserrat, Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #7ee2a8; white-space: nowrap; }
.nlr-workspace .nlr-dossier .nota-cap input {
  width: 100%; min-height: 38px; padding: 7px 12px; border-radius: 10px; font: 500 13.5px Montserrat, Inter, sans-serif;
  background: rgba(0,0,0,.25); border: 1px solid rgba(37,211,102,.3); color: #eef3ea;
}
.nlr-workspace .nlr-dossier .nota-cap input:focus { outline: 0; border-color: rgba(37,211,102,.7); box-shadow: 0 0 0 3px rgba(37,211,102,.14); }
.nlr-workspace .nlr-dossier .nota-cap small { grid-column: 2; display: block; min-height: 0; padding: 0; font: 500 11px Inter, system-ui, sans-serif; letter-spacing: 0; color: #7ee2a8; opacity: .85; background: none; box-shadow: none; }
.nlr-workspace .nlr-dossier .nota-cap small:empty { display: none; }
/* document / offer buttons: NLC ghost pills with a gold hover (closer §3.3) */
.nlr-dossier > .right { flex: 0 1 auto; margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; max-width: 560px; }
.nlr-workspace .nlr-dossier .right .btn {
  min-height: 34px; padding: 0 13px; border-radius: 10px; font: 700 12px Montserrat, Inter, sans-serif;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); color: #fff; box-shadow: none; text-shadow: none;
}
.nlr-workspace .nlr-dossier .right .btn:hover:not(:disabled) { border-color: rgba(212,175,55,.6); color: #f3e3b0; background: rgba(212,175,55,.1); }
.nlr-workspace .nlr-dossier .right .btn-gold { background: var(--nlr-gold-btn); border-color: rgba(233,207,122,.7); text-shadow: 0 1px 2px rgba(0,0,0,.45); box-shadow: 0 0 18px rgba(212,175,55,.3); }
.nlr-workspace .nlr-dossier .right .btn:disabled { opacity: .45; }
.nlr-workspace .nlr-dossier .right .pill, .nlr-workspace .nlr-dossier .right .badge { display: inline-flex; align-items: center; min-height: 24px; }

/* ---------- 6. glass cards (setter §3.4, closer §4.2) ---------- */
.nlr-workspace #pf { font-family: Montserrat, Inter, sans-serif; color: #dbe3ec; }
.nlr-workspace .nlr-card {
  position: relative; margin: 0 0 22px; padding: clamp(22px, 3vw, 34px); border-radius: 18px; color: #dbe3ec;
  border: 1px solid rgba(95,140,190,.35);
  background: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px) 0 0/100% 22px,
              radial-gradient(120% 35% at 50% 0%, rgba(35,87,138,.22), transparent 70%),
              linear-gradient(180deg, rgba(14,34,60,.84), rgba(6,17,33,.88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 22px 50px -26px rgba(0,0,0,.95);
}
.nlr-workspace .nlr-card::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: var(--glow-edge); pointer-events: none; }
.nlr-workspace .card-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.nlr-workspace .live-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #d4af37; box-shadow: 0 0 0 5px rgba(212,175,55,.13); }
.nlr-workspace .card-kicker .step-title {
  margin: 0; width: fit-content; font: 600 1rem/1.4 Montserrat, Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase;
  background: var(--nlr-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.55));
}
.nlr-workspace #pf .grid { gap: 18px 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---------- 7. fields (setter §3.5, closer §4.2) ---------- */
.nlr-workspace #pf .field { gap: 8px; font: 600 .87rem/1.35 Montserrat, Inter, sans-serif; letter-spacing: .01em; color: #e6ecf3; }
.nlr-workspace #pf .field > span { font: 600 .87rem/1.35 Montserrat, Inter, sans-serif; letter-spacing: .01em; color: #e6ecf3; }
.nlr-workspace #pf .field .req { color: #ff5c70; }
.nlr-workspace #pf .field small { color: #b9c6d6; font: 500 12px/1.45 Montserrat, Inter, sans-serif; }
.nlr-workspace #pf input:not([type=checkbox]):not([type=radio]), .nlr-workspace #pf select, .nlr-workspace #pf textarea {
  width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border-radius: 12px; color: #fff; color-scheme: dark;
  background: rgba(6,17,33,.6); border: 1px solid rgba(95,140,190,.3); font: 600 13.92px Montserrat, Inter, sans-serif; box-shadow: none;
}
.nlr-workspace #pf textarea { min-height: 110px; line-height: 1.5; }
.nlr-workspace #pf input:not([type=checkbox]):not([type=radio]):focus, .nlr-workspace #pf select:focus, .nlr-workspace #pf textarea:focus {
  outline: 0; border-color: rgba(212,175,55,.75); box-shadow: 0 0 0 3px rgba(212,175,55,.15);
}
.nlr-workspace #pf :disabled { opacity: .75; cursor: default; }
.nlr-workspace #pf input::placeholder, .nlr-workspace #pf textarea::placeholder { color: #7f8d99; font-weight: 500; }
/* date of birth: ZZ / LL / AAAA boxes no longer overflow */
.nlr-workspace .zla { grid-template-columns: 1fr 1fr 1.6fr; max-width: 300px; gap: 8px; }
.nlr-workspace .zla input { text-align: center; letter-spacing: .08em; }
/* unit suffix (.money-input / .closer-money) */
.nlr-money { position: relative; display: flex; align-items: stretch; }
.nlr-workspace #pf .nlr-money input { padding-right: 58px; }
.nlr-money b { position: absolute; right: 6px; top: 6px; bottom: 6px; display: grid; place-items: center; min-width: 42px; padding: 0 8px; border-radius: 8px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(212,175,55,.35); color: #e6cd84; font: 800 12px Montserrat, Inter, sans-serif; pointer-events: none; }

/* choice tiles: label.choice > input (hidden) + span (styles.css:65, glow.css:993-995; closer .closer-choice-grid) */
.nlr-workspace .checks.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; flex-wrap: nowrap; }
.nlr-workspace .choice-grid label.choice { position: relative; display: block; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; cursor: pointer; }
.nlr-workspace .choice-grid label.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nlr-workspace .choice-grid label.choice > span {
  display: grid; place-items: center; min-height: 48px; height: 100%; padding: 10px 11px; border-radius: 12px; text-align: center;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.035); color: #e9eef5; font: 700 13px/1.3 Montserrat, Inter, sans-serif;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.nlr-workspace .choice-grid label.choice:hover > span { border-color: rgba(212,175,55,.5); background: rgba(212,175,55,.07); }
.nlr-workspace .choice-grid label.choice input:checked + span { border-color: #d4af37; background: rgba(212,175,55,.16); color: #fff; box-shadow: inset 0 0 0 1px #d4af37, 0 0 16px rgba(212,175,55,.25); }
.nlr-workspace .choice-grid label.choice input:focus-visible + span { outline: 2px solid #f1d36a; outline-offset: 2px; }
.nlr-workspace .choice-grid label.choice input:disabled + span { cursor: default; }
/* single checkbox row: NLC .check-row / .closer-check */
.nlr-workspace .check-row {
  display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; margin: 0; padding: 13px 16px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(95,140,190,.28); background: rgba(255,255,255,.04); color: #e9eef5; font: 700 13.5px/1.4 Montserrat, Inter, sans-serif;
}
.nlr-workspace .check-row input { flex: 0 0 auto; width: 19px; height: 19px; margin: 0; accent-color: #d4af37; }
.nlr-workspace .check-row:has(input:checked) { border-color: rgba(212,175,55,.6); background: rgba(212,175,55,.08); }

/* ---------- 8. invalid states + floating validation pill (setter §3.6, glow.css:2062-2073, 2303-2307) ---------- */
.nlr-workspace #pf .field.invalid > span { color: #ffd6dc; }
.nlr-workspace #pf .field.invalid input:not([type=checkbox]):not([type=radio]), .nlr-workspace #pf .field.invalid select, .nlr-workspace #pf .field.invalid textarea {
  border: 1px solid rgba(255,92,112,.9); background: rgba(255,77,100,.07); box-shadow: 0 0 0 3px rgba(255,77,100,.16), 0 0 22px -6px rgba(255,77,100,.7);
}
.nlr-workspace #pf .field.invalid .choice-grid label.choice > span { color: #ffd6dc; border-color: rgba(255,92,112,.55); background: rgba(255,77,100,.06); box-shadow: 0 0 18px -8px rgba(255,77,100,.8); }
.nlr-workspace #pf .field.invalid .check-row { color: #ffd6dc; border-color: rgba(255,92,112,.9); background: rgba(255,77,100,.07); box-shadow: 0 0 0 3px rgba(255,77,100,.16), 0 0 22px -6px rgba(255,77,100,.7); }
#validationMessage:empty { display: none; }
#validationMessage:not(:empty) {
  position: fixed; z-index: 70; left: 50%; bottom: 104px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  width: max-content; max-width: min(720px, 92vw); padding: 14px 22px 14px 16px; border-radius: 14px; text-align: left;
  font: 700 15.2px/1.35 Montserrat, Inter, sans-serif; color: #ffe1e6;
  background: linear-gradient(rgba(60,10,20,.95), rgba(38,6,14,.95)); border: 1px solid rgba(255,99,120,.7);
  box-shadow: 0 18px 50px -12px rgba(0,0,0,.9), 0 0 24px -6px rgba(255,77,100,.6); animation: nlcErrorIn .25s ease-out;
}
#validationMessage:not(:empty)::before { content: "!"; flex: 0 0 28px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #ff4d64; color: #fff; font: 800 15px Montserrat, Inter, sans-serif; box-shadow: 0 0 12px rgba(255,77,100,.8); }
@keyframes nlcErrorIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- 9. fixed bottom navigation (setter §3.7 footer.navigation-bar) ---------- */
.nlr-workspace .nav-row.nlr-nav {
  position: relative; z-index: 30; flex: 0 0 auto; display: grid; grid-template-columns: 180px minmax(0, 1fr) 230px; align-items: center; gap: 18px;
  margin: 0; padding: 14px 4vw; background: rgba(6,17,33,.72); border-top: 1px solid rgba(212,175,55,.3);
}
.nlr-workspace .nav-row .btn { width: 100%; min-height: 47px; padding: 0 18px; border-radius: 12px; font: 700 16px Montserrat, Inter, sans-serif; letter-spacing: 0; }
.nlr-workspace .nav-row #prev { grid-column: 1; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); color: #fff; box-shadow: none; }
.nlr-workspace .nav-row #prev:hover:not(:disabled) { background: rgba(255,255,255,.09); border-color: rgba(212,175,55,.5); }
.nlr-workspace .nav-row #prev:disabled { opacity: .5; cursor: default; }
.nlr-workspace .nav-row #next { grid-column: 3; color: #fff; background: var(--nlr-gold-btn); border: 1px solid rgba(233,207,122,.7);
  text-shadow: 0 1px 2px rgba(0,0,0,.45); box-shadow: 0 0 18px rgba(212,175,55,.3); white-space: nowrap; }
.nlr-workspace .nav-row #next:hover { box-shadow: 0 0 26px rgba(212,175,55,.5); filter: brightness(1.06); }
.nlr-nav-mid { grid-column: 2; display: flex; justify-content: center; min-width: 0; }
/* draft status (".draft-status", 10.88px #AEBBC9 with a dot) */
.nlr-workspace .draft-status { display: inline-flex; align-items: center; gap: 9px; font: 500 .74rem/1.25 Inter, system-ui, sans-serif; color: #aebbc9; }
.nlr-workspace .draft-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34c778; box-shadow: 0 0 0 4px rgba(52,199,120,.14); }
.nlr-workspace .draft-status:empty { display: none; }

/* ---------- 10. narrower desktops and mobile ---------- */
@media (max-width: 1360px) {
  .nlr-workspace .nlr-band-logo { height: 64px; max-width: 192px; }
  .nlr-band-title strong { font-size: 1.3rem; }
  .nlr-workspace .sheet-head.nlr-band { gap: 14px; }
  .nlr-workspace .steps.nlr-steps { gap: 12px; }
}
@media (max-width: 1180px) {
  .nlr-band-title { display: none; }
  .nlr-workspace .lead-stage-picker { width: 180px; }
}
@media (max-width: 999px) {
  .sheet.nlr-workspace { --ws-band: 0px; }
  /* NLC ≤1200: header not fixed, tabs show numbers only (shots/nlc-fisa-1-m.png) */
  .nlr-workspace .sheet-head.nlr-band { flex-wrap: wrap; gap: 8px 10px; padding: 10px 14px 0; }
  .nlr-workspace .nlr-band-logo { height: 40px; max-width: 120px; margin: -2px -4px; }
  .nlr-workspace .sheet-head #close.nlr-back { height: 36px; min-height: 36px; padding: 0 11px; font-size: 12.5px; }
  .nlr-workspace .lead-stage-picker { order: 1; margin-left: auto; width: auto; min-width: 96px; max-width: 170px; flex: 1 1 0; }
  .nlr-workspace .sheet-head #close.nlr-back { order: 2; }
  .nlr-workspace .lead-stage-picker > span { display: none; }
  .nlr-workspace .sheet-head .lead-stage-picker select { min-height: 36px; font-size: 12px; padding-left: 10px; }
  .nlr-band-tabs { order: 3; flex: 1 0 100%; min-height: 52px; }
  .nlr-workspace .steps.nlr-steps { gap: 10px; }
  .nlr-workspace .steps .step-item { padding: 4px 2px 14px; justify-content: flex-start; }
  .nlr-workspace .steps .step-item > strong, .nlr-workspace .steps .step-item > small { display: none; }
  .nlr-workspace .steps .step-item::after { left: 0; right: 0; bottom: 8px; }
  .nlr-workspace .sheet-body { padding-bottom: 32px; }
  .nlr-hero { flex-direction: column; align-items: stretch; gap: 16px; padding: 24px var(--ws-gutter) 20px; }
  .nlr-hero-title p { font-size: .95rem; letter-spacing: .16em; }
  .nlr-progress { max-width: none; min-width: 0; }
  .nlr-workspace .nav-row.nlr-nav { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 10px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .nlr-workspace .nav-row #prev { grid-column: 1; grid-row: 1; }
  .nlr-workspace .nav-row #next { grid-column: 2; grid-row: 1; }
  .nlr-workspace .nav-row #next[hidden] + * , .nlr-workspace .nav-row:has(#next[hidden]) #prev { grid-column: 1 / -1; }
  .nlr-nav-mid { grid-column: 1 / -1; grid-row: 2; }
  .nlr-nav-mid:has(> .draft-status:empty):has(> #validationMessage:empty) { display: none; }
  .nlr-workspace .nav-row .btn { min-height: 46px; font-size: 15px; padding: 0 12px; }
  #validationMessage:not(:empty) { bottom: 96px; font-size: 14px; padding: 12px 16px 12px 12px; }
}
@media (max-width: 760px) {
  .sheet.nlr-workspace { --ws-gutter: 12px; }
  .nlr-workspace .nlr-dossier { padding: 16px; border-radius: 16px; }
  .nlr-dossier > .right { justify-content: flex-start; max-width: none; }
  .nlr-workspace .nlr-dossier .nota-cap { grid-template-columns: 1fr; }
  .nlr-workspace .nlr-dossier .nota-cap small { grid-column: 1; }
  .nlr-workspace .nlr-card { padding: 20px 16px; border-radius: 16px; }
  .nlr-workspace .card-kicker { margin-bottom: 18px; }
  .nlr-workspace .card-kicker .step-title { font-size: .92rem; letter-spacing: .16em; }
  .nlr-workspace #pf .grid { grid-template-columns: 1fr; gap: 16px; }
  .nlr-workspace .checks.choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nlr-workspace .check-row { width: 100%; }
}
@media (max-width: 999px) { .nlr-band-tabs:empty { display: none; } .nlr-workspace .sheet-head.nlr-band { padding-bottom: 10px; } .nlr-workspace .sheet-head.nlr-band:has(.nlr-steps) { padding-bottom: 0; } }
