/* Wizard-only rules. Base primitives (nu-*, license-*, cns-group-*) come from /newuser/newuser.css. */
.nw-wrap { max-width: 760px; margin: 0 auto; padding: 16px; }
.nw-narrow { width: 100%; max-width: 420px; }
.nw-center { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.nw-big { font-size: 4rem; }
.nw-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.1rem; margin-bottom: 12px; }
.nw-stepper { list-style: none; display: flex; gap: 4px; margin: 0 0 16px; padding: 0; overflow-x: auto; }
.nw-step { flex: 1 1 0; min-width: 44px; }
.nw-step button { width: 100%; white-space: nowrap; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; border: 0;
  border-bottom: 2px solid var(--border-color); background: transparent; color: var(--text-secondary); font-size: 0.8rem; cursor: pointer; }
.nw-step button:disabled { opacity: 0.4; cursor: default; }
.nw-step.is-done button { color: var(--success-color, var(--accent-color)); }
.nw-step.is-active button { color: var(--accent-color); border-bottom-color: var(--accent-color); font-weight: 600; }
.nw-step-label { display: none; overflow: hidden; text-overflow: ellipsis; }
.nw-step.is-active .nw-step-label { display: inline; }
.nw-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nw-actions { display: flex; justify-content: space-between; margin-top: 16px; }
.nw-rules li { font-size: 0.8rem; margin-top: 2px; }
.nw-review { display: flex; flex-direction: column; gap: 6px; }
.nw-review-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border-color); }
.nw-review-k { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-secondary); }
.nw-review-v { font-size: 13px; word-break: break-word; }
@media (max-width: 768px) {
  .nw-grid2 { grid-template-columns: 1fr; }
  .nw-review-row { grid-template-columns: 1fr auto; }
  .nw-review-k { grid-column: 1 / -1; }
}

/* Short fields stay short on wide screens instead of spanning the whole card. */
.nw-narrow-field { max-width: 460px; }
/* The active step keeps its full label; the rest shrink to icons. */
.nw-step.is-active { flex: 0 0 auto; }
.nw-step.is-active button { padding-left: 12px; padding-right: 12px; }
.nw-step.is-active .nw-step-label { overflow: visible; text-overflow: clip; }
@media (max-width: 768px) {
  .nw-step.is-active .nw-step-label { display: none; }
  .nw-step.is-active { flex: 1 1 0; }
}

/* Required-but-empty fields are loud: red star, red border, red message from first paint. */
.nw-req-star { color: var(--danger); font-weight: 700; }
.nu-invalid-feedback.nw-fb-show { display: block; }
.nu-input.nu-is-invalid { box-shadow: 0 0 0 1px var(--danger); }
.nw-req-missing { border: 1px solid var(--danger); border-radius: var(--radius-md); padding: 6px; }

/* ...and green as soon as the entry is good. */
.nu-input.nu-is-valid { box-shadow: 0 0 0 1px var(--success); }
.nw-req-ok { border: 1px solid var(--success); border-radius: var(--radius-md); padding: 6px; }
