.nf-cap { margin: 0; display: grid; gap: 6px }
.nf-cap-row { display: flex; gap: 8px; align-items: flex-end }
.nf-cap-field { flex: 1 1 auto; min-width: 0; display: grid; gap: 6px }
.nf-cap-field > span {
  font-weight: 800; color: var(--muted, inherit); font-size: calc(11.5px * var(--fz-base, 1)) }

.nf-cap-field input {
  width: 100%; box-sizing: border-box; padding: 11px 12px;
  border-radius: var(--sf-r-sm, 10px); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-family: inherit;
  letter-spacing: 3px; text-align: center; font-weight: 800;
  font-size: calc(14px * var(--fz-form, 1)) }
.nf-cap-field input::placeholder { letter-spacing: 3px; font-weight: 600; opacity: .45 }
.nf-cap-field input:focus {
  outline: none; border-color: var(--pl-primary, var(--green, var(--accent))); box-shadow: var(--sf-ring) }

.nf-cap-box { display: flex; align-items: center; gap: 6px; flex: 0 0 auto }
.nf-cap-img {
  display: block; height: 42px; width: auto; max-width: 100%;
  border: 1px solid var(--line); border-radius: var(--sf-r-sm, 10px);
  background: var(--surface); cursor: pointer }
.nf-cap-btn {
  width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid var(--line);
  background: var(--surface2, var(--surface)); color: var(--muted); border-radius: 50%;
  cursor: pointer; font-size: 14px; line-height: 1; transition: .16s;
  display: grid; place-items: center; padding: 0; font-family: inherit }
.nf-cap-btn:hover { background: var(--tint, var(--surface2)); color: var(--ink); transform: rotate(90deg) }
.nf-cap-hint { color: var(--muted); font-size: calc(10.5px * var(--fz-small, 1)); line-height: 1.7 }

@media (max-width: 420px) {
  .nf-cap-row { flex-wrap: wrap }
  .nf-cap-box { width: 100%; justify-content: space-between }
}
body, button, input, select, textarea { font-family: var(--font, 'Vazirmatn'), system-ui, sans-serif }
