/* "Check numbers" on a case: the button in the case bar and its dialog. Colours and shapes are the Lab's (lab-skin.css). */
.nc-open.lab-skin { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0; padding: 0 0.9rem; border: var(--ol-thin) solid var(--control-edge); border-radius: var(--pill); color: var(--text); background: transparent; font: 700 13px/1.2 var(--display); cursor: pointer; }
.nc-open.lab-skin[data-mistakes]:not([data-mistakes="0"]) { border-color: var(--edge); color: var(--on-accent); background: var(--accent); }
.nc-open.lab-skin:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.nc-dialog.lab-skin { box-sizing: border-box; width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 1.25rem 1.5rem 1.5rem; border: var(--ol) solid var(--control-edge); border-radius: var(--r-lg); color: var(--text); background: var(--bg); box-shadow: var(--pop-lg) var(--pop-lg) 0 var(--edge); font: 500 1rem/1.45 var(--display); overflow-y: auto; }
.nc-dialog::backdrop { background: rgba(7, 3, 15, 0.72); }
.nc-dialog *, .nc-dialog *::before { box-sizing: border-box; }
.nc-dialog h2 { margin: 0; font: 800 1.5rem/1.15 var(--display); letter-spacing: -0.02em; }
.nc-dialog h3 { margin: 1.25rem 0 0.5rem; font: 800 1.15rem/1.2 var(--display); }
.nc-dialog p { margin: 0.4rem 0; }
.nc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: auto; padding: 0; border: 0; background: transparent; }
.nc-dialog button { min-height: 44px; padding: 0 1rem; border: var(--ol-thin) solid var(--control-edge); border-radius: var(--pill); color: var(--text); background: var(--surface); font: 700 0.95rem/1.2 var(--display); cursor: pointer; }
.nc-dialog button.nc-primary { border-color: var(--edge); color: var(--on-accent); background: var(--accent); box-shadow: var(--pop-sm) var(--pop-sm) 0 var(--edge); }
.nc-dialog :is(button, input):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.nc-verdict { font-weight: 800; font-size: 1.1rem; }
.nc-verdict.nc-wrong { color: var(--danger); }
.nc-findings { display: grid; gap: 0.5rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.nc-finding { display: grid; gap: 0.1rem; padding: 0.6rem 0.8rem; border: var(--ol-thin) solid var(--divider); border-left-width: 6px; border-radius: var(--r); background: var(--surface); }
.nc-finding.nc-wrong { border-left-color: var(--danger); }
.nc-finding.nc-guess { border-left-color: var(--text-dim); }
.nc-shown { font-weight: 800; }
.nc-why { color: var(--text-dim); }
.nc-better { font-weight: 700; }
.nc-who, .nc-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.nc-steps { margin-top: 0.75rem; }
.nc-group { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0.6rem; margin-top: 0.5rem; }
.nc-field { display: grid; gap: 0.15rem; font-size: 0.85rem; font-weight: 700; color: var(--text-dim); }
.nc-group + .nc-group .nc-field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.nc-field input { width: 100%; min-height: 44px; padding: 0 0.7rem; border: var(--ol-thin) solid var(--control-edge); border-radius: var(--r); color: var(--text); background: var(--surface); font: 600 1rem/1.2 var(--display); }
.nc-total { font-weight: 700; }
.nc-basis { color: var(--text-dim); font-size: 0.9rem; }
.nc-error { color: var(--danger); font-weight: 700; }
.nc-error:empty { display: none; }
.nc-actions, .nc-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.75rem; }
.nc-ask h3 { flex-basis: 100%; }
@media (max-width: 640px) {
  .nc-dialog.lab-skin { padding: 1rem; }
  .nc-who, .nc-steps, .nc-group { grid-template-columns: minmax(0, 1fr); }
  .nc-group + .nc-group .nc-field > span { position: static; width: auto; height: auto; clip-path: none; }
  .nc-group { padding-top: 0.5rem; border-top: var(--ol-thin) solid var(--divider); }
}

/* A case's own words are longer than the template's one-word nodes: they wrap and are never cut off. */
body[data-case-market] .node-card .node-title { max-width: none; overflow: visible; white-space: normal; text-overflow: clip; line-height: 1.05; }

/* The builder's own look is Product's: this note only has to be readable on it. */
.nc-builder-note { margin: 0 0 12px; padding: 8px 12px; border-left: 4px solid #ef4444; border-radius: 6px; background: rgba(239, 68, 68, 0.12); font-size: 0.85rem; line-height: 1.4; }
.nc-builder-note p { margin: 2px 0; }
